# Empryo > Empryo is an AI coding harness that edits symbols, not strings. When it opens your repo it builds the Genome, a map of every function, type, caller and import, and the agent starts each task from that map. It edits code by symbol name and uses your language server for renames, instead of find and replace. It works with many model providers, lets you pick a different model for different jobs, and can roll back to earlier checkpoints. It runs as a desktop app, a terminal UI and a headless CLI on macOS, Linux and Windows. Bring your own model key or run local models. # Docs --- ## Child tabs Canonical: https://empryo.com/docs/agents/child-tabs > A tab can open tabs that stay attached and nested under it on every surface. A tab an agent opened closes on its own after it answers unless you keep it; agents close only themselves or tabs under them, and you can detach any. A tab can open another tab that stays attached to it. The new tab is a full chat with its own agent, model and history, and it sits under the tab that opened it everywhere you look. Use it when work needs its own visible lane, such as an audit you want to read later or a long fix that should not crowd the main chat. For short helpers, [background agents](/docs/agents/dispatch) are lighter. ## Ask for one Say what you want: "open a tab that audits the migrations while you keep going". The agent calls `link` with `tab_open`, gives the tab a name and a reason, and sends it its first message. The child says who opened it and why, and starts working at once. The parent gets a one-line confirmation, not the child's answers, so its context stays small. A child can open its own children, as deep as the work needs. Agents open tabs only when you ask or the work truly needs its own lane. Each agent sees its parent and children marked in its list of tabs, so it knows which ones it may manage. ## Where children appear | Surface | How a family looks | Collapse | Detach | | --- | --- | --- | --- | | Desktop tab strip | Children right after their parent, with a `↳` mark and the level from depth 2 | Collapse child tabs on the parent's right-click menu; the `+N` button opens it again | Detach from … on the child's right-click menu, or `/detach` | | Desktop projects sidebar | Indented under the parent with tree lines | The chevron beside the parent, or the arrow keys | Right-click menu or `/detach` | | Terminal | Tree lines in the tab bar, the projects view and the tab pickers | The projects view's expand and collapse keys; `(+N)` shows what is hidden | `/detach` | | iPhone and Android | Indented under the parent with "from …", a level badge past level 2 | The chevron on the parent; `+N` shows what is hidden | Long-press, then Detach from parent | Switching to a hidden tab opens its family again. Families, collapse state and detaches survive a restart. ## Rules | Rule | What happens | | --- | --- | | Closing on its own | A tab an agent opened (subagents, orchestration steps, `tab_open`) closes 5 seconds after it answers; a countdown shows on the tab. A tab opened with `tab_open` waits until its parent has finished reading the answer, and a tab running an orchestration waits until the run ends. Failed turns, council members, tabs you typed into and tabs you kept with a click on the countdown stay open. Turn it off with **Close sub-tabs when done** (`agentFeatures.subagentTabsAutoClose`). | | Who may close a tab | An agent closes its own tab, or any tab under it, and only when you or its parent told it to. Never its parent, a sibling or an unrelated tab. You can close any tab. | | Closing yourself | `tab_close` with no `to` closes the agent's own tab when its turn ends. A message or steer that arrives first keeps it open, and the last open tab never closes this way. | | Background work | A tab told to close waits until its turn, its background shells and its background agents have finished, then closes. The agent is told how many are still running so it can stop the ones that should not finish. A parent that calls `tab_close` on the same child again stops the child's turn and background work and closes it at once, so a stuck child never blocks its parent. | | Asking each other | `link` `ask` blocks until the other tab answers. If that tab is itself waiting on an answer from you, the second ask is refused at once with the id to reply to, so two tabs never wait on each other until the timeout. | | Closing a parent | Its children move up to the closed tab's parent, or become top-level. Nothing closes with it. | | Detaching | You can detach any child. An agent detaches only when you ask. A detached tab is a normal tab, and its old parent can no longer close it. | | Results | A child's answers stay in the child. When the parent wants results, it says so, and the child sends them with `link` `send`. | | What the parent hears | A child opening, closing or leaving shows up as one short line in the parent's tab list at its next step. It never wakes an idle parent. | | Notifications | A child tab, including subagents, reviewers and council members, sends no desktop banner, sound, terminal bell or phone notification. You hear from the tab you talk to. Turn them on with **Sub-tabs** in Settings → Notifications (`notifySubTabs`). | | Handing over | `tab_handover` sends a summary to the parent, or the tab it names, which picks up from there. The tab that hands over stays open until it is told to close, or until it closes on its own after answering. | | Moving a tab | A tab with a parent or children cannot move to another checkout until you detach it. | | Worktrees | A tab in a [worktree](/docs/surfaces/desktop#worktrees) opens its children in the same worktree. | | Headless | `empryo --headless` waits for the child tabs a run opened, and for any messages they send, before it exits. | ## The `link` actions | Action | What it does | | --- | --- | | `tabs` | Shows your parent, your children and their children, each working or idle | | `tab_open {text, reason, label?, mode?, model?, effort?}` | Opens a child that starts on `text`; you get a short confirmation naming its model and effort | | `tab_close {to?}` | Closes a tab under you, or your own tab when the turn ends if `to` is left out | | `tab_detach {to}` | Cuts a child loose, or yourself when `to` is your own id | | `tab_handover {text, to?}` | Sends your summary to your parent, or `to`; your tab stays open | ### Picking the child's model and effort A child uses its parent's model, mode and effort unless the parent names others. `model` takes `provider/model`; a bare model name such as `claude-opus-5-5` uses the parent's provider. `effort` takes a level the model supports, such as `low`, `high` or `max`. If the provider isn't signed in, or the model has no such effort level, nothing opens and the agent is told which values work. See [tabs](/docs/agents/cross-tab) for how tabs share a project and message each other. --- ## Tabs Canonical: https://empryo.com/docs/agents/cross-tab > Run many agents side by side in one project. Tabs warn each other before editing the same file, and git won't commit another tab's half-written work. You can open up to 10 tabs per project in the terminal UI and up to 32 in the desktop app, and each one runs its own agent. Use them to work on several things at once, for example a refactor in one tab and documentation in another. Tabs know about each other, so they avoid overwriting each other's work. ## What each tab has | Setting | Separate per tab? | |---------|-------------------| | Active model | Yes (`Ctrl+L` in the tab) | | Mode | Yes (`Ctrl+D` cycles default, plan, auto) | | Session and messages | Yes | | Checkpoint history | Yes | | Helper agents and their findings | Yes | | Input history | Shared across tabs | | Genome, language servers, MCP servers | Shared (one per project) | So you can run a strong model in tab 1 for a refactor while a cheap model writes docs in tab 2, with one tab in plan mode and the other in auto. ## How tabs stay out of each other's way Every tab knows which other tabs are open, which files each one is editing, and whether any of them has helper agents running. ### File claims The first time a tab edits a file, it **claims** that file. Claims come from the edit tools and from shell commands that write files (`sed`, `>`, `tee` and similar). If another tab's agent tries to edit a claimed file, it gets a warning that names the owning tab. The edit is not blocked, but the agent usually skips the file rather than overwrite someone else's work. If an edit fails because the file changed underneath it *and* another tab has claimed that file, the agent stops and tells you about the conflict instead of retrying. Claims are released automatically: - 5 seconds after the tab finishes its current prompt, - right away when you abort with `Ctrl+X`, - when the tab closes, - after 5 minutes without activity. There are no permanent locks and nothing to clean up by hand. ### Git protection Some git actions would capture or throw away another tab's work. Empryo blocks them: - **While another tab has helper agents editing files**, this tab can't commit, stash, restore, reset, rebase, cherry-pick or switch branches. Committing then would capture half-written edits. - **When another tab has uncommitted edits**, actions that discard working-tree changes (such as stash, restore or a hard reset) are blocked, because the other tab would have no way to undo them. A tab's own agents never block its own git. When an action is blocked, the agent is told not to retry and to tell you instead. ### Shared browser tabs (desktop) In the [desktop app](/docs/surfaces/desktop), all chat tabs share one built-in browser. Two agents typing into the same page would make a mess, so each chat tab gets a temporary hold on the browser tabs it is driving. | Your agent tries to… | What happens | |---|---| | Open a new browser tab | Always allowed. This is how it gets around a busy page | | Read any browser tab (snapshot, screenshot, page text, inspect, audit) | Always allowed, even if another agent holds it | | Click or type in a browser tab another chat tab holds | Refused, with a message like `being driven by "Tab 3" (idle 12s)` | | Close the browser or clear cookies | Waits while another chat tab still holds a browser tab | | Stop a dev server | Only the tab that started it can stop it | A hold expires after one minute without activity, or when its tab closes, so a stalled agent never keeps a page forever. ## Ask tabs to talk Name tabs after their jobs, such as Implementation and Review. Then ask the agent: "Ask the Review tab to check the proposed API before you edit it." Empryo can send the request to the other tab and bring its answer back. You do not need to copy the conversation yourself. Each agent sees the other open tabs and their link ids on every step, so it can message one without looking it up. An idle tab wakes up on a message and answers it; a busy tab reads it at its next step. Tabs in a [worktree](/docs/surfaces/desktop#worktrees) and tabs in the main repository reach each other the same way. Use `/link` or the Link area of `/workbench` to inspect agent conversations. File claims warn about overlapping work; they do not give each tab a separate checkout. Agree on file ownership when two agents work on related changes. ### Broadcasts and waking tabs A message sent to one tab always wakes it. A **broadcast** goes to every open tab at once, and waking a tab costs a full turn: a tab with a long conversation and a cold prompt cache can cost more to wake than the message is worth. Choose what a broadcast does to idle tabs: | Choice | What happens to idle tabs | |---|---| | Wake (default) | Every idle tab starts a turn and reads the broadcast | | Queue | The broadcast waits in each tab. It arrives with the tab's next turn: when you type there, or when another tab messages it directly | | Smart | Tabs that are cheap to wake (prompt cache still warm, or a short conversation) wake. The rest wait, as with Queue | Set it with `/link settings` in the terminal, or under **Settings › Agent › Agent link** on the desktop. `/link settings queue` (or `wake`, `smart`) sets it in one step. It applies to every project; a value in a project's `.empryo/config.json` is ignored. When a note is about files, such as "I'm committing everything", agents don't need a broadcast. They message only the tabs that edited or hold those files, so the other tabs stay asleep. ## Child tabs A tab can open another tab that stays attached to it, shown nested under it on every surface. See [child tabs](/docs/agents/child-tabs) for how to ask for one, who may close it, detaching, handover and collapsing. ## Split view In the terminal, open two tabs, then run `/tabsplit` to show them beside each other. Run it again to fold back to one. Each tab keeps its own model, mode and conversation. ## Commands ``` /tab new open a new tab (Ctrl+T) /tab close close current tab (Ctrl+W) /tab rename rename the active tab /claim show all active claims across tabs /claim release release one claim from this tab /claim release-all release every claim from this tab /claim force take over a claim from another tab ``` ## Shortcuts | Key | Action | |-----|--------| | `Ctrl+T` | New tab | | `Ctrl+W` | Close tab | | `Ctrl+\` / `Ctrl+]` | Previous / next tab | | `Ctrl+1` to `Ctrl+9`, `Ctrl+0` | Jump to tab N (`0` is tab 10) | | `Tab` | Next tab, from the input box | | `Shift+Tab` | Previous mode, from the input box | These shortcuts are for the terminal UI. --- ## Parallel subagents Canonical: https://empryo.com/docs/agents/dispatch > Split one task across subagents that run side by side, each on the model its job needs. Follow them live, steer them, or connect them in a workflow. Empryo splits a task across subagents that work at the same time and report back. You don't have to ask: describe the result you want and Empryo decides when parallel work pays off, for example a refactor across several files, a question that spans modules, or carrying out a plan. For a one-file question it does the work itself. You can also ask directly: "check these five things in parallel". [Watch five subagents run in the terminal lesson](/docs/terminal-guide#run-subagents-in-parallel). ## What you see The dispatch panel lists every subagent with its task, its model, its live step, its tokens and its cost. Each one ends with Done or a reason it failed, and its report folds back into the conversation. On desktop the Subagents panel shows the same list, and every subagent opens to its full activity. ### Subagents as tabs Turn on `agentFeatures.subagentTabs` (in `/agent-features`, or Settings on desktop) and each subagent runs as a [child tab](/docs/agents/child-tabs) under the chat that started it, on desktop, in the terminal and on phones. It is a full chat you can read and steer. A finished one closes 5 seconds after it answers unless you keep it. The parent gets one short report per batch of finished tabs, not one message each. `link` `tabs` with `to` reads a tab's full answer. Child tabs send no notifications unless you turn on `notifySubTabs`. ## How many at once - A dispatch runs up to 8 tasks as written by default. Past that, research tasks are merged into fewer subagents. `taskRouter.maxDispatchTasks` raises the limit, to 24 at most. - Up to 16 subagents run at the same time by default. `/router` sets the concurrency to 2, 4, 8, 12, 16, 24, 32 or Unlimited. - Background subagents (`bg-1`, `bg-2`, and so on) keep working while you carry on the conversation. Their reports arrive on their own when they finish. By default the agent is woken once, when every subagent of a dispatch is done, with all the reports together. Set `agentFeatures.backgroundWake` to `each` to hear from each one as it finishes (also in `/agent-features` and the routing panel on desktop). A single dispatch can ask for `each` or `none` itself. In a [headless](/docs/surfaces/headless) run the prompt stays open until its background subagents report. - [Workflows](/docs/agents/workflows) go further: parallel branches, review loops and graphs inside graphs. Unlimited removes Empryo's own cap. With it off, Empryo has run 10,000 subagents in parallel. Provider rate limits, memory and your budget still apply. ## Each on its own model The [task router](/docs/recipes/task-router) gives explorers, coders, cleanup and code review their own default model. A single task can name its model and its reasoning effort (`low` to `max`) too, and a [custom agent](/docs/tools/agents) brings its own model, instructions, skills and tool rules. In the lesson recording, three subagents run on Claude Haiku 4.5, one on Claude Opus 5 and one on GPT-6 Astra. ## When helpers hit rate limits If main chat works but helpers get throttled, your provider may treat non-streaming requests differently. Enable **Stream helper requests** for that provider in `/provider-settings` → **General**, or **Settings → Provider Options → Shared** on desktop. Helpers consume streams internally and return completed reports as usual. The opt-in is global, per provider, and off by default. See [helper streaming compatibility](/docs/context/provider-options#stream-helper-requests) for setup, environment overrides and limits. ## What subagents share - **File reads.** When one subagent has read a file, the others get it from memory instead of disk. Each still pays tokens to read it into its own context. - **Safe writes.** When two subagents write the same file, the writes queue instead of racing. - **Findings.** What one subagent discovers reaches the others at their next step. ## Where the savings come from Subagents don't share one context, so the savings come from elsewhere: - **The right model for each job.** Research can use a fast model while implementation and review use a stronger one. Compare real costs in `/usage`: a cheaper token rate does not always mean a cheaper task. - **Symbols instead of whole files.** Subagents look up symbols through the Genome and the language server and read only the lines they need. See [code intelligence](/docs/concepts/intelligence). - **Time.** Five subagents working at once finish sooner than one agent doing five jobs in a row. ## Steer them while they run Type while subagents are working. Your message reaches them at their next step. See [steering](/docs/agents/steering). To redirect a single subagent on desktop, open its activity view and type in its instruction box. The note reaches it at its next step and shows in its log with an "instructed" badge. Empryo can do the same on your behalf. ## Waiting for background work The agent doesn't wait on work it sent to the background. A long build or deploy runs as a background shell job, and a helper runs as a background subagent. The agent keeps working or ends its turn. When the job or helper finishes, its report starts the agent again right away. If the agent does call `sleep` to wait, the sleep ends as soon as one of its background jobs or helpers finishes, or as soon as you send a message. The rest of the command runs after that. A process started with `&` or `nohup` is not tracked, so it can't end a sleep early. ## Keep a subagent in the conversation Normally a subagent answers once and exits. Empryo can instead start a **resident** subagent that stays available after each reply, so you can go back and forth like a thread with a colleague. Ask for it, for example "spawn an advisor and discuss". Residents show as `waiting` in the Subagents panel between replies. A resident reuses files the main agent has already read, so a long conversation doesn't pay for them again. Its transcript has a size limit, and the oldest exchanges are dropped first. Limits: up to 4 residents at a time, 12 exchanges each, and a resident left idle for 30 minutes is closed. ## Use your own agents When you define your own agents as markdown files, Empryo sees their descriptions and can hand a task to one of them. The task then runs with that agent's instructions, model and tool rules, in the current turn or in the background. Subagents running under your definition show its name in the Subagents panel. See [agents](/docs/tools/agents). --- ## Docs for agents Canonical: https://empryo.com/docs/agents/docs-mcp > Give any AI agent Empryo's docs: copy a page as Markdown or plain text, connect the read-only docs MCP server, or use the empryo skill that ships with the app. These docs are built to be read by AI agents as well as people. You can paste a page into a chat, connect an agent to a documentation server, or let Empryo's own agent look things up. ## Copy, download or share a page Open **Copy & share** on any documentation page. Choose **Full page** or a single heading, then **Markdown** or **Plain text**. Then pick **Copy content**, **Download** or **Open raw**. **Copy a link** gives you the normal page, the Markdown version or the plain-text version. **Prompt for an agent** copies a short instruction that includes the selected text and a link to cite. Nothing is sent anywhere automatically. A section export ends at the next heading, so select subsections separately if you need them. Note that adding `#anchor` to a full-page Markdown URL does not shorten what the server returns. Use the section export instead. ## Connect the documentation MCP server MCP (Model Context Protocol) lets an agent call tools on a remote server. Add this server in your agent's settings: - Name: Empryo docs - URL: https://empryo.com/mcp - Transport: Streamable HTTP - Authentication: none The server only reads the public documentation. It can't see or change your local config, run commands or access credentials. Don't put secrets or private code in search queries. | Tool | Input | Returns | | --- | --- | --- | | search_docs | query, optional limit | Matching sections, ranked, with their page and anchor | | list_docs | optional page | All pages, or the sections of one page | | read_docs | page, optional anchor and format | A full page or one section, as `markdown` or `text` | | current_release | none | The latest published version and its downloads | Pass the exact page and anchor from search or list results. An empty anchor returns the page introduction. Leaving the anchor out returns the full page. ## The Empryo skill A skill is a set of instructions an agent can load when it needs them. Empryo installs an `empryo` skill that teaches its agent how to use these docs, so it can look up settings instead of guessing. The skill is listed in the skill catalog, but its instructions are only loaded when needed: when you mention `$empryo` in a prompt, pass `--skill empryo` in headless mode, or the agent decides the task needs it. It lives at `~/.empryo/skills/empryo/SKILL.md`. If you edit or delete it, your change is kept. Updates only refresh a copy you haven't touched. To use it with a different agent, [download SKILL.md](https://empryo.com/.well-known/agent-skills/empryo/SKILL.md) and save it as **empryo/SKILL.md** in that agent's skills folder, or use its skill installer. Read it before you enable it. ## Fetch the docs without MCP - [Agent manifest](https://empryo.com/agent-manifest.json) - [Documentation index](https://empryo.com/docs/llms.txt) - [Search API](https://empryo.com/api/docs/search?q=configuration&scope=docs) - [OpenAPI description](https://empryo.com/openapi.json) Every docs page has a `.md` and a `.txt` version, plus an `.exports.json` file listing direct links to each section. For example: `/docs/quickstart.md`, `/docs/quickstart.txt` and `/docs/quickstart.exports.json`. You can also request an ordinary docs URL with the header `Accept: text/markdown` to get Markdown back. The `.md` and `.txt` URLs work without it. ## Discovery and authentication An MCP server card at `/.well-known/mcp/server-card.json` describes the server. That discovery format is still a draft. The agent skill index and the agent manifest link to the same resources. The docs service has no protected endpoints, so there is no OAuth, token endpoint or agent registration to set up. You don't need DNS-AID or WebMCP to use any of this. --- ## The goal loop Canonical: https://empryo.com/docs/agents/goal-loop > State a goal and Empryo keeps working in rounds, with a fresh reviewer checking each one, until the goal passes, the loop gets stuck, or it hits a limit. ![One round: the agent works, typecheck and tests run, then a fresh reviewer gives a verdict. When progress stalls, each round changes one thing.](https://empryo.com/media/docs-goal-loop.svg) *One round: the agent works, typecheck and tests run, then a fresh reviewer gives a verdict. When progress stalls, each round changes one thing.* With `/goal`, you describe the result you want once, and Empryo keeps working until an independent reviewer agrees it's done. You don't have to check each attempt and say "try again". Each round, the agent (the coder) works on the goal. Then a [reviewer](/docs/agents/review), a separate agent that starts with a clean context, checks the repository against your goal. It answers `PASS` or `FAIL`; anything it could not verify is a `FAIL`. On anything but `PASS`, its reason becomes the coder's next instruction. ``` /goal the auth middleware must reject expired tokens, with a test that proves it /goal fix the flaky upload test --max=8 /loop migrate the config loader to zod # same as /goal /goal clear # stop the loop, keep the current turn ``` You can attach images to a goal the same way you attach them to a normal prompt. The coder receives them. ## What happens in a round | Step | What runs | Uses model tokens? | |------|-----------|--------------------| | 1 | The coder works on the goal, with your usual model and tools | Yes | | 2 | Typecheck, then your test suite | No | | 3 | `project run` to build and run the app, if `goalLoop.runtimeProbe` is on | No | | 4 | The reviewer checks the repository against the goal and earlier verdicts | Yes | Steps 2 and 3 run first. If the typecheck or tests fail, the round fails right away, and no reviewer is needed to tell you the build is broken. The reviewer starts fresh every round and can use its own model. It judges the current state of the code, not the coder's description of it, and re-checks that anything it passed earlier still works. ## When progress stalls Sending the same failure back to the same model rarely helps. So after a couple of tries, each round changes one thing: | Round | What changes | |-------|--------------| | 1, 2 | Nothing. The reviewer's reason goes back to the coder | | 3 | The **reviewer** switches to a stronger model, in case it is the one getting it wrong | | 4 | The **coder** switches to a stronger model | | 5 | The coder is told to stop patching and rethink its approach | | Limit | The loop stops and reports why it's stuck | The stronger models come from your [task router](/docs/recipes/task-router) and fallback chains. The loop only uses models you've configured. ## When it stops - **PASS.** The reviewer confirmed the goal. The loop ends with a summary. - **Repeated failure.** The same failure reason twice in a row means the coder isn't making progress, so the loop stops. - **Round limit.** 5 by default. Change it per run with `--max=N`, or set `goalLoop.maxIterations`. - **Token limit.** `goalLoop.tokenCap`, counted across coder and reviewer. - **You stop it.** `Ctrl+X` stops the loop at any point, whether the coder or the reviewer is running. The loop only asks you a question when it's stuck. It doesn't pause for approval between rounds. ## Redirecting a running loop Type while it runs. Your message is added to the next round's instructions instead of interrupting the current one. Earlier verdicts stay in the instructions, so the coder can see what it already tried. `/goal clear` ends the loop without stopping the turn that's running. ## When you're away: the stand-in A loop that stops overnight to ask a question gets nothing done by morning. When you're away, a **stand-in** agent can answer the coder's questions for you. It decides from a fresh context, logs its choice and reasoning, and picks the safe option when it isn't confident. | `goalLoop.standIn` | What it does | |--------------------|--------------| | `off` | Never answers. Questions wait for you as usual | | `conservative` | Answers multiple-choice questions only (default) | | `full` | Also approves web searches and page fetches | If you later override one of its decisions, the correction is saved to memory, so it learns your preferences over time. In headless runs you count as away, because there's no one at the keyboard. The `standIn` setting alone decides. ## Where to watch it | App | What you see | |-----|--------------| | Desktop | A goal bar above the message box: one dot per round colored by its verdict, elapsed time, tokens used, and a cancel button | | Terminal UI | A goal banner and a verdict line for each round in the conversation | | Headless | Round progress on stderr, verdicts in the `--events` stream | A loop with no round limit shows ∞ instead of a row of empty dots. ## In CI ```bash empryo --headless --loop "the migration must be reversible and covered by a test" empryo --headless --loop "fix the failing suite" --max-iterations 8 --json ``` | Exit code | Meaning | |-----------|---------| | `0` | PASS | | `1` | Stuck, repeated failure, round limit or token limit | | `2` | Timed out (`--timeout`) | | `130` | Aborted | ## Settings ```json { "goalLoop": { "maxIterations": 5, "tokenCap": 2000000, "standIn": "conservative", "runtimeProbe": false } } ``` Each round is a real coder turn plus a real review, and both count toward the tab's [costs](/docs/concepts/cost-tracking). A loop that uses all 5 rounds runs five reviews and several coder turns. Make the goal specific enough to be checked: "rejects expired tokens, proven by a test" works well, "improve auth" does not. ## `/goal` or `/review pass`? | You have | Use | |----------|-----| | A goal, and the code isn't written yet | `/goal` | | Code that already exists, and you want it to hold up to a fresh review | [`/review pass`](/docs/agents/review) | `/goal` switches to stronger models when it stalls. `/review pass` keeps reviewing the same way until the reviewer finds nothing left. ## Next **The reviewer** The agent that checks each round: what it reviews, its verdicts, and how to act on them. **Steering** Change direction while a turn or a loop is running, just by typing. --- ## Mito Canonical: https://empryo.com/docs/agents/mito > Mito is one lead above every project on your computer. Talk to it instead of each tab: it opens, watches and nudges them and shows you what needs you. ## Overview Mito is a lead that sits above every project on your computer. Instead of going to each project and each tab, you talk to Mito. It keeps one board of work, opens tabs in the right project and mode, watches them, nudges the ones that stop with work left, and tells you what needs you. It does not edit code or run commands itself: every build, fix, test and release happens in a tab it opens or sends work to. A few words this page uses: - **Lane**: one tab doing work in one project. Every open tab except Mito's own is a lane, in this window or in another Empryo window or terminal on the same computer. - **Mito's lanes**: the lanes Mito opened, queued work into or steered. Only these send Mito notes. - **Board**: Mito's cards across all projects, in four columns: Inbox, Doing, Blocked and Done. - **Playbook**: a short file of how you work (your standing rules, how you want status, how you close work, your tone). Mito reads it before it plans and keeps it up to date. Use Mito when you have many tabs going across projects and want the status without opening each one, when a risky step (an engine restart, a release) means several tabs must pause first, or when you want to start something new, such as a research paper, without picking a folder and a mode yourself. For one task in one project, a normal tab is enough. To see Mito at work before you turn it on, take the [guided tour of Mito](/mito). ## Turn Mito on Mito is an [experimental feature](/docs/reference/configuration#experimental-features) and is off until you turn it on. Any of these does it, and each writes the same setting, `mito.enabled`: - **Settings › Experimental › Mito** in the desktop app, or `/experimental` in the terminal UI. - `/bot on` in the terminal UI or the desktop app. - `empryo bot on` in a terminal. - **Turn on Mito** in the Mito view. - The **Mito** switch in the Settings of the iPhone and Android apps, on a phone [paired with your computer](/docs/surfaces/phone#pair-your-phone). Every running engine picks the change up without a restart. `/bot off` and `empryo bot off` turn it off again. The setting counts only from your own global config: a project's `.empryo/config.json` cannot turn Mito on. While Mito is off there is no pinned entry and no Mito entry in menus or the command list except `/bot on`. A Mito view that was already open says "Mito is off.", one line on what Mito does, and **Turn on Mito**. Empryo does nothing for it: no files under `~/.empryo/bot` are read or watched, no notes are sent, and nothing is checked on a timer. Mito's chat is put away: it leaves the tab list on every surface and is not woken. Turning Mito on again brings back the same chat with its whole history, also after a restart. ### The welcome The first time you turn Mito on from an app, a short welcome shows first: four steps with Mito on each one. 1. **Meet Mito.** One lead above all your projects. You talk to Mito, and Mito runs the tabs. 2. **What Mito does.** It opens tabs in the right project and mode, watches them and tells you what needs you, and keeps one board across every project. 3. **What stays yours.** Mito never edits code or runs commands itself, it asks before anything leaves this computer, and while it is on your phone hears from Mito only. 4. **Turn it on.** **Turn on Mito** switches it on and opens the Mito view on Today. **Not now** leaves it off and writes nothing. You can leave the welcome at any step. It shows once: after you have finished or left it on any surface, no surface shows it again. If Mito was switched on another way, such as Settings › Experimental or `empryo bot on`, the welcome shows the first time you open Mito, with **Got it** in place of the switch. On a phone, Mito arrives when it turns on while the app is open: its ring draws in, it opens its eyes, and it travels to its pinned entry at the top of the chat list. Tap to skip. With Reduce Motion on, it fades in and out instead. ## Open Mito Mito has a pinned entry above the project list: its face, its name and one status line, such as "2 need you, 1 running", "3 on the board" or "All quiet". It is in the Projects panel of the [terminal UI](/docs/surfaces/tui), in the sidebar of the [desktop app](/docs/surfaces/desktop) (a small Mito mark in the narrow rail layout), and in the tab overview and chat list of the [phone app](/docs/surfaces/phone). Click or tap it to open Mito's chat. A small button beside it opens the Mito view. You can also type `/bot` (or `/mito`) in the terminal UI or the desktop app, or pick **Mito** in the desktop command palette. `/bot lanes` and `/bot board` open the view on that part. On the desktop the view is a side panel, which fills the window when the window is narrow. In the terminal it opens over the chat, and on a phone it is a full-screen sheet. The view starts with a large Mito, a line that says what it is doing, and **Talk to Mito**. Below that are four parts: | Part | What it shows | | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **Today** | What needs you first: **Needs you** (lanes waiting on a question, an approval or a plan review; approvals answer right there with **Approve** or **Deny**), **Failed** (with the cause), **Done since you last looked** (with **Archive**), then pull requests that need someone, the machine line ("CPU 23%, memory 41%") and the study card. Needs you and Failed stay until they are settled | | **Work** | Every lane Mito can see, live, grouped by state: Needs you, Failed, Running, Done and Idle (or by project, with **Group by project**). Each row says in two lines what the lane is, how long it has been in that state and what it is doing now, what it asks, why it failed or how it ended. **Archive** at the bottom holds done and closed lanes from the last 7 days | | **Board** | The four columns with their counts. Add a card, move it to another column or remove it | | **Playbook** | The playbook, with "Learned from your sessions on" and a date, or "Mito has not studied your sessions yet." | Clicking a lane opens its tab, under Mito. A lane in a window or app you are not attached to shows "In another window" and does not open, but its actions still work. ### Mito view **Mito view** sets how Today, Work and Board lay out your lanes. It is in **Settings › Experimental › Mito** on the desktop, in `/experimental` in the terminal and in **Settings › Mito** on a phone, and it is `mito.view` in the [configuration](/docs/reference/configuration#mitos-skills-for-lanes). Every surface follows it as soon as it changes. | View | How it looks | | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **List** (default) | One list grouped by state, as described above | | **Sections** | The same lists, split under a header for each project: its mark, its name, how many lanes and what needs you. Each lane is one row: its state, its name and when, what it is doing, then its cache, branch and pull request. The machine strip shows the battery and whether it is charging | | **Cards** | Each project is a card. A bar under its name shows the mix of what needs you, failed, runs and is done, and the header says it in words. Rows are two lines with the time and cache on the right. A card for this computer at the top shows its battery or that it is plugged in | | **Rails** | Each project sits under a header that stays at the top while you scroll, with a coloured rail down its lanes. Each lane's state is a word on the right, such as Needs you or Running 2m. On a wide desktop window the lanes are a dense table with the same columns for every project. The computer's power sits next to its name | In Sections, Cards and Rails, click a project's header to fold it. Lanes keep their order inside each project, and the Board groups its cards by project in each column. ### Mito mode With Mito on, a session can run in Mito mode: Mito is the whole window. On the desktop app, Mito's tree replaces the sidebar and Mito's chat fills the middle. The tree starts with Mito's label and **Talk to Mito**, then Mito's own pins and folders, then the projects Mito works in, each with its worktrees and lanes under it. There is no tab strip and no classic tab list beside it. - **Turn it on or off** with the **Mito** switch at the top of Mito's chat. In the classic view, the button beside Mito's entry switches back. The choice is saved with the session: a session saved in Mito mode reopens in Mito mode, and one saved in the classic view reopens classic. - **Your open tabs.** The first time you turn Mito mode on in a session that has tabs you used, Mito asks once: **Bring your open tabs into Mito?** **Bring them in** puts their projects in Mito's tree, and the same tabs show there. **Start empty** leaves the tree empty. Either way they stay the same tabs: whatever happens in them, and every tab, lane and worktree Mito opens, shows in the classic view too. - **A fresh start is empty.** A new session in Mito mode has no projects yet. Add one with **Add a project**, or ask Mito to start in a folder. A project Mito opens a lane in joins the tree on its own. - **Opening another chat.** By default a lane or tab opens in a panel on the left and Mito's chat stays open beside it; **Esc** or **Close** puts it away. **When opening another chat** (Settings, Experimental, Mito, or `mito.openChat`) set to **Replace Mito's chat** shows it in Mito's place instead, with a strip at the top and **Back to Mito**. - **Pins and folders** are kept per mode: Mito mode has its own, and the classic view keeps its own. ### Which Mito, and the lead Every engine on the computer can have its own Mito. One of them leads: the first one that opens, or the one you choose. Only the lead acts on lanes, arms hooks and follow-ups, and speaks to your phone. Another engine's Mito says it is not leading, names the lead, and its `lanes` tool refuses to act. Each Mito is labelled with its engine: project, branch, lane and engine number, and **Lead** or **Not leading**. Click the label for every Mito on the computer, each with who is connected (desktop, terminal, phone), **Switch** to go to that engine, and **Make this the lead**. A Mito that is not leading shows **Go to the lead** and **Lead here instead**. When the lead's engine stops, another engine's Mito takes over within seconds. The start screen's **Running now** shows one card per engine, with its branch and whether its Mito leads, and **Join** joins that exact engine. The effort control in Mito's composer sets the lead role's effort (`mito.roles.lead.effort`), the same setting the models page and the phone show. ### Archive Done work leaves Work and Today on its own so a busy day does not pile up. **Auto-archive done** sets when: | Setting | A done lane is archived | | ------------------- | --------------------------------------------------------------------- | | When seen (default) | The next time you look after the visit in which you first saw it done | | After a day | 24 hours after it finished | | Never | Only when you archive it | An archived lane also leaves the strip of lanes under Mito; its tab is not closed. Any new work in it (it runs, asks or fails) brings it back. Closed lanes Mito managed are in the archive too, with how they ended, and open again from there. ### Folders, pins and archive Mito mode keeps its own pins and folders. Classic mode (Mito off) keeps its own too, and neither shows or changes the other's; switching back and forth never mixes or loses them. Your tabs and sessions are the same in both modes. The sidebar in Mito mode shows Mito's folders, and they are the same folders Mito sees and makes. **Folders** (`mito.folders`) sets how they are laid out: | Setting | What you see | | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Folders in projects (default) | One tree: each project, then its folders, then lanes and sessions. Pinned items and pinned folders sit on top. Archived items fold at the end of each project | | Collections | Folders that can mix projects, such as one release across the app and the site. A rail on the desktop, or a row of chips on the phone, filters by All, Pinned, each collection and Archive | Right-click a lane (long-press on the phone) to **Pin**, **Move to folder**, make a **New folder with it** or **Archive** it. A lane that stands for a job stays pinned until you unpin its job. Pinned items, everything in a pinned folder or collection, and standing lanes are kept: worktree cleanup, auto-archive, **Archive all done** and Mito closing lanes all skip them. Archiving never deletes anything. An archived lane keeps its tab, its history and a copy of how it ended, even after the 7 days closed lanes are listed for. **Restore** puts it back in the folder it came from, pinned again if it was. Mito does all of this with its `folders` tool: list, create, rename and delete folders or collections, move items, pin and unpin, archive and restore. The line under Mito's name reads its mood: | Line | When | | -------------------------- | ---------------------------------------------------- | | Asleep. Say hi to wake it. | Mito's tab is not open and nothing is going on | | Watching your projects. | Mito's tab is open and nothing needs attention | | Thinking. | Mito is answering in its own tab | | 2 lanes running. | Lanes are working | | 1 lane needs you. | A lane waits on you. This wins over every other line | | 1 lane failed. | A lane failed | | The board is clear. | Every card on the board is in Done | | Learning how you work. | Mito is studying your past sessions | **Talk to Mito** opens Mito's chat, making it the first time. Mito's chat sits in its pinned row above your tabs, with Mito's face and status, and is the first tab in the tab strip, marked with Mito's face. It cannot be closed, moved, cleared, forked or renamed while Mito is on, and its tab menu only opens the Mito view. Closing it with a shortcut or a command says that Mito stays while it is on; closing all tabs leaves it. It belongs to the window's main engine, not to a project engine, so each window has one. ### Mito's chat Mito's chat is one conversation you talk in. Replies are headed **Mito** with Mito's face in its current mood, and the input says "Ask Mito". It has no Review, Branch, Copy, Edit or mode controls; send, stop, voice, images and the model stay. - **Status lines.** What Empryo sends Mito on its own, such as the first-day start, a full study or a note that woke it, shows as a Mito line with its face, not as your message. Tap it to see what Mito is doing. - **Mito's own work folds.** Turns Mito took on its own between two of your messages fold into one line, such as "Mito handled 9 things · 13:41–14:05", that opens to show them. The ones since your last message are one card, **While you were away**, with Mito's summary and the lanes and pull requests that changed (what needs you first), each opening its chat, and a "New since you looked" line above what you have not seen. A woken turn writes nothing unless you must act or work stopped, so the chat stays a conversation. Each quiet turn reads as one plain line naming the lane and what it said, such as "Restore review: passed on both apps". - **Tool steps in Mito's words.** Each step reads like Mito, for example "Opening a lane in api", "Nudging web", "Checking this Mac" or "Tidying my memory", and says what it did once it is done ("Opened a lane in api"). Study steps in a row fold into one line with a count, such as "Read how you work, 4 steps", which reads in the present while any of them still runs. The rail mark is a small Mito face in the step's mood, moving while the step runs and still when it is done or when motion is reduced. Open a step to see **What I sent** and **What came back**, with the tool's own name in small type. ### Studying how you work On its first day Mito reads your recent chats and writes its first notes in the [playbook](#the-playbook-and-the-first-day). The study card on Today, and the status line in its chat, show where it is: | Card | What it means | | ------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Learning how you work | Mito is reading your recent chats: where from, how many sessions it has read, how many notes it wrote, since when | | Has not studied your full history yet | Only recent chats were read. **Study my full history now** (with the number of sessions) or **Later** | | Studying your full history | Empryo opened a study lane that reads your Empryo sessions. The counts move as it reads | | Studied (when) | Every study lane finished and Mito merged their notes. **Study again** starts over | | Study stopped | The study ended before it finished, with the reason: a study lane failed, Mito was turned off, Empryo restarted, or it ran longer than 6 hours. **Try again** or **Later** | Study lanes run in lite mode and can only read your past chats and write notes for Mito. They close when the study ends, and one study runs at a time across all your windows. After **Later**, Mito does not offer the full study again until you ask. ## Talk to Mito Ask Mito in plain words, the way you would brief a lead. Some examples: - **"Fix the flaky login test in api, and add a dark mode toggle to site."** Mito adds a card for each piece of work, opens one lane in `api` and one in `site`, and writes each lane a complete prompt, because a lane cannot see Mito's chat. When each lane finishes, a note wakes Mito and it tells you what happened. - **"What is left?"** Mito answers in a fixed order, one line per lane: what runs, what needs you, what is left (each lane's not-finished list and open tasks), and what is done since you last asked. - **"I need to restart the engine."** Mito asks the lanes it would hurt to pause: finish the current step, stop what they started (servers, watchers, tests), say where they stopped. It waits for their notes, tells you what is parked, and asks for your yes. Mito cannot restart an engine itself. After the restart it gets a note listing its lanes that came back and which were cut off mid-turn, and it resumes them. - **"Help me write a research paper on prompt caching."** Writing is not code, so Mito makes a new project folder beside your other projects, without git, tells you the full path, and opens a lane there in lite mode. - **"What did this week cost?"** Mito answers with what each lane and project spent, how many turns they took, which tools they called most, and how much of the input came from the prompt cache. - **"Check on the release lane in twenty minutes."** Mito leaves itself a [follow-up](#follow-ups) and ends its turn. Nothing runs in between. When an answer is easier to see than to read, such as a status across many lanes, Mito answers with a small view in the chat instead of paragraphs. It can also change Empryo's [settings](/docs/reference/configuration) for the work and find [skills](/docs/tools/skills). A setting that spends money (models, accounts, budgets) or grants authority (approvals, yolo, computer use, device trust), and installing or removing a skill, asks you first in Mito's tab with **Allow** and **Deny**, showing the setting and its new value; other settings change at once. Settings that hold a command or start a program, such as MCP servers, and Mito's own settings are refused: change those in Settings yourself. A skill Mito loads reaches only Mito, so it tells a lane to load the skill by name. A skill it installs goes to the window's main project unless it installs it for every project. ### Strands A strand is Mito's second ear. When you write to Mito while its turn is running and Mito has not reached your message within 4 seconds, a strand answers beside your message, marked **Strand**. It is one extra call on Mito's own model that resends Mito's last request word for word, so it knows what Mito knows and reads Mito's prompt cache instead of paying for the conversation again. A strand only looks: it can list and read lanes, the board, the machine, the playbook and projects. It can do exactly one thing: stop the tool call Mito is stuck in, so Mito's turn moves on. It never stops a question, approval or plan review that waits on you. Mito still gets your message at its next step, with a note of what the strand said. At most two strands run at once, each for at most 45 seconds. As a failsafe, the engine itself stops any tool call of Mito's that has run for 5 minutes without waiting on you. ### Follow-ups Mito never waits inside a turn. When it wants to look again later, it leaves a follow-up, a time and a note to itself, and ends its turn. When the time comes the engine wakes Mito with the note, also after an engine restart: a follow-up stays in its file until its note has reached Mito. A follow-up can be 1 minute to 7 days away. Ask Mito what it has pending, or to cancel one. Mito picks the mode for every lane it opens: | Mode | Mito picks it for | | ------------- | ------------------------------------------------------------------------------------------------------------------------ | | `lite` | Writing, research, notes and talk that need files but no code. No coding tools and no Genome (Empryo's map of your code) | | `duck` | Thinking out loud, with no files at all. See [Duck](/docs/tools/side-agents#duck) | | `default` | Building and fixing | | `plan` | Risky or wide changes you should review before any edit. See [plan mode](/docs/recipes/plan-mode) | | `orchestrate` | Big multi-step work that needs several agents. See [multi-agent workflows](/docs/agents/workflows) | When one of your [custom agents](/docs/tools/agents) fits the work, such as a release agent, Mito runs the lane as that agent. It opens no more lanes than the work needs and does not let two lanes change the same files in the same project at once. ### Context and journal Mito's tab lives for weeks, so it looks after its own context with one tool. | Action | What it does | | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Status | How full the context is, whether the cache is warm, how many turns and tool results it holds, when it was last summarized, and how far back the journal goes | | Clean | Drops bulky old tool results and keeps every message of yours and every answer of Mito. No model call | | Summarize | Replaces older history with a summary when the current turn ends. Either a summarizer writes it (one side call), or Mito writes it itself and no model is called. A note from Mito is kept word for word on top | | Journal | Reads past summaries back: the newest, one day, or the ones that match some words | Every summary of Mito's chat goes into the journal, whoever started it: Mito, the engine before a wake on a cold cache, the automatic threshold, or your own `/compact`. The journal is never trimmed by Empryo, so Mito's context stays small while what it knew stays readable. The first turn after a summary starts with a line that points Mito at the journal. ## Lanes A lane is any tab doing work in a project. Mito sees every lane on the computer: each Empryo engine writes its tabs to a small file that the others read, so lanes in another window, a second app or a terminal show up too. Mito opens as many lanes as your computer can take. While the computer is under pressure, with 90% or more of its memory in use or the CPU at 95% or more for a while, a new lane still opens but waits before its first prompt, and Mito says which reading held it. Waiting lanes start on their own, oldest first, once memory is under 85% and the CPU calms down; a lane opened while others wait queues behind them. To cap the number yourself, set **Max lanes Mito runs at once** in Settings (`mito.maxLanes`); leave it on **Automatic (by machine load)** for no fixed cap. What Mito can do to a lane: | Action | What it does | | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Open | Start a lane in a project, or in a folder by its absolute path, with one complete prompt and a mode. A folder that is not one of your projects and lies outside your home folder needs your yes, and the disk root or your whole home folder is refused. It can also pick the model, run the lane as a custom agent, link it to a card, or run it in a [worktree](#projects-and-worktrees) for a branch | | Queue | Send more work, which runs when the lane is free | | Steer | Send text that the lane reads at its next step, while it works. One message can go to several lanes at once. On an idle lane it runs as the next prompt | | Read | The lane's facts, what it waits on in full (the command or path an approval covers), its not-finished list and its latest answer or error | | Answer | Reply to what the lane waits on: a question, an approval or a plan review. See [approvals](#approvals-and-what-mito-asks-first) | | Compact | Shrink an idle lane's context into a short summary. Refused while the lane runs or waits | | Set | Switch the lane's mode or model, or the MCP servers it may use | | Brief | Write the card you answer a waiting lane from: what the lane is doing and why it stopped in up to three lines, two to four choices with what each one does, and the choice Mito would pick with its reason. See [briefs](#briefs) | | Stop | Halt a running or waiting lane | | Pause | Hold a lane at its next step with nothing lost. Messages sent to it wait, its helper chats pause with it, and it stays paused across restarts. Pausing a chat you started asks you first | | Resume | Carry a paused lane on from where it stopped, then run what was queued | | First | Run one lane first: Mito pauses only its own running lanes on a 1-hour cache with more than 10 minutes left, and resumes them when the urgent lane is done or 10 minutes before their cache runs out. Lanes on a shorter cache keep running | | Close | Close an idle lane. Refused while the lane runs or waits on you | | Usage | What a lane, a project or everything spent: turns, tokens in and out, how much input came from the cache, cost, and the tools called most | ### Briefs When a lane waits on you, Mito first reads what it needs (the lane's ask and last messages, the files it names, your history) and then writes a brief beside the ask instead of a paragraph: a few lines of context, the choices with what each one does next, and the one it would pick and why. The brief shows wherever the ask shows (the lane row, the needs-you row on Today, your phone), and you answer it there. Your answer reaches the lane as yours. For anything on the [ask-first list](#approvals-and-what-mito-asks-first) Mito leaves the pick to you and says so. The brief goes away when the ask is answered. ### Skills and MCP servers for lanes Mito picks the [skills](/docs/tools/skills) a piece of work needs by its project and task, and passes them by name when it opens or queues a lane. With `mito.pushSkills` on (the default) Empryo loads them into the lane before its prompt runs and tells Mito which loaded and which are not installed; with it off, the prompt names them and the lane loads them itself. To bring a skill up to date, Mito has a lane edit the skill's file; a skill you wrote yourself changes only after your yes. A lane can also be limited to some of your [MCP servers](/docs/tools/mcp). It then sees only their tools. A server you turned off connects only while such a lane works and disconnects after ten minutes without use; tabs without a limit keep every server that is on, as before. ### Mito's inbox Agents and tabs that write to Mito can send a lot at once. When more than three messages, or more than 3,000 characters, arrive together, Mito gets a skim instead of the full texts: one line per message with its id, sender, kind, title and size, and messages with the same sender and title folded into one line marked ×N. Mito opens only what it needs. Lane notes, pull request news, hooks and follow-ups always arrive whole. Queueing or steering a lane makes it one of Mito's lanes, so its notes reach Mito. It gives no right to stop or close it: stopping or closing a lane Mito did not open asks you first in Mito's tab, and with nobody there to answer the lane stays as it is. Before a restart Mito parks running lanes by steering them, not by stopping them. When one of Mito's lanes finishes, fails, stops, waits on you or closes, or one of its pull requests changes, a note arrives in Mito's tab and wakes it. A lane Mito does not manage wakes it only while you have been away from the computer for two minutes: when it waits on you, fails, or one of its pull requests changes. The note carries the lane's not-finished list. Mito never polls. When a lane stops with things left that it can do itself, Mito sends it a short message to finish them, at most twice for the same piece of work, and then tells you what is stuck. It never nudges a lane that waits on you. Mito also watches the cost. Many providers keep a [prompt cache](/docs/context/prompt-cache): the conversation so far, kept for a while so the next turn costs less as long as the cache stays warm. Before Mito queues into a lane whose cache has gone cold and whose context is more than half full, it compacts the lane first and says so. For related work it prefers a lane whose cache is still warm over opening a new one. Mito also picks how long each lane's cache lives, on models that offer a choice (Claude through Anthropic or Bedrock, Kimi K3). A lane that will sit idle for more than 5 minutes and come back, such as one running long tests, waiting on a review, on CI or on you, gets a 1 hour cache; quick back-and-forth stays on 5 minutes, and Mito switches a lane back once the long waits are over. A 1 hour cache write costs more (on Claude, twice the input price instead of 1.25 times), so Mito says which it picked and why. The choice stays with the lane across restarts, applies only to that lane, and the lane row shows the window. Your own tabs keep the TTL from your settings. Notes that arrive within 2 seconds of each other wake Mito once, together. And when Mito's own chat is cold and more than half full, the engine compacts it before an automatic wake. Each lane row shows: | Fact | What it means | | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Phase | Idle, Running, Waiting, Failed or Stopped | | Waiting on | The question, the plan title or the approval the lane asks for | | Left | "3 left": the lane's not-finished list, or its open tasks | | Context | A small meter of how full the lane's context window is | | Cache | **Cache warm** or **Cache cold**, hidden when unknown | | Cost | What the lane has spent | | Queued | "2 queued" when prompts wait in its inbox | | Mito | A small badge when Mito manages the lane | | Pull requests | The lane's pull requests by number, with a mark for the one state that matters most: merged, closed, draft, conflicts, checks failing, changes requested, checks running, ready to merge or open. The first two show; "+N" says how many more | | Helpers | Subagents running or waiting, and child tabs | | Last activity | How long ago the lane last did something | You can act on a row yourself: **Stop** while it runs, **Compact** when it is idle and its context size is known, and **Close** when it is idle. Close asks first. The actions are in the row's menu on the desktop and on phones, and on keys in the terminal. ## Pull requests Mito follows the pull requests of every lane, the ones Empryo already tracks for each tab (the **Pull requests** setting in Experimental, on by default). Each lane shows its pull requests, Today lists the ones that need someone (checks failing, changes requested, merge conflicts, approved with green checks), and Mito can list them all, read one with its failing checks and its latest comments and reviews, and merge it or mark it ready for review. When a pull request of one of Mito's lanes fails its checks, gets changes requested or a conflict, Mito queues that lane to fix it and tells you only after two tries. When one is approved with green checks, Mito tells you it is ready: merging is yours, and Mito asks before it merges. When one merges, Mito moves its card to Done and offers to remove its worktree. ## Telling you While Mito leads, Mito is the only voice. Lanes, their subagents and their pull requests stop sending alerts and notifications of their own, on the phone and on the desktop: Mito decides what you need to hear and tells you itself, in one notice that says what happened and what to do. A notice shows at once in the desktop and terminal apps, and goes to your phone when you have been away from this computer for two minutes or it cannot wait. Tapping it opens the lane it is about, or Mito's chat. Your own tabs, the ones Mito does not manage, reach Mito too, but only while you are away: then Mito decides whether a question, a failure or a pull request change of yours is worth a notice. While Mito leads, no tab shows its own toast or system notification, yours included: their state is on the Mito view and in the tab strip, and the only toasts are Mito's notices. A notice does not toast while Mito's chat or the Mito view is in front of you, since you see it there already. Mito can also write a line on your overview without a notice, for progress you can read when you look; each subject (a lane, a pull request) keeps one row there that the newest line replaces. Notes about a lane that finished, a pull request that went green or merged and a lane that closed wake Mito after up to 30 seconds, so several of them come as one wake; a lane that waits on you or fails wakes it within 2 seconds. So you are not flooded, Empryo holds back the same news twice within 30 minutes (the same subject with a new headline is new news), more than 6 notices an hour (and 6 urgent ones), and a second notice within a minute; Mito folds those into its next notice or says them in its tab. A reply to something you wrote to Mito still alerts you as any chat does. When Mito cannot wake up, the phone falls back to the old way until it can: a lane that asks a question, wants a plan reviewed or fails sends one alert titled "Mito" that names the lane. ## When work stops Mito never sits quiet about work that stopped. When something stalls, Mito is told, and you see one warning line under Mito's name until it clears. Mito shows as **blocked** while that line is up, unless a lane is waiting on your answer, which shows first. - **A quiet lane.** A lane Mito manages that runs but shows nothing for 10 minutes. Mito is told once, and one last time after 30 more minutes. The line reads "{lane} in {project} is running but has shown nothing for {time}." - **A lost lane.** A lane whose Empryo engine stopped while it was working. Mito is told the lane did not finish, instead of reading it as closed. While a managed lane works in another engine, Empryo checks every minute. - **A failed lane.** Mito's note names the cause in plain words, such as a provider that is overloaded, a usage limit with its reset time, an account that is signed out or too many requests at once, and up to four ways out. - **A paused lane.** A lane Mito paused stays paused until it is resumed; when Mito is switched off, every pause is lifted. A lane held by a usage limit is paused, not failed. Mito is told the cause, the reset time and whether the lane carries on by itself, which it does only with automatic resume on in your subscription settings. A message sent into a paused lane waits there, and Mito is told so. - **Several lanes at once.** Lanes cut by the same cause within a minute reach Mito as one note. After "too many requests at once", one fewer managed lane may run at a time for an hour, never fewer than 2, and Mito brings lanes back one at a time. - **Idle with work left.** 15 minutes after Mito stops with a card in Doing, unfinished items or a failed, lost or quiet lane it has not dealt with, and nothing scheduled, it is woken once to start the work, set a follow-up or say why it waits. - **Work stopped.** When the last lane Mito runs goes idle, or a follow-up Mito set for a time limit you gave fires, and Mito has not told you since, it is woken to report. That turn always ends with a visible summary: what got done, what is left and why it stopped, then a choice of what next with Mito's pick first. Mito cannot end it silently. ### Recover a lane Mito can move one lane to another signed-in account of the same login, or to the same model on another ready provider, and tell it to carry on. It asks you first in its tab: "Switch {lane} from … to … and carry on?" Only that lane changes. The active account, your default model and every other tab stay as they are. Starting a fresh lane and waiting for the reset are the other ways out. ### When Mito cannot wake up If Mito's own turn fails, the updates for it are kept, not dropped, and tried again after 1, 5 and 15 minutes, at the reset time for a usage limit, and not at all when the account is signed out. You get one line in Mito's tab, one phone alert titled "Mito", and the warning line "Mito could not wake up: {reason}. {n} updates are waiting." After the third failed try, or at once for a usage limit or a sign-out, Empryo asks you in Mito's tab whether to switch Mito to another model or account, or keep waiting. Answering costs no model call. ## Models Mito picks a model for every lane it opens, and for its own work, from a small router you control. Each job has a role: | Role | Used for | Default model when you set none | | ------------ | -------------------------------------------------------- | ------------------------------------------------------- | | lead | Mito itself | The model of Mito's tab | | triage | Sorting notes that arrive while Mito sleeps | The task router's quick model, else Mito's model | | summary | Mito's own summaries | The task router's summary model | | worker | Lanes in default mode | The engine's default model | | writer | Lanes in lite and duck mode | The task router's model for that mode, else the default | | planner | Lanes in plan mode | The engine's default model | | orchestrator | Lanes in orchestrate mode | The task router's orchestrate model, else the default | | reviewer | Review lanes, which check a lane's work | The task router's review model, else Mito's model | | advisor | Advice lanes, which give a second opinion on a hard pick | The task router's advisor model, else Mito's model | Each role has a switch, a model, an effort and an allowance: the providers or models it may use. A lane runs at its role's effort when its model supports it; Mito can ask for another effort the model supports, and the reply names the model and the effort. An empty allowance means every model you are signed in to. Mito uses the role's default; it may pick a cheaper allowed model for easy work and a stronger one for hard or risky work, and says which and why. A model outside the allowance asks you first on Mito's tab (with no-jail or yolo on, it goes ahead). A role switched off opens no lanes of that kind, triage off wakes Mito with every note, and summary off writes Mito's summaries on its own model. The lead role is always on; when you set its model, Mito's tab switches to it after the turn it is in. Mito keeps a model book with every model you are signed in to: its price per million tokens (input, output, cache), its context window, how you pay for it (on a subscription, an API key or local) and its public rankings from the LMArena text and WebDev leaderboards. The book refreshes once a day while Mito's tab is open, never before; Mito's `models` tool refreshes it on request, and when a leaderboard cannot be read, the older rankings stay. Mito sees its router in a short block on its first turn and again whenever it changes. ## The board The board is Mito's memory of the work. Each card has a title, a note with the goal and what done looks like, a project, and the lane working on it. Mito moves a card as its lane moves: to Doing while a lane works on it, to Blocked when the lane failed or waits on something only you can give, and to Done when the work is finished and checked. Requests nobody has started stay in Inbox. The first time you open Mito, the board is not empty: Empryo puts every open chat that has work in it on the board, one card per chat, under its project and linked to the chat. A chat that waits on you or failed goes to Blocked, one that is running or was used in the last 3 days to Doing, an older one to Inbox. Cards you already had stay as they are, and a chat that already has a card gets no second one. Ask Mito to organize the board to do it again, for chats you opened later. `mito.organizeOnSetup` turns it off ([settings](/docs/reference/configuration#mitos-skills-for-lanes)). In the view you can add a card (it goes to Inbox), move it to another column or remove it. `empryo bot add ` adds one from a terminal. Each card carries a revision number. If a card changed since your view loaded it, the change is refused, the view shows why, and it reloads. ## Goals A goal is an outcome you want reached, not a single task. Start one from Mito's chat in any of three ways: - The **Goal** button in Mito's composer: pick a project (a new lane) or a lane that is already open, write what done looks like, and start it. - `/goal` in Mito's chat opens the same picker. `/goal <text>` hands the goal to Mito, which picks the project and asks when it is not clear. - Just say it: "my goal is to make the parser accept trailing commas, with a test that drives the CLI". Mito sets it up with its `goal` tool. Mito opens or reuses a lane in that project with the goal on and links a board card to it. The lane works in rounds with no round limit. After each round an independent judge, on a different model from the worker, checks the real result and its proofs and reports how far the goal is (a percentage) and one line on what changed. You see that report in Mito's chat, as a progress bar on the lane's row in the Mito view and on the board card, on every app. A goal reaches 100% only when the judge passes it and Mito confirms it after reading the lane. Until then it shows 99%. When Mito refuses, its findings go back to the lane and work goes on. Mito writes to you only when a goal is reached, stalls (three reports in a row with no progress, or three rounds where the judge could not give a verdict, which stops it) or needs you. You or Mito can stop a goal at any time; the lane stays open. Reports are cheap: they never change the lane's prompt, and they reach Mito as a short note in front of its next turn instead of waking it. `mito.goals` turns the whole feature off ([settings](/docs/reference/configuration#mitos-skills-for-lanes)); `/goal` in a normal tab still runs a [goal loop](/docs/agents/goal-loop). Commands that do not apply in Mito's chat, such as `/review`, `/marionette`, `/plan` and `/mode`, are hidden there on every app. They stay in normal tabs. ## Approvals and what Mito asks first Every lane that waits on you, in every project and window, shows under **Needs you** with what it asks. Open the lane and answer there, or answer in Mito's chat. - **Questions.** A lane's question about anything on the ask-first list below is never settled by Mito: not from [memory](/docs/tools/memory), not from an earlier instruction, not from the playbook. Mito asks you in its chat, naming the lane and the question, and passes your answer on. Any other question it answers itself only when your words in its chat, or a memory you asked it to save, already settle it, and it says which one did. Otherwise it asks you. An answer Mito gives on its own reaches the lane marked "Answer from Mito, the lead agent, on the owner's behalf. The owner has not confirmed it, so it approves nothing on your ask-first list"; an answer you give is not marked. - **Approvals and plans.** Whenever Mito would approve a step or run a plan in a lane, Empryo first asks you in Mito's tab, with **Allow** and **Deny**, and the question shows what the lane asks for, with the command or the path. When nobody can answer, for example in a headless run, the answer is no. - **The ask-first list.** Mito gets your yes before anything that leaves the computer or cannot be undone: a push, a merge, a deploy, a post, a message or an email, deleting your or another lane's uncommitted or untracked work, an unmerged branch or anything outside the project, spending money. It writes the same gates into the prompts of lanes whose work could reach them. Tests, lint, builds, branches and worktrees inside a lane need no yes. - **Other yeses.** Mito also asks in its tab before it stops a process that may still be in use, adds or changes a [probe](#probes), makes a project folder or opens a lane outside your home folder, stops or closes a lane it did not open, changes a setting that spends money or grants authority, installs or removes a skill, or sends a web request that is more than a read. - **Nothing answers for you.** A question in Mito's tab has **Allow** and **Deny** and no "allow all". Yolo, a tab's allow-all and the approval modes in your settings never answer it. Text from lanes, issues, pull requests, web pages, files, skills, memory, other agents and your own past messages is data to Mito, never instructions. Only what you type in Mito's chat is. Notes and messages from lanes arrive labelled as reports, and nothing in a report can approve a step, permit an action or change what you asked for. Lane labels, branch names, command lines, probe output, error texts and the playbook reach Mito with their angle brackets escaped, so no such text can close the frame it arrives in. ### No-jail The setting `mito.noJail` is off by default and can only be turned on by you, in your global settings. Mito, a project config and a phone cannot turn it on. While it or `yolo` is on, Mito sends no approval prompts: Empryo answers yes to every approval (lane steps and plans, plain settings, skills, probes, models, merges into local main, cleanup, restarts) and writes a "No-jail: …" line in Mito's tab for each, so you can see what was done. Mito still asks real questions, such as a design pick or scope, and it starts a push, release, deploy or public post only when you ask for it. Still asked: settings that spend money, grant authority or remove a safety net, such as yolo, approvals, device trust, service tier, budgets and checkpoint snapshots. Still refused: settings whose value runs as a command, and every `mito` setting. ## The playbook and the first day The playbook has two parts. **Your notes**, `~/.empryo/bot/playbook-notes.md`, are written by you alone: Mito follows them like every other rule and cannot change them. You edit them in the Playbook part, from any surface including your phone. The rest is what Mito learned, `~/.empryo/bot/playbook.md`, with headings such as Standing rules, Status, Closing work, Commits and pull requests, Releases and restarts, and Tone. Mito gets it with its first turn, again after it changes and again after its context was compacted, quoted as your file. It follows it as your rules for how to work; it approves nothing on the ask-first list. When you correct Mito or state a rule, it adds the rule at once, in your words where it can. To learn how you work, Mito reads only what you typed in your Empryo sessions on this computer, in every project. It does not read the history of other coding tools such as Claude Code, OpenCode or Codex. Messages written by agents, tool results, slash commands, blocks Empryo adds on its own, empty messages and duplicates are left out. The history stays on your computer. The only part that leaves it is what Mito and its study lanes read into their turns, which goes to your model like any conversation: the pages of messages they study and the playbook. **The first day.** The first time Mito's tab opens with a model set, outside a headless run, Empryo arms the [default hooks](#hooks) and gives Mito its first-day task, shown as "First day: Mito is learning how you work." Mito then: 1. Greets you and says it is learning how you work. 2. Says in two lines what computer it runs on and how loaded it is, and offers one or two [probes](#probes) that fit it. 3. Looks at how many Empryo sessions exist. With none, it asks you three or four short questions and writes the playbook from your answers. 4. Otherwise reads a first sample of your newest messages, writes a first playbook and tells you where it is. 5. Asks before it studies everything, since that reads all your history and can take a while. You can say no and ask for the full study later. On a yes Mito does not page through the history itself: Empryo opens a study lane in lite mode that only reads and reports, and merges what they found into the playbook. While Mito studies, every screen shows "Learning how you work." A study marked as running ends on its own after 6 hours. The first day runs once. **Change it with Mito.** The Playbook part has **Change with Mito**: it opens Mito's chat with "Update my playbook: " ready for you to finish. Mito keeps the playbook up to date, so telling Mito what to change is the usual way. **Edit or clear it.** On the desktop, **Edit playbook** turns the text into a box you can change; **Save playbook** writes it. If the playbook changed while you were editing, for example because Mito added a rule, the save is refused with "The playbook changed since you read it. Read it again." and your draft stays in the box. The same rule holds for Mito: it cannot overwrite an edit of yours that it has not read. In the terminal, press `e` on the Playbook part to open the file in your editor. Phones show it read only. You can also edit or empty `~/.empryo/bot/playbook.md` in any editor. ## The machine Mito knows the computer it runs on: the system (macOS, Windows, Linux or WSL), its cores and memory, the live load (CPU across all cores, memory in use, heat and free disk), every Empryo engine, what other tabs left running, and your paired phones and computers. Heat is Normal, Warm, Hot or Critical. Memory in use follows what each system calls free: on macOS and Linux, file cache the system can drop counts as free, and under WSL it is the memory of the WSL machine, not of all of Windows. Every code lane's brief says how to check its work: typecheck, lint and tests run only on the files the lane changed, once at the end, never after each change. Heavy runs (builds, simulators, end-to-end tests) go one at a time, and Mito spaces them out by the machine's load. The repo-wide check runs once, after parallel lanes are merged. ### Hooks Mito does not poll the machine. Hooks wake it: rules the engine checks while Mito's tab is open, about once a minute, and every 15 seconds when a reading comes close to a limit. With Mito's tab closed, no hook is checked. When a hook trips, Mito gets a note that starts with "Machine hook tripped:" and names the reading, the five heaviest processes and what is left running. Mito then looks closer, stops what idle lanes or nobody left behind, steers the lane causing the load, and tells you in two lines what it did. A hook trips once, when its reading crosses the limit. While the reading stays past the limit it says nothing more, so a disk that stays nearly full does not wake Mito again and again. It trips again only after the reading has gone back and crossed the limit once more, and no sooner than its quiet time after the last trip. The quiet time is at least 2 minutes. If `hooks.json` cannot be read, no hook is watched, and Today shows "The hooks file is broken:" with the file's path. The file is left as it is; fix or delete it and the hooks come back. The first day arms four hooks: | Hook | Trips when | For at least | Quiet time | | ----------------------- | -------------------------------- | ------------- | ---------- | | Memory in use above 90% | Memory in use is over 90% | Straight away | 10 minutes | | CPU above 95% | CPU across all cores is over 95% | 2 minutes | 10 minutes | | Heat hot or worse | Heat is Hot or Critical | Straight away | 10 minutes | | Free disk under 30 GB | Free disk is under 30 GB | Straight away | 10 minutes | Ask Mito to add, change, turn off or remove a hook. A hook watches CPU, memory, heat, free disk or a probe, above or under a value, for how long, with its own quiet time. ### What it may stop Under **Left running**, Mito lists what Empryo started and nobody is using: | Kind | What it is | Mito stops it on its own when | | ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | | Shell job | A background command of a lane that is not working, or of a tab that closed | Its lane is still open, or its tab closed and its engine is idle | | Orphaned job | A background command whose engine is gone | Always | | Process | A heavy process that a tab's tool started (a shell command, a background job, a test or build run): 10% CPU or more, 250 MB or more, or running for 30 minutes or more | Its engine is not in the middle of a turn | Processes an engine runs for itself, such as language servers, the code map workers and MCP servers, are never on the list while that engine runs. The list also names what goes haywire under an Empryo engine or one of its worktrees, with the project and lane it belongs to: | Name on the list | What it is | | ---------------------------------- | ------------------------------------------------------------------------------- | | Runaway CPU for 10 minutes or more | A process of a project above 90% of a core for 10 minutes or more | | Git storm | 8 or more git commands at once in one project, or one stuck for 5 minutes | | Build stuck for 30 minutes or more | A build or test run (tsc, xcodebuild, gradle, cargo, bun test, ...) still going | | Simulator, Emulator | An iOS Simulator or Android emulator still open | | Electron left behind | An Electron app whose engine is gone | | Language server left behind | tsc --lsp or another language server whose engine is gone | Mito stops these on its own when they belong to an idle lane or no lane; one that belongs to a running lane, or that Empryo cannot tie to a project, needs your yes. Machine hook notes list them with the same ids. Anything else on that list needs your yes first: a job whose tab is gone while its engine is busy, a process whose engine is mid-turn or no longer running, and any job or process that hosts an Empryo engine of its own (the question names that engine's folder and how many of its tabs are mid-turn). After your yes Mito looks again and stops only what is still the same process as the one it showed you; if it ended in the meantime, Mito says "It already ended." and stops nothing. Commands of a running or waiting lane are never listed. Processes Empryo did not start appear only as the heaviest on the computer, for context; Mito cannot stop them. Stopping ends the whole process tree, and forces it if it is still there after 3 seconds. You can stop a leftover yourself with **Stop** in the Left running group, which asks first. ### Engines Mito runs Empryo's engines itself instead of asking a lane to write a script: | Ask | What happens | | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `engines` | Every engine on this computer: its folder, the window that hosts it (terminal, desktop, phone or none), age, clients, its lanes, and whether it runs old code: started before its checkout's HEAD moved | | `stop_engine` | Stops an engine. Running lanes on it are first asked to pause: finish their step, stop what they started and end their turn | | `restart_engine` | The same, then starts it again so its tabs come back. On the engine Mito runs on, it hands the restart to `scripts/dev-restart.ts`, which waits until every turn ends | | `start_checkout` | Starts the engine of a folder so its lanes come back, with no window, or in Kitty with your settings through `bun dev:start` | | `restart_phone` | Restarts phone access and says whether the phone reconnected | | `stop_stale` | Stops the terminals and engines that run old code | Anything that touches an engine with a lane in use asks you first, the same as stopping a lane. Idle and old-code engines are Mito's own call. When an engine for a project restarts outside a window, for example with `bun dev:start`, that window gives the project's tabs to the new engine and takes them back when it stops. ### Probes Every system is different, so Mito can make its own small readings, called probes: a named command for this computer, such as a PowerShell line on Windows or a `/proc` read under WSL. Adding or changing a probe shows you the exact command in Mito's tab, and nothing is saved until you allow it. Running an approved probe needs no yes. Your approval is tied to the exact command. Empryo signs it with a key kept in your system keychain and checks the signature every time the probe runs, from Mito or from a hook. A probe file that was written or edited by hand does not run and shows as not approved. Without a system keychain the key lives only in the engine's memory, so approvals last until that engine restarts. This stops a stray file from becoming an approved command. It is not a wall against a program running as you that deliberately reads your keychain; nothing running under your own account can be. A probe runs for at most 10 seconds, and a hook can watch the first number it prints. A probe made on one system does not run on another. ## Projects and worktrees Mito can see every project it can reach (open projects, projects you used recently and ones it made), start new ones, and add or remove worktrees. For each project it knows the branch, the worktrees and the lanes in each, the open pull requests, whether an Empryo engine has it open, and its Genome: indexing with its progress, ready with its file count, failed, or off when the Genome is turned off for that project. A lane in a project whose Genome is still indexing has no code map yet, so for a big task Mito says so or starts once the index is ready. The same facts head each project in the Lanes view. A worktree is a second checkout of the same repository on another branch, so two lines of work do not collide. **A new project.** Given only a name, Mito makes the folder beside your other projects: in the folder that holds most of your recent projects. With no recent projects, it uses the first of `~/Projects`, `~/Developer`, `~/dev`, `~/code`, `~/repos` and `~/src` that exists, or else `~/Projects`. You can also name an absolute folder. Mito always tells you where it put the project. - It never makes a project inside another project or inside a git repository. - A folder that already exists and is not empty is left untouched. - A folder outside your home folder needs your yes. - Git starts only when the project will hold code. **Worktrees.** Lanes work in the main checkout. Only truly big work (large, plan or orchestrate, work across the project, more than three files) and work on files a lane in the main checkout is editing right now get their own worktree on a `mito/<name>` branch. Lanes in their own worktrees, and lanes in the main checkout on other files, don't count. Mito helps with how big the work is and which files it changes, and can force either way. `mito.worktrees` set to `code` gives every code lane a worktree, as before. Writing, research and talk lanes, and folders without git, stay in the main checkout. When Mito opens a lane with a branch, the lane runs in that branch's worktree, made from the current commit when it does not exist yet. Worktrees go in the project's `.worktrees` folder, and dependency folders come in as copy-on-write clones where the disk allows. - Mito skips the worktree when its estimated cost, learned from past worktrees, would leave under 10 GB free, and asks you first when one needs more than 5 GB. The lane then works in the main checkout, and Mito says why. - A finished lane's work stays on its branch until it is merged. Mito names the branch when it reports, and asks before merging. - **Worktrees** in the Mito view lists every worktree with its size, age, lane and state. Merged ones with no open lane can go on their own; unmerged or uncommitted ones need your yes. Removing refuses the main checkout, a locked one and one where a lane is still open, including a lane in a package folder inside it. The branch itself is kept. Mito's project list groups a monorepo's packages under the repository, and a lane in a worktree counts under its project, not as a project of its own. ## Phones The iPhone and Android apps show Mito's entry above your chats, in the tab overview and in the chat list. Tap it for a full-screen sheet with Today, Work, Board and Playbook; **Tabs** at the top of that sheet goes back to your chat list. **Talk to Mito**, or the chat button beside the entry, opens Mito's chat, where you talk to it like any chat. Tapping Mito's name at the top of its chat opens the sheet too. The tabs Mito opens sit under Mito, the way subagents sit under the chat that started them. In the chat list they are indented under Mito's entry instead of among your other chats, and in the tab overview they are a row of lanes under it. In Mito's chat they are the strip under the header: tap it to see each lane and tap one to open it. A lane's chat has a **Mito** button that goes back up. Mito's chat is the first page when you swipe between chats. Each lane row has a menu with Stop, Compact and Close (Close asks first), a leftover has **Stop** (it asks first), cards can be added, moved and removed, your notes in the playbook can be edited, and what Mito learned is read only. The phone needs to be [paired with your computer](/docs/surfaces/phone#pair-your-phone). While Mito is off the only trace on a phone is the **Mito** switch in Settings, which turns it on from there. While Mito is on and its tab is open, the phone hears from Mito only: lanes and pull requests send nothing on their own, and Mito's notices arrive as alerts that open the lane they name (see [Telling you](#telling-you)). The Live Activity, the widget and the Android ongoing notification show Mito's status line, such as "1 needs you, 1 failed, 2 running". With Mito off, alerts and live status work per chat as before. ## Commands | Command | What it does | | --------------------------------- | -------------------------------------------------------------------------------------------- | | `/bot` | Open the Mito view on Today. `/mito` does the same | | `/bot lanes` | Open the Mito view on Lanes | | `/bot board` | Open the Mito view on the board | | `/bot status` | In the terminal UI, print Mito's status and mood in the chat. In the desktop app, open Today | | `/bot on`, `/bot off` | Turn Mito on or off | | `empryo bot on`, `empryo bot off` | The same from a terminal | | `empryo bot` | Print Mito's status line, mood and card counts. Same as `empryo bot status` | | `empryo bot lanes` | Print every lane, grouped by project | | `empryo bot board` | Print the board, column by column | | `empryo bot machine` | Print the system, its load and what is left running | | `empryo bot playbook` | Print when your sessions were studied, the playbook's path and its text | | `empryo bot add <title>` | Add a card to Inbox | | `/goal` in Mito's chat | Pick a project or lane and start a goal there | | `empryo bot "<prompt>"` | Send the prompt to Mito and print its answer as it comes | Add `--json` to any `empryo bot` command for JSON output, and `--cwd <folder>` to use the engine of another folder. `empryo bot` joins the engine that serves the folder and starts one when none runs. A prompt sent this way answers every tool approval with no, so use the Mito view or Mito's tab for anything that needs your yes. Exit codes: `0` success, `1` the engine could not be reached or Mito's turn failed, `2` `empryo bot add` without a title. In the terminal view: | Key | What it does | | ---------------------------- | ----------------------------------------------------------------------- | | `Tab`, `Shift+Tab` | Switch between Today, Lanes, Board and Playbook | | `↑` `↓` | Pick a row | | `Enter` | Open the lane's tab. On a pull request in Today, open it in the browser | | `p` | Copy the link of the lane's pull request; press again for its next one | | `s` | Stop the lane. On a leftover, stop it after asking | | `c` | Compact the lane | | `x` | Close the lane, or remove the card. Both ask first | | `a` | Add a card | | `←` `→` | Pick a board column | | `Shift+←` `Shift+→`, `[` `]` | Move the card to the next column | | `e` | Open the playbook in your editor | | `t` | Talk to Mito | | `r` | Try again after a failed load | | `Esc` | Close the view | ## Limits and safety | Limit | Value | | --------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Lanes Mito manages that run at once | 6. Opening another is refused until one finishes or stops | | Notes that wake Mito | 30 per hour. After that, notes wait (the newest 50 are kept) until your next message to Mito, and Mito's tab says so | | A lane waiting on you | One note per wait, sent even past the hourly limit | | Board | 400 open cards. Done keeps the newest 200. Titles up to 160 characters, notes up to 2,000 | | Playbook | 24,000 characters | | Hooks | 40. Held for up to 24 hours, quiet for 2 minutes to 7 days | | Probes | 40. Commands up to 2,000 characters, 10 seconds per run | | Asking another window's engine | It has 20 seconds to answer, and a request is passed on at most once | | Follow-ups | 40 pending. Each 1 minute to 7 days away, with a note of up to 600 characters | | Strands | 2 at once, 45 seconds each. One starts 4 seconds after a message Mito has not reached | | A journal entry | 8,000 characters. One per summary of Mito's chat, kept until you delete the file | | A summary note written by Mito | 6,000 characters, kept word for word | | A tool call of Mito's | Stopped by the engine after 5 minutes, unless it waits on you | | Overview and archive | 200 rows on the overview and 50 closed lanes in the archive, each kept 7 days | | Lanes list and board list, as Mito reads them | Each reply stays under 9,000 characters: the most urgent lanes (at most 40, or 60 of one project) and the newest cards per column, with long labels and titles cut short. It reads the rest page by page, by project or by column, and one card in full by its id | - Mito does not edit files or run commands. Its tools are lanes, the board, the playbook, the machine and projects, plus reading files, the web, memory, questions to you, views in the chat, its own context and journal, settings, skills, your custom agents, messages to other agents and phone notifications. Its message tool lists agents, sends, asks, replies and reads its inbox and threads; it opens and closes no tab, so the six-lane limit and your yes always apply. It cannot schedule routines; a follow-up that opens or queues a lane does that job. The full list is under [Tools by mode](/docs/reference/tools#tools-by-mode). - Mito runs on the main engine of a window. A project engine does not open a Mito tab. - Two windows can each have a Mito tab. They share one board, playbook and set of hooks, and each hears only from the lanes it manages. ## Where things are kept - `~/.empryo/bot/models.json`: Mito's model book (models you are signed in to, prices, access and rankings). The roles themselves are in your global config under `mito.roles`. Everything lives in `~/.empryo/bot/` on macOS and Linux, and in `%LOCALAPPDATA%\Empryo\bot\` on Windows. | File | What it holds | | -------------------- | ----------------------------------------------------------------------------------------- | | `board.json` | The board, and which lanes Mito manages | | `playbook.md` | The playbook | | `study.json` | When your sessions were last studied, whether a study runs, and whether the first day ran | | `study-notes.json` | What the study lanes noted, with where each note came from and whether you skipped it | | `hooks.json` | The hooks | | `followups.json` | Mito's pending follow-ups | | `journal/YYYY-MM.md` | Summaries of Mito's chat, one file per month | | `probes/<name>.json` | Each approved probe, with its command and the system it was made for | | `lanes/<pid>.json` | The tabs of each running Empryo engine. Deleted when that engine stops | | `organize.json` | Mito mode's pins, folders, collections and archive | Mito's own tab is saved with the window's session, like any tab. --- ## The reviewer Canonical: https://empryo.com/docs/agents/review > A separate agent with a clean context reads what changed and returns PASS or FAIL. Run it on demand, loop it until it passes, or use it in CI. An agent that just spent forty steps writing a patch is a poor judge of it. It remembers why each line seemed right when it wrote it. The **reviewer** is a separate agent that starts with none of that history. It opens the files that changed, reads them fresh, and ends with a one-line verdict your tools can act on: ``` VERDICT: PASS — [what was verified] VERDICT: FAIL — [file:line, what is wrong or could not be verified] ``` There is no partial verdict. Anything the reviewer could not verify is a FAIL. You can use it three ways: `/review` runs it once, [`/goal`](/docs/agents/goal-loop) runs it after every round, and `--review` turns the verdict into an exit code for CI. ## Run a review ``` /review /review check the error paths, not the happy path ``` The text after `/review` is optional. If you add it, the reviewer checks that first. If you leave it out, it checks the changed files for correctness. A review can't start while work is still in progress: while a reply is streaming, a background agent is still writing files, or a goal loop is running. Reviewing code that keeps changing would give you a verdict about code that no longer exists. The review button tells you what's blocking it and becomes available again when the work finishes. You can type while a review runs. Your message reaches the reviewer at its next step. These notes are kept out of the conversation, so the coder doesn't later mistake them for instructions meant for it. ## What gets reviewed Empryo checks three places in order and reviews the first one that has changes: | Order | Source | What the reviewer sees | |-------|--------|------------------------| | 1 | This tab's edits | Only files **this tab** changed | | 2 | This session's edits | Every file **any tab** changed this session | | 3 | git | Everything uncommitted, including new files (`.gitignore` still applies) | With four tabs open, each tab's `/review` checks its own work. If nothing changed, no model is called and it costs nothing. A review covers at most 30 files. The verdict says which of the three sources it used, so you can tell "the four files this tab wrote" from "everything uncommitted". For the first two sources, each file shows `+N/−M` compared with how it looked before this session first changed it. Those snapshots are kept in memory only. After a restart, a restored tab falls back to git, and the report says so. Deleted files are included and marked as deleted. The reviewer doesn't try to open them. Instead it checks what used to import or call them, because a deletion that leaves callers behind is exactly the kind of bug you want caught. ## Acting on a verdict | App | Where you read it | How you act on it | |-----|-------------------|-------------------| | Desktop | The reviewer bar above the message box. Expand it to see past verdicts | **apply** sends the findings to the agent. **re-review** runs a new review on the same files | | Terminal UI | The banner above the message box, and the report in the conversation | `/review apply`, `/review list` | After a single `/review`, nothing changes until you choose to apply the findings. Each tab keeps its last 8 verdicts and their reports, including after a reload or session restore. A re-review is given the previous report as something to check, not as fact, so the new reviewer has to confirm every claim again. ## Review until it passes Doing it by hand means: review, read, apply, wait, review again. `/review pass` does that cycle for you. Every verdict that isn't `PASS` goes to the coder as a normal turn, and as soon as that turn finishes, a new reviewer runs. ``` /review pass /review pass the error paths, not the happy path /review stop ``` On desktop, the review button opens a menu with **Review once** and **Review till pass**. Both accept the same optional instructions from the message box. The reviewer bar shows the current round (for example `round 2/5`) and a **stop loop** button. In the terminal UI, a finished verdict shows a `↻ till pass` option next to `↯ apply`. It stops on `PASS`, at the round limit (5 by default, never more than 12), on a review error, or when you stop it. `Ctrl+X` or the stop button ends it at any point, including the reviewer that's currently running. Typing while it runs reaches whichever agent is active: the reviewer or the coder. Each round is a real coder turn plus a real review, and both count toward the tab's costs. A loop that reaches its limit runs five reviews and four coder turns, so give it clear instructions. How it differs from [`/goal`](/docs/agents/goal-loop): `/goal` works toward a goal you state up front and switches to stronger models when it stalls. `/review pass` checks code that already exists, with no goal other than surviving a fresh review. ## In CI ```bash empryo --headless --review empryo --headless --review "check the migration for data loss" empryo --headless --review --json ``` | Exit code | Meaning | |-----------|---------| | `0` | PASS, or nothing to review (no changes, no model called) | | `3` | FAIL: something is wrong or could not be verified | | `1` / `2` / `130` | Error / timeout / aborted | ```yaml - name: Review the diff run: empryo --headless --review --quiet ``` With no changes, the JSON output has `verdict: null`, never `PASS`. Nothing was reviewed, and reporting a pass would tell your pipeline the code had been checked. ## Which model reviews The reviewer uses the `review` slot in the [task router](/docs/recipes/task-router). If that's empty, it uses `goalReview`, then the model your tab is already using. This is a good place to spend on a strong model: a reviewer that misses a bug costs more than it saves. Review costs appear in the tab's totals, so you can see what each verdict cost ([cost tracking](/docs/concepts/cost-tracking)). ## Typecheck and tests `/review` doesn't run your typecheck or tests, so a manual review finishes in seconds. The goal loop does run them between rounds, where a slower, stricter check is worth the time. --- ## Steering Canonical: https://empryo.com/docs/agents/steering > Change what the agent is doing while it works, just by typing. Your message is added at its next step, so you never have to stop it and start over. You can redirect the agent while it's working. Type a message, and it's added to the conversation at the agent's next step. There's no need to stop the agent and start over. ## How to use it Keep typing. The message box stays active while the agent is busy: ``` > refactor the auth module Agent: [reads files, starts edits...] > actually, just do the middleware first, skip the handlers ``` At the next step, your message appears in the conversation and the agent adjusts. ## Good to know - **Queued messages are visible.** While they wait, they appear below the conversation with a "queued" label. - **Stopping clears the queue.** After `Ctrl+X`, queued messages are dropped and new ones wait for your next prompt. - **It works for loops and helpers too.** In a [goal loop](/docs/agents/goal-loop), your message goes into the next round. You can also redirect individual [helper agents](/docs/agents/dispatch). ## Why it helps Watching the agent head the wrong way, stopping it and re-explaining the task wastes time and tokens. Steering corrects course for the cost of one extra message. --- ## Multi-agent workflows Canonical: https://empryo.com/docs/agents/workflows > Connect specialist agents in workflows with separate models, parallel reviews, arbitration and bounded retries. Inspect the graph and follow every run. Choose who does the work, which model each step uses, and what happens after a review. Empryo runs these steps as a graph. A workflow can branch into parallel work, pause for your approval, or return to an earlier step for another attempt. ## Start with the job In the terminal, use `/orchestrate` and describe what you want: ```text /orchestrate Design a workflow for this project with a planner, a coding agent, a primary reviewer, an independent security reviewer and an arbiter. Run the reviews in parallel. Return failed work to the coding agent, with at most two rounds of fixes. Show me the graph before running it. ``` This is a request to design the workflow, not a fixed built-in preset. Inspect the resulting graph, model assignments and conditions before starting it. Use models available through your connected providers. ## Give each role a clear job | Role | Responsibility | What to choose | | --- | --- | --- | | Planner | Propose the approach and acceptance criteria | A model you trust for design | | Executor | Implement the approved work | A coding model | | Primary reviewer | Check correctness against the criteria | A separate review context | | Independent reviewer | Inspect the patch without the first reviewer's conclusions | A different model or specialist brief | | Arbiter | Compare findings and decide whether to accept or request fixes | A model you trust to resolve disagreement | ```text Plan → Implement → Parallel reviews → Arbitration → Accept ↑ | └──────── Fix requested ───────┘ ``` A different model alone does not make a review independent. Give reviewers the task criteria and code to inspect, and decide explicitly which earlier outputs each one receives. ## Models, effort and permissions An agent or judge node can specify its own `model` and `effort`. A [custom agent](/docs/tools/agents) can supply reusable instructions, skills and tool restrictions. The [router](/docs/recipes/task-router) provides defaults for jobs without an explicit assignment. The orchestration agent designs and coordinates the workflow; it does not itself edit files. Agent steps perform the assigned work. A specialist cannot gain permissions that the session does not allow. ## Decisions and limits - **Agent** steps perform work. **Judge** steps return PASS, FAIL or PARTIAL. - **Parallel** steps start branches. **Join** steps wait for detached work. - **Gate** steps pause to ask you a question. - **Conditional edges** choose the next step from a result, an answer or saved state. - **Loops** return to previous work. Bound them so a failed review cannot repeat forever. - **Shell** steps can run checks. Inspect commands before running a saved workflow from elsewhere. A PARTIAL verdict means something remains unverified. Decide how the graph handles it rather than silently treating it as a pass. Concurrency defaults to 16 agents; the router can remove that configured limit. Provider quotas, memory and workflow limits still apply. An unlimited setting is not a throughput guarantee. ## Nodes and edges An orchestration is a graph of steps (nodes) joined by edges. The node types are agent, judge, parallel, council, advisor, shell, gate, set, link, graph, join and end. - An **agent** node runs a subagent on a task. - A **judge** node reviews the work and ends with PASS, FAIL or PARTIAL. - A **gate** node pauses and asks you a question. - A **shell** node runs a command. Each edge can have a `when` condition, so the next step depends on the result: `ok`, `fail`, a judge's `PASS`/`FAIL`/`PARTIAL`, your answer at a gate (`answer=`), or a value stored earlier. An edge that points back to an earlier node makes a loop, and `max` limits how many times it can repeat. ``` /orchestrate nightly-sweep run a saved graph /orchestrate 5 agents to sweep core describe a goal: the agent designs the graph, then runs it /runs watch every run live (terminal UI) ``` When the agent builds a graph, it can pass it as an object or as JSON text. A graph saved to disk must have its own `id`. ## Follow and reuse a run Use `/runs` to watch workflows in the terminal. Press `v` on a run to switch between five views: the map, a timeline, the sequence of steps, the critical path and a plain list. A summary line shows the total time, the critical path, the slowest step and how many retries ran. A view too wide for the terminal falls back to the list. With `agentFeatures.subagentTabs` on, each agent step opens as its own [child tab](/docs/agents/child-tabs) under the chat that started the run, so you can read or steer it like any chat. On desktop, use the Orchestration area of the [workbench](/docs/surfaces/workbench). The orchestration tool supports validation, saving, running, watching, resuming and stopping workflows. A saved graph can be run again with `/orchestrate <id>`. Review it after changing model assignments or project requirements. Start with a small task before scaling out. ## When something goes wrong **Runs survive a quit or a crash.** When Empryo starts again, a run that was working picks up where it stopped, and a notice says how many resumed. Agent steps continue in the same tab, and gates, parallel branches, nested graphs and detached agents carry on from their last state. **A provider problem pauses the run instead of failing it.** When a step's model needs you to sign in again or its plan has run out, the run pauses and waits for you, without spending its review loops on an error that is not in the code. A short outage is retried after 1, 2 and 4 minutes; after that, the run waits for you to retry it. Finished parallel branches are kept when it retries. **Restart from a chosen point.** Ask the agent to restart a failed, stuck or interrupted run. It re-enters at the step where the run stopped, or at a step you name, and can clear the loop counters, raise the loop limit or set saved values first. Earlier results stand. **Gates pass on their own when the tab approves everything.** In a tab on YOLO, approve-all or full approvals, approval gates do not stop to ask. ## Pick the simplest tool that fits Use [parallel agents](/docs/agents/dispatch) for independent pieces of one task. Use a [goal loop](/docs/agents/goal-loop) for repeated implementation and fresh review. Use a workflow when you need explicit roles, branching decisions or approval points. For a second opinion without an execution pipeline, use an [advisor or council](/docs/tools/side-agents). --- ## How it works Canonical: https://empryo.com/docs/concepts/architecture > A plain mental model of Empryo: the apps you use, the agent and its helpers, the tools it calls, the Genome map of your code, and memory across sessions. Empryo is an AI coding agent. You describe a task, and it reads your code, edits files, runs your tests and reports back. This page explains the main parts so you know what is happening when it works. ## Where you use it You can drive the same agent from three places. Pick whichever fits the job. | App | Good for | |-----|----------| | [Desktop app](/docs/surfaces/desktop) | Day-to-day work with panels for files, diffs, a browser and terminals | | [Terminal UI](/docs/surfaces/tui) | Working inside a terminal, with an embedded Neovim editor (`Ctrl+E`) | | [Headless CLI](/docs/surfaces/headless) | Scripts and CI: `empryo --headless "your task"` | Your config, sessions and project settings are shared between them. ## The agent and its helpers The agent you talk to is called **Forge**. It plans the work, calls tools and answers you. For bigger tasks it can hand pieces of work to helper agents that run in parallel and report back. The main agent uses the model you picked. It delegates research, edits and web searches automatically when useful. You can choose default models for those jobs in `/router`, without managing individual dispatches. You can also define [specialist agents](/docs/tools/agents) with their own model, instructions and tool permissions, or connect them in [workflows](/docs/agents/workflows) with parallel reviews, decisions and loops. Automatic research and editing roles are not a limit on the teams you can build. When several helpers run at once, they share file reads so the same file is not loaded from disk repeatedly. Writes to the same file are queued rather than raced, and one helper's findings reach the others at their next step. ### Web search Some providers can run a web search on their own servers. When your model supports it, the model searches directly and no helper agent is needed. Otherwise Empryo's web search helper does the work. To keep every search on Empryo's side, set [`nativeSearch`](/docs/reference/configuration) to `false`. ## Tools The agent works by calling tools: read a file, edit a file, run a shell command, search the code, run your tests. Many tools do a whole job in one call. For example, renaming a symbol updates every file that uses it. Reading an image file (PNG, JPEG, GIF, WebP, BMP, TIFF, HEIC or AVIF) gives the agent and its subagents the picture itself. See [compound tools](/docs/concepts/compound-tools) and the [tool reference](/docs/reference/tools). ## The Genome: a map of your code When you open a project, Empryo scans it and builds the **Genome**, a ranked map of your files, the symbols they export and how they depend on each other. A short version of that map goes into every prompt, so the agent already knows where things live before it starts searching. The map updates as files change. See [the Genome](/docs/concepts/genome). ## Code intelligence To find definitions, references and type errors, the agent uses the same language servers your editor uses. When no language server is available, it falls back to parsing the code directly. After each edit it checks for new errors, so it can fix its own mistakes early. See [code intelligence](/docs/concepts/intelligence). ## Memory Empryo can remember decisions and facts about your project between sessions, such as "we use pnpm here" or "this API is deprecated". See [memory](/docs/tools/memory). ## What goes into each prompt Each turn, the agent sees your message plus some context: the current [mode](/docs/context/prompt-system), basic project and git information, the Genome, relevant memories, your project instruction files such as `EMPRYO.md`, and any skills you loaded. Files you just edited or mentioned rank higher in the map for that turn. --- ## Compound tools Canonical: https://empryo.com/docs/concepts/compound-tools > Tools that finish a whole job in one call: rename a symbol everywhere, move code between files, run your tests, or refactor, with the result checked afterwards. ![Two files use the same name for different things. A text search can't tell them apart. A symbol-aware rename can.](https://empryo.com/media/forge-v2-two-greps.svg) *Two files use the same name for different things. A text search can't tell them apart. A symbol-aware rename can.* A compound tool does a complete task in one call. Instead of the agent searching, editing file by file and then checking its work, it asks for the result directly. You get fewer steps, fewer tokens and fewer half-finished edits. ## The tools | Tool | What it does | |------|--------------| | `rename_symbol` | Renames a function, class or variable in every file that uses it, then checks nothing still points at the old name | | `move_symbol` | Moves a symbol to another file and updates every import | | `rename_file` | Renames or moves a file and updates every file that imports it | | `refactor` | Extracts a function or variable, organizes imports, or formats a file | | `project` | Detects your toolchain and runs lint, typecheck, tests or build | | `navigate` | Finds definitions, references, callers and type hierarchies | | `read` | Reads a whole file, a line range, or one symbol by name | | `ast_edit` | Makes precise structural edits to TypeScript and JavaScript files | For copy-paste examples, see the [rename & refactor recipe](/docs/recipes/rename-refactor) and the [test & commit recipe](/docs/recipes/test-and-commit). ## Why they help Without them, an agent often guesses at commands and burns steps recovering: ``` Agent: I'll run the tests with `npm test` Shell: npm ERR! missing script: test Agent: Let me try `npx jest`... ``` With `project(action: "test")`, one call detects how your project runs tests and runs that command. Renames work the same way. A text search for a name also matches unrelated code that happens to share it. `rename_symbol` uses your language server to find the real references, applies the rename, and confirms no references were left behind. The agent skips the search-edit-verify loop entirely. --- ## Cost tracking Canonical: https://empryo.com/docs/concepts/cost-tracking > See what every session costs in dollars as you work, broken down by model and helper agent, plus live allowance meters for subscription and credit plans. ![A request log, line by line. Large tool results keep costing you on every later turn.](https://empryo.com/media/forge-v2-receipt.svg) *A request log, line by line. Large tool results keep costing you on every later turn.* Empryo counts the tokens each model uses and converts them to dollars as you work. The running total sits in the status bar, so you always know what a task is costing. ## Where to look | Command | What it shows | |---------|---------------| | Status bar | Running total for the session in USD | | `/context` | How full the context window is, cost per model, helper-agent spend and compaction history | | `/usage` | Spend today, this week and this month, per model, plus your prompt-cache hit rate | The cache hit rate in `/usage` tells you whether prompt caching is working across sessions. A high rate means the repeated start of each prompt is being reused cheaply. A low rate means something keeps changing it. ## What gets counted - **Input tokens** that were not cached. - **Output tokens** the model wrote. - **Cache writes**, which most providers bill at a higher rate. - **Cache reads**, which providers bill at a discount. - **Helper agents**, counted separately from the main agent. - **Each model separately**, when the [task router](/docs/recipes/task-router) mixes models in one session. ## How prices are found Empryo ships price tables for the common providers, including Anthropic, OpenAI, Google, DeepSeek, Groq, Mistral and Fireworks. OpenRouter prices come live from its catalog. Local models (Ollama, LM Studio) and free models count as $0.00. A model missing from those tables is priced from the public [models.dev](https://models.dev) catalog. If that also has no price, Empryo uses a Claude Sonnet–level price, so an unknown model shows as expensive rather than free. ## Spending less The biggest lever is mixing models. Research and exploration often work well on a cheap model, while edits go to a stronger one. Set this up with `/router`; see [assign cheap models to cheap tasks](/docs/recipes/task-router). ## Subscription and credit plans Some routes don't bill per token. They use up an allowance instead, and what matters is how much is left: - `proxy/*` models use a rolling [subscription window](/docs/providers/proxy) through the [proxy add-on](/docs/tools/addons). - `copilot/*` models use your [monthly Copilot allowance](/docs/providers/copilot#usage-and-quota). - `openrouter/*` models use the credit balance on your key. - Subscriptions you signed in to with `/login` report whatever limits the vendor exposes. These meters appear next to the dollar figures, because one session can use both kinds of route. Every meter shows a percentage. When the vendor reports real numbers, it also shows the unit, for example "412 of 1,500 premium requests" for Copilot or "$3.80 of $20.00" for OpenRouter. Some vendors, such as Claude subscriptions, only report a percentage. If your plan allows going over the allowance, the meter shows how much you've gone over and, where the vendor publishes a rate, an estimated dollar amount. It is always labeled as an estimate, not a bill. Some vendors have no way to query remaining quota. For those, you'll only see the dollar estimate. --- ## The Genome Canonical: https://empryo.com/docs/concepts/genome > The Genome is Empryo's live, ranked map of your repository. It goes into every prompt so the agent knows where code lives before it starts searching. The **Genome** is a map of your codebase that Empryo builds when you open a project. It lists your files, the symbols they export and how files depend on each other, ranked by importance. A compact version of the map goes at the top of every prompt. Because the agent can see the map, it rarely needs to spend a turn asking "where does auth live?" It starts from the right files. ## What the agent sees A slice of the map looks like this: ``` src/services/auth/session.ts (→12) +SessionManager Tracks active sessions, refresh tokens, expiry +SessionStore ``` - `+` marks an exported symbol. - `(→12)` means 12 other files depend on this one. - `[NEW]` marks a file changed in the last 48 hours. - The text after a symbol name is a one-line summary, when summaries are on. ## How files are ranked - **Dependencies.** Files that many other files import rank higher. - **Your current work.** Files you just edited or mentioned get a boost for that turn. - **Git history.** Files that usually change together are pulled in together. - **Live updates.** When a file changes, the map is updated right away. The scanner understands dozens of languages and file formats, including TypeScript, JavaScript, Python, Rust, Go, Java, C, C++, C#, Ruby, PHP, Swift and Kotlin. ## Settings The Genome works without any setup. Open `/genome` to see its status, rebuild or clear the index, or turn it off. To change it in config: ```json { "genome": true, "semanticSummaries": "synthetic" } ``` | Key | Values | |-----|--------| | `genome` | `true` (default), or `false` to turn the map off | | `semanticSummaries` | `"synthetic"` (free, derived from code and names), `"ast"` (docstrings only), `"llm"` (short model-written descriptions, costs tokens), `"full"`, or `"off"` | ## What gets scanned The scan sees what git sees: tracked and untracked files, minus anything your `.gitignore` excludes. Build output (`node_modules`, `dist`, `build`, `target`, `coverage` and similar) and dot-directories such as `.github` are skipped even if they are tracked. Outside a git repository, the same rules apply to a plain folder scan. To bring a dot-directory back, negate it in `.empryoignore`, for example `!Configs/.local/`. Build output and internal folders such as `.git` stay out either way. ### Keep files out of the map Some files should stay in git but not in the map: test fixtures, benchmark inputs, a folder of SVGs. List them in a **`.empryoignore`** file at the project root. It uses the same syntax as `.gitignore`, including `!` negations and `**`: ```gitignore # Keep these in git, but out of the Genome testenvs/ bench/ assets/ public/ ``` Some files stay out in every project without any `.empryoignore`: package lockfiles (`bun.lock`, `package-lock.json`, `Cargo.lock` and the like), minified and bundled JavaScript, test snapshots, generated protobuf and Dart files, Xcode asset catalogs, and vendored folders such as `vendor/`, `venv/`, `Pods/` and `DerivedData/`. A `!` line in `.empryoignore` brings any of them back. What happens: - Matching files drop out of the map and out of code-wide file listings. - The agent can still `read` or `grep` them by explicit path. They are hidden from discovery, not blocked. - Saving `.empryoignore` or `.gitignore` triggers a quick rescan. Unchanged files are skipped, so it takes seconds. - If a change would remove more than 80% of the index at once, Empryo treats it as a mistake and refuses. Use **clear** in `/genome` to force a rebuild. ### Many projects at once Each project keeps its own map in its own `.empryo` folder, so opening a project you indexed before is ready in seconds. Building a map from scratch is the heavy part. When several projects need a full scan at the same time (500 or more changed files each), they take turns: a few scan at once and the rest show "Queued to index" until a slot frees up. The queue covers every Empryo engine on the machine, whether it runs in the desktop app, the terminal or headless. A project you send a message in skips the line, and nothing waits longer than 10 minutes. Set `EMPRYO_GENOME_SCAN_SLOTS` to change how many scan at once, or to `0` to turn the queue off. ### Large repositories The map holds up to 10,000 files. In bigger repositories, the most recently changed files win, and `/genome` tells you the cap was reached. Excluding noise with `.empryoignore` makes sure the cap cuts fixtures rather than source code. ## Skip the scan For a quick one-off question in headless mode, you can skip the scan: ```bash empryo --headless --no-genome "what's the version?" ``` Setting the environment variable `EMPRYO_NO_GENOME=1` does the same. --- ## Code intelligence Canonical: https://empryo.com/docs/concepts/intelligence > How the agent finds definitions, references and type errors with your language servers, falls back to parsing when none is available, and checks every edit. Empryo gives the agent the same code intelligence your editor has: go to definition, find references, rename, type information and error checking. The agent looks things up by symbol instead of grepping through whole files, which is cheaper and more accurate. There is nothing to configure. Empryo installs the language servers your project needs in the background and picks the best available method for each request. ## What the agent can ask | Question | Example | |----------|---------| | **Where is it defined?** | "where is `parseConfig` defined?" | | **Who uses it?** | "who calls `parseConfig`?" | | **Rename it everywhere** | "rename `useChat` to `useConversation` everywhere" | | **What type is it?** | "what's the return type of `fetchUser`?" | | **Any errors?** | "any errors in this file?" | | **What does it call?** | "what does `buildTools` call?" | The agent answers these with the `navigate` and `analyze` tools. ## How it finds answers Empryo tries the most precise method first and falls back when it isn't available: 1. **Language server (LSP).** Exact types, workspace-wide rename and diagnostics. 2. **Parsing the code.** Outlines, imports and symbol lookups across many languages, plus deeper structure for TypeScript and JavaScript. 3. **Text search.** A last resort that works on any file. If no language server is running for your language, the agent still works. The fallbacks cover most questions. ## Language servers without the editor The agent can use language servers even when the editor is closed. In the terminal UI, when you open the embedded Neovim editor (`Ctrl+E`), requests go through the servers Neovim already runs. When it's closed, Empryo starts the servers itself. See which servers are attached: ``` /lsp status ``` Servers for your languages install on their own. To add another one from the Mason registry: ``` /lsp install ``` See [LSP](/docs/tools/lsp) for more. ## Checks after every edit Empryo records the errors in a file before an edit and compares them afterwards. The agent is told: - which errors it just introduced, - which errors it just fixed, - which errors appeared in other files because of the edit. This lets the agent fix its own mistakes right away, without running a full typecheck after every change. When no language server answers for a file, Empryo still parses the edited file and compares it with the version before the edit. An edit that leaves Python, Swift, Kotlin, Rust, Go, C, C++, Zig, shell scripts or any of the 30 parsed languages unparsable comes back with the line and the broken text, so the agent fixes it in the next step instead of finding out at build time. Errors that were already in the file before the edit are not reported again. A symbol's span covers its decorators and attributes (`@classmethod`, `@MainActor`, `@Composable`, `#[derive]`), so replacing a function or class by name replaces them too and never leaves one behind to attach to the next declaration. --- ## The Marionette Canonical: https://empryo.com/docs/concepts/marionette > An optional quick pass before each prompt: a cheap model finds the files and line ranges your request is about and attaches that map for the main agent. [Video: The Marionette runs, the map fills in under the prompt, and the agent starts from it.](https://empryo.com/media/marionette-desktop.mp4) *The Marionette runs, the map fills in under the prompt, and the agent starts from it.* The **Marionette** is an optional step that runs before the main agent sees your prompt. A cheap model looks at your request, finds the files and line ranges it is about, and attaches that list to your message. The main agent then starts in the right place instead of spending expensive steps searching. It is marked **experimental** and is off by default. Every prompt already includes the [Genome](/docs/concepts/genome), a map of the whole repository. The Marionette adds a map of *this request*: which files matter, how they connect, and which past decisions apply. Your prompt is never rewritten. The map is attached underneath it. ## It finds code, it doesn't suggest fixes The Marionette only locates. Its output has no place for a guessed cause or a suggested fix. That is deliberate: a cheap model's guess can steer a stronger model the wrong way, while a list of relevant files only helps. Deciding what to change stays with the main agent. ## Using it In the terminal UI or the desktop composer: ``` /marionette fix the race in tab restore # run it for this one prompt /marionette fix it --steps 12 --time 90s # limit how long the survey runs /marionette on | off | status # run it on every prompt, or check ``` `on` and `off` apply to the current project. Add `global` to change it everywhere, for example `/marionette on global`. On desktop, the same switch is in the **Router** dialog under agent behavior. In headless runs, pass `--marionette`, and choose a mode with `--marionette-mode <mode>`. In config, the always-on switch is `agentFeatures.marionette`. ![The finished map, expanded: your asks, the relevant files with line ranges, how they connect, and related memories.](https://empryo.com/media/marionette-map.webp) *The finished map, expanded: your asks, the relevant files with line ranges, how they connect, and related memories.* ## What the map contains While it runs, the map fills in under your prompt. Expand it to read: | Section | Contents | |---------|----------| | **asks** | Each separate thing you asked for, quoting your words | | **loci** | Relevant locations, like `file.ts:120-180 · symbol · role`, marked as primary or nearby | | **strands** | How those locations connect: callers, files that change together, what an edit could affect | | **memories** | Saved project decisions that apply | | **unmapped** | Anything the survey couldn't reach, stated plainly | Each connection names the tool that found it, so nothing in the map is a guess. [Video: The same map in the terminal UI, drawn in text.](https://empryo.com/media/marionette-tui.mp4) *The same map in the terminal UI, drawn in text.* ## Modes Choose a mode with `/marionette none|fast|assist|deep`, or set `marionetteMode` in config: | Mode | What runs | Speed and cost | |------|-----------|----------------| | `none` | Index lookup only, no model | About 0.2 seconds, no tokens | | `fast` *(default)* | Index lookup, then one model call to pick what belongs on the map | Quick and cheap | | `assist` | Index lookup, then a short read-only survey to confirm | Slower | | `deep` | A full read-only survey driven by the model | Slowest, most variable | The `--steps` and `--time` limits only apply to `assist` and `deep`, which run a survey loop. You can set defaults with `marionetteBudget.steps` and `marionetteBudget.timeMs`. ## Which model runs it Set the Marionette's model in `/router` (`taskRouter.marionette`). If you leave it unset, it uses the research model configured in the router. The Marionette only reads. It gets the same read-only tools as a research helper: language servers, the code map, impact analysis and memory search. If it fails, your prompt goes through unchanged, so it never costs you a turn. ## Why not ask the agent to explore first? The main agent can already send a research helper to explore. The difference is timing. The Marionette always runs before the turn starts, with a clean context, and returns a short structured map instead of a long report. It also brings in saved project memories. A research helper is still the right choice once the agent realizes mid-task that it needs to look at a whole subsystem. The Marionette covers the start of the task. --- ## Model events Canonical: https://empryo.com/docs/concepts/model-events > An opt-in debug view that records each model call's speed, token count and errors, so you can find the slow or failing model when you mix providers. When you use several models at once, it can be hard to tell which one is slow or which one is failing. **Model events** is an optional debug view in the terminal UI. It records every model call Empryo makes, including the main agent, helper agents, compaction, code summaries and web search. It is off by default and costs nothing while off. ## Open it ``` /model-events ``` Press `e` to start recording. Press `e` again to stop, which also clears what was recorded. The view stays empty until you start recording. ## The three tabs Use `Tab` or the arrow keys to switch. **Models** shows totals per model: calls, errors, average and most recent response time, and total tokens. The most recently used model is at the top. **Recent** lists every call, newest first: when it ran, where it came from (main, helper agent, compaction or other), the model, status, duration, and tokens in and out. **Errors** lists only failed calls, with the error message, the model and where the call came from. ## When to turn it on - Things feel slower than expected and you want to know which model is the bottleneck. - Helper agents fail without an obvious reason and you want to see which model errored. - You're comparing two providers on the same task and want response times side by side. - Cache savings look lower than expected and you want to see cache-read tokens per model. For everyday work, leave it off. Cost and token totals are always available in `/context`. ## What it stores - The last 500 calls, kept in memory only. - Nothing is written to disk or kept between sessions. - Stopping recording or restarting Empryo clears it. - Recording is a per-session switch, not a config setting. ## Related - [`/context`](/docs/concepts/cost-tracking) shows running totals, cost per model and helper-agent spend. - [`/router`](/docs/recipes/task-router) lets you pick which model handles which kind of task. --- ## Context compaction Canonical: https://empryo.com/docs/context/compaction > Long sessions never hit the wall. Empryo folds older work into a compact summary in about a second and keeps every file and decision. Every model can only read so much at once. When a long session gets close to that limit, Empryo **compacts** it: older turns fold into a compact summary of the work, your most recent turns stay word for word, and you keep going in the same session. No restart, no lost thread. It kicks in automatically when the context reaches 95% of the model's window, and you can run it yourself at any time: ``` /compact ``` ## Why it feels instant - **Up to 76× smaller.** A million characters of session history fits in a summary the size of a short file, bringing a full context window back down to single digits. - **About a second.** Most compactions finish before you notice, with zero extra model calls and nothing extra on your bill. - **Nothing important left behind.** Every file the agent edited or read, the commands it ran and how they turned out, the decisions it made and why, the errors it hit and how it fixed them. - **No re-exploring.** The agent picks up exactly where it left off instead of re-reading files or re-running tests it already ran. - **It never gets stuck.** If a model is slow, busy or out of quota, compaction still completes. Tested on real coding sessions with Claude Opus, Sonnet and Haiku and with GPT models, with reasoning on and off. ## Nothing said is lost The summary keeps the shape of the work, not every word: a long message is cut to its first few hundred characters, and a line that ends in … is one of those cuts. Everything it leaves out stays in the session's record on disk, and the agent reads it back word for word with the `history` tool: your exact messages, its own earlier answers, the full output of every tool call, and the summaries earlier compactions left. `history` with `scope: "project"` also searches this project's earlier sessions, newest first, so the agent can look up how something was settled last week. A one-off headless run without `--save-session` keeps no record, so there is nothing to search. ## Repeated output is sent once When the agent reads a file it already has, or runs the same `grep`, `shell`, `git` or `project` call again and gets the same output, the model gets a short note pointing to the earlier copy instead of the full text again. The note is used only when both are true: - The new output is byte for byte the same as the last one. The call always runs, and a file is hashed when it is read, so an edit from another tab, your editor or git always comes through in full. - The earlier copy reached the model intact and is still in the request. Once compaction, pruning or context cleanup removes it, the next identical call sends the full output again, and a note already sent for it is replaced by the content or by a request to read again. Your transcript always keeps the full output. To force the full text anyway, the agent passes `fresh: true`. ## Settings ```json { "compaction": { "triggerThreshold": 0.95, "keepRecent": 4 } } ``` | Key | Default | What it does | | ------------------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `strategy` | `"auto"` | Set to `"disabled"` to turn off automatic compaction | | `triggerThreshold` | `0.95` | Compact automatically at this share of the context window | | `keepRecent` | `4` | How many recent messages stay word for word. When the newest turn alone is bigger than that budget, its earlier steps go into the summary and only its newest steps stay | | `llmExtraction` | `true` | Let a model add a short written recap when it helps | Toggle automatic compaction with `/compact settings`. `/compact logs` shows past compactions. ## After a break When you come back to a tab after a while, the provider's prompt cache has expired, so the next request pays to cache the whole history again. With `compaction.onResume` on, Empryo compacts first instead: the first turn after the break starts from the summary and your most recent turns, and every later request in that tab reads a much smaller history. ```json { "compaction": { "onResume": true, "resumeAfterMinutes": 60, "resumeMinTokens": 150000 } } ``` It only runs when all of these hold: - You sent the message yourself. Goal loops, reviews, background wake-ups and recovered turns never compact on resume. - You were away at least `resumeAfterMinutes` and at least as long as the prompt cache lives (5 minutes or 1 hour, depending on `cache.ttl`). - The context the last request sent was at least `resumeMinTokens` tokens. - The session is saved and the `history` tool is on, so anything the summary leaves out can still be read back word for word. A note in the conversation says how long you were away and how big the context was. If compaction fails, the turn is sent as it is. ## Which model helps Most compactions need no model at all. When a short written recap helps, Empryo uses the model in the `compact` slot of the [task router](/docs/recipes/task-router), so point it at something fast and inexpensive: ```json { "taskRouter": { "compact": "google/gemini-2.5-flash" } } ``` A recap is a summary, not a reasoning task, so it runs at the model's lowest reasoning level, not your tab's. To change that, set an effort on the `compact` lane in the router. ## What you'll see - A spinner while compaction runs. - A message showing how full the context was before compaction, as your provider counted it. When a tool result would have pushed the next request past the window, it also names the size of that request, which is never sent. When the newest turn was longer than the kept budget it also says how many of its earlier steps went into the summary. - After the next request, a second message with the new size as your provider reports it. Until then the context gauge shows no number. - If the measured size is still at the compaction trigger, so the next compaction would come right away, a note says so. A result between the target and the trigger is normal when the newest turn is large: it is kept whole, and nothing is reported. --- ## Prompt cache and ping Canonical: https://empryo.com/docs/context/prompt-cache > See how long the prompt cache lasts on desktop, in the terminal and on the phone, keep a lane warm while idle, and find out why a cache broke. Prompt caching lets a provider reuse an unchanged part of your request. It can reduce repeated input cost and latency. It does not save your conversation or replace [sessions](/docs/tools/sessions). ## See the countdown Open `/cache` in the terminal for live cache information and retention controls. TTL means time to live: how long the provider is expected to retain cached context. Support and duration depend on the model and provider. A countdown is not a promise that the provider will serve a cache hit. On desktop, click **Cache** in the status bar: | Control | What it does | | ---------------- | -------------------------------------------------------------------------------------------------- | | Countdown | Time left in the provider's cache window since the last hit or write | | **Keep for** | How long the cache is kept from the next request, when the provider offers a choice | | **Auto-prewarm** | Writes the cache while you type, so your next message starts warm. On by default (`cache.prewarm`) | | **Warm now** | Sends one small request to warm it at once. It may use credits or quota | A ChatGPT sign-in for Codex shows no expiry, because that cache is tied to the session. ## Keep a lane warm After a conversation, enable idle cache refresh for that tab: ```text /ping start ``` `/ping` also starts it. Stop it with: ```text /ping stop ``` Empryo refreshes supported lanes before their known cache lifetime expires. Normal work takes priority. A model change can reconfigure or stop keepalive if the new model does not support it. **Keepalive makes provider requests and can cost money.** Use it when you expect to return soon, not as a way to keep every tab alive indefinitely. It cannot guarantee retention during sleep, disconnection or provider failure. ![Ping confirms when idle cache refresh is enabled for the current lane.](https://empryo.com/captures/terminal/ping-water-dark.webp) *Ping confirms when idle cache refresh is enabled for the current lane.* ## Message threads On Claude (API key or subscription), **Message threads** sends only what is new since the last step: the latest tool results or your message, plus the id of the previous reply. Anthropic keeps the rest of the conversation for 5 minutes after each request. Turn it on under **Claude → Prompt cache** in the provider options, or with `cache.threads: true`. It is off by default. | | Off | On | | ---------------------------------------------- | ------ | ------- | | Token cost and cache hits | Same | Same | | Data sent over a 50-step session to ~1M tokens | ~60 MB | ~2.3 MB | | First token above 500k tokens | ~3.8 s | ~3.2 s | Measured on Claude Haiku 5.5, 50 steps up to about 970k tokens of context. Below about 300k tokens the first token did not arrive sooner. Threads help most on slow uploads and very long sessions. A new thread starts whenever the history, the system prompt, the tools, the model or the effort changes, after a compaction, and after 5 minutes idle. Those requests send the whole conversation, as they would without threads. ## When the cache breaks Every request is compared with the previous one before it leaves. When the cached prefix cannot be reused, the tab shows a notice that names the cause and the exact edit, for example: ```text Cache broke · system prompt changed (block 3/3 text, −322 chars) · 290k re-written ≈ $1.09 · text after «callable by name with run_tool(…): advisor, »: −"computer, computer_act, …" · evidence 2026-10-01T00-45-39-120Z-system.json Cache broke · system prompt changed (block 3/3 text, −30 chars) · 290k re-written ≈ $1.09 · text after «Key dependencies: react: 72»: −"4 files" +"3 files" · meanwhile: agent rebuild requested: live config change (taskRouter) (just now); genome map re-rendered (cold refresh) → epoch 3, 57,241 chars (just now) · evidence 2026-10-01T01-57-00-390Z-system.json Cache broke · msg 178/199 EDITED (assistant: reasoning + tool call explore_script, part 1/2 reasoning, +2,978 chars) — history must be append-only · thinking after «…the user wants»: +"…" · flipped back to a version already sent (×2) — a per-request rewrite of this message is not stable · evidence 2026-10-01T00-51-02-004Z-messages.json ``` - `system prompt changed` names the block (on the Claude subscription lane, block 3 is Empryo's own instructions; the first two are the lane's attestation). On OpenAI-shaped lanes the system prompt travels as message 1, so the same change reads `msg 1/N EDITED (system …)`. - `tool schema changed` lists the tools added (`+`), removed (`−`) or changed (`~`). - `msg N/M EDITED` means an earlier message was rewritten in place. The field (`text`, `thinking`, `signature`, `input`) and a short excerpt follow. `flipped back to a version already sent` means the same message keeps alternating between two forms, which points at a per-request transform rather than a one-off edit. - `meanwhile:` lists what the engine did between the two requests, oldest first: `agent rebuild requested: live config change (taskRouter)`, `genome map re-rendered (cold refresh) → epoch 3`, `instruction files reloaded (project file changed)`. The step that explains the break is in that list. - The `evidence` file in `~/.empryo/logs/cache-breaks/` holds the full before and after of what changed, plus the same `meanwhile` list (the last 40 are kept). On the phone, the status sheet lists the last few breaks of a chat, one line each. Tap one for the full report. A notice that starts with `Cache re-written on purpose` or `Cache expired` is expected: a compaction, a `/clear`, or an idle window longer than the provider's retention. ## Choose the right control | You want to | Use | | ------------------------------------- | ------------------------------------------------ | | Inspect retention and countdown | `/cache`, or **Cache** in the desktop status bar | | Keep the current lane warm while idle | `/ping start` | | Stop idle refresh | `/ping stop` | | Check actual spend | `/usage` | | Recover an earlier conversation | `Ctrl+P` | Compare actual usage before and after enabling it. A warm cache is useful only when its savings exceed the refresh cost. --- ## Modes & the prompt Canonical: https://empryo.com/docs/context/prompt-system > Switch how the agent works with Ctrl+D, give it project rules in EMPRYO.md, and reuse instruction files you already wrote for Claude Code, Cursor and others. ![Each request carries only the tools the task needs, so more of the context window is left for your code.](https://empryo.com/media/forge-v2-loadout.svg) *Each request carries only the tools the task needs, so more of the context window is left for your code.* You control how the agent behaves in two ways: the **mode** you pick for the task, and the **instruction files** in your project. ## Modes A mode changes how the agent approaches a task. Press `Ctrl+D` to cycle through them (`Shift+Tab` in the input box cycles backwards), or type `/mode <name>`: | Mode | What the agent does | |------|---------------------| | `default` | Treats a request to fix, build or change something as a task: makes the change, checks it, then answers | | `plan` | Researches, draws the design (diagrams, tradeoff tables, critical files), writes a plan, waits for your OK, then carries it out (see [plan mode](/docs/recipes/plan-mode)) | | `lite` | An everyday assistant: every tool, no codebase map or Genome updates in the prompt | Each tab has its own mode, so you can plan in one tab and build in another. `lite` is experimental. The old `architect`, `socratic` and `challenge` modes are now part of `plan`, and `auto` is now part of `default`; chats and settings that used them open in the mode that replaced them, and a saved `"auto"` default is rewritten to `"default"`. To skip approvals, turn on `/yolo` instead. Two more modes run as their own kind of session: `/duck` opens a side chat with no access to your repository, and `/orchestrate` runs a [multi-agent workflow](/docs/agents/workflows). ## Project instructions Put project rules in an `EMPRYO.md` file at your project root, for example "use pnpm", "tests live next to the code", or "never touch the generated folder". Empryo loads it into every conversation in that project. Rules that apply to every project go in `~/.empryo/EMPRYO.md`. When you edit the project file, the next message uses the new rules, with no restart. On Claude 5 and later, through the Anthropic API or a Claude subscription, an edit to either file reaches every open tab at its next message without touching the system prompt. Empryo keeps the system prompt the conversation started with and adds a system message with the changed files in full, so the [prompt cache](/docs/context/prompt-cache) keeps hitting and Claude keeps its earlier reasoning. A resumed session keeps standing on the prompt it was saved with. Set `agentFeatures.appendOnlyInstructions` to `false` to turn this off. With other models a changed system prompt re-bills each tab's cached context, so the global file is treated with more care there. A change to `~/.empryo/EMPRYO.md` is picked up by a tab once that tab's prompt cache has gone cold, and by every new tab at once. Background writers such as the SoulStack auto-update therefore never interrupt a warm conversation; your own edit lands when the tab next starts from a cold cache. If your repository already has instruction files for other tools, you can turn those on too: ```json { "instructionFiles": ["empryo", "claude", "cursorrules"] } ``` | File | Written for | |------|-------------| | `EMPRYO.md` | Empryo (on by default) | | `CLAUDE.md` | Claude Code | | `.cursorrules` | Cursor | | `.github/copilot-instructions.md` | GitHub Copilot | | `.clinerules` | Cline | | `.windsurfrules` | Windsurf | | `AGENTS.md` | OpenAI Codex | | `.aider.conf.yml` | Aider | | `AMPLIFY.md` | Amp | | `GEMINI.md`, `QWEN.md`, `AGENT.md`, `WARP.md`, `CLAUDE.local.md` | Gemini CLI, Qwen Code, Amp, Warp, Claude Code | | `.rules`, `.continuerules`, `.roorules`, `.augment-guidelines`, `.junie/guidelines.md`, `.trae/rules/project_rules.md`, `.goosehints` | Zed, Continue, Roo, Augment, Junie, Trae, Goose | In the terminal UI, `/instructions` lets you switch each file on or off. By default, every enabled file is loaded for every model. To send a file only to certain models, use `instructionRouting`. You can target a model family, a provider, a model name pattern or one of your custom agents. For example, `CLAUDE.md` can go only to Claude models and `AGENTS.md` only to GPT models, while `EMPRYO.md` goes to both. See [configuration → instruction files](/docs/reference/configuration#load-a-file-only-for-some-models). ## Tuned for each model family Different model families respond best to differently worded instructions. Empryo adjusts for Claude, OpenAI and Gemini models automatically, including when you reach them through a gateway such as OpenRouter or LLM Gateway. There is nothing to configure. --- ## Thinking, effort & retries Canonical: https://empryo.com/docs/context/provider-options > Control how much the model thinks before answering, set reasoning effort per model or provider, and tune retries when a provider is rate-limiting you. Many models can "think" before they answer. More thinking often means better answers on hard problems, but it also costs more and takes longer. This page covers the settings that control that trade-off, plus how Empryo retries when a provider is busy. Open `/provider-settings` in the terminal UI, or **Provider Options** in the desktop settings, to change these per model. You can also edit config directly: ```json { "thinking": { "mode": "adaptive" } } ``` ## Thinking mode | Mode | What it does | |------|--------------| | `off` | No thinking | | `auto` (default) or `adaptive` | The model decides when and how much to think, where supported. Other models use a fixed budget | | `enabled` | Always think, up to a fixed token budget | When the mode is `enabled`, set the budget with `thinking.budgetTokens` (at least 1024). `/provider-settings` offers 1024, 2048, 5000, 10000 and 20000. ## Reasoning effort Some models take a thinking *budget* in tokens. Others take an *effort level* instead. Set the level from the control in the message box, with `/effort`, or in config: ```json { "performance": { "effort": "high" } } ``` The control offers these choices, in this order: | Choice | What Empryo sends | |--------|-------------------| | **Provider default** (`default`) | No effort or thinking field. The provider decides. | | **Off** (`/effort off`, `none` in config) | The provider's own switch for turning reasoning off. See below. | | `minimal`, `low`, `medium`, `high`, `xhigh`, `max` | That level | A tab you have not set starts on **Medium**, or on the nearest level above it if the model has no medium. A level you picked keeps working. An older `off` in config or in a saved tab means Provider default, as it did before. No model takes every level. The control only offers levels your current model accepts. If you set a level higher than a model supports, it uses the highest level that model accepts. Choosing a level never turns reasoning off; only Off does. What Off sends: | Provider | Off | |----------|-----| | Claude | `thinking: { type: "disabled" }`. On Claude Sonnet 5.5, `between_tools`, its lowest setting | | OpenAI, ChatGPT subscription | Reasoning effort `none`, or `minimal` on models without `none` | | Gemini 2.5 Flash | `thinkingBudget: 0` | | Gemini 3 Flash and Flash-Lite | `thinkingLevel: "minimal"`, the lowest Google offers | | DeepSeek, Kimi K2.5 and K2.6, GLM | `thinking: { type: "disabled" }` | | OpenRouter | `reasoning: { effort: "none" }` for OpenAI models, `reasoning: { enabled: false }` for the rest | Models that cannot switch reasoning off do not show Off: Grok, Claude Opus 5.5, Claude Fable and Mythos, Gemini 2.5 Pro, Gemini 3 Pro, Gemini 4 and GPT-6.1 Sol. When settings overlap, the first match in this order wins: | Where | Key | Applies to | |-------|-----|------------| | Per model family | `performance.effortByFamily` | Set from the quick switch in the message box, one level per family | | Per provider | `performance.openaiReasoningEffort` and similar | Every model from that provider | | Everywhere | `performance.effort` | Every model that takes a level | The per-provider keys: | Key | Provider | |-----|----------| | `openaiReasoningEffort` | OpenAI | | `googleThinkingLevel` | Gemini | | `xaiReasoningEffort` | Grok | | `deepseekReasoningEffort` | DeepSeek | | `groqReasoningEffort` | Groq | | `openrouterReasoningEffort` | OpenRouter | | `llmgatewayReasoningEffort` | LLM Gateway | | `compatReasoningEffort` | Any other OpenAI-compatible endpoint, including coding plans | ## Anthropic context options Anthropic offers a few extra ways to manage long conversations on its side. Set them in `/provider-settings` or under `contextManagement` in config: - **Keep thinking blocks** (`clearThinking`, on by default) keeps earlier thinking in the conversation, which keeps requests consistent from turn to turn. - **Clear old tool uses** (`clearToolUses`, off by default) removes old tool results once the conversation passes 65% of the context window (and at least 120,000 tokens). - **Server-side compaction** (`compact`, off by default) lets Anthropic compact the conversation on models with a context window of 200,000 tokens or more. Empryo also has its own [compaction](/docs/context/compaction), which works with every provider. ## OpenAI server-side compaction The OpenAI provider settings now expose the same `contextManagement.compact` switch. It is off by default. For first-party OpenAI GPT-5.2 and newer, Empryo can send a large, self-contained Responses request through [`/responses/compact`](https://developers.openai.com/api/docs/guides/compaction) before inference. It forwards the entire returned context window, including its encrypted compaction item, as the next request's input. This is per-request input reduction. Empryo keeps its readable conversation history and recomputes the compacted input on subsequent large requests. Compaction calls add latency and token cost. Their usage is recorded separately. Empryo's normal client-side compaction remains active. This path does not change ChatGPT subscriptions, Codex or custom providers. Requests using `previous_response_id`, conversations, item references or explicitly configured `context_management` stay on their existing path. A compaction failure or 30-second deadline reports the problem and sends the original request instead. Cancelling the caller stops both requests. ## When a provider rejects an option If a provider rejects a setting, for example a thinking mode the model doesn't support, Empryo retries the request with fewer options instead of failing. ## Retries when you're rate-limited When a provider returns errors like 429 (too many requests), 529 or 503, or a response stalls, Empryo waits and tries again. If you hit limits often, raise the retry settings: ```json { "retry": { "maxTransientRetries": 5, "baseDelayMs": 3000 } } ``` The wait roughly doubles after each attempt: with a 3-second base, that's about 3s, 6s, 12s, 24s, then 48s. | Key | Default | Range | What it controls | |-----|---------|-------|------------------| | `maxTransientRetries` | `3` | 1 or more | Retries for errors like 429, 529, 503, timeouts and dropped connections | | `maxStallRetries` | `3` | 1 or more | Retries when a response stops arriving | | `baseDelayMs` | `1000` in chat, `2000` for agents | 250 to 60000 | Wait before the first retry, in milliseconds | | `retryOnStatus` | `[]` | HTTP statuses 400 to 599 | Extra statuses to retry like the errors above. `[400]` keeps a flaky router going when it answers `400 Provider returned error`; a context-too-large 400 still compacts instead | | `shrinkOutputOn400` | `false` | `true` or `false` | A 400 that names the context window ("maximum context length") always retries once with room to spare and keeps that room for the model this session. On, a 400 with no reason ("Provider returned error") to a request whose `max_tokens` fills the window to the edge gets the same retry. For strict routes such as MiniMax through OpenRouter | Settings and `/retry` offer 1 to 10 retries and a base wait up to 10 seconds. For more, edit the config or ask the agent to change the setting. The older `maxAttempts` key still works and sets both retry counts. ## Stream helper requests Some providers throttle non-streaming requests more heavily than streaming requests. If helpers hit rate limits while main chat works, enable internal streaming for that provider. It works with any provider: built-in API-key providers, subscriptions, gateways, and custom providers from `providers`. Off by default. Select a chat model from the provider you want to configure, then: - **Terminal:** open `/provider-settings`, choose **General**, and toggle **Stream helper requests**. - **Desktop:** open **Settings → Provider Options → Shared**, and toggle **Stream helper requests**. Search settings for "helper streaming" to find it. The row names the current provider. It always writes a global setting, even if the panel scope is Project. It applies to the next helper request, including helpers using other models from that provider. Switching it off keeps other providers' choices. Helpers consume the stream internally, then return the finished report as before. Main chat, tool execution and result formatting stay unchanged. This applies to dispatched helpers and their recovery attempts, not every background model call. It does not bypass shared quotas or guarantee fewer rate limits. The global config key is a list of provider ids, not model ids or names. The id is the part of the model id before the first `/`: `openrouter/qwen/qwen3.8-max` belongs to `openrouter`, and a custom provider named `my-proxy` is `my-proxy`. `empryo --list-providers` prints every id. ```json { "subagentStreamProviders": ["openrouter", "my-proxy"] } ``` You can also ask Empryo to enable helper streaming for a provider. The agent uses the `settings` tool with the `subagentStreamProviders` key and global scope. Project config cannot override it. An empty list disables the opt-in. For a one-off headless run, override the list with a comma-separated environment value: ```sh EMPRYO_SUBAGENT_STREAM_PROVIDERS=openrouter,my-proxy empryo --headless "Check this project" ``` The environment list replaces the saved list. An explicitly empty value disables it for that process: ```sh EMPRYO_SUBAGENT_STREAM_PROVIDERS= empryo --headless "Check this project" ``` Remove the environment variable to use the saved setting again. If the toggle has no effect, check the environment of the process running Empryo. ## Speed, service tier and tool calls These live under `performance` in config. Each command shows its current value when you run it alone. | Field | Command | What it does | |-------|---------|--------------| | `speed` | `/speed` | `fast` turns on Anthropic fast mode (up to 2.5x faster output) on Claude Opus 5.5, Opus 5 and Opus 4.8, through the Claude API, OpenRouter, LLM Gateway and Vercel AI Gateway; other models never receive it. Fast requests cost twice the standard rate. Every request (chat, agents, reviews, advisor, compaction, naming) is billed at the speed the response reports, so a gateway that falls back to standard speed is billed at standard. Switching speed starts a new prompt cache. `off` (default) and `standard` leave it off. | | `serviceTier` | `/tier` | OpenAI service tier: `auto`, `default`, `flex`, `priority` or `ultrafast`. `off` (default) sends none. | | `openaiVerbosity` | | How long OpenAI answers are: `low`, `medium` or `high`. `off` (default) leaves it to the model. | | `sendReasoning` | `/sendreasoning` | Send the model's reasoning back with the next request. Off by default. | | `toolStreaming` | `/toolstream` | Stream tool-call arguments while the model writes them. On by default. | | `disableParallelToolUse` | `/seqtools` | One tool call at a time instead of several at once. Off by default. | | `codexWebsocket` | | Send ChatGPT subscription requests over a websocket: `auto` (default), `on` or `off`. | | `requestCompression` | | Compress model requests of 1 KB or more with zstd, or gzip where the server only takes gzip (Anthropic). Bodies get about 4x smaller; a server that refuses gets the plain body and is remembered. On by default; `false` or `EMPRYO_REQUEST_COMPRESSION=off` turns it off. | `/thinking` and `/budget` set the thinking mode and budget from the chat in the same way. For Anthropic's context options, `/cleartools` and `/clearthinking` set `clearToolUses` and `clearThinking`. ## Next The same settings panel also has the four [provider tools](/docs/context/provider-tools): computer use, code execution, the Anthropic text editor and provider-side search. Each row shows whether the tool is available on the model you've selected. --- ## Provider tools Canonical: https://empryo.com/docs/context/provider-tools > Computer use, code execution, the Anthropic text editor and provider-side search: what each does, which models support it, and how to switch it on or off. Most of the agent's tools belong to Empryo and work with every model. Four tools are different, because the model provider supplies them: - **Computer use**: take screenshots and click, type and scroll on your screen. - **Code execution**: run code in a sandbox on the provider's servers. - **Anthropic text editor**: Claude's own file-editing tool. - **Provider-side search**: web search run by the provider. Whether one of these tools actually works depends on two things besides your setting: the **route** you reach the model through (the part before the slash, such as `anthropic/`, `openai/`, `openrouter/` or `proxy/`) and the **model** itself. ## Check what you'll get Empryo reports three things for each tool: | Word | Meaning | |------|---------| | enabled | You turned it on in config | | backend | The provider tool that would be used, for example `anthropic:computer_20251124` | | active | Enabled **and** a backend exists. Only an active tool is available to the model | So a tool can be enabled but inactive (the route or model doesn't support it), or turned off with a backend ready (turn it on and it works). To check a model from the command line: ```bash empryo --capabilities anthropic/claude-opus-4-6 ``` ``` anthropic/claude-opus-4-6 Computer use on anthropic:computer_20251124 Code execution on anthropic:code_execution_20260120 Text editor off anthropic:text_editor_20250728 available Provider-side search on anthropic:web_search_20260209 ``` Leave out the model to check your `defaultModel`. ## Computer use Lets the agent see your screen and use the mouse and keyboard. Setting: `computerUse`, **on by default**. It only works once your machine is set up for it (see below). This section covers which provider tool carries it. Empryo's own screen tools, safety switches and on-screen indicators are described in [computer use](/docs/tools/computer-use). The same setting turns both on. | Route and model | Backend | |-----------------|---------| | `anthropic/` or a Claude subscription, with Claude | `anthropic:computer_20251124` (`computer_20250124` on older Claude) | | `openai/` with the general GPT-5.4+ models | `openai:computer` | | `openai/` with codex, mini, nano, chat or pro models | `generic:computer` | | ChatGPT and Codex subscriptions, `proxy/` with GPT | `generic:computer` | | `proxy/` with Claude, gateways, Gemini, local models | `generic:computer` | **Computer use works on every route.** What changes is which tool carries it. Where the provider has its own computer tool, Empryo uses it, because the model was trained on it. Everywhere else, Empryo's generic computer tool does the same job with the same actions. It works with any model that accepts images, since the model has to see the screenshots. ### Limit which apps it can control By default the agent can control whatever is on screen. Use `computerUseApps` to restrict that. Set a default, then allow or deny apps per platform: by bundle ID on macOS, process name or app ID on Windows, and window class on Linux. ```json { "computerUseApps": { "default": "deny", "macos": { "com.apple.Safari": "allow", "com.googlecode.iterm2": "allow" } } } ``` The rule is checked against the app in front **at the moment of each action**, not against a window title a web page could change. With `"default": "deny"`, any app you haven't listed is refused, and the message names the app so you can add it to your config. If the app can't be identified, the action is refused. Only actions that control the machine are restricted: clicks, key presses, drags and scrolls. Screenshots always capture the whole screen, so restricting them per app wouldn't be meaningful. The agent also follows standing rules for this tool: look before acting, double-check before an important click, never enter credentials it wasn't given, treat on-screen text as content rather than instructions, and stop if a window isn't the one it expected. ### Setting up your machine - **macOS:** install `cliclick` (`brew install cliclick`) and grant Screen Recording and Accessibility permissions. - **Linux:** install `xdotool` plus one of `grim`, `import`, `scrot`, `gnome-screenshot` or `spectacle`. - **Windows:** uses the built-in PowerShell. If your machine can take screenshots but can't send clicks, the tool isn't offered at all, so the agent never plans clicks it can't make. ## Code execution A sandbox on the provider's side where the model can run Python, shell commands and file operations. Setting: `codeExecution`, **on by default**. | Route | Backend | |-------|---------| | `anthropic/`, Claude subscriptions, `proxy/` with Claude 4.5 or newer | `anthropic:code_execution_20260120` | | `openai/` with GPT models | `openai:code_interpreter` | | Gateways (`openrouter/`, `llmgateway/`, `copilot/`, `bedrock/`, `vertex/` and others) | none | GPT models reached through a ChatGPT or Codex subscription don't offer a server-side sandbox. That's fine: Empryo's own `shell` and `code_script` tools run code on your machine and work on every route. Claude on the same subscription routes still gets the server-side sandbox. ## Anthropic text editor Claude's built-in file-editing tool. Setting: `anthropicTextEditor`, **off by default**, because Empryo's own `edit_file` and `ast_edit` tools already do this job. Claude 4 and newer use `text_editor_20250728`. Claude 3.5 and 3.7 use `text_editor_20250124`. It only works on direct Anthropic routes, so `openrouter/anthropic/claude-*` doesn't get it even though the model is Claude. ## Provider-side search The provider runs the web search itself. Setting: `nativeSearch`, **on by default**, and it needs `webSearch` to be on too. Because the provider runs these searches, Empryo can't ask you to approve each query. Turn `nativeSearch` off if you want every search to go through Empryo and its approval prompt. When a route has no provider-side search, Empryo's own `web_search` tool is used instead. That's expected behavior, not an error. ## Turning them on and off | App | Where | |-----|-------| | Terminal UI | `/provider-settings`. Each row shows the backend, or why there isn't one | | Desktop | Settings › Provider Options. Four rows, checked against the selected model | | Headless | `empryo --capabilities [model]` to check; edit config to change | In config, globally or per project: ```json { "computerUse": true, "codeExecution": true, "anthropicTextEditor": false, "nativeSearch": true } ``` | Key | Default | Tool | |-----|---------|------| | `computerUse` | `true` | Computer use | | `codeExecution` | `true` | Server-side code execution | | `anthropicTextEditor` | `false` | Anthropic text editor | | `nativeSearch` | `true` | Provider-side web search | ## Why a route can say no If Empryo sent a provider a tool it doesn't recognize, the provider would reject the whole request, not just skip the tool. So Empryo only enables a provider tool where the combination is known to work. When it isn't available, you get a reason you can act on, for example: *"openrouter encodes the request itself and has no text_editor tool type, use an anthropic/ model."* ## Next - [Thinking and retries](/docs/context/provider-options) - [Configuration reference](/docs/reference/configuration) - [The browser](/docs/tools/browser), for controlling web pages instead of your whole screen --- ## FAQ Canonical: https://empryo.com/docs/faq > Answers about Windows support, API keys and local models, costs, how Empryo edits code, privacy, sessions, and language coverage. Can't find your answer? Ask in the [Discord](https://discord.gg/fX4H7GYSMJ). It's usually the fastest way to get help. ## Does it run on Windows? Yes. Empryo runs natively on Windows 10 (1809 or later) and Windows 11 on x64. You can use the setup installer or the portable ZIP from the [download page](/download). Saved keys are encrypted with Windows DPAPI. WSL also works if you prefer Linux. See [Windows notes](/docs/installation#windows-notes) for the few features that differ. ## Can the desktop app open a repo that lives in WSL? Yes. Open the folder through `\\wsl.localhost\<distro>\…` or `\\wsl$\<distro>\…` (File Explorer lists it under Linux). Empryo then runs inside that distro, so git, language servers, the Genome and every command use the Linux tools and files. Settings and keys come from the distro's `~/.empryo`, the same ones the terminal app uses there. The terminal panel opens a shell in the distro, and dev servers you start from the app run there too. The first time you open a WSL folder, Empryo installs its engine into the distro, which takes about a second. A folder under `/mnt/c` opens with the Windows engine instead, because Windows files are faster from Windows. Running inside the distro needs WSL 2 on x86_64 with glibc, such as Ubuntu or Debian. A WSL 1, ARM or musl (Alpine) distro still opens, with the Windows engine, and Empryo tells you why. A window runs on one engine, so a Windows folder and a WSL folder can't be tabs in the same window. Adding a project from the other side opens it in its own window, next to the first. Another folder in the same distro opens as a tab, whether you pick it through `\\wsl.localhost\<distro>\…` or type its Linux path. Each distro has its own sign-ins and keys, separate from Windows. The first time, sign in from the app as usual: the sign-in is saved in that distro. A model server running on Windows (Ollama, LM Studio) is not at `localhost` from inside WSL unless you turn on [mirrored networking](https://learn.microsoft.com/windows/wsl/networking#mirrored-mode-networking); otherwise point the provider at the Windows host address. ## Is there anything to set up? No. Install Empryo, connect a model and prompt. While you connect a model, Empryo maps your code in the background, detects your languages and installs their language servers, and finds your project's test, lint and typecheck commands. Nothing blocks your first prompt. It is a one-time job per project; after that only changed files are updated. ## Do I need Neovim? No. Neovim powers an optional editor panel. Everything else works from the chat alone. If you want the panel, run `/setup` to install it, or install Neovim with `empryo addon install neovim`. ## Is there a GUI, or is it terminal-only? Both. The [desktop app](/download) gives you tabs, a visual map of your codebase, and a built-in editor and terminals in one window. The command-line install gives you the terminal UI and a `--headless` mode for scripts and CI. All three share the same agent, settings, and sessions. ## Can I import sessions from Claude Code, Codex, or OpenCode? Yes. Run `/import`. It finds sessions from those tools on your machine, shows you what it found, and copies them into Empryo. Each session is imported separately, so one bad file doesn't stop the rest. ## Do I need an API key? No. You have three options. **Sign in with an account.** Type `/login` and pick an account, such as a Claude or ChatGPT subscription, GitHub Copilot, or [LLM Gateway](https://llmgateway.io). Empryo opens your browser and saves the sign-in for you. LLM Gateway gives you many models behind one account, paid with credits (`/login llmgateway`) or a DevPass subscription (`/login llmgateway-devpass`). **Use a key you already have.** Any supported provider works: ```bash empryo --set-key anthropic sk-ant-... ``` **Run a local model.** Install Ollama or LM Studio and start it. Empryo detects both. Local runs cost nothing in API fees. ```bash ollama pull llama3.3 ``` ## How much does it cost to run? Empryo itself is free. You pay your model provider for what you use, or nothing if you run a local model. Empryo shows the running cost in US dollars as you work, including a breakdown per model. Costs depend on the model, the size of your project, and how you work. To save money, use the [task router](/docs/recipes/task-router) to send exploration to a cheaper model and keep a stronger model for writing code. ## Which model should I pick? Start with a model you already have access to. A mid-range model is a good default for everyday coding. A fast, cheap model works well for exploring code, and a top-tier model is worth it for hard bugs. Local models (Llama, Qwen, DeepSeek and others) keep everything on your machine. You can mix models with `/router`. See the [task router recipe](/docs/recipes/task-router). ## Does it work without internet? Yes, if you use a local model through Ollama or LM Studio. The codebase map, language servers, and code parsing all run on your machine anyway. ## How does Empryo edit code? It picks the right edit tool for the job: 1. **Structure-aware edits** for TypeScript and JavaScript. It changes a function, class, or method by name instead of matching text. 2. **Batch edits** that apply several changes to one file at once, or not at all. 3. **Single text edits** anchored to specific lines, for any file type. 4. **Language-server refactors** such as renaming a symbol across the project, moving a symbol, or extracting a function, where your language server supports them. You don't choose. The agent does. ## Is my code uploaded anywhere? Only what gets sent to the model provider you chose, as with any AI coding tool. Empryo doesn't upload your code to its own servers. You can block files from the agent completely with `/privacy`. Common secret files such as `.env`, `.pem`, `id_rsa`, `.npmrc`, and `.netrc` are blocked by default. ## Can I use it for work? Yes. You can use Empryo for personal projects and internal business work, including company development, paid client work, and headless CI/CD. You can sell the software and other work products you create with it. Using Empryo gives its owner no ownership of, or license to, your projects, inputs, or outputs. You owe no royalties, revenue share, source disclosure, or Empryo attribution for what you create. Existing rights in any third-party material still apply. You bring your own model access, so provider charges are separate. Commercializing Empryo itself is different: selling it, offering cloud or managed Empryo to customers, or wrapping, embedding, or bundling its functionality in a commercial product or service requires the owner's explicit prior written permission in a separate commercial license. This also applies when Empryo is a free feature of a paid offering. Contact empryo@proxysoul.com. Empryo v3 is proprietary, not open source. The separate public SoulForge v2/core/engine code keeps its own license; earlier grants are not revoked. The [Empryo license](/license.txt) defines the terms for copies distributed with it. ## Which languages does code intelligence cover? Empryo parses structure, symbols, and imports for dozens of languages, including TypeScript, JavaScript, Python, Go, Rust, Java, C, C++, C#, Ruby, PHP, Swift, Kotlin, Scala, Lua, Elixir, Dart, Zig, and Bash, plus formats such as JSON, YAML, TOML, CSS, and HTML. Other files, such as Markdown, SQL, and Dockerfiles, are still found and searchable, just not parsed in depth. Empryo installs the recommended language server for each language in your project on its own. Structure-aware edits are for TypeScript and JavaScript only. ## Do I have to install language servers? No. Empryo detects the languages in your project and installs their servers in the background. To add another one, run `/lsp install` to browse the Mason registry. Run `/lsp status` to see which servers are running. ## How do sessions work? Every conversation is saved automatically under `~/.empryo/sessions/`. In the terminal UI, open `/session history` to find and resume one. In headless mode, use `empryo --headless --session <id> "your prompt"`. Checkpoints let you roll back changes the agent made in earlier turns. ## Can I run it over SSH? Yes. The terminal UI runs in any terminal, including over SSH and inside tmux. ## Can I use Empryo on my home PC from my laptop? Yes, without SSH. Run `/remote` on the home PC, then pick **Connect a device** on the laptop and paste the pairing link. After one pairing, the laptop opens projects that run on the home PC. The chats, tools, accounts and files stay there, and the laptop draws the screen. The two computers connect over the same Wi-Fi or over Tailscale. See [Another computer](/docs/surfaces/devices). ## Can I work in several tabs? Yes. Each tab has its own session, model, and checkpoint history. Tabs know about each other, so two agents don't edit the same file at once. See [tabs](/docs/agents/cross-tab). ## How do themes work? Run `/theme` to open a picker with live preview. Empryo ships with many built-in themes, and you can add your own. See [themes](/docs/tools/themes). ## Can Empryo explain and configure itself? Yes. Ask how something works, such as "what is the Genome?" or "why did it compact?", and it reads its current documentation instead of guessing. Ask it to change something, such as "turn thinking on" or "connect this MCP server", and it writes the setting the same way the Settings panel does, so most changes apply without a restart. It saves the change where you asked. A general preference goes in `~/.empryo/config.json`. A change "for this project" goes in `.empryo/config.json`. It tells you the old and new value and where it saved it. If a setting needs a restart, it says so. There are two exceptions. It won't handle credentials for you (use `/login`, `/keys`, or `empryo --set-key`), and it asks before anything risky, such as installing software or upgrading. See [configuration](/docs/reference/configuration#ask-empryo-to-change-a-setting). ## How do I get help? - [Troubleshooting](/docs/troubleshooting) covers common problems. - `/diagnose` inside Empryo checks language servers, code parsing, and indexing. - `/status` shows a system status dashboard. - [GitHub issues](https://github.com/proxysoul/Empryo/issues) for bugs and requests. --- ## Empryo Canonical: https://empryo.com/docs > Empryo is an AI coding agent for the desktop, terminal, and scripts. It keeps a live map of your codebase, so its edits are informed. Empryo is an AI coding agent that reads, explains, and changes code in your projects. It is for developers who want help in a desktop app, in the terminal, or in scripts. What sets it apart: it keeps a live map of your codebase, called the **Genome**, so it finds the right code before it edits. You bring the model. Sign in with a subscription you already have, add a provider API key, or run a local model. You can start with one model and no extra setup. Code intelligence works out of the box. While you connect a model, Empryo maps your code in the background, detects your languages and installs their language servers, and finds your project's test, lint and typecheck commands. Nothing blocks your first prompt. ## Start here **Install** Get the desktop app or the command-line installer for your platform. **First useful task** Connect a model, open a project, and ask your first question. **Model access** Compare subscription sign-in, API keys, and local models. If you prefer to answer a few questions and get tailored commands, use the [guided setup](/wizard). > **Tip:** > You don't have to read these docs first. Ask in the chat, for example **"how does compaction work?"** or **"make the diffs compact for this project"**. Empryo looks up its own documentation and can change the setting for you, the same way the Settings panel would. See [ask Empryo to change it](/docs/reference/configuration#ask-empryo-to-change-a-setting). ## What you can do - **Understand a project.** Ask how a feature works and get answers that point to specific files. Empryo searches the Genome, reads symbols, and uses language servers where they are available. - **Make focused changes.** Describe a fix or refactor. For TypeScript and JavaScript, Empryo edits functions and classes by name instead of matching raw text. Other languages use text edits plus whatever your language server supports. - **Check the result.** Ask it to run your tests, linter, or type checker. Then review the output and the diff before you commit. - **Change Empryo's settings by asking.** Ask it to switch models, turn on thinking, or connect an MCP server (a plugin that gives the agent extra tools). You choose whether the change applies everywhere or only to this project. - **Pick up where you left off.** Sessions are saved so you can resume them. Checkpoints let you roll back agent changes, but keep using version control as your real backup. Try this as your first prompt: ```text Explain the project entry points and cite the relevant files. Do not change anything. ``` ## More it can do - **Work on several things at once.** Each tab runs its own agent: up to 10 in the terminal and 32 in the desktop app, each in its own [git worktree](/docs/surfaces/desktop#worktrees) if you like. [Steer](/docs/agents/steering) a turn while it runs. - **Check its own work.** The [goal loop](/docs/agents/goal-loop) repeats until a separate reviewer passes the result, and a [council](/docs/tools/side-agents) of 2 to 4 agents can argue a hard decision. - **Reach past your code.** It drives a [browser](/docs/tools/browser), uses your other apps through [computer use](/docs/tools/computer-use), and takes [spoken prompts](/docs/surfaces/voice-input). - **Lead every tab from one place.** [Mito](/docs/agents/mito) sits above all your projects. Talk to it instead of each tab: it opens and watches them, nudges the ones that stop early and tells you what needs you. - **Run on a schedule.** [Routines](/docs/tools/routines) run a prompt on a timer, such as a morning check of your project. - **Fit it to your work.** [Morphs and cells](/docs/tools/morphs) add panels, boards and rules. [The Marionette](/docs/concepts/marionette) maps the files that matter before each prompt, and [TypeSafe](/docs/tools/typesafe) makes small, quick decisions with a small model. ## Three ways to work | Interface | Best for | | --- | --- | | Desktop app | Working in a graphical window with tabs, an editor, and terminals | | Terminal UI | Working interactively from a project directory | | Headless CLI | Running a single prompt from scripts or CI | All three use the same agent, settings, and sessions. Their controls differ. See [installation](/docs/installation) for supported platforms and [headless workflows](/docs/recipes/headless) for automation. ## Add more when you need it [Task routing](/docs/recipes/task-router) (a different model per type of task), [parallel agents](/docs/agents/dispatch), [skills](/docs/tools/skills), and [MCP servers](/docs/tools/mcp) are all optional. Start with one model and a small task, then add what your work needs. Need help? [Troubleshooting](/docs/troubleshooting) · [FAQ](/docs/faq) · [GitHub issues](https://github.com/proxysoul/Empryo/issues). --- ## Installation Canonical: https://empryo.com/docs/installation > Install Empryo on macOS, Linux, or Windows x64 with the official command-line installer or the desktop app, then check the install and connect a model. ## Choose your platform You can install Empryo on: - **macOS** on Apple Silicon or Intel. - **Linux** on x64 or ARM64. - **Windows 10 (version 1809 or later) and Windows 11** on x64 only. Windows on ARM is not supported. There are two ways to install. The command-line installer gives you the terminal UI and headless mode. The desktop app is a separate download and works on its own. You can also install both through Homebrew or, on Arch Linux, through pacman. Empryo is not published on npm. **macOS / Linux CLI** ```bash curl -fsSL https://empryo.com/install.sh | bash ``` The script detects your system, downloads the matching release, and checks its SHA-256 checksum before installing. You can read [the script](/install.sh) before you run it. **Windows CLI** ```powershell irm https://empryo.com/install.ps1 | iex ``` Run this in PowerShell. You can read [the script](/install.ps1) first. You can also get it from [the Microsoft Store](https://apps.microsoft.com/detail/9pg61dcgkw2w) as Empryo CLI, which updates through the Store. If you want a portable install instead, download the ZIP from the [download page](/download) and keep the `deps/` folder next to `empryo.exe`. **Desktop app** Pick the installer for your system on the [download page](/download): - **macOS:** `.dmg` for Apple Silicon or Intel. - **Linux:** AppImage, or a distribution package where one is offered, for x64 or ARM64. - **Windows:** [the Microsoft Store](https://apps.microsoft.com/detail/9p1j4fcrwcdk), or the setup or portable `.exe` for x64. Install it, launch it, and open your project folder. You don't need the command-line install to use the desktop app. The Microsoft Store version updates through the Store. It can't download add-ons for you: install an add-on yourself and Empryo uses the copy on your `PATH`. If Windows SmartScreen shows a warning, check that the file came from the official download page before you continue. Never skip a security warning for a file you don't trust. ## Package managers ### Homebrew (macOS and Linux) ```bash brew install proxysoul/tap/empryo # terminal app brew install --cask proxysoul/tap/empryo-desktop # desktop app, macOS 13 or later ``` Typing the full `proxysoul/tap/...` name trusts just that package, as Homebrew requires for taps it does not run itself. Update with `brew upgrade`. The desktop app also updates itself. ### Arch Linux (pacman) The desktop app has its own signed pacman repository for x86_64 and aarch64. Add the signing key once: ```bash curl -fsSLo /tmp/empryo.gpg https://dl.empryo.com/arch/empryo.gpg sudo pacman-key --add /tmp/empryo.gpg sudo pacman-key --lsign-key 5B24A71C9C48DF86256D4B577035E31CB05C3CC0 ``` Check that the fingerprint matches `5B24 A71C 9C48 DF86 256D 4B57 7035 E31C B05C 3CC0` before you sign it. Then add the repository to the end of `/etc/pacman.conf`: ```ini [empryo] Server = https://dl.empryo.com/arch/$arch ``` Install it and keep it updated with the rest of your system: ```bash sudo pacman -Syu empryo ``` Every package and the repository index are signed, and pacman refuses anything that doesn't match the key. ## Check the CLI installation If your shell says `empryo` is not found, open a new terminal first. Then run: ```bash empryo --version empryo doctor ``` `--version` shows that the command is on your `PATH`. `doctor` checks that Empryo's runtime and native libraries load correctly, which can catch problems a version check misses. If either command fails, see [troubleshooting](/docs/troubleshooting). You don't need Neovim, a Nerd Font, or any extra tools for your first conversation. Local models need their own model server installed and running. ## Windows notes Windows is fully supported on **x64**, Windows 10 1809+ and Windows 11. Windows on ARM is not supported, because some native libraries Empryo depends on have no ARM64 Windows build and can't load under x64 emulation. | Feature | Windows | |---------|---------| | Terminal UI, headless mode, desktop app | Supported | | Saved keys and tokens | Encrypted with Windows DPAPI and stored in `%LOCALAPPDATA%\Empryo\secrets.dat`, readable only by your Windows account | | Neovim editor panel (optional) | Needs Neovim installed and on your `PATH` | | Everything else | Same agent, same config file, same sessions | When a feature isn't available on Windows, Empryo labels it in place instead of hiding it, so you can tell a platform limit from a bug. If `empryo` is not found after installing, see [command not found after install](/docs/troubleshooting#windows-command-not-found-after-install). ## Next: connect a model You need access to a model, but not necessarily an API key. You can sign in with a supported subscription, add a provider key, or use a local model. The [quickstart](/docs/quickstart) walks you through each option and your first task. For tailored commands, use the [guided setup](/wizard). --- ## Google Antigravity Canonical: https://empryo.com/docs/providers/antigravity > Use your Google Antigravity plan in Empryo, either directly or through Google's official agy command-line tool. Setup, sign-in, models, account switching and fixes. If you have a Google Antigravity plan, you can use its models in Empryo. Run `/login google-antigravity`, sign in with Google, and pick a model from the **Subscriptions** provider. There are two ways to run those models: - **Direct** (the default). Empryo signs in with Google and calls the Antigravity service itself. Nothing else to install. - **Through agy** (opt-in). Empryo hands every request to `agy`, Google's official Antigravity command-line tool. Sign-in, the model list and every reply go through `agy`. > **Warning:** > **Use at your own risk.** Like every [subscription sign-in](/docs/providers/subscriptions), this uses a plan that is meant for Google's own apps. Empryo is not affiliated with Google, and Google has not approved this use. Read your plan's terms before you sign in. ## Direct or through agy | | Direct | Through `agy` | |---|---|---| | Install | nothing | the Antigravity CLI (`agy`) | | Who talks to Google | Empryo | Google's own `agy` tool | | Sign-in | browser, returns to Empryo on its own | `agy`'s sign-in: browser, then paste the code back | | Model list | what the service reports for your account | what `agy` offers your account | | Several accounts, switching when one runs out | yes | yes | | Model ids | `subscriptions/google-antigravity/…` | the same | Pick `agy` when you want your requests to come from Google's own tool rather than a third-party client, or when you already use `agy` and want Empryo to see the same models it does. Stay with direct when you want nothing extra to install. Both use the same sign-in, so you can switch between them at any time without signing in again. ## Requirements - A Google account with Antigravity access. - Empryo 3.16 or newer. - For the `agy` route: the Antigravity CLI installed, with `agy` on your `PATH`. If it lives somewhere else, set `EMPRYO_AGY_PATH` to the full path of the `agy` program. - A screen where you can paste a code: the terminal UI or the desktop app. ## Set up the agy route 1. Install the Antigravity CLI from Google and check it runs: ```bash agy --help ``` 2. Turn the route on in `~/.empryo/config.json`: ```json { "antigravityCli": true } ``` If `agy` is not on your `PATH`, start Empryo with its location: ```bash export EMPRYO_AGY_PATH=/full/path/to/agy ``` 3. Sign in: ```bash /login google-antigravity ``` Empryo starts `agy`'s own sign-in and opens the Google page in your browser. Approve it, then paste the authorization code (or the whole address the browser ends on) back into Empryo. 4. Press `Ctrl+L` and pick a model under **Subscriptions**. Its name ends in "(Antigravity)". Already signed in to Antigravity directly? You can skip step 3. The existing sign-in works with `agy` too. ### Where the sign-in is kept `agy` is told to keep its token in a private file that only your user can read, never in your system keychain. Each account gets its own folder, so two accounts never share a token. Empryo keeps the sign-in with your other [subscription sign-ins](/docs/providers/subscriptions#remote-machines-and-servers) and renews it when it expires. `agy` runs with its own automatic updates turned off while Empryo uses it. Update it the way you installed it. ## Which models show up On the `agy` route, the model picker lists exactly what `agy` offers your signed-in account. Empryo asks `agy` once per account and remembers the answer while it runs. Model ids look like `subscriptions/google-antigravity/<model>`, and names end in "(Antigravity)" so you can tell them apart from the same model on another account, such as Gemini CLI. If `agy` does not answer within 20 seconds, the picker shows a short built-in list instead, starting with Gemini 3 Pro. Empryo asks `agy` again the next time it loads the model list. ## More than one account Run `/login google-antigravity` again and pick **Add another account**. When one account's plan runs out, Empryo moves to the next one on its own: - **Before sending.** If Empryo already knows the current account is used up for that model, it picks another account first. - **On a quota error.** If `agy` reports the quota is reached before any reply text arrives, Empryo switches account and sends the request once more. If the reply had already started, the turn stops with the error instead, so you never get half an answer from one account and half from another. The used-up account waits until its limit resets. See [More than one account](/docs/providers/subscriptions#more-than-one-account) for how switching works across every subscription. ## Switch back to direct Set `"antigravityCli": false` in `~/.empryo/config.json`, or remove the line. The next request goes direct. Your sign-ins, accounts and model choices stay as they are. ## Troubleshooting **agy was not found on PATH** The `agy` route is on, but Empryo cannot find the program. Install the Antigravity CLI so `agy` is on your `PATH`, or set `EMPRYO_AGY_PATH` to the full path of `agy`. If you would rather not install it, set `"antigravityCli": false` to go direct. **EMPRYO_AGY_PATH is not an executable agy binary** `EMPRYO_AGY_PATH` must be a full path (starting with `/`, or a drive letter on Windows) to a file you can run. A folder, a relative path or a file without run permission is refused. Fix the path, or unset it to search your `PATH` instead. **Sign-in needs a place to paste the authorization code** `agy`'s sign-in ends with a code you paste back. Some screens have nowhere to paste it. Sign in from the terminal UI or the desktop app, or go direct, which needs no code. **Sign-in cancelled, timed out or failed** The sign-in waits up to 10 minutes for you to finish in the browser. Run `/login google-antigravity` again. If it keeps failing, check that `agy` runs on its own and that you are signing in with a Google account that has Antigravity access. **Not signed in to Antigravity after it worked before** Google has withdrawn the sign-in. That happens when you remove access from your Google account settings, change your password, or Google ends the session. Empryo marks that account as signed out and tells you why. Run `/login google-antigravity` to sign in again. Your other accounts keep working. A network error or a slow reply from Google never signs you out. Empryo only ends a sign-in when Google says it is no longer valid. **Quota reached** Your plan's limit for that model is used up. With a second account signed in, Empryo moves to it on its own. With one account, wait for the limit to reset or pick another model. **The picker only shows a few models** `agy` did not list its models in time, so Empryo fell back to its built-in list. Check that `agy` runs on its own, then reopen the model picker. ## Related - [Subscriptions](/docs/providers/subscriptions): every account you can sign in to - [Configuration](/docs/reference/configuration): every setting in `config.json` - [Providers overview](/docs/providers/overview): every way to connect a model --- ## GitHub Copilot Canonical: https://empryo.com/docs/providers/copilot > Use your paid GitHub Copilot subscription in Empryo: sign in with a device code, watch the monthly allowance, run Claude, GPT and Gemini at no extra cost. If you pay for [GitHub Copilot](https://github.com/features/copilot), you can use it in Empryo. The Claude, GPT, and Gemini models your Copilot plan includes work in Empryo at no extra cost. > **Warning:** > This is an unofficial integration. It uses the same API as Copilot in VS Code. GitHub does not endorse it. Use it at your own risk. ## Setup **1. Sign in** ``` /login copilot ``` Empryo shows a short code and opens `github.com/login/device`. Enter the code there and approve. Empryo stores the sign-in in your system keychain. You do not need an editor installed. **2. Use it** Press `Ctrl+L`, pick `copilot`, and choose a model. ```bash empryo --headless --model copilot/claude-sonnet-4.6 "explain this file" ``` ### Company GitHub (Enterprise) Some companies run Copilot on their own GitHub instead of github.com. This is either GitHub Enterprise Cloud **with data residency** (an address like `octocorp.ghe.com`) or a self-hosted **GitHub Enterprise Server**. A sign-in on one GitHub does not work on another, so you give the host when you sign in: ``` /login copilot octocorp.ghe.com ``` `/login copilot enterprise` asks you for the host instead. In the `/login` list, this is the **GitHub Copilot (Enterprise)** row, in both the terminal UI and the desktop app. Headless mode takes the host in the same place: ```bash empryo --headless --login copilot octocorp.ghe.com ``` Give the **main host name** of your company's GitHub. Empryo works out the other addresses from it: | Your GitHub | Sign-in | API | Models | |---|---|---|---| | github.com | `github.com` | `api.github.com` | `api.githubcopilot.com` | | `octocorp.ghe.com` | `octocorp.ghe.com` | `api.octocorp.ghe.com` | `copilot-api.octocorp.ghe.com` | | Enterprise Server | your host | `<host>/api/v3` | the address GitHub returns at sign-in | Empryo saves the host with your sign-in. To use a different host for a single run or in a CI image, set `COPILOT_GITHUB_DOMAIN`. Signing out switches back to github.com. Business and Enterprise seats **on github.com** need none of this. Sign in with `/login copilot` as usual. > **Note:** > The device sign-in uses the standard OAuth app that editors use. If your company registered its own app for editor clients, set `COPILOT_OAUTH_CLIENT_ID` to its client id. Your admin's rules about allowed integrations still apply. ### Reuse a sign-in from your editor If you already signed in to Copilot in VS Code or a JetBrains IDE, you can reuse that token: ```bash jq -r '."github.com".oauth_token' ~/.config/github-copilot/apps.json empryo --set-key copilot <token> ``` On Windows, the file is at `~\AppData\Local\github-copilot\apps.json`. You can also paste the token in `/keys` in the terminal UI. > **Note:** > The token must come from a **classic OAuth app**. Both methods above give you one. Tokens from a GitHub App (client ids starting with `Ov23li`) and fine-grained personal access tokens do not work. Copilot rejects them. ## Which models your plan can use Copilot's model list shows every model GitHub offers, not only the ones your plan includes. **Copilot Free** can only use the base GPT models, `gpt-4.1` and `gpt-4o`. Any other model returns: ``` The requested model is not supported. ``` GitHub's message does not say why, so Empryo adds the reason and your plan name to the error. Claude, Gemini, and the GPT-5 models need a paid Copilot plan. Some new models require you to accept their terms before first use. Empryo accepts them for you the first time you pick the model, the same way the official editor extensions do. Each model has its own reasoning effort levels in Copilot. `/effort` shows the levels your model supports. For example, Copilot's Claude models take `low`, `medium`, `high`, and `max`. ## Usage and quota Copilot gives you a monthly allowance instead of charging per token, so what matters is how much of the month's allowance is left. GitHub reports it, and Empryo shows it in the same kind of meter it uses for other subscriptions: ``` Subscription · copilot ● pro octocat ▸ premium [▰▰▰▰▰▱▱▱▱▱] 50% ↺ 12d chat [▰▱▱▱▱▱▱▱▱▱] 10% ↺ 12d completions [▱▱▱▱▱▱▱▱▱▱] 0% ↺ 12d editor only ``` GitHub reports three allowances: | Allowance | What uses it | |-----------|--------------| | `premium` | Premium model requests. On a paid plan, this is what an Empryo turn uses | | `chat` | Chat requests. On Copilot Free, this is what an Empryo turn uses | | `completions` | Inline suggestions in an editor. **Empryo never uses this** | That is why `completions` is dimmed and marked *editor only*. Running out of completions does not affect Empryo. > **Note:** > Allowances your plan does not have are hidden. For example, Copilot Free has no premium allowance, so Empryo does not show an empty premium bar. Where you can see it: | Where | What you see | |-------|--------------| | Terminal status bar | A meter next to the context meter, when you use a `copilot/*` model | | `/usage` | Every allowance, with the one that applies marked | | Desktop status bar | The same meter. Click it to open the usage page | | Desktop usage page | A Copilot card next to your other plans | | Headless | A `copilot:` warning on stderr when an allowance is almost used up | The status bar shows one plan meter, for the model you are using. A `copilot/*` model shows your Copilot allowance. A `proxy/*` model shows your [proxy](/docs/providers/proxy) plan. Empryo checks your allowance at most every five minutes. The numbers change slowly, and GitHub's [Acceptable Use Policies](https://docs.github.com/en/site-policy/acceptable-use-policies/github-acceptable-use-policies) ask clients not to send unnecessary automated requests. ## Context size depends on your plan Copilot often offers models with a smaller context window than the model supports natively. For example, a standard seat gets Claude Opus with 200k tokens, while Anthropic offers 1M. Seats with extended context get more. GitHub reports the numbers for your account. Copilot reports two numbers for each model, and Empryo uses both: | Copilot reports | Empryo uses it for | |---|---| | `max_context_window_tokens` | The context size shown in the model picker | | `max_prompt_tokens` | How much of that window your input may use. Compaction works from this number | If your seat has 1M-token context, open the model picker once. Empryo then loads your account's real numbers and shows the larger window. Until then, it uses the numbers for a standard seat. Guessing low is safer: if Empryo overestimated the window, it would compact too late and Copilot would reject the turn. ### Where the model list comes from Empryo builds the list from three sources, in this order. Each one only fills gaps the previous one left: | Order | Source | What it adds | |---|---|---| | 1 | Your Copilot account | The models your plan includes, with their real limits and effort levels | | 2 | models.dev | Models Copilot offers to other plans. Their windows are capped at Copilot's limits | | 3 | A built-in list | Used only when neither source can be reached | When you sign in with `/login copilot`, Empryo drops the previous account's list and loads the new one right away. Numbers from an old Free plan never linger after you upgrade or switch accounts. Empryo shows only the models GitHub marks as available in its model picker, the same as the official client. ### How Empryo identifies itself GitHub can answer differently depending on which client asks. For example, extended context windows are offered to specific clients. So Empryo sends the same editor version headers a current Copilot client sends. Empryo does not pretend to be GitHub Copilot Chat. Its `User-Agent` is **`Empryo/<version>`**. It also never sends invented machine or session ids. You can override each value with an environment variable: | Variable | Default | |---|---| | `COPILOT_EDITOR_VERSION` | `vscode/1.130.0` | | `COPILOT_PLUGIN_VERSION` | `0.58.0` | | `COPILOT_INTEGRATION_ID` | `vscode-chat` | | `COPILOT_API_VERSION` | `2026-08-01` | For example, `COPILOT_INTEGRATION_ID=copilot-cli empryo --list-models copilot` asks GitHub for the model list as a different client. The `source:` line in the output tells you which of the three sources answered. ### Request limits GitHub's terms do not require a particular client. They do limit volume: the Acceptable Use Policies forbid "excessive automated bulk activity" and "undue burden on our servers through automated means", and GitHub can suspend API access for request rates it considers excessive. Empryo keeps its traffic close to the official clients: | | VS Code extension | Empryo | |---|---|---| | Model list | refreshed every 10 min, skipped while the window is inactive | kept for 30 min, never fetched twice within 1 min | | Chat requests | one per agent step | one per agent step | | Usage check | when you ask | at most every 5 min, only on a `copilot/*` model | In practice: - **The model list is fetched at most once a minute.** Signing in is the only exception. - **A 429 or 403 error stops requests instead of retrying.** Empryo waits for the time GitHub asks for (or 15 minutes), uses your last saved model list, and tells you once. - **A rejected token is checked only once**, never in a loop. - **Usage is checked at most every five minutes**, and only when you use a `copilot/*` model. ## Legal position GitHub changed its terms on **27 April 2026**. Which terms apply depends on your plan: | Plan | Terms | |------|-------| | Business, Enterprise | [GitHub Copilot Product Specific Terms](https://github.com/customer-terms/github-copilot-product-specific-terms) | | All other plans | **Section J (AI Features)** of the [GitHub Terms of Service](https://docs.github.com/en/site-policy/github-terms/github-terms-of-service) | Section J covers who owns input and output, model training and how to opt out, disclaimers, and indemnity. It does not restrict which client you use. The limits that do apply come from other parts of the agreement: **What limits you (reviewed 2026-08-02)** - **Section C, Acceptable Use Policies.** [AUP §4](https://docs.github.com/en/site-policy/acceptable-use-policies/github-acceptable-use-policies) forbids "excessive automated bulk activity" and putting undue load on GitHub's servers. A runaway loop could break this rule. Which editor you use does not. - **Section H, API Terms.** GitHub may suspend API access for abuse or too many requests, at its own discretion. Sharing tokens to get around rate limits is forbidden. - **Section J.3, training.** Unless you opt out in your account settings, GitHub may use your prompts and the model's output to improve its models. This applies to individual plans only, not to Customer Agreement seats. **What changed since the last review** The previous review (2026-04-04) pointed to the Copilot section of *Additional Products and Features* as evidence that other clients were allowed. GitHub has since rewritten that section. It now refers to Section J or the Product Specific Terms and no longer describes client behavior. The conclusion is the same, but the evidence for it is now in a different place. **Risks** - The API is internal to GitHub and can change without notice. - Heavy use over a long time may trigger rate limits or an abuse warning. - GitHub may change the terms again, as it did in April. In one [community discussion](https://github.com/orgs/community/discussions/178117), a GitHub employee said the API is "intended solely for officially supported clients". That is not part of any legal document, but it is the clearest public statement of GitHub's intent. ## The official route GitHub now offers a supported way to build on Copilot: | Package | What it is | |---------|-----------| | [`@github/copilot`](https://www.npmjs.com/package/@github/copilot) | The official Copilot CLI | | [`@github/copilot-sdk`](https://www.npmjs.com/package/@github/copilot-sdk) | An MIT-licensed TypeScript SDK that controls that CLI | If using an approved integration matters more to you than using Copilot models inside Empryo, use that SDK. Empryo talks to Copilot's chat API directly instead. That is what lets Copilot models use Empryo's tools, the Genome (Empryo's map of your code), and compaction, like every other provider. **Check this page again if GitHub publishes new terms after 2026-08-02.** --- ## Custom providers Canonical: https://empryo.com/docs/providers/custom > Connect any OpenAI-compatible API to Empryo with one config block: set baseURL, key env var, models, dynamic model lists, and reasoning options. You can add any API that follows the OpenAI format as a provider. This includes hosted services like Together AI and servers you run yourself, like vLLM or llama.cpp. You only need a few lines of config. No code or plugin is needed. On the desktop app's first screen, **Connect a model**, pick **Add your own**, paste the address, and add a key, model names, the API (**Auto**, **Chat Completions** or **Responses**) and any request headers you need, then press **Connect**. The headers are saved under [`providerHeaders`](#extra-request-headers) and sent with every request, including the model list. Empryo checks that the server answers and lists models, then saves it to your global config under a new provider id that does not clash with a built-in or an existing provider. The key is stored under its own `EMPRYO_CUSTOM_<ID>_API_KEY` name, so no built-in provider or web search key is touched. If the server cannot be reached or lists no models, the wizard tells you why and removes both the provider and the key it just stored; add model names in the form for servers without a model list. If the address matches a provider you already have, the wizard picks that provider and leaves its settings and key as they are. ## Minimal example Add this to `~/.empryo/config.json` (or `.empryo/config.json` to use it in one project only): ```json { "providers": [ { "id": "together", "name": "Together AI", "baseURL": "https://api.together.xyz/v1", "envVar": "TOGETHER_API_KEY", "models": ["meta-llama/Llama-3-70b-chat-hf"] } ] } ``` Save your key and use a model: ```bash empryo --set-key together <your-key> empryo --model together/meta-llama/Llama-3-70b-chat-hf ``` Model names are always `<provider id>/<model id>`. ## Save the key from the command line `--set-key` takes the provider's **`id`** from your config, not the environment variable name: ```bash empryo --set-key together sk-... # id from the config block empryo --list-providers # `together ready (TOGETHER_API_KEY) [custom]` ``` Empryo stores the key in your system keychain, or in `~/.empryo/secrets.json` if no keychain is available. It stores it under the `envVar` name you declared. So **a provider needs `envVar` before you can save a key for it**. Leave `envVar` out for a local server that needs no key. Include it for any service that does. You can provide the same key in three ways: | Where | How | Used when | |---|---|---| | Environment | `export TOGETHER_API_KEY=sk-...` | always, unless you set `keyPriority: "app"` | | Command line | `empryo --set-key together sk-...` | no environment variable is set | | App | `/keys` in the terminal UI, **Settings → Accounts & keys** in the desktop app | no environment variable is set | If the provider is declared in a project's `.empryo/config.json`, run `--set-key` from inside that project, or pass `--cwd <path>`. Otherwise Empryo does not see the provider. ## Several accounts on one provider `providers` is a list, and the same API can appear in it more than once. That is how you use two accounts on one service: ```json { "providers": [ { "id": "together-work", "baseURL": "https://api.together.xyz/v1", "envVar": "TOGETHER_WORK_KEY", "models": ["meta-llama/Llama-3-70b"] }, { "id": "together-personal", "baseURL": "https://api.together.xyz/v1", "envVar": "TOGETHER_PERSONAL_KEY", "models": ["meta-llama/Llama-3-70b"] } ] } ``` You get two providers with two keys, and you choose which one a tab uses by picking its model (`together-work/meta-llama/Llama-3-70b`). If you want Empryo to switch accounts **automatically**, keep one provider and save both keys for it. Running `--set-key` a second time adds the new key and keeps the first one: ```bash empryo --set-key together sk-account-one empryo --set-key together sk-account-two ``` When one account runs out of quota during a turn, Empryo moves to the next saved key. When every key is used up, it stops and shows you the provider's error. A short rate limit is handled differently. Empryo waits and retries with the same key, instead of moving to your other accounts for a limit that clears in seconds. A key that comes from an environment variable is never swapped out. ## Fields | Field | Required | What it does | |-------|----------|--------------| | `id` | yes | The name used in model ids (`together/llama-3`) | | `baseURL` | yes | The API address, OpenAI format | | `name` | - | The name shown in the app | | `api` | - | `auto` (default), `chat` or `responses`. `auto` sends `/chat/completions` and switches a model to the OpenAI Responses API (`/responses`) when the server asks for it. `chat` and `responses` pin one. A model object can set its own `api` (see below) | | `envVar` | - | The environment variable for the key. Leave it out for servers without a key | | `models` | - | The model list, as strings or `{id, name, contextWindow, maxOutputTokens}` objects. Empryo uses the limits you declare for the context meter and automatic compaction. **If you set `models`, Empryo stops asking the server for its model list** | | `modelsAPI` | - | An address that returns models in the OpenAI `/v1/models` format. Set it together with `models` to get both the server's list and your own entries. Set it to `false` to turn off model discovery | | `disabled` | - | Turn the provider off without deleting it. Its models leave the picker and Empryo stops contacting it | | `reasoning` | - | Settings for thinking models, including `auto` (see below) | | `extraBody` | - | JSON added to every chat request to this provider (see below) | | `structuredOutputs` | - | Default `true`. Set to `false` if your server rejects `json_schema` responses (see below) | ## Servers that only speak the Responses API Some gateways serve newer OpenAI models only on `/v1/responses` and answer `/chat/completions` with an error such as "does not support /v1/chat/completions, please use /v1/responses". With `api` left out, Empryo reads that error, resends the request to `/responses`, and keeps that model on `/responses` until the app restarts. To skip the first failed request, or for a gateway that says it differently, set `api` to `responses`: ```json { "providers": [ { "id": "my-gateway", "baseURL": "https://gateway.example.com/v1", "envVar": "MY_GATEWAY_KEY", "api": "responses" } ] } ``` When one gateway mixes both, set `api` per model instead: `"models": [{"id": "gpt-5.6-sol", "name": "GPT-5.6 Sol", "api": "responses"}, "glm-4.6"]`. A model's own `api` wins over the provider's. Set `api` to `chat` to turn the switch off. ## Servers that reject JSON Schema Some Empryo features, such as code review and planning, ask the model for an answer in a fixed format. They send that format as `response_format: {"type": "json_schema", ...}`. Most OpenAI-compatible servers accept this. Some older vLLM and llama.cpp versions, and some self-hosted gateways, only accept `{"type": "json_object"}`. For those servers, set `structuredOutputs: false`: ```json { "providers": [ { "id": "homelab", "baseURL": "http://192.168.1.40:8000/v1", "structuredOutputs": false } ] } ``` Empryo then sends `json_object` and describes the format in its instructions to the model. This is less reliable, but it works. Only change this setting if your server rejects a request and mentions `response_format`. ## Declare model limits Empryo cannot tell how large a self-hosted model's context window is. If you do not declare it, Empryo assumes **128k tokens**. If your model is smaller, the server rejects requests long before Empryo decides to compact the conversation, and it looks as if compaction is broken. Declare the real limits for each model: ```json { "providers": [{ "id": "local", "baseURL": "http://localhost:8080/v1", "models": [ { "id": "qwen-32k", "name": "Qwen 32k", "contextWindow": 32768, "maxOutputTokens": 4096 } ] }] } ``` - `contextWindow` sets the size of the context meter and when automatic compaction starts. - `maxOutputTokens` sets how much room Empryo keeps for the model's reply. - If your server's `/v1/models` endpoint reports a window size, Empryo uses that value. Your declared value is the fallback. - To override one model without editing the provider, add `"contextWindowOverrides": { "local/qwen-32k": 32768 }` at the top level of your config. ## More examples **Local server (no key)** ```json { "providers": [{ "id": "local", "name": "Local LLM", "baseURL": "http://localhost:8080/v1", "models": ["llama-3-70b"] }] } ``` **Company gateway with a model list from the server** ```json { "providers": [{ "id": "corp", "name": "Corp Gateway", "baseURL": "https://llm.internal.corp.com/v1", "envVar": "CORP_LLM_KEY", "modelsAPI": "https://llm.internal.corp.com/v1/models" }] } ``` **Several providers at once** ```json { "providers": [ { "id": "together", "baseURL": "https://api.together.xyz/v1", "envVar": "TOGETHER_API_KEY", "models": ["meta-llama/Llama-3-70b"] }, { "id": "cerebras", "baseURL": "https://api.cerebras.ai/v1", "envVar": "CEREBRAS_API_KEY", "modelsAPI": "https://api.cerebras.ai/v1/models" } ] } ``` ## Thinking and reasoning Some models can think before they answer. To turn that on over an OpenAI-compatible API, add a `reasoning` block. Providers expect different fields, so use the style yours accepts: ```json { "providers": [{ "id": "dashscope", "baseURL": "https://dashscope.aliyuncs.com/compatible-mode/v1", "envVar": "DASHSCOPE_API_KEY", "models": ["qwen-plus"], "reasoning": { "enabled": true, "budget": 8192 } }] } ``` | Style | Fields | When to use it | |-------|--------|----------------| | OpenAI | `effort: "low" \| "medium" \| "high" \| "xhigh" \| "none"` | Reasoning models behind an OpenAI-compatible API | | DashScope | `enabled: true`, `budget: 8192` | Alibaba Qwen and DashScope APIs | | Raw | `extraParams: { ... }` | Anything else. Empryo sends these fields exactly as written | | Automatic | `auto: true` | You do not want to work out which fields your provider needs (see below) | Empryo adds these fields to every request. If a field in `extraParams` has the same name as another field, `extraParams` wins. ### `auto` - let Empryo pick the body Without a `reasoning` block, Empryo does not ask your API for any thinking. A reasoning model then thinks at whatever level the server defaults to, and you may never see it. If you do not know which fields your server expects, turn on `auto`: ```json { "providers": [{ "id": "my-gateway", "baseURL": "https://llm.internal.corp.com/v1", "envVar": "MY_GATEWAY_KEY", "reasoning": { "auto": true } }] } ``` Empryo then looks up each model in the [models.dev](https://models.dev) catalog. It sends the standard OpenAI-style reasoning setting **only** for models the catalog lists as reasoning models, and only at effort levels the catalog says the model supports. Where the vendor has its own on/off switch, Empryo sends that too (`enable_thinking` for Qwen, `thinking: { type }` for GLM and Kimi). Models the catalog does not know, or lists as non-reasoning, get no extra fields. `auto` is **off by default**. Providers without it behave exactly as before. If you also set `effort`, `enabled`, `budget`, or `extraParams`, Empryo uses those and ignores `auto`. `/effort` and `--effort` still work either way. An effort level you choose beats the automatic one. Try `auto` when your provider serves a reasoning model and you never see any thinking. ### Which effort levels a model offers The effort control (`/effort`, `Alt+E` in the terminal, the desktop effort menu and its shortcut) shows the levels the [models.dev](https://models.dev) catalog lists for a model. A model the catalog does not know has no levels to show. Declare them yourself with `efforts`, per model or for the whole provider: ```json { "providers": [{ "id": "my-proxy", "baseURL": "https://llm.internal.corp.com/v1", "envVar": "MY_PROXY_KEY", "models": [ { "id": "qwen3-max", "name": "Qwen3 Max", "efforts": ["low", "high"] }, "deepseek-v4" ], "reasoning": { "efforts": ["low", "medium", "high"] } }] } ``` A model's own `efforts` wins. Models without one use `reasoning.efforts`. Allowed levels are `none`, `minimal`, `low`, `medium`, `high`, `xhigh` and `max`. Provider default is always offered, and Off is offered when the list has `none` or `minimal`. A tab you have not set starts on `medium`, or the nearest level above it. If a level you picked earlier is not in the new list, Empryo sends the nearest one the model has. If Empryo can't use a list, for example `"efforts": "high"` instead of `["high"]`, a level it doesn't know, an empty list or a level listed twice, it names the list and where it is, such as `providers[0].models[0].efforts`, and ignores it. The model then uses `reasoning.efforts` or the default levels. ### How `effort` is sent By default, `effort` is sent as the flat OpenAI field, `{ "reasoning_effort": "high" }`, which every OpenAI-compatible API understands. If your server expects the nested OpenRouter format, set `effortStyle`: ```json { "reasoning": { "effort": "high", "effortStyle": "nested" } } ``` | `effortStyle` | Sends | |---|---| | `"flat"` *(default)* | `{ "reasoning_effort": "high" }` | | `"nested"` | `{ "reasoning": { "effort": "high" } }` | | `"both"` | both fields | Only use `"both"` if your server really needs it. Strict servers reject a request that contains both fields, with an error like *"Pass either `reasoning` (nested object) or `reasoning_effort` (flat field), not both."* ## Extra request-body parameters Some APIs turn on a feature through a field in the request, not through a tool. DashScope reads `enable_search`, Zhipu reads `web_search`, and your own gateway may read whatever you built it to read. `extraBody` adds the JSON you write to every chat request sent to that provider. ```json { "providers": [{ "id": "dashscope", "baseURL": "https://dashscope.aliyuncs.com/compatible-mode/v1", "envVar": "DASHSCOPE_API_KEY", "models": ["qwen-plus"], "extraBody": { "enable_search": true } }] } ``` The desktop app has the same field in its provider dialog, below Models. It checks your JSON as you type and only lets you save valid JSON. Empryo adds these fields last, so they replace any field with the same name. If your API rejects a field, the whole request fails. Empryo does not silently drop it. `reasoning.extraParams` is different. It is meant for thinking settings, so Empryo stops sending it when effort is Provider default or Off. `extraBody` is sent at every effort level. Put thinking settings in `reasoning.extraParams` and everything else in `extraBody`. To add fields for a built-in provider instead of a custom one, use the [`extraBody` setting](/docs/reference/configuration#extra-request-body-parameters) at the top level of your config, keyed by provider or model id. ## Extra request headers A gateway or proxy in front of a model may want its own headers: a team id, a route, a token of its own. Add them with the top-level [`providerHeaders` setting](/docs/reference/configuration#custom-request-headers), keyed by your provider id or by one of its models. It works the same for built-in providers. ```json { "providerHeaders": { "my-gateway": { "X-Team": "core", "X-Gateway-Key": "{env:MY_GATEWAY_KEY}" } } } ``` On desktop you can add and edit them in **Settings → Provider Options → Custom headers** instead of the JSON. The model picker marks models that send these headers. A header Empryo cannot send (a name with spaces, `Host`, a value that is not text) is skipped with a warning in Events; the rest of the config keeps working. ## Turn a provider off without deleting it To pause a provider, set `"disabled": true` on it, or click its power button in the desktop app's custom provider dialog. Empryo keeps its config, key, and model list, but hides its models and stops contacting it. It stays in the provider list, grayed out, so you can turn it back on with one click. This is handy when a local server is offline and you do not want its models in the picker, or when you switch between two endpoints and want to keep the spare one. ## Scope - **Global**: `~/.empryo/config.json` applies to every project. - **Project**: `.empryo/config.json` applies to one project. A project entry replaces a global entry with the same `id`. ## Name conflicts If your `id` matches a built-in provider (for example `"anthropic"`), Empryo renames yours to `{id}-custom`. It never replaces the built-in one. Custom providers are always marked `[custom]` in `/keys` and `--list-providers`. --- ## Providers Canonical: https://empryo.com/docs/providers/overview > Connect Empryo to a model: save an API key, sign in with a subscription you already pay for, or run a local model. Many providers are supported. A provider is the service that runs the AI model, such as Anthropic, OpenAI, or a model on your own machine. Empryo works with many providers. You need at least one before you can start. There are three ways to connect. Pick the one that matches what you have. ## Quick start ### You have an API key Save it with `--set-key`, using the provider's name: ```bash empryo --set-key anthropic sk-ant-... ``` Then start Empryo, press `Ctrl+L`, and pick a model. That is all. The key is stored in your system keychain. If you prefer, you can also set the provider's usual environment variable (for example `ANTHROPIC_API_KEY`), or add the key in the app: `/keys` in the terminal UI, or **Settings → Accounts & keys** in the desktop app. ### You pay for a subscription (Claude, ChatGPT, Copilot, and others) Run `/login` inside Empryo. A list of accounts opens. Pick yours and follow the browser or device-code prompt. You can also name the account directly: ```bash /login claude # Claude Pro or Max /login codex # ChatGPT /login copilot # GitHub Copilot ``` After you sign in, press `Ctrl+L` and pick a model from that account. See [Subscriptions](/docs/providers/subscriptions) for every account you can sign in to, and the risks involved. ### You want to run models locally Start [Ollama](https://ollama.com) or [LM Studio](https://lmstudio.ai). Empryo finds them automatically. No key is needed. ## Cloud providers Get a key from the provider's site, then save it: | Provider | Setup | Get a key | |----------|-------|-----------| | **Anthropic** | `empryo --set-key anthropic sk-ant-...` | [console.anthropic.com](https://console.anthropic.com) | | **OpenAI** | `empryo --set-key openai sk-...` | [platform.openai.com](https://platform.openai.com) | | **Google** | `empryo --set-key google ...` | [aistudio.google.com](https://aistudio.google.com) | | **xAI** | `empryo --set-key xai xai-...` | [console.x.ai](https://console.x.ai) | | **Groq** | `empryo --set-key groq gsk_...` | [console.groq.com](https://console.groq.com) | | **DeepSeek** | `empryo --set-key deepseek sk-...` | [platform.deepseek.com](https://platform.deepseek.com) | | **Mistral** | `empryo --set-key mistral ...` | [console.mistral.ai](https://console.mistral.ai) | | **NVIDIA NIM** | `empryo --set-key nim nvapi-...` | [build.nvidia.com](https://build.nvidia.com) | | **Fireworks** | `empryo --set-key fireworks ...` | [fireworks.ai](https://fireworks.ai) | | **MiniMax** | `empryo --set-key minimax ...` | [platform.minimaxi.com](https://platform.minimaxi.com) | | **Meta Muse** | `/login meta` or `empryo --set-key meta LLM_...` | [dev.meta.ai](https://dev.meta.ai) | | **Ollama Cloud** | `/login ollama-cloud` or `empryo --set-key ollama-cloud ...` | [ollama.com/settings/keys](https://ollama.com/settings/keys) | | **OpenCode Go** | `empryo --set-key opencode-go ...` | [opencode.ai](https://opencode.ai) | | **OpenCode Zen** | `empryo --set-key opencode-zen ...` | [opencode.ai](https://opencode.ai) | | **GitHub Models** | `empryo --set-key github-models ghp_...` | A GitHub personal access token | ### Meta Muse Meta's Model API serves Muse Wonder (`meta/muse-wonder-1.0`) and Muse Spark (`meta/muse-spark-1.3`) with a 1M-token context, tool calling and reasoning. Create a key in the [Model API dashboard](https://dev.meta.ai). Keys start with `LLM_`. Save it with `/login meta`, `empryo --set-key meta LLM_...`, or set `META_API_KEY` (the variable Meta's own `muse` app reads). Meta's API examples use `MODEL_API_KEY`; Empryo does not read that generic name, so copy it with `export META_API_KEY=$MODEL_API_KEY`. Empryo talks to Meta's Responses API, which keeps the model's reasoning across tool calls, and reads the model list, prices, and effort levels from Meta and [models.dev](https://models.dev). API keys bill per token. To use a Muse Code subscription instead, run `/login muse-code`. See [Subscriptions](/docs/providers/subscriptions#muse-code). ## Gateways: one key, many models A gateway resells models from many vendors behind one key and one bill. | Provider | Setup | Get a key | |----------|-------|-----------| | **LLM Gateway** | `/login` or `empryo --set-key llmgateway ...` | [llmgateway.io](https://llmgateway.io/dashboard?ref=6tjJR2H3X4E9RmVQiQwK) | | **OpenRouter** | `/login openrouter` or `empryo --set-key openrouter sk-or-...` | [openrouter.ai](https://openrouter.ai) | | **Vercel AI Gateway** | `empryo --set-key vercel_gateway ...` | [vercel.com/ai-gateway](https://vercel.com/ai-gateway) | ## Coding plans Some vendors sell a monthly plan for coding tools, with its own endpoint. Each one needs only a key. Empryo reads the model list, context sizes, and prices for these plans from the [models.dev](https://models.dev) catalog. When a vendor adds a model, you can pick it without waiting for an Empryo update. A plan only appears in the model picker after you set its key. | Provider | Plan | Get a key | |----------|------|-----------| | **Z.AI Coding Plan** | GLM coding plan | [z.ai](https://z.ai/manage-apikey/apikey-list) | | **Zhipu Coding Plan** | The same plan, on the mainland China host | [bigmodel.cn](https://bigmodel.cn/usercenter/apikeys) | | **Alibaba Coding Plan** | Qwen coding plan | [bailian.console.alibabacloud.com](https://bailian.console.alibabacloud.com) | | **Alibaba Token Plan** | Qwen, billed per token instead of a flat fee | [bailian.console.alibabacloud.com](https://bailian.console.alibabacloud.com) | | **Xiaomi MiMo** | MiMo token plan | [platform.xiaomimimo.com](https://platform.xiaomimimo.com) | | **Kilo Gateway** | Many vendors behind one key | [kilo.ai](https://kilo.ai) | | **SiliconFlow** | Hosted open-weight models | [cloud.siliconflow.com](https://cloud.siliconflow.com/account/ak) | | **Synthetic** | Flat-rate plan for open-weight models | [synthetic.new](https://synthetic.new) | Save the key like any other: ```bash empryo --set-key zai-coding-plan ... empryo --set-key zhipu-coding-plan ... empryo --set-key alibaba-coding-plan ... ``` Z.AI, Alibaba (both plans), Xiaomi, and Kilo can also be added with `/login`. For Alibaba and Xiaomi, `/login` tests your key against each of the vendor's regional servers and remembers the one that works, so you do not need to know which region you bought. See [Subscriptions](/docs/providers/subscriptions). If you already export the vendor's usual environment variable, Empryo uses it: `ZAI_API_KEY`, `ZHIPU_API_KEY`, `ALIBABA_CODING_PLAN_API_KEY`, `ALIBABA_TOKEN_PLAN_API_KEY`, `XIAOMI_API_KEY`, `KILO_API_KEY`, `SILICONFLOW_API_KEY`, `SYNTHETIC_API_KEY`. ## Local models (free) | Provider | Setup | |----------|-------| | **Ollama** | Found automatically at `localhost:11434`. Set `OLLAMA_HOST` to use another address. | | **LM Studio** | Found automatically at `localhost:1234`. Set `LM_STUDIO_URL` to use another address. | ## Enterprise and subscriptions | Provider | Setup | |----------|-------| | **Amazon Bedrock** | `export AWS_ACCESS_KEY_ID=... AWS_SECRET_ACCESS_KEY=... AWS_REGION=us-east-1` | | **Subscriptions** | Sign in with an account you already pay for: Claude, ChatGPT, Grok, Cursor, Devin, GitHub Copilot, Gemini CLI, Antigravity, Kimi Code, Fire Pass, and more. Run `/login`. No add-on needed. Use at your own risk. See [Subscriptions](/docs/providers/subscriptions). | | **Proxy** | An optional add-on that runs a local relay for Claude, ChatGPT, Gemini, and Grok subscriptions. Install it with `empryo addon install proxy`, then run `/proxy login`. Use at your own risk. See [Proxy](/docs/providers/proxy) and [add-ons](/docs/tools/addons). For Claude and ChatGPT, `/login` is simpler. | ## LLM Gateway LLM Gateway gives you one key for models from many vendors, including Claude, GPT, Gemini, Grok, Llama, and Qwen, with cost tracking. It also offers DevPass, a fixed-price monthly subscription. 1. Type `/login` inside Empryo and choose LLM Gateway. Your browser opens, creates a key, and sends it back to Empryo. You can also get a key at [llmgateway.io](https://llmgateway.io/dashboard?ref=6tjJR2H3X4E9RmVQiQwK) and save it yourself: ```bash empryo --set-key llmgateway sk-... ``` 2. Start Empryo, press `Ctrl+L`, and pick a model. The model picker shows how you are paying: **Pay-as-you-go · account credits** or **DevPass · subscription**. To switch between them, change the key in `/keys`. ### Choose which vendor serves a model LLM Gateway can get the same model from several vendors, and their prices and output limits differ. By default the gateway picks the vendor for you. With a pay-as-you-go key, you can choose it yourself: - **Terminal UI**: in the model picker, a model with several vendors shows `⇌ N`. Press `Ctrl+R` on it. You get `Auto — gateway decides` first, then each vendor from cheapest to most expensive, with its price and output limit. After you pick one, the row reads `via <vendor>`. - **Desktop app**: click the `⇌` button on a gateway model to see the same list. - **Headless**: put the vendor in the model id. ```bash empryo --headless "fix the tests" --model llmgateway/anthropic/claude-opus-5 empryo --headless "fix the tests" --model llmgateway/deepinfra/deepseek-v4-pro ``` `llmgateway/<vendor>/<model>` uses that vendor. `llmgateway/<model>` lets the gateway decide. It is still the same model. Favorites, recent models, pricing, and context size all carry over. The vendor you choose applies to that tab only, so two tabs can use one model through different vendors. Choosing a vendor only works with pay-as-you-go keys. DevPass always lets the gateway decide. ## OpenRouter OpenRouter offers hundreds of models behind one key, including both frontier and open-weight models. The easiest way to connect is to sign in with your browser. There is no key to copy: ```bash empryo # then: /login openrouter ``` Or save a key yourself: 1. Get one at [openrouter.ai/keys](https://openrouter.ai/keys). 2. Save it: ```bash empryo --set-key openrouter sk-or-... ``` 3. Start Empryo, press `Ctrl+L`, and pick a model. Your OpenRouter credit balance appears in `/usage` and in the desktop app's usage page, next to what you have spent. ## Anything else Any API that follows the OpenAI format works as a [custom provider](/docs/providers/custom). You add one block to your config, with no code. Save the key under the `id` you gave the provider: ```bash empryo --set-key together sk-... # `id` from your providers[] entry ``` Run the command again with a second key and Empryo keeps both. When one account runs out of quota, Empryo moves to the next. See [several accounts on one provider](/docs/providers/custom#several-accounts-on-one-provider). ## Switching models Inside Empryo, press `Ctrl+L` to pick a provider and model. To use different models for different jobs, such as a cheap model for searching and a strong one for writing code, use `/router`. From the command line: ```bash empryo --list-providers # see what's configured empryo --list-models anthropic # see available models for one provider ``` --- ## Proxy Canonical: https://empryo.com/docs/providers/proxy > Use Claude, ChatGPT, Gemini and Grok subscriptions through the optional proxy add-on, and read the plan limits and reset times it reports. The proxy is an optional add-on. It runs [CLIProxyAPI](https://github.com/router-for-me/CLIProxyAPI), a local relay on your machine that signs in to your chat subscriptions. Models named `proxy/*` then use those subscriptions instead of API credit. Empryo reads your plan limits from the relay and shows how much is left. For Claude and ChatGPT you usually do not need the proxy. Both can sign in directly with `/login`, with no add-on. See [Subscriptions](/docs/providers/subscriptions). The proxy is still useful for Gemini and Grok subscriptions, and for running several accounts per provider through one relay. > **Warning:** > **Use at your own risk.** The relay sends your subscription credentials to services built for the vendor's own apps. Empryo is not affiliated with Anthropic, OpenAI, Google, or xAI, and none of them has approved this use. > Whether your plan allows it is between you and the vendor. Read your subscription terms before you sign in. Rate limits, revoked sign-ins, and account suspension are all possible. Empryo cannot restore a suspended account. ## Set it up 1. Install the add-on: ```bash empryo addon install proxy ``` 2. Inside Empryo, run `/proxy login` and sign in to each subscription you want to use. 3. Press `Ctrl+L` and pick a `proxy/*` model. Other commands you will use: | Command | What it does | |---------|--------------| | `/proxy status` | Lists the connected accounts | | `/proxy quota` | Fetches your current plan limits | | `/proxy logout` | Signs out of an account | | `/proxy restart` | Restarts the relay | ## The plan meter ``` plan [▰▰▰▰▱] 78% weekly ↺3d ctx [▰▰▰▱▱] 42% ~12k/200k ``` The first line is the plan meter in the status bar. It shows the percentage of your plan you have used, which limit it is (here, the weekly one), and when that limit resets. The line below it is the context meter, which shows how full the conversation is. > **Note:** > This page covers `proxy/*` models. [GitHub Copilot](/docs/providers/copilot#usage-and-quota) has a similar meter, but its allowance resets monthly. Providers you pay per token show dollars in [`/usage`](/docs/concepts/cost-tracking) instead. ## What each account reports Every account behind the relay reports its **health**: whether its sign-in works right now. Some providers also report **usage limits**: how much of a time-based limit you have used. | Report | Providers | What you see | |--------|-----------|--------------| | Health | all | ready, cooling down, disabled, or error, plus success and failure counts | | Usage limits | Claude, ChatGPT (Codex) | percentage used, reset time, and per-model limits | If a provider does not report usage, Empryo says so instead of guessing: ``` ● you@example.com (xai) — ready no quota reported by this provider ``` ## Per-model limits On a Claude subscription, the weekly allowance is not a single number. Anthropic also limits **each model family separately**, on top of the account-wide limits: ``` Subscriptions · proxy ● claude you@example.com ▸ weekly · fable [▰▰▰▰▰▰▰▰▰▰] spent ↺ 3d 5h [▰▰▰▰▰▰▰▱▱▱] 73% ↺ 1h weekly [▰▰▰▰▰▰▰▰▱▱] 78% ↺ 3d ``` In this example, the Fable limit is used up, but Sonnet and Opus are still available. Same account, same week. The `▸` marks the limit that applies to the model you are using right now. When you switch models, the marker moves and the status bar updates right away. > **Tip:** > A used-up limit only moves to the top of the list when it affects your current model. If your Fable limit is used up but you are on Sonnet, Empryo does not warn you. ## Which account pays The relay can rotate between several accounts of the same provider, but never between providers. A `proxy/gpt-5.6` turn always bills your ChatGPT subscription, never your Claude one. | Model | Billed to | |-------|-----------| | `proxy/claude-*` | Claude subscription | | `proxy/gpt-*`, `proxy/*-codex` | ChatGPT (Codex) subscription | | `proxy/gemini-*` | Gemini subscription | | `proxy/grok-*` | xAI subscription | ## Where to see your limits **Terminal** - **Status bar**: the plan meter next to the context meter. - **`/usage`**: every account and every limit, with the one that applies to your model marked. - **`/status`**: the plan meter next to the relay's status. - **`/proxy quota`**: fetches fresh numbers and prints them all. **Desktop** - **Status bar**: click the plan meter to open the proxy page. - **Usage page**: a Subscriptions card with one row per account. - **Proxy page**: a bar for each account, with the limit that applies to your tab's model highlighted. **Headless & chat** - `empryo --headless --proxy-quota` prints your limits and exits. Add `--json` for machine-readable output. - A proxy turn ends with a warning line when a limit is almost used up. ## Warning levels | Used | What you see | |------|--------------| | under 75% | normal | | 75% or more | warning color | | 90% or more, or used up | critical color | | used up | the word `spent` instead of `100%` | ## Refreshing the numbers Vendors limit how often you can ask for usage data, and the numbers change slowly. So Empryo keeps each report for **5 minutes**. Opening a panel shows the saved report. These actions fetch fresh numbers: - `/proxy quota` - the refresh button on the desktop proxy and usage pages - `empryo --headless --proxy-quota` ## Privacy Empryo asks the relay for your usage. The relay adds your sign-in token itself when it contacts the vendor, so the token stays inside the relay and Empryo never sees it. The relay's admin password is created automatically the first time and stored with the proxy settings. ## Troubleshooting **Nothing shows in the status bar** The plan meter only appears for `proxy/*` models with at least one signed-in account. Run `/proxy status`. If no accounts are listed, run `/proxy login`. **Subscriptions unavailable: management API disabled** The relay only answers usage questions when it starts with an admin password. Empryo creates one for you. Run `/proxy restart` so the relay picks it up. **An account shows no limits** This is expected for providers that do not report usage. Health and the success and failure counts still work. Only the percentage bars are missing. **rate limited by Anthropic, retrying later** Anthropic refused the usage request because it came too often. Empryo keeps showing the last report and tries again later. Avoid running `/proxy quota` many times in a row. ## Related - [Subscriptions](/docs/providers/subscriptions): sign in to Claude, ChatGPT, and more without the proxy - [Add-ons](/docs/tools/addons): installing and managing add-ons - [GitHub Copilot](/docs/providers/copilot#usage-and-quota): Copilot's monthly allowance - [Cost tracking](/docs/concepts/cost-tracking): spending on per-token providers - [Providers overview](/docs/providers/overview): every way to connect a model --- ## Subscriptions Canonical: https://empryo.com/docs/providers/subscriptions > Sign in to ChatGPT, Copilot, Cursor, Devin, Gemini, Grok, Kimi and more from Empryo with no add-on. One /login picker, credentials in your keychain. If you already pay for a plan like ChatGPT Plus, you can use it in Empryo instead of buying API credit. Run `/login`, pick your account, and sign in. You do not need to install anything else. Empryo stores the sign-in in your system keychain and renews it when it expires. ## Accounts you can sign in to Most accounts sign in through your browser or with a device code (a short code you type on a web page). A few ask you to paste a key instead. These accounts all appear under one provider, called **Subscriptions**: | Account | How you sign in | Model ids | |---------|-----------------|-----------| | ChatGPT Codex | browser | `subscriptions/gpt-*` | | ChatGPT Codex (device code) | device code | `subscriptions/gpt-*` | | Grok (SuperGrok / X Premium) | browser | `subscriptions/grok-*` | | Grok (device code) | device code | `subscriptions/grok-*` | | Cursor | browser | `subscriptions/cursor/*` | | Devin (Cognition) | browser | `subscriptions/devin/*` | | Gemini CLI (Google Cloud Code Assist) | browser | `subscriptions/google-gemini-cli/*` | | [Antigravity (Google)](/docs/providers/antigravity) | browser, or Google's `agy` CLI | `subscriptions/google-antigravity/*` | | Kimi Code (Moonshot) | device code | `subscriptions/kimi-code/*` | | Muse Code (Meta) | device code | `subscriptions/muse-code/*` | | Fire Pass (Fireworks) | paste a key | `subscriptions/*` | These accounts use the same `/login` list but keep their own provider, because each has its own models and billing: | Account | How you sign in | Model ids | |---------|-----------------|-----------| | GitHub Copilot | device code | `copilot/*` | | GitHub Copilot (Enterprise) | device code on your company's GitHub | `copilot/*` | | OpenRouter | browser, which creates a key for you | `openrouter/*` | | Ollama Cloud | paste a key | `ollama-cloud/*` | | LLM Gateway, LLM Gateway DevPass | browser, which creates a key for you | `llmgateway/*` | | Kilo Gateway | device code | `kilo/*` | | Z.AI Coding Plan | browser, then paste the final page's address back | `zai-coding-plan/*` | | Alibaba Coding Plan | paste a key | `alibaba-coding-plan/*` | | Alibaba Token Plan | paste a key | `alibaba-token-plan/*` | | Xiaomi MiMo | paste a key | `xiaomi/*` | | Meta Model API | paste a key | `meta/*` | Z.AI is the only sign-in that cannot finish on its own. The browser ends on a web page instead of returning to Empryo. Copy that page's address and paste it into Empryo when asked. Some accounts offer the same base models. For example, Gemini CLI and Antigravity both serve `gemini-*` models. To keep them apart, their model ids include the account name (`google-gemini-cli/…`, `google-antigravity/…`). Cursor and Devin work the same way. This way you always know which account pays for a turn. > **Warning:** > **Use at your own risk.** A subscription sign-in is meant for the vendor's own app. Empryo is not affiliated with any of these vendors, and none of them has approved this use. > Whether your plan allows it is between you and the vendor. Read your subscription terms before you sign in. Rate limits, revoked sign-ins, and account suspension are all possible. Empryo cannot restore a suspended account. ## Signing in Run `/login` in the terminal UI or the desktop app. The list shows every account you can sign in to, marks the ones you are already signed in to, and starts the sign-in you pick. ``` Sign in ChatGPT Codex ChatGPT Codex (device code) Cursor Devin (Cognition) GitHub Copilot device code GitHub Copilot (Enterprise) ghe.example.com Grok (SuperGrok / X Premium) Grok (device code) Gemini CLI Antigravity Kimi Code device code Muse Code device code Fire Pass paste key OpenRouter Ollama Cloud paste key LLM Gateway signed in Kilo Gateway device code Z.AI Coding Plan Alibaba Coding Plan paste key Alibaba Token Plan paste key Xiaomi MiMo paste key Meta Muse paste key ``` Each row shows how the sign-in works and which account you are on. A Copilot Enterprise row also shows the GitHub host, so you can tell a company account from a personal one. To skip the list, add the account name: ```bash /login codex # ChatGPT, browser /login codex-device # ChatGPT, device code /login grok # Grok, browser /login grok-device # Grok, device code /login cursor # Cursor, browser /login devin # Devin, browser /login google-gemini-cli # Gemini CLI (Google Cloud Code Assist) /login google-antigravity # Antigravity (Google) /login kimi-code # Kimi Code, device code /login muse-code # Muse Code (Meta), device code /login copilot # GitHub Copilot /login copilot-enterprise # GitHub Copilot on a GHE host /login openrouter # OpenRouter, browser /login firepass # Fire Pass, masked key entry, no browser /login ollama-cloud # Ollama Cloud, masked key entry /login kilo # Kilo Gateway, device code /login zai-coding-plan # Z.AI GLM coding plan, browser then paste the redirect /login alibaba-coding-plan # Qwen coding plan, masked key entry /login alibaba-token-plan # Qwen token plan, masked key entry /login xiaomi # Xiaomi MiMo, masked key entry /login meta # Meta Model API, masked key entry ``` Brand names work too: `/login chatgpt` goes to ChatGPT Codex, `/login xai-oauth` to Grok, `/login zai` and `/login glm` to the Z.AI coding plan, and `/login qwen` to the Alibaba coding plan. For accounts marked "masked key entry", you paste the key into a hidden field (the keys panel in the terminal UI, a password field in the desktop app). You never type it on the command line. Alibaba and Xiaomi sell the same plan in several regions. Empryo tests your key and finds the right region for you. You can also sign in without a UI: ```bash empryo --headless --login codex empryo --headless --login codex --no-browser ``` `--no-browser` prints the sign-in address instead of opening a browser. This helps when you are connected to a machine over SSH. For the paste-a-key accounts, put the key after the name: `empryo --headless --login firepass <key>`. If you pick an account you are already signed in to, Empryo asks before it continues. Signing in again replaces the stored sign-in. ### When the browser cannot reach Empryo Browser sign-ins send you back to a small local web server that Empryo starts on your machine. - **ChatGPT** must use port 1455, because OpenAI only accepts that address. If something else is using port 1455, Empryo tells you before it opens the browser. In that case, or when your browser is on another computer, use the device code instead: ```bash /login codex-device ``` Empryo shows a code. Open `auth.openai.com/codex/device`, type the code, and you are done. No local port is used. ### Remote machines and servers Browser sign-ins need a browser on the same machine as Empryo. Over SSH, in a container, or on a server with no desktop, your browser is somewhere else. You have three options, easiest first: 1. **Use a device code.** ChatGPT (`codex-device`), Grok (`grok-device`), Copilot, Copilot Enterprise, Kimi Code, Muse Code, and Kilo work from any browser on any machine. 2. **Forward the port.** Run `ssh -L 1455:localhost:1455 host` for ChatGPT (54549 for OpenRouter). Then run `/login` on the remote machine and open the printed address on your own computer. 3. **Paste a key.** Fire Pass, Ollama Cloud, and the coding plans accept a key directly. Add `--no-browser` on machines that have no default browser. Empryo stores sign-ins in your system's secret store: the keychain on macOS, the Windows credential protection on Windows, and the secret service on Linux desktops. Most Linux servers have no secret service. There, Empryo uses a file under the config folder that only your user can read. `/keys` shows where each key is stored. ## Where the models show up Every signed-in account appears under the **Subscriptions** provider in the model picker, grouped by account. Model ids look like `subscriptions/gpt-5.6-sol`, `subscriptions/grok-4.2`, or `subscriptions/cursor/composer`. To switch plans, you just pick a different model. Empryo asks each vendor which models your account can use. If the vendor does not answer, it falls back to [models.dev](https://models.dev) data, and then to a built-in list. When you sign out of an account, its models leave the picker. > **Note:** > If you are not signed in to anything, the Subscriptions row still appears and reads `not signed in`. Press Enter on it to open the sign-in list. ## Things to know - The ChatGPT subscription only supports streamed replies. Anything that needs a non-streamed reply fails with a clear error. - Antigravity can also run through Google's official `agy` command-line tool instead of calling Google directly. See [Google Antigravity](/docs/providers/antigravity). ### Muse Code (Meta) `/login muse-code` shows a code. Open `auth.meta.com/oauth/device`, approve it with your Meta account, and Empryo gets a Muse Code key from Meta. Turns then bill to your Muse Code plan (Everyday, High, Power or Maximum Usage) instead of per token. - **Models.** The picker lists the models your plan includes, from Meta's own Muse Code catalog, as `subscriptions/muse-code/<model>`. That covers Muse Wonder, Muse Spark and, on Power and Maximum Usage, Muse Wonder Full. The `-contributor` models are the Contributor mode versions: they give you more usage, and Meta may train on that content. - **Usage.** The 5-hour and weekly windows, with their reset times, show in `/usage` and on the desktop usage page. Empryo asks Meta for them at most every 5 minutes, the same way Meta's own app does. When nothing has run for a while, the 5-hour window reads 0% and the weekly figure holds until its reset. - **Terms.** Meta's terms say the Muse Code key is for Meta's own coding app. Like every account on this page, using it in Empryo is at your own risk. For use Meta fully allows, save a Model API key with `/login meta`. - **Business and Enterprise (MMA) accounts** cannot use the device sign-in. Use `/login meta` with a Model API key. Those keys bill per token. - **Effort** follows the levels Meta lists for each model, usually `minimal` to `xhigh`, with `max` on Muse Wonder and Muse Spark 1.3. Meta rejects "no reasoning" (`none`) on these models, so Empryo sends `minimal` instead. Off sends `minimal` for the same reason. With Provider default, Empryo sends no level and Meta picks its own. - Muse Wonder is not available in South Korea. ## Signing out Run `/login`, pick the account, and choose **Sign out**. This deletes the stored sign-in from your machine. It does not change your account with the vendor. To sign back in, follow the same steps as the first time. ## Subscriptions, proxy, or an API key | | Subscriptions | [Proxy](/docs/providers/proxy) | API key | |---|---|---|---| | Install | nothing | `empryo addon install proxy` | nothing | | Covers | ChatGPT, Copilot, Grok, Cursor, Devin, Gemini, and more | Claude, ChatGPT, Gemini, Grok | every provider | | Where the credential lives | your keychain | the proxy's own files | your keychain | | Accounts per provider | several, with automatic switching | several | one key, or several for [custom providers](/docs/providers/custom#several-accounts-on-one-provider) | | You pay with | your plan | your plan | credit, per token | | Usage display | plan limits | [plan limits](/docs/providers/proxy) | [spend per token](/docs/concepts/cost-tracking) | You can use more than one. They are separate providers with separate sign-ins, and the model id tells you which one runs the turn. ## More than one account Run `/login` again and pick **Add another account**. Both accounts stay signed in, and the list marks the one that will pay for the next turn. One email address can have more than one plan, for example a Team seat and a personal Max plan. Empryo keeps them as two separate accounts. **When a plan runs out, Empryo switches to the next account.** The used-up account waits until its limit resets. The terminal shows which account took over, next to the plan meter. - Only a used-up plan causes a switch. A short "too many requests" error is waited out on the same account. - Limits are tracked per model family. Using up the weekly limit for one model family does not stop the account from serving other models. Empryo also switches before sending a request if it already knows the current plan is used up. That way a long turn does not fail halfway through. You can pick an account by hand at any time from `/login`. The same list lets you switch, add, and sign out of accounts. In the desktop app, **Settings → Models → Accounts** lists every plan you are signed in to with its usage: **Add account** signs in to another account of the same plan, and **Connect a plan** adds one from any other provider. ### A model on a chosen account With two or more accounts on one plan, the model picker also lists each account's models under its own heading, for example **Claude Pro/Max · work@example.com**. A model picked there always uses that account, whichever one is active, so one tab can run on your work plan while workers run on your personal one. The model id carries the account after a `#`: ``` subscriptions/claude-opus-5-5#work@example.com ``` Use that id anywhere a model goes: a tab, a `/router` role, or "dispatch to subscriptions/claude-opus-5-5#home@example.com". A model on a chosen account never switches accounts: if that plan runs out, the request fails instead of moving to another account. Models without `#` keep following the active account as before. ## How much of your plan is left Empryo asks each vendor for your usage, so the numbers match what the vendor's own app shows. That includes the 5-hour limit, the weekly limit, and per-model weekly limits where the plan has them, each with its reset time. | Account | What the meter shows | Unit | |---------|----------------------|------| | ChatGPT Codex | 5-hour and weekly limits | percent | | Gemini Code Assist | per-model daily request limits | percent | | Cursor | Cursor models and other models for the billing month | percent | | GitHub Copilot | premium requests, chat, and completions against your seat's allowance | requests | | OpenRouter | spend against the key's credit limit | US dollars | | Muse Code | 5-hour and weekly limits, checked with Meta at most every 5 minutes and updated by each reply | percent | Keep two things in mind: - **Copilot** counts premium requests, not tokens. If your seat allows extra paid usage, it keeps working past the allowance and GitHub bills you for it. Empryo shows how many extra requests you used and estimates the cost from GitHub's published price per request. GitHub does not report that dollar amount, so Empryo labels it as an estimate. If the price changes, set `EMPRYO_COPILOT_PREMIUM_USD` to the new rate. - **OpenRouter** reports your total spend and, if the key has one, its credit limit. For a key with no limit, Empryo shows the spend without a progress bar. When you use a subscription model, the status bar shows your plan meter in both the terminal and the desktop app. `/usage` lists every limit for every account. The desktop app's usage page shows one card per plan. The per-token costs Empryo shows for subscription models are **estimates** based on token counts and models.dev prices. They are not what you are billed. Your plan meter is the number that matters. ## Troubleshooting **Port 1455 is in use** Only ChatGPT needs that exact port. Close whatever is using it, or run `/login codex-device` instead. **The browser opened but nothing came back** Empryo listens on both IPv4 and IPv6 for the return address. If the page still hangs, close it and use a device-code sign-in instead. **Signed in, but no models** Open `/login` and check the account. A sign-in that has passed its renewal window can still look signed in until the next renewal fails. Sign in again. **Usage credits are required for long context requests** This comes from a model using the 1M-token context option on a subscription. Empryo does not request that option on subscription models, so pick a model with a native 1M-token window instead. **Workspace is not authorized in this region** This happens with a company ChatGPT workspace tied to a region. Sign in again to fix it. ## Related - [Proxy](/docs/providers/proxy): an optional add-on that runs subscriptions through a local relay - [GitHub Copilot](/docs/providers/copilot): setup and usage limits for Copilot - [Google Antigravity](/docs/providers/antigravity): run Antigravity directly or through Google's `agy` CLI - [Providers overview](/docs/providers/overview): every way to connect a model - [Cost tracking](/docs/concepts/cost-tracking): how per-token spending is shown --- ## Quickstart Canonical: https://empryo.com/docs/quickstart > Go from install to your first reviewed change in about five minutes: connect a model, open a project, ask a question, and check the diff. This page gets you from a fresh install to a first reviewed change. [Install Empryo](/docs/installation) first, and use a project you own or trust. ## 1. Connect a model Pick one option. Run the commands below in your own terminal. **Desktop app:** on first launch, a setup card asks you to pick a provider, enter a key or sign in, and choose a model. A default model is already selected. If Empryo finds a key you already have (for example in an environment variable), it skips this card. After that, a short tour shows you the terminal, browser, and codebase map, and then offers a few starter prompts. You can skip the tour. **Terminal UI:** type `/login` to pick an account to sign in with, or `/keys` to manage API keys. **Subscription account** Sign in through your browser. For example, with a Claude subscription: ```bash empryo --login claude ``` For ChatGPT Plus, Pro, or Team, use `empryo --login codex`. If the browser can't reach Empryo on your machine (for example over SSH), use `empryo --login codex-device` to sign in with a code instead. Other accounts you can sign in with include GitHub Copilot, Grok, Cursor, Devin, Google Gemini CLI, Google Antigravity, Kimi Code, OpenRouter, and LLM Gateway. Type `/login` to see the full list. Usage limits depend on your plan and provider. **API key** For example, with an Anthropic API key: ```bash empryo --set-key anthropic YOUR_API_KEY empryo --list-providers ``` Replace `YOUR_API_KEY` on your own machine. Never paste keys into a website or commit them to a repository. Your provider bills API usage separately from any consumer subscription. See [providers](/docs/providers/overview) for other key-based options. **Local model** Install and start [Ollama](https://ollama.com), then download a model that fits your hardware: ```bash ollama pull llama3.3 ``` Keep Ollama running and select its model in Empryo. LM Studio works too. Local models need no API key, but they use your own memory and compute. ## 2. Open a project In a terminal, go to your project and start Empryo: ```bash cd your-project empryo ``` In the desktop app, open the project folder. A project's own `.empryo/config.json` loads as soon as you open it, including providers, MCP servers, hooks and other settings that run code. Read it before you open a repository you did not write. To pick or change the model in the terminal UI, press `Ctrl+L`. Empryo then builds the Genome, its map of your code, in the background. You can send your first prompt right away; the map fills in while you work, and later sessions only update what changed. ## 3. Ask a question ```text Explain the project entry points and cite the relevant files. Do not change anything. ``` Read the answer and open the files it points to. A focused question about a real feature or a failing test is a better start than a broad rewrite. ## 4. Make a small change and review the diff Pick a real issue in your project and ask: ```text Propose the smallest fix for this issue. Explain the plan before editing, then run the relevant tests and show what changed. Do not commit. ``` Review the diff and the test output. Tests can fail, and some checks may not be set up in your project. Commit only when you're happy with the result. ## 5. Change settings by asking You don't need to find a config file. Ask in plain words: ```text Use adaptive thinking, and make the diffs compact for this project only. ``` Empryo checks the current value, writes the change, and tells you what changed and where. Settings for every project go in `~/.empryo/config.json`. Settings for one project go in `.empryo/config.json` inside that project. Most changes apply right away. If a setting only takes effect after a restart, Empryo tells you. You can also ask about Empryo itself: ```text Why does my context keep filling up, and what would you change about my setup? ``` Signing in and adding API keys stay manual on purpose. Use `/login`, `/keys`, or `empryo --set-key`. ## Headless alternative To run a single prompt from a script, go to your project directory after connecting a model and run: ```bash empryo --headless "Explain the project entry points without changing files" --json ``` Run `empryo --list-models` to see model IDs, and add `--model provider/model` to choose one. See [headless workflows](/docs/recipes/headless). ## Next steps - Type `/help` to see commands and shortcuts, or ask the agent what a command does. - Try [task routing](/docs/recipes/task-router) if you want different models for different kinds of work. - Add [MCP servers](/docs/tools/mcp) or [skills](/docs/tools/skills) when a task needs them. - Learn about [checkpoints](/docs/tools/checkpoints), and keep using version control as your backup. --- ## Run from CI or scripts Canonical: https://empryo.com/docs/recipes/headless > Run Empryo without the UI in scripts and CI: pipe in a prompt, get JSON or live events, resume sessions, and fail a pipeline on a review verdict. Headless mode runs the same agent with the same tools, but without the interface. Use it in shell scripts, git hooks, and CI pipelines. ## Run a prompt ```bash # Prompt as an argument empryo --headless "explain the auth middleware" # Prompt from stdin echo "find unused exports" | empryo --headless # One JSON object with the result empryo --headless --json "list all TODOs" # One JSON event per line, while the run happens empryo --headless --events "refactor the store" ``` The agent's answer goes to stdout. Progress lines go to stderr, so you can pipe the answer without extra noise. ## Useful flags | Flag | What it does | |------|--------------| | `--model <id>` | Use a different model for this run | | `--yolo` | Let the agent run commands and edits that would normally need your approval | | `--max-steps <n>` | Stop after this many steps | | `--timeout <ms>` | Stop after this many milliseconds | | `--system "..."` | Add your own instructions | | `--include <file>` | Add a file to the context. Repeatable. | | `--no-genome` | Skip the startup code scan. Faster for quick questions. | | `--diff` | Print the changed files at the end | | `--save-session` | Save the conversation so you can continue it later | | `--session <id>` | Continue a saved session | | `--chat` | Multi-turn chat over stdin | | `--review [what to check]` | Review the changes and exit with the verdict, instead of running a prompt. See [review](/docs/agents/review). | | `--quiet` | Hide the progress lines | See the [CLI reference](/docs/reference/cli) for every flag. ## Approvals in headless mode Nobody is there to click "approve", so by default Empryo **refuses** anything that would normally ask you first, such as destructive commands or writes outside the project folder. The agent is told the action was denied and carries on without it. If the job needs those actions, and you trust the environment it runs in, use `--yolo`: ```bash empryo --headless --yolo "update the lockfile and fix the build" ``` Auto mode was retired. `--mode auto` still works for existing scripts: the run uses default mode with every approval skipped, and Empryo prints a note on stderr asking you to pass `--yolo` instead. The [`approvals`](/docs/reference/configuration#behavior) settings are for the desktop app and the terminal UI. A headless run doesn't read them. Reading a web page never asks there, but work outside the project, destructive commands and requests that send data are refused unless you use `--yolo`. ## Fail a pipeline on a review ```bash # 0 = PASS or nothing changed, 3 = FAIL empryo --headless --review "check the migration for data loss" --quiet ``` A fresh agent reads the changed files. It has not seen the conversation that made them, so it judges the code on its own. If nothing changed, it exits `0` without calling a model. ## CI example ```yaml # .github/workflows/lint.yml - name: Auto-fix lint env: ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} EMPRYO_NO_PROMPT: "1" run: | empryo --headless --max-steps 30 --timeout 180000 --diff \ "run the linter, fix every issue, then typecheck" ``` ## Continue a session ```bash # Step 1: investigate and save empryo --headless --save-session "analyze the auth module and list the issues" # Copy the session id from the output, then: empryo --headless --session <id> --save-session "now fix them" empryo --headless --session <id> "write tests for the fixes" ``` ## Read the event stream ```bash empryo --headless --events "refactor the store" | while read -r line; do type=$(echo "$line" | jq -r '.type') case "$type" in tool-call) echo "→ $(echo "$line" | jq -r '.tool')" ;; done) echo "done in $(echo "$line" | jq -r '.duration')ms" ;; esac done ``` Ignore event types you do not handle. [Headless & output](/docs/surfaces/headless#events---events) lists every event and its fields, and the [exit codes](/docs/surfaces/headless#exit-codes). ## What is different from the interactive app - No interface, editor panel, or splash screen. - Actions that need approval are refused unless you use `--yolo`. - You cannot send messages to the agent during the run, except in `--chat` mode. ## Tips for CI - Store API keys as CI secrets and pass them as environment variables. - Always set `--max-steps` and `--timeout` so a stuck run cannot use up your budget. - Set `EMPRYO_NO_GENOME=1` to skip the code scan on small jobs. - Set `EMPRYO_NO_PROMPT=1` so the first-run add-on prompt never waits for input. --- ## Model fallback chains Canonical: https://empryo.com/docs/recipes/model-fallback > Give each model a list of backups so Empryo switches to another model when a provider is overloaded, rate-limited, or timing out, and your session keeps going. When a provider is overloaded, rate-limits you, or returns server errors, Empryo can switch to a backup model and keep working. You set the backups per model: each model you use can have its own ordered list. ## Set it up in the app In the terminal app, open the router: ``` /router ``` Scroll to **Model Fallback**. Each model you use, your default model plus every model in the [task router](/docs/recipes/task-router), has its own row. Press <kbd>Enter</kbd> to add a backup, or <kbd>d</kbd> to clear the list. In the desktop app, the backup lists are in **Settings → Agent behavior**. Changes save immediately. ## Or edit the config ```json { "defaultModel": "anthropic/claude-sonnet-4-5", "modelFallback": { "anthropic/claude-sonnet-4-5": [ "openrouter/anthropic/claude-sonnet-4.5", "openai/gpt-5" ], "anthropic/claude-haiku-4-5": [ "google/gemini-2.5-flash" ] } } ``` Each key is a model id. Its value is the list of backups, tried in order. ## What happens when a model fails 1. **Retry first.** Empryo retries the same model a few times (3 by default), waiting a little longer each time. 2. **Switch.** If it still fails, Empryo moves to the next model in the list. A message in the chat says `Switched to fallback model: …`, and the header shows the new model. 3. **Start over.** If every backup fails, Empryo goes back to the first model and tries the whole list again, up to 3 rounds. After that it shows the original error. 4. **You can always stop it.** `Ctrl+X` stops immediately, wherever it is in the list. Models that have failed recently are tried later, so a provider that is down does not slow down every request. ## Which errors trigger a switch **Temporary errors** trigger a retry and then a switch: - HTTP `408`, `429`, and any `5xx`, including overload errors such as `529`. - Quota messages that come without a status code, such as "credit balance is exhausted". - Network problems: timeouts, refused or reset connections, DNS failures, and streams that close early. **Your own internet dropping** is not a model failure. When a request fails to connect and this computer cannot reach the internet either, Empryo says so in the chat, waits until the connection is back, and continues the same turn on the same model: no retries are used up, no fallback model is picked, and the model is not marked as failing. Stop ends the wait at once. After 30 minutes offline in one turn it stops waiting and falls back to the steps above. It does not wait when you use an HTTP proxy, when the model server runs on this computer, or when the connection was refused. **Permanent errors** are shown right away, with no retry: - `401`, and `403` unless the message is about rate limits or overload. These mean the key or account is wrong. - Other `4xx` errors, such as `400` (bad request), `404` (unknown model), or `422`. These mean the request itself is wrong, so another model would not help. ## Tune the retries ```json { "retry": { "maxTransientRetries": 3, "maxStallRetries": 3, "baseDelayMs": 1000 } } ``` - `maxTransientRetries`: retries on the same model before switching. 1 or more. - `maxStallRetries`: retries when a response stops arriving. Only used when the stall watchdog is on (`/timeouts`). 1 or more. - `baseDelayMs`: how long to wait before the first retry. The wait doubles each time, with some randomness. 250 to 60000 ms. The older `maxAttempts` field still works as a default for both retry counts. You can also change these with `/retry` or in Settings, which offer 1 to 10 retries and a base wait up to 10 seconds; for more, edit the config or ask the agent. ## Good uses - **Overloaded provider.** When Claude returns `529 overloaded`, fall back to the same model through a gateway such as `openrouter/…` or `llmgateway/…`. - **Separate quotas.** Pair a direct Anthropic key with a gateway account, so hitting one limit does not stop you. - **Outages.** Mix providers (`anthropic/…`, `openai/…`, `google/…`) so one provider's outage does not end your session. ## What it does not do - **Switch to save money.** Fallback reacts to failures, not cost. Use the [task router](/docs/recipes/task-router) to send work to cheaper models. - **Handle stalls.** If a response just stops without an error, the stall watchdog retries on the same model. Fallback only reacts to errors. - **Retry permanent errors.** A bad key, a malformed request, or an unknown model is shown right away. --- ## Plan before you code Canonical: https://empryo.com/docs/recipes/plan-mode > Use Empryo's plan mode for changes across many files: the agent researches first, writes a plan for you to review, and waits for your approval before editing. For a change that touches more than two or three files, ask for a plan first. In plan mode the agent researches your code and is told not to change it. It writes a plan, waits for you to review it, and only starts editing after you approve. Plan mode keeps every tool, so research can run `git log` or a script. Not editing is an instruction to the agent, not a lock: the usual approval prompts for destructive shell commands and for writes outside the project still apply. ## Start a plan Give the task straight to `/plan`: ``` /plan refactor the auth module to use JWT refresh tokens ``` Or turn plan mode on, then describe the task as a normal message: ``` /plan ``` `/plan` with no task turns plan mode on or off. `/session plan` does the same, and `/mode plan` switches the mode directly. ## Review the plan When the plan is ready, Empryo shows it and asks what to do: - **Implement**: the agent starts carrying out the plan, step by step. Progress shows next to the chat. - **Clear & Implement**: the same, but the research conversation is cleared first, so the agent starts with only the plan. Useful when the research used a lot of context. - **Revise**: type what should change, and the agent rewrites the plan. In the terminal app, `/plan open` opens the plan workspace, where you can see the steps, the full document, the files in scope, and your feedback. ## Revise a plan while work is running The plan workspace keeps the steps, affected files, verification checks and revision history together. Add a point or comment on a specific step without starting another conversation. | When you send feedback | What happens | |---|---| | The agent is executing | The engine delivers the feedback through the steering queue for the agent to read as it continues | | The plan is awaiting review | The agent receives a revision request, not approval to implement | | No turn is running | Feedback stays with the plan; you can deliver it when you continue | Draft feedback stays separate until you send it. A comment requests a change; it does not directly rewrite a running tool call. ## Light and full plans - **Light plan**: a checklist of steps, files, and notes. Quick to write, and the agent reads the files again as it works. - **Full plan**: includes code snippets and before/after diffs, so it stands on its own. Takes longer, but is safer for large refactors. The agent chooses based on the task. To choose yourself, say so in the prompt, for example "make a detailed plan". ## When to use it For a small fix, a plan is extra work. For a change across many files, a plan lets you catch a wrong approach before any file changes, which is cheaper than undoing a long editing session. ## Plans are saved Plans are saved in your project under `.empryo/plans/`, so they are still there after a restart. --- ## Rename & refactor Canonical: https://empryo.com/docs/recipes/rename-refactor > Rename a symbol in every file, move symbols and files without breaking imports, extract functions, and clean up imports, all by asking Empryo in plain words. You can ask for common refactors in plain words. Empryo uses your project's language server (the same one your editor uses) to make the change in every affected file, so you do not have to find and fix each reference yourself. ## Rename a symbol everywhere ``` > rename UserService to AccountService ``` The agent renames the symbol and updates every reference in one step. It works for functions, classes, types, interfaces, variables, and enums. You do not need to say which file it is in. ## Move a symbol to another file ``` > move parseConfig from src/utils.ts to src/config/parser.ts ``` The agent moves the code and updates every import that used it. This works for TypeScript, JavaScript, Python, Rust, and Go. ## Move or rename a file ``` > rename src/old-name.ts to src/utils/new-name.ts ``` The agent moves the file and updates every file that imports it. ## Extract a function or variable ``` > extract lines 42-58 of handler.ts into a function called validateInput ``` The selected code becomes a new function, with the parameters and return value it needs. You can extract an expression into a variable the same way. ## Clean up imports ``` > clean up imports in src/api.ts ``` Sorts imports, removes duplicates, and removes imports that are not used. ## Tips - Before a large rename, run `/lsp status` to check that a language server is running for your language. `/lsp install` adds one if it is missing. - If several symbols share the same name, mention the file so the agent changes the right one. - Empryo saves a checkpoint before each change. Press `Ctrl+B` to go back if you do not like the result. --- ## Use multiple models Canonical: https://empryo.com/docs/recipes/task-router > Choose models and reasoning effort for research, coding, reviews and multi-agent workflows. Set defaults for each job or give specialists their own models. Choose which model handles each kind of work: research, implementation, review, advice or workflow coordination. Set reasoning effort where supported. Delegation still happens automatically; these assignments do not require you to choose a helper for every task. For named specialists, define [custom agents](/docs/tools/agents). For a planner, executor, parallel reviewers and an arbiter, use a [multi-agent workflow](/docs/agents/workflows). Individual agent and judge steps can specify their own model and effort. ## Ask the agent to set it up You can describe what you want: *"put the summaries and the tab names on the cheapest model that can do them."* The agent looks up models with their published prices (in US dollars per million tokens, for input, output, and cached tokens where available) and updates the router for you: ```text haiku · 200k ctx · in $1 / out $5 / cache-r $0.1 / cache-w $1.25 ``` Prices come from the provider's own list or from [models.dev](https://models.dev). If a model has no published price, the agent says so instead of guessing. These are list prices: they do not include your discounts, taxes, or subscriptions where tokens are not billed. The agent changes one slot at a time and leaves the rest of your setup alone. ## Set it up in the terminal app ``` /router ``` Pick a model for each job in the list. ## Set it up in the desktop app Click **Routing** in the chat or the toolbar to open the routing panel. It stays open when you switch tabs, and each tab keeps its own setup. - **Main agent** is the model that answers your messages. - **Dispatch** covers the helper agents that research and edit for the main agent, including the switches for the cleanup pass and code review. - If a model supports reasoning effort, you can set it next to the model. - **Save to this tab** saves the models, effort levels, switches, and the limit on parallel agents for this tab. Finish or stop the current reply first. - **Apply to all tabs…** copies this setup to your other open tabs, after asking you. It does not change your defaults or future tabs. Busy tabs are skipped, and you can retry them afterwards. Backup models and other shared settings are in **Settings → Agent behavior**. Up to 16 helper agents can run at once by default. Choose **Unlimited** to remove that limit (`maxConcurrentAgents: 0` in the config). Your provider's rate limits and your machine's memory still apply. ## Effort by mode Each mode can think harder or lighter than your normal chat. Set **Effort by mode** in `/router` (select a mode and press `e` or Enter), in the desktop routing panel, or in the iPhone app's routing list. A mode left on **Chat effort** uses the tab's chat effort. Plan, Auto and Lite each have a row; the effort applies to the chat model while a tab is in that mode. ```json "taskRouter": { "efforts": { "plan": "high", "auto": "medium" } } ``` - Switching a tab into Plan uses `high`; switching back uses your chat effort again. - Changing effort while a tab is in a mode that has its own effort (`Alt+E`, `/effort`, the effort pill) changes that mode's effort for this tab only. - A one-run `--effort` flag in headless mode still wins. Or ask Empryo: "use high effort in plan mode" sets `taskRouter.efforts.plan`. ## Or edit the config In `~/.empryo/config.json`: ```json { "taskRouter": { "spark": "anthropic/claude-haiku-4-5", "ember": "anthropic/claude-sonnet-4-5", "explore": "anthropic/claude-haiku-4-5", "webSearch": "anthropic/claude-haiku-4-5", "desloppify": "anthropic/claude-haiku-4-5", "verify": "anthropic/claude-haiku-4-5", "goalReview": "anthropic/claude-sonnet-4-5", "review": "anthropic/claude-sonnet-4-5", "compact": "google/gemini-2.5-flash", "semantic": "anthropic/claude-haiku-4-5", "default": null } } ``` ## Configuration reference These are configuration keys, not a fixed roster of agents. The `spark` and `ember` keys name the internal research and editing defaults; you do not select those names to dispatch work. | Slot | Used for | Good choice | |------|----------|-------------| | `spark` | Helper agents that read and research your code | Fast and cheap (Haiku, Flash) | | `ember` | Helper agents that edit files | A strong coding model (Sonnet, Opus) | | `explore` | The single `explore` agent. Uses `spark` if unset. | Fast and cheap | | `webSearch` | Web search | Fast and cheap | | `desloppify` | The cleanup pass after edits | Fast and cheap | | `verify` | The check after edits | Mid-range | | `goalReview` | The reviewer in the [goal loop](/docs/agents/goal-loop) | Mid-range or strong | | `review` | `/review`. Uses `goalReview` if unset. | Mid-range or strong | | `compact` | Summarizing old context when the conversation gets long | Fast and cheap (Flash works well) | | `semantic` | One-line summaries of your code for the Genome, Empryo's code index | Fast and cheap | | `advisor` | A second opinion on the current task | A model with a different perspective | | `duck` | A separate conversation without repository access | Your preferred conversational model | | `council` | Seats in a multi-model discussion | Models with complementary strengths | | `orchestrate` | Designs and coordinates workflows | A strong planning model | | `node` | Agent steps in a workflow | Match the work being assigned | | `judge` | Review steps in a workflow | A strong independent reviewer | | `routine` | Scheduled runs | Match the scheduled task | | `namer` | Tab names | A fast model | | `marionette` | Finds relevant code before a turn | A fast research model | | `default` | Any job without its own slot, and the model a new tab opens on | | When `default` is set, a new tab opens on it rather than on the model of the tab you came from, on the desktop and on the phone. Saving a default model (`/model` with a saved scope, Settings, or the `settings` tool) moves `default` to the same model, so the two never disagree. Picking a model for one tab leaves `default` alone. Some jobs inherit another job first, such as review and workflow judges. See the [helper fallback table](/docs/tools/side-agents#where-the-models-come-from). General jobs fall back to `default`, then the model you are chatting with. Leaving `spark` empty can be the cheaper choice. It then uses the same model as your chat, which lets it reuse the provider's prompt cache. A cheaper model has to start without that cache, which can cost more than it saves. Compare your costs in `/usage` before and after you change it. If a slot names a model that cannot be found, Empryo uses the chat model instead of failing. ## Example setups **Balanced** A strong model for code, cheap models for everything else. ```json "spark": "anthropic/claude-haiku-4-5", "ember": "anthropic/claude-sonnet-4-5", "compact": "google/gemini-2.5-flash" ``` **Budget** Haiku for research and code. Good enough for many everyday tasks. ```json "spark": "anthropic/claude-haiku-4-5", "ember": "anthropic/claude-haiku-4-5", "compact": "google/gemini-2.5-flash" ``` **Same model for both jobs** Sonnet for both code and research. ```json "spark": "anthropic/claude-sonnet-4-5", "ember": "anthropic/claude-sonnet-4-5", "compact": "google/gemini-2.5-flash" ``` **One gateway** The same models through LLM Gateway, with a single key. ```json "spark": "llmgateway/claude-haiku-4-5", "ember": "llmgateway/claude-sonnet-4-5" ``` ## Why this saves money Much of an agent's work is reading: opening files, searching, and following references. That work rarely needs your strongest model. Sending it to a cheaper model keeps your strong model for the part that matters most, writing the code. --- ## Test, lint, commit Canonical: https://empryo.com/docs/recipes/test-and-commit > Ask Empryo to run your tests, linter, and type checker with the right commands for your project, fix what fails, and commit the result with a clear message. You do not need to tell Empryo which commands your project uses. It detects your toolchain from the project files and runs the right test, lint, typecheck, and build commands. ## Run your tests ``` > run tests ``` Empryo recognizes many toolchains, including Bun, npm, pnpm, Yarn, Deno, Cargo, Go, Gradle, Maven, .NET, Swift, Dart and Flutter, Elixir (mix), and Zig. To run only some tests: ``` > run only the auth tests ``` ## Lint and fix ``` > lint and fix everything ``` Empryo runs your linter, such as Biome, ESLint, oxlint, Ruff, Clippy, or golangci-lint, with its auto-fix option where the linter has one. The agent then fixes what is left by hand. ## Typecheck ``` > typecheck ``` Empryo runs your project's type checker, for example `tsc --noEmit` for TypeScript or `cargo check` for Rust. ## Commit Ask in the chat: ``` > commit my changes ``` The agent reads the diff, writes a commit message that describes the change, and commits. If you want to check the message first, say so: "show me the commit message before you commit". You can also commit yourself: press `Ctrl+G` to open the git menu, or type `/git commit`. A good habit is to ask for everything in one go: ``` > run the tests and typecheck, fix anything that fails, then commit ``` ## Co-author line To mark commits the agent makes, turn on the co-author line: ``` /git co-author ``` When it is on, commits made by the agent end with: ```text Co-Authored-By: Empryo <noreply@empryo.com> ``` Run the command again to turn it off. The setting is `coAuthorCommits` in your [configuration](/docs/reference/configuration). ## The `project` tool All of the above uses the agent's `project` tool. You never have to call it yourself, but this is what your requests turn into: | You ask | The agent runs | |---------|----------------| | "run tests" | `project(action: "test")` | | "run the auth tests" | `project(action: "test", file: "auth")` | | "build" | `project(action: "build")` | | "lint and fix" | `project(action: "lint", fix: true)` | | "typecheck" | `project(action: "typecheck")` | | "what packages are in this monorepo?" | `project(action: "list")` | In a monorepo, the agent runs the command in the package that owns the file it is working on. See the [project tool](/docs/tools/project) for the full list of supported toolchains. --- ## CLI reference Canonical: https://empryo.com/docs/reference/cli > Every empryo command-line flag, subcommand, exit code, and environment variable, for the terminal app and for headless runs in scripts and CI. The `empryo` command starts Empryo. Run it with no arguments inside a project to open the interactive [terminal app](/docs/surfaces/tui). Add `--headless` and a prompt to run a task [without the UI](/docs/surfaces/headless), for example in a script or a CI job. The short alias `em` works everywhere `empryo` does. ```bash Synopsis empryo [prompt] [flags] empryo <subcommand> [args] # addon, presets, doctor, lsp ``` Any argument that does not start with `--` becomes part of the prompt. ## Common flags | Flag | Value | What it does | |------|-------|--------------| | `--headless` | | Run without the UI and print the result to stdout. See [headless](/docs/surfaces/headless). | | `--model` | `provider/model` | Use this model for this run only. | | `--mode` | `<mode>` | Start in a mode: `default`, `plan`, `lite`, `duck`, `orchestrate`. `auto` was retired and now means default mode with `--yolo`. | | `--yolo` | | Skip every approval for this run. | | `--profile` | `<name>` | Start with a [profile](/docs/tools/profiles#start-with-a-profile). In the terminal app every new tab in that window starts with it; in a headless run it applies to the run. A name that does not exist stops the launch. | | `--no-profile` | | Start plain, ignoring the default profile set with `/profile default`. | | `--agent` | `<name>` | Run as one of your [custom agents](/docs/tools/agents). Same as `--profile`. | | `--effort` | `<level>` | Reasoning effort, such as `low`, `medium`, or `high`. Levels the model does not support are rejected. | | `--session` | `<id>` | Resume a saved session. A short prefix of the id is enough. Aliases: `--resume`, `-s`. | | `--save-session` | | Save the session when a headless run finishes, so you can resume it. | | `--session-id` | `<id>` | Start a new session with this id, so a terminal host knows the id before any hook fires. Letters, digits, `-` and `_`; a UUID works. Fails if the id is taken. | | `--fork` | `<id>` | Start a new session that copies a saved one. The original is left untouched. Combine with `--session-id` to choose the new id. | | `--cwd` | `<dir>` | Run as if you had started Empryo in this folder. | | `--locale` | `<tag>` | Interface language for this run, such as `ja`, `zh-Hans`, or `ar`. | | `--version`, `-v` | | Print the version and exit. | | `--help`, `-h` | | Print usage and exit. | ## Prompt and context | Flag | Value | What it does | |------|-------|--------------| | `--system` | `"…"` | Add your own instructions to the system prompt. | | `--include` | `<file>` | Add a file to the context before the run. Repeat for more files. Images are attached as images. | | `--image` | `<file>` | Attach an image. Repeatable. | | `--skill` | `<name>` | Load a [skill](/docs/tools/skills). Installs it first if needed. Repeatable. | | `--voice` | | Record the prompt from your microphone. Needs a terminal. The transcript is added to any typed or piped prompt. See [voice input](/docs/surfaces/voice-input). | | `--no-genome` | | Skip the Genome scan for this run. The Genome is Empryo's index of your code. Skipping it makes quick questions start faster. | | `--bare` | | Run without project context. Also skips the Genome scan. | | `--marionette` | | Experimental. Before the run, map which files matter for the prompt. See [the Marionette](/docs/concepts/marionette). | | `--marionette-mode` | `<lane>` | How hard that step looks: `none`, `fast`, `assist`, or `deep`. `--marionette-fast` is short for `fast`. | | `--marionette-model` | `<id>` | Model for that step. `--marionette-max-steps <n>` limits its steps. | ## Limits | Flag | Value | What it does | |------|-------|--------------| | `--max-steps` | `<n>` | Stop after this many agent steps. | | `--timeout` | `<ms>` | Stop after this many milliseconds. Exits with code `2`. | ## Headless output These apply with `--headless`. | Flag | What it does | |------|--------------| | `--json` | Print one JSON object with the result when the run ends. | | `--events` | Print one JSON event per line while the run happens. See [the event types](/docs/surfaces/headless#events---events). Every model call is a `model-call` event with `lane` and `effort`. | | `--diff` | Print the list of changed files at the end. | | `--quiet`, `-q` | Hide the progress lines at the start and end. | | `--render` / `--no-render` | Turn Markdown formatting of the output on or off. It is on by default when the output is a terminal. | | `--chat` | Multi-turn chat over stdin. The session is saved when you exit. | ## Review and goal loops | Flag | Value | What it does | |------|-------|--------------| | `--review` | `[what to check]` | Have a fresh agent review this session's edits, or your uncommitted changes, and exit with the verdict. The description is optional. Exit codes: PASS `0`, FAIL `3`. | | `--loop` | `"<goal>"` | Run a [goal loop](/docs/agents/goal-loop): the agent works, a separate reviewer checks, and it repeats until the goal passes. | | `--max-iterations` | `<n>` | Maximum rounds for `--loop`. Default `5`. | | `--routines` | | Run this repository's [scheduled routines](/docs/tools/routines) until you press Ctrl+C. | | `--replay` | `<path>` | Write an HTML timeline of a run's [computer use](/docs/tools/computer-use) to this path. | ## Accounts and keys These print something and exit without starting a session. | Flag | Value | What it does | |------|-------|--------------| | `--set-key` | `<provider> <key>` | Save an API key. | | `--list-providers` | | List every provider and whether it has a key. | | `--list-models` | `[provider]` | List models for one provider, or for every provider with a key. | | `--login` | `<account>` | Sign in to a subscription or gateway account. Accepts the same account ids as [`/login`](/docs/reference/commands#sign-in-options), such as `claude`, `codex`, or `copilot`. For Copilot on an enterprise GitHub, add the host: `--login copilot octocorp.ghe.com`. See [subscriptions](/docs/providers/subscriptions). | | `--no-browser` | | With `--login`, print the sign-in link instead of opening a browser. | | `--proxy-quota` | | Show the plan limits for each [proxy](/docs/providers/proxy) account. | | `--capabilities` | `[model]` | Show which [provider tools](/docs/context/provider-tools) a model can use (computer use, code execution, text editor, web search), and why a tool is unavailable. Uses your default model if you leave it out. | ## Setup | Flag | Value | What it does | |------|-------|--------------| | `--wizard` | | Run the first-time setup wizard. | | `--presets` | | Open the [presets](/docs/reference/presets) wizard, then exit. | | `--plugin` | `<spec>` | Load a [preset](/docs/reference/presets) for this launch. Repeatable. | | `--verbose-presets` | | Print one line per preset as it loads. | ## Provider options These override [provider options](/docs/context/provider-options) for one run. Each one only affects providers that support it. | Flag | Value | Applies to | |------|-------|------------| | `--thinking` | `<mode>` | Claude extended thinking. `--thinking-budget <n>` sets a fixed token budget. | | `--speed` | `<mode>` | Providers with speed modes. | | `--service-tier` | `off`, `auto`, `default`, `flex`, `priority`, `ultrafast` | OpenAI. `ultrafast` is available for GPT-6 Astra with US/global processing. On a ChatGPT subscription the tier is sent as set: `priority` is Codex Fast mode (2.5x plan usage), `ultrafast` is GPT-6 Astra Ultrafast (8x plan usage where your plan has it). A tier ChatGPT refuses is dropped once and the request runs at Standard. | | `--reasoning-summary` | `off`, `auto`, `detailed` | OpenAI reasoning summaries. | | `--verbosity` | `<level>` | OpenAI answer length. | | `--google-thinking-budget` | `<n>`, `dynamic`, `off` | Gemini. `--include-thoughts` adds thought summaries. | | `--deepseek-thinking` | `<mode>` | DeepSeek. | | `--openrouter-reasoning-tokens` | `<n>` | OpenRouter reasoning limit. `--hide-reasoning` hides the reasoning output. | | `--groq-reasoning-format` | `off`, `parsed`, `raw`, `hidden` | Groq. | | `--sequential-tools` | | Run tool calls one at a time instead of in parallel. | | `--no-tool-streaming` | | Wait for a tool call's full arguments before running it. | | `--no-send-reasoning` | | Do not send earlier reasoning back to the model. | | `--preserve-thinking` | | Keep earlier thinking blocks in the conversation. | | `--context-compact` | | Let the provider shorten the context on its side. | | `--context-clear-tools` | | Let the provider drop old tool results. | ## Subcommands These run on their own and exit when done. | Subcommand | What it does | |------------|--------------| | `empryo update [--check]` | Update Empryo with the same installer you used. In a terminal it shows the installer's progress live, and a dropped download picks up where it stopped. `--check` only says whether a newer version exists. `upgrade` also works. | | `empryo addon <list\|install\|remove\|update> [proxy\|neovim]` | Manage the optional [add-ons](/docs/tools/addons): the subscription proxy and the bundled Neovim editor. `addons` also works. | | `empryo soulstack [status\|check\|install\|update\|remove\|auto on\|off]` | Detect, install, update or remove [SoulStack](/docs/tools/addons#soulstack). Off until you install it. Once installed, it updates daily. | | `empryo presets` | Open the presets wizard. Same as `--presets`. | | `empryo doctor` | Check that Empryo's bundled components load on this machine. Useful after an install or upgrade. | | `empryo phone` | Continue the chat your phone is running, in this terminal, in its folder. With several phone chats running it asks which one. The phone keeps following the chat. | | `empryo phone <on\|off\|status\|list>` | `on` keeps phone access running when no terminal or desktop is open and shows the pairing code. `off` turns that off. `status` and `list` show what your phone is running, with each chat's id for `empryo --resume <id>`, which also works from any folder. | | `empryo cua [status\|install\|libraries\|update\|start\|allow\|preview] [--json]` | Set up [Cua Driver](/docs/tools/computer-use#cua-driver), the recommended computer-use driver: see its status, install or update it, start it, grant its macOS permissions, or toggle its live preview. Works over SSH. | | `empryo bot [status\|lanes\|board\|machine\|playbook] [--json]` | Print what [Mito](/docs/agents/mito) sees: its status and mood, every lane by project, the board, the computer's load and what is left running, or the playbook. With no word it prints the status. | | `empryo bot add <title>` | Add a card to Mito's Inbox. Exits with `2` when the title is missing. | | `empryo bot "<prompt>" [--json]` | Send a prompt to Mito and print its answer as it comes. Tool approvals during that turn are answered with no. | | `empryo lsp <status\|start\|install>` | [Language servers](/docs/tools/lsp): see which are installed and running, start them, or install one. Run `empryo lsp --help` for details. | ## Exit codes | Code | Meaning | |------|---------| | `0` | Success. Also returned by `--help`, `--version`, and a PASS review. | | `1` | Error. For example: no model is set, the model could not be found, the step limit was reached, the provider failed, or an argument was wrong. | | `2` | The `--timeout` limit was reached. | | `3` | `--review` verdict: FAIL. Anything the reviewer could not verify is a FAIL. | | `130` | Stopped with Ctrl+C. | ```bash CI gate empryo --headless "run the test suite and fix any failures" --json --timeout 600000 echo "exit: $?" # 0 success, 1 error, 2 timeout, 130 stopped ``` ## Managing keys Empryo stores keys in your system keychain when one is available, and in a protected file otherwise. See [key storage](/docs/reference/configuration#auth-key-storage) for details per platform. ```bash empryo --set-key anthropic sk-ant-... # save a key empryo --list-providers # which providers have a key empryo --list-models anthropic # models for one provider ``` To use a key for one session without saving it, set the provider's environment variable: ```bash ANTHROPIC_API_KEY=sk-ant-... empryo ``` ## Piped input With `--headless` and no prompt, Empryo reads the prompt from stdin. With a prompt, piped text is added to it: ```bash echo "summarize the architecture" | empryo --headless git diff | empryo --headless "review this diff for bugs" ``` ## Environment variables The most useful ones. The full list is in [configuration](/docs/reference/configuration#environment-variables). | Variable | What it does | |----------|--------------| | `EMPRYO_NO_GENOME=1` | Skip the Genome scan, like `--no-genome`. | | `EMPRYO_MAX_OUTPUT_TOKENS` | Output-token cap for every model. See [configuration](/docs/reference/configuration#environment-variables). | | `EMPRYO_PRESETS` | Presets to load at startup, separated by commas. `--plugin` sets this for you. | | `EMPRYO_NO_PROMPT=1` | Skip the first-run add-on prompt. Useful in CI. | | `EMPRYO_VOICE_LIVE_URL` | WebSocket address for [live dictation](/docs/surfaces/voice-input). Defaults to OpenAI's Realtime transcription endpoint. Point it at a compatible gateway or a test server. | > **Tip:** > Older names still work. `--no-repomap` and `EMPRYO_NO_REPOMAP` mean the same as `--no-genome`, and every `EMPRYO_` variable also accepts the old `SOULFORGE_` prefix. ## Next **Terminal UI** Keyboard shortcuts, slash commands, tabs, and panels in the terminal app. **Headless & output** JSON and event output, chat mode, and scripting patterns. --- ## Command reference Canonical: https://empryo.com/docs/reference/commands > Every Empryo slash command and keyboard shortcut on one page, grouped by session, git, models, code intelligence, settings, editor, tabs, and system. Slash commands let you control Empryo from the chat box. Type `/` to see suggestions as you type, or press `Ctrl+K` to open the command palette and search every command by name. A few notes on reading this page: - Some commands have sub-commands, such as `/proxy login`. You can type them directly. In the palette they are grouped under their parent. - Rows marked **TUI** only exist in the terminal app. Rows marked **Desktop** only exist in the desktop app. Everything else works in both. - Some commands appear only after you install the add-on they need. Those rows say which add-on. - Commands that take one of a known set of values list them as you type. Type `/engines stop ` and the running engines appear, each with its project and state; arrow to one and press Enter. Typing more filters the list by name or description. This works for `/profile`, `/engines stop`, `/background stop`, `/remote forget`, `/claim force`, `/lsp restart`, `/mode`, `/theme`, `/effort`, `/language` and, in the terminal, `/agent`, `/claim release`, `/schedule run`, `/schedule stop`, `/schedule on`, `/schedule off`, `/schedule remove`, `/worktree open` and `/worktree remove`. The terminal and the desktop app show the same list in the same order. The current value is marked **Current**. Pressing Enter on a command that needs a value, such as `/engines stop`, opens its list instead of running it bare. ## Keyboard shortcuts These are the terminal app's global shortcuts. Type `/shortcuts` in the TUI for the full list, grouped. [Keyboard shortcuts](/docs/reference/keybindings) lists every shortcut of both apps and how to rebind the desktop ones. | Key | Action | | ------------------- | ---------------------------------------------------------------------------------------------------------------------- | | `Ctrl+K` | Open the command palette | | `Alt+H` | Keyboard reference | | `Ctrl+L` | Switch model | | `Ctrl+S` | Browse skills | | `Ctrl+P` | Browse sessions | | `Ctrl+G` | Git menu | | `Alt+R` | Error log | | `Ctrl+N` | New session (the current one is saved) | | `Ctrl+D` | Cycle through modes | | `Alt+E` | Step reasoning effort for this tab through Off and each level the model supports. Pick Provider default from `/effort` | | `Ctrl+X` | Stop the current turn | | `Ctrl+C` | Copy the selection, or exit | | `Alt+P` | Projects | | `Ctrl+T` | New tab | | `Ctrl+Shift+T` | Reopen the last closed tab | | `Ctrl+W` | Close tab | | `Ctrl+1` … `Ctrl+9` | Jump to tab 1 to 9 (`Ctrl+0` is the tenth); `Alt+1` … `Alt+0` too | | `Esc` | Clear the selection | | `Ctrl+\` / `Ctrl+]` | Previous / next tab | | `Ctrl+O` | Expand or collapse everything (code, reasoning) | | `Ctrl+B` | Go back one checkpoint (files and conversation) | | `Ctrl+F` | Go forward one checkpoint, then back to live | | `Ctrl+E` | Open or close the editor panel | While you type in the input box: | Key | Action | | ---------------------- | ---------------------------------------------------------------- | | `Alt+S` | Stash the current draft | | `Alt+P` | Restore the last stashed draft | | `Alt+Q` or `Alt+Enter` | Queue a follow-up message to send after the current turn | | `Alt+O` | Open folded pasted text in the draft so you can read and edit it | ## Session | Command | What it does | | ---------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `/session` | Session menu: history, clear, export, compact | | `/session new` | Start a new session. The current one is saved. | | `/session history` | Browse and restore saved sessions (`Ctrl+P`) | | `/session rename` | Rename the current session | | `/session clear` | Clear the chat history | | `/clear` | Same as `/session clear` | | `/session continue` | Continue a reply that was interrupted | | `/session plan` | Turn plan mode on or off. `/plan` and `/plan <task>` do the same. See [plan before you code](/docs/recipes/plan-mode). | | `/plan open` | TUI. Open the plan workspace: steps, document, scope, feedback | | `/session export` | Export the chat: markdown, JSON, clipboard, or everything | | `/session export clipboard` | Copy the chat to the clipboard as markdown | | `/session export json` | Export the chat as JSON | | `/session export all` | Full export for bug reports: system prompt, messages, tools | | `/session export api` | Turn per-step request dumps on or off | | `/session bundle` | TUI. Pack this session into a portable `.tar.gz`. `/session bundle import` reads one back. | | `/session load` | Desktop. Load a saved session by id | | `/import` | Desktop. Import sessions from Claude Code, Codex, or OpenCode | | `/stash` | TUI. Browse stashed drafts, restore or delete them (alias `/drafts`) | | `/checkpoint` | Browse checkpoints: undo, redo, save | | `/checkpoint undo` | Undo the last checkpoint (reverts the files) | | `/checkpoint redo` | Redo the last undone checkpoint | | `/checkpoint save` | Save a snapshot of the current state now | | `/checkpoint live` | Go back to the live view | | `/compact` | Compaction menu: run it now, settings, logs | | `/compact settings` | Choose how old context is summarized and trimmed | | `/compact logs` | See past compaction events | | `/images strip` | TUI. Remove image attachments from this conversation's history | | `/ping` | Keep the provider's prompt cache warm while the tab is idle (`start` or `stop`) | | `/voice` | TUI and desktop. Record a [spoken prompt](/docs/surfaces/voice-input) | | `/voice settings` | TUI and desktop. One picker for [voice](/docs/surfaces/voice-input): live dictation, hands-free, model, delay, language, auto-stop, insert mode. Desktop opens **Settings → Voice** | | `/voice live [on\|off]` | TUI and desktop. Show words in the draft as you speak (OpenAI API key) | | `/voice model [provider/model]` | TUI. Pick the speech-to-text model. No argument opens a picker | | `/voice delay [level]` | TUI. Live dictation speed against accuracy: `minimal` to `xhigh` | | `/voice language <codes>` | TUI. Spoken language hint: `en` or `en,fr` | | `/voice auto-stop [seconds\|off]` | TUI. Seconds of quiet before recording stops by itself. Default 2.5 | | `/voice hands-free [on\|off]` | TUI and desktop. Hands-free voice: each pause sends, then the mic listens again until you stop it | | `/voice setup` | TUI. Download a Whisper model for offline voice input, no API key needed | | `/agent` | TUI. Run this tab as a custom agent: `/agent <name>`. `/agent off` goes back to normal. | | `/routine` | [Routines](/docs/tools/routines): `/routine <prompt> --every 5m` schedules a headless run | | `/schedule` | Scheduled routines. They run while Empryo is open. | | `/schedule add` | TUI. Add a routine with a cron expression: `/schedule add <cron> <prompt>` | | `/schedule stop` | TUI. Stop a routine's run in progress: `/schedule stop <id>` | | `/cron` | Same as `/routine` | | `/devices` | Experimental. Use another computer's Empryo from here, connect a new one or forget one. In the desktop app it opens **Settings › Remote › Other devices**. See [Another computer](/docs/surfaces/devices). | | `/remote` | Pair a phone or another computer with this computer. Shows a QR code, and the link behind it to copy. See [Phone app](/docs/surfaces/phone). | | `/remote wifi`, `/remote tailscale`, `/remote quick` | Pair over one route only. Type them in full; the menu lists only `/remote`. | | `/remote allow`, `/remote deny` | Allow or refuse the phone or computer that waits to pair | | `/remote stop` | Turn off phone and computer access | | `/remote background` | Choose whether phone and computer access stays on after you quit and starts with this computer. `/remote background on` and `off` set it directly. | | `/remote trust` | Choose which computers may take full control without a link or an Allow. Type a value to set it directly: `ask` (the default), `tailnet` (your own Tailscale devices), `wifi` (those, plus computers on this Wi-Fi) or `link` (anyone with a fresh pairing link). See [Skip the Allow on an agent box](/docs/surfaces/devices#skip-the-allow-on-an-agent-box). | | `/remote firewall` | Windows only. Lets phones and computers on this Wi-Fi through Windows Firewall when it blocks them, and asks for an administrator. Otherwise it shows the current state. | | `/remote forget` | Unpair a phone | | `/steer` | Headless. Steer the running turn: `/steer <text>`. While idle, the text runs as the next prompt. | ## Git | Command | What it does | | ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------- | | `/git` | TUI. Git menu (`Ctrl+G`) | | `/git status` | Show git status | | `/git commit` | Commit with a message | | `/git diff` | TUI. Open the diff in the editor | | `/git log` | TUI. Show recent commits | | `/git branch` | TUI. Show the current branch or create one | | `/git pull` | TUI. Pull from the remote | | `/git push` | TUI. Push to the remote | | `/git stash` | TUI. Stash your changes | | `/git stash pop` | TUI. Restore the latest stash | | `/git init` | TUI. Create a git repository here | | `/git lazygit` | TUI. Open lazygit | | `/git co-author` | TUI. Turn the Empryo co-author line on commits on or off | | `/prs` | Pull requests this tab touched, with their state and checks. Opens the Pull requests panel on desktop. See [pull requests](/docs/tools/pull-requests) | | `/worktree` | List git worktrees and their status (`/worktree list`) | | `/worktree add` | TUI. Create a worktree for a new branch and move this tab into it: `/worktree add <branch> [--from <ref>]` | | `/worktree open` | TUI. Move this tab into a worktree. Add `--new-window` to open it in a new terminal window. | | `/worktree remove` | TUI. Remove a worktree. It refuses one with uncommitted changes unless you add `--force`, and one a tab still works in. | | `/worktree prune` | TUI. Forget worktrees whose folders are gone | | `/worktree agent` | TUI. Start an agent on a task in a new worktree: `/worktree agent <task>` | ## Models and providers | Command | What it does | | -------------------- | ------------------------------------------------------------------------------------------------------- | | `/models` | Switch model (`Ctrl+L`) | | `/model-scope` | Save the model for this project only, or for everywhere | | `/effort` | Set reasoning effort for the current model: a slider, or `/effort <level>` | | `/provider-settings` | Provider options: thinking, effort, speed, context | | `/router` | Choose a model per task: coding, exploring, planning, review | | `/keys` | Add, view, or remove provider API keys | | `/web-search` | Web search keys and settings | | `/mcp` | [MCP servers](/docs/tools/mcp): status, tools, reconnect | | `/login` | Sign in to a subscription or gateway account. Opens a picker. (alias `/subscriptions`) | | `/grok` | Your Grok account: status, sign in, switch | | `/grok status` | Grok subscription status and quota | | `/grok login` | Sign in with SuperGrok or X Premium | | `/grok switch` | Switch to a different Grok account | | `/grok logout` | Sign out of every Grok account | | `/providers custom` | [Custom providers](/docs/providers/custom): `list`, `add <id> <baseURL>`, `remove`, `enable`, `disable` | ### Sign-in options Each `/login <id>` signs in to one account. Browser sign-ins open a page for you to approve. Device-code sign-ins show a short code to enter on another device. Key sign-ins open a masked field so the key never shows on screen. | Command | Account | How | | ---------------------------- | --------------------------------------------------------------------- | ----------------------------------- | | `/login claude` | Claude Pro or Max | Browser | | `/login codex` | ChatGPT Plus, Pro, or Team | Browser | | `/login codex-device` | ChatGPT | Device code | | `/login copilot` | [GitHub Copilot](/docs/providers/copilot) | Device code | | `/login copilot-enterprise` | Copilot on an enterprise GitHub (ghe.com or GitHub Enterprise Server) | Device code | | `/login grok` | SuperGrok or X Premium | Browser | | `/login grok-device` | Grok | Device code | | `/login cursor` | Cursor | Browser | | `/login devin` | Devin | Browser | | `/login google-gemini-cli` | Google Cloud Code Assist (Gemini CLI) | Browser | | `/login google-antigravity` | Google Antigravity | Browser | | `/login kimi-code` | Kimi Code (Moonshot) | Device code | | `/login muse-code` | Muse Code (Meta) | Device code | | `/login kilo` | Kilo Gateway | Device code | | `/login openrouter` | OpenRouter | Browser, creates an API key for you | | `/login zai-coding-plan` | Z.AI GLM coding plan | Creates an API key for you | | `/login llmgateway` | LLM Gateway (account credits) | Browser | | `/login llmgateway-devpass` | LLM Gateway DevPass (coding subscription) | Browser | | `/login firepass` | Fire Pass | Masked key entry | | `/login ollama-cloud` | Ollama Cloud | Masked key entry | | `/login alibaba-coding-plan` | Alibaba (Qwen) coding plan | Masked key entry | | `/login alibaba-token-plan` | Alibaba (Qwen) token plan | Masked key entry | | `/login xiaomi` | Xiaomi MiMo | Masked key entry | | `/login meta` | Meta Model API (Muse Wonder, Muse Spark) | Masked key entry | For the Alibaba and Xiaomi keys, Empryo tests the key against each of the vendor's regional servers before saving it. It remembers which region accepted the key, so you never have to pick one. ### Proxy add-on The proxy add-on lets you use a Codex, Copilot, or Grok plan through a local relay. See [proxy subscriptions](/docs/providers/proxy). The sub-commands appear once the add-on is installed. | Command | What it does | | ---------------- | --------------------------------------- | | `/proxy` | Proxy menu (alias `/subs`) | | `/proxy status` | Which accounts are connected | | `/proxy login` | Sign in to an account through the proxy | | `/proxy logout` | Sign out of an account | | `/proxy quota` | Show plan limits and refresh them | | `/proxy start` | Start the proxy | | `/proxy stop` | Stop the proxy | | `/proxy restart` | Restart the proxy | | `/proxy install` | Reinstall the proxy add-on | | `/proxy upgrade` | Upgrade the proxy add-on | ## Code intelligence | Command | What it does | | ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `/context` | Dashboard of what is in the model's context and why | | `/diagnose` | Health check for language servers, syntax parsing, and the code index | | `/genome` | Settings for the Genome, Empryo's index of your code | | `/lsp` | Manage language servers: install, disable, enable | | `/lsp status` | Which language servers are running | | `/lsp install` | Install language servers from the Mason registry | | `/lsp restart` | Restart all language servers, or one | | `/memory` | View and clear what the agent remembers between sessions | | `/skills` | Browse and install [skills](/docs/tools/skills) (`Ctrl+S`) | | `/tools` | Turn individual [tools](/docs/reference/tools) on or off | | `/agents` | Your custom agents, from the project and your home folder | | `/profile` | Run this tab with a [profile](/docs/tools/profiles): `/profile <name>`, `/profile off`, `/profile default <name>` for every new tab, `/profile save <name>` to keep this tab's setup | | `/profiles` | Open the profile picker | | `/marionette` | Experimental. Map the relevant files for one prompt before the agent starts: `/marionette <prompt>`. `on`/`off` does it for every prompt. `none`, `fast`, `assist`, `deep` pick how hard it looks. See [the Marionette](/docs/concepts/marionette). | | `/decisions` | Decision models: provider, model and the per-feature switches (`/typesafe` still works) | | `/search` | Desktop. Search the workspace | | `/morphs` | Desktop. Experimental. [Morphs](/docs/tools/morphs): panels, boards, timers, and live feeds you build and work with (aliases `/morph`, `/cells`) | | `/canvas` | Desktop. Let a morph's board fill the window in place of the chat (alias `/board`) | | `/cells` | TUI. Rules, lookups, and guards a morph gives the agent. Approve, revoke, on or off. | | `/cells approve` | TUI. Approve a morph's agent rules as they are now: `/cells approve <id>` | | `/cells revoke` | TUI. Revoke a morph's agent rules: `/cells revoke <id>` | | `/cells scope` | TUI. Move a cell to `project`, `team` or `global`: `/cells scope <id> <scope>` | | `/cells fork` | TUI. Copy a cell into another scope: `/cells fork <id> <scope>` | | `/cells set` | TUI. Set a cell variable: `/cells set <id> <name>=<value>` | ## Settings | Command | What it does | | ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `/settings` | Every settings panel. In the terminal, **All settings** lists each setting with its value and where it comes from, to search, change or clear. | | `/mode` | Switch mode (`Ctrl+D` cycles) | | `/theme` | Switch color theme, with a live preview | | `/language` | Interface language (aliases `/lang`, `/locale`) | | `/agent-features` | Turn agent features on or off, such as the cleanup pass and cheap-model routing | | `/experimental` | Features still being tested: what each does, what testing found, and a switch for each | | `/instructions` | Choose which instruction files load (`EMPRYO.md`, `CLAUDE.md`, and others) | | `/diff-style` | How diffs are shown | | `/reasoning` | Show or hide the model's reasoning | | `/narration` | Show or hide the model's short notes between tool calls | | `/yolo` | Skip all approval prompts. Only your `/privacy` rules still apply. | | `/chat-style` | TUI. How messages are framed: speakers, rail, or bubbles | | `/scroll-speed [0.5–5]` | TUI. How far the chat scrolls per wheel notch and per `Alt+J` / `Alt+K`. No argument opens a picker | | `/rail` | TUI. Dock changed files, tasks, and agents beside the chat | | `/motion` | TUI. Turn animations on or off | | `/cache` | TUI. [Prompt-cache countdown and retention](/docs/context/prompt-cache) | | `/ping`, `/ping start`, `/ping stop` | Start or stop idle prompt-cache refresh for the current supported lane. Makes provider requests; see [costs and limits](/docs/context/prompt-cache#keep-a-lane-warm). | | `/font` | TUI. Terminal font: show, set, Nerd Font | | `/font set` | TUI. Set the terminal font | | `/font nerd` | TUI. Turn Nerd Font icons on or off | | `/vim-hints` | TUI. Show or hide Vim key hints | | `/nvim-config` | TUI. Choose which Neovim config the editor uses. Needs the Neovim add-on. | ### Provider settings Each of these shows its current value and choices when you run it alone, and sets it when you add a value. `/provider-settings` has the same settings in one panel. See [provider options](/docs/context/provider-options). | Command | What it sets | | ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | | `/thinking <mode>` | Thinking mode: `off`, `auto`, `adaptive`, `enabled`, `disabled` | | `/budget <tokens>` | Thinking budget, at least 1024. Turns thinking on. | | `/speed <off\|standard\|fast>` | Fast mode on Claude models that offer it | | `/tier <tier>` | OpenAI service tier: `off`, `auto`, `default`, `flex`, `priority`, `ultrafast` | | `/sendreasoning on\|off` | Send the model's reasoning back with the next request | | `/toolstream on\|off` | Stream tool-call arguments as the model writes them. On by default. | | `/seqtools on\|off` | One tool call at a time instead of several at once | | `/websearch on\|off` | The `web_search` tool | | `/nativesearch on\|off` | Search run by the model provider. See [web search](/docs/reference/configuration#web-search). | | `/codeexec`, `/computeruse`, `/texteditor` `on\|off` | The [provider tools](/docs/context/provider-tools): code execution, computer use, Claude's text editor | | `/cleartools on\|off` | Anthropic clears old tool results on its side | | `/clearthinking on\|off` | Keep earlier thinking blocks in the conversation. On by default. | | `/pruning <target>` | Which agents have old tool results pruned: `none`, `main`, `subagents`, `both` | ## Editor Terminal app only. These appear once the Neovim add-on is installed. See [the editor](/docs/tools/editor). | Command | What it does | | ------------------ | ----------------------------------------------------------------------------------- | | `/editor` | Editor menu: toggle, open, settings, split | | `/editor open` | Open a file in the editor | | `/editor settings` | Turn editor and language-server features on or off | | `/editor split` | Step the editor width to the next of 40, 50, 60 and 70% (or drag the editor's edge) | ## Tabs, agents, and terminals | Command | What it does | | -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | | `/tab` | Desktop and TUI. Tabs menu: switch, new, close, rename | | `/tab new` | Desktop and TUI. Open a new tab (`Ctrl+T`) | | `/tab close` | Desktop and TUI. Close this tab (`Ctrl+W`) | | `/tab close all` | Desktop and TUI. Close every tab after asking; one fresh tab stays open | | `/tab close project` | Desktop and TUI. Close every tab in this tab's project, or in the project you name: `/tab close project api` | | `/tab reopen` | Desktop and TUI. Reopen the most recently closed tab (`Ctrl+Shift+T`; `⌘⇧T` on macOS desktop) | | `/tabs` | Desktop and TUI. Every tab in this session, open and closed: filter, switch, or restore any closed tab (also after a restart) | | `/tab rename` | Rename this tab. With no name, Empryo suggests one from your prompts. | | `/tab move` | Desktop and TUI. Move this tab left or right in the tab bar: `/tab move left` | | `/detach` | Desktop and TUI. Detach this tab from the tab that opened it, so it becomes a normal top-level tab | | `/tabsplit` | TUI. Show two tabs side by side, or go back to one | | `/bot` | Desktop and TUI. Open [Mito](/docs/agents/mito), the lead above every project, on Today: what needs you, what runs and what is left (alias `/mito`) | | `/bot lanes` | Desktop and TUI. Open Mito on Lanes: every tab doing work, grouped by project | | `/bot board` | Desktop and TUI. Open Mito on the board: cards in Inbox, Doing, Blocked and Done | | `/bot status` | TUI: print Mito's status and mood in the chat. Desktop: open Mito on Today | | `/changes` | Show or hide the files changed this session | | `/claim` | TUI. Which tab is editing which file | | `/claim force` | TUI. Take a file over from another tab | | `/claim release` | TUI. Let go of a file this tab is editing | | `/claim release-all` | Let go of every file this tab is editing | | `/goal` | [Goal loop](/docs/agents/goal-loop): the agent works, a separate reviewer checks, and it repeats until the goal passes (alias `/loop`) | | `/goal clear` | Stop the goal loop in this tab. The current turn finishes. | | `/review` | Have a fresh agent review this tab's work and give a verdict | | `/review pass` | Review, fix, and review again until the verdict is PASS (`Ctrl+X` stops it) | | `/review list` | TUI. Past reviews in this tab | | `/review apply` | TUI. Send the last review's findings to the agent | | `/review stop` | TUI. Stop the review-until-pass loop | | `/background` | Background agents: status, results, verdicts | | `/background stop` | Stop a running background agent | | `/subagents` | See the helper agents running right now (alias `/sub-agents`) | | `/duck` | [Rubber duck](/docs/tools/side-agents): a side chat that cannot see your code. `/duck <question>` asks right away. (alias `/rubberduck`) | | `/advise` | Ask the [advisor](/docs/tools/side-agents) for a second opinion on this conversation | | `/advice` | Every advisor answer from this session | | `/council` | Have 2 to 4 agents debate a topic and return a verdict | | `/orchestrate` | Run a multi-agent workflow from a saved id or a `.json` file | | `/runs` | Live view of every workflow run: agents, tokens, checks | | `/graph` | Desktop. This tab's workflow run as a live diagram | | `/jobs` | Background shell jobs and their logs | | `/link` | Messages between tabs and agents. `/link settings` chooses what a broadcast does to idle tabs (wake, queue, smart) | | `/events` | What happened in this tab: cache use, retries, model switches, agents | | `/workbench` | Runs, jobs, messages, routines, and advice in one place (alias `/cockpit`) | | `/terminals` | Desktop. Terminal manager | | `/terminals new` | Desktop. Open a new terminal | | `/terminals close` | Desktop. Close a terminal | | `/terminals rename` | Desktop. Rename a terminal | | `/terminals show` | Desktop. Show the terminal panel | | `/terminals hide` | Desktop. Hide the terminal panel | ## System | Command | What it does | | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `/help` | Commands and shortcuts | | `/shortcuts` | TUI. Every keyboard shortcut, grouped | | `/setup` | Check optional tools (Neovim, a Nerd Font, git helpers, extra language servers) and install missing ones | | `/wizard` | Run the first-time setup again | | `/onboard` | Learn Empryo one feature at a time. The TUI opens the [terminal lessons](/docs/terminal-guide) in your browser; the desktop app starts its guided tour (aliases `/tour`, `/lessons`) | | `/status` | System status | | `/usage` | Spending and usage by model and time period (alias `/cost`) | | `/errors` | Browse the error log | | `/retry` | How many times a failing request is retried, and how long to wait | | `/timeouts` | Tool and stall timeouts | | `/model-events` | Per-request latency, tokens, and errors (opt-in) | | `/hooks` | Active [hooks](/docs/tools/hooks), such as PreToolUse and PostToolUse | | `/privacy` | Files the agent is never allowed to read | | `/storage` | Disk usage, with cleanup | | `/feedback` | Send a bug report or an idea (alias `/bug`) | | `/developer` | Exactly what the anonymous usage ping sends, and a switch for it (aliases `/metrics`, `/telemetry`) | | `/update` | Check for updates | | `/restart` | Restart Empryo and reopen the session. The TUI refuses while a tab is working; the desktop asks whether to keep that work running | | `/restart now` | Stop running work in every tab, then restart and reopen the session, without asking | | `/quit` | TUI. Exit Empryo (aliases `/exit`, `/q`) | | `/about` | Desktop. Version and support links | | `/languages` | Desktop. Syntax-highlighting languages | | `/computer` | TUI. [Computer use](/docs/tools/computer-use): targets, permissions, controls | | `/computer setup` | TUI. What computer use still needs, and the command to fix it | | `/computer cua` | TUI. [Cua Driver](/docs/tools/computer-use#cua-driver) status; add `install`, `update`, `start`, `allow` or `preview` to run that step | | `/computer lanes` | TUI. Which method drives the screen, best first | | `/computer extension` | TUI. Whether the browser extension is installed and connected | | `/computer extension install` | TUI. Let Chrome's extension talk to Empryo | | `/computer stop` | TUI. Stop all computer use and release the mouse and keyboard | | `/computer resume` | Let computer use act again after a stop | | `/computer teach` | TUI. Teach a workflow by doing it once. `/computer teach stop` saves it. | | `/computer workflows` | TUI. Workflows you have taught | | `/computer decisions` | TUI. Permission decisions computer use remembers. `/computer decisions forget <n\|all>` clears them. | | `/computer browsers` | TUI. Detected browsers and Chrome profiles. `/computer browsers add <name> <browser> [profile folder]` adds one. | | `/computer chrome` | TUI. Drive Chrome: `pair`, `open <profile> [url]`, `tabs <profile>`, `go <tab> <url>`, `close <tab>` | | `/computer replay` | TUI. Export the latest computer-use run, or `/computer replay <run id>`, as an HTML replay | | `/soulstack` | TUI. [SoulStack](/docs/tools/addons#soulstack): `status`, `check`, `install`, `update`, `remove`, `auto on`, `auto off` | --- ## Configuration Canonical: https://empryo.com/docs/reference/configuration > Every Empryo setting: default model, thinking, the Genome code index, task router, agent features, key storage, instruction files, and environment variables. Empryo reads settings from two JSON files. Settings in the project file override the global file. | Scope | Path | | ------- | ------------------------------------------------------------------------------------------ | | Global | `~/.empryo/config.json` on macOS and Linux, `%LOCALAPPDATA%\Empryo\config.json` on Windows | | Project | `.empryo/config.json` in your project | You rarely need to edit these files by hand. Most settings have a slash command, a panel under `/settings`, or a switch in the desktop app's Settings. In the terminal app, `/settings` → **All settings** lists every setting the terminal reads, with its value and where that value comes from: the project, your global config or the default. Type to search, then press Enter to change it for this project or globally, or to clear it. If a file has a key Empryo does not know, the app tells you right away: which key, which file, and the nearest real setting when the key looks like a typo. That covers the fields inside each settings block too, so `"compaction": { "keepRecnt": 4 }` is reported with `keepRecent` as the fix. A dotted key such as `"compaction.gapFill": "off"` is reported too, because a dot does not nest settings: write `"compaction": { "gapFill": "off" }`. Unknown keys are ignored and left in the file. Keys an older version of Empryo wrote and no longer uses, such as `fff` or `presentation`, are dropped without a notice. ## Ask Empryo to change a setting You can also ask in the chat: "use adaptive thinking", "make the diffs compact", or "turn provider search off in this project". The agent uses its `settings` tool to make the change. The change takes effect in the running app, just as if you had used the Settings panel. The desktop app and the terminal app redraw right away. In a headless run the change is saved for the next run. A few settings are only read at startup: live translations, live skills, the Neovim binary and config, and on the desktop the system title bar and keeping the blur in the background. For those, the agent tells you to restart (`/restart` in the terminal, or quit and reopen the desktop app). Appearance settings for the desktop app can only be changed from a running desktop window. | You ask to | The agent shows you | | ---------------- | -------------------------------------------------------- | | See a setting | Its type, its current value, and which file it came from | | Change a setting | The old and new value, and which file it wrote | | Reset a setting | What now applies instead | Say "globally" to write `~/.empryo/config.json` (`%LOCALAPPDATA%\Empryo\config.json` on Windows), or "for this project" to write `.empryo/config.json`. If you do not say, Empryo writes to the project file only when that file already sets the key. Otherwise it writes to the global file. It also removes any copy in the other file that would override your change. The `settings` tool never handles credentials. Use `/login`, `/keys`, or `empryo --set-key` for those. ## Resume after subscription limits reset `subscriptionAutoResume` is one global, opt-in switch, off by default. Only an explicit global setting enables it; project settings, run overrides and presets cannot. Enable **Resume after limits reset** beside subscription plans in the desktop app, in the terminal’s `/login` picker or `/settings`, or in Accounts on iOS and Android. Every control changes the connected computer’s same setting, for all OAuth subscriptions signed in through `/login`, not API-key billing limits. A chat blocked by a subscription limit waits until its reported reset, checks quota again, then continues from its saved conversation and completed tool results. Unknown reset times use bounded rechecks. The computer and engine must remain running; saved waits are recovered when that session is reopened. Stop, close, a new user message, changing the model, or disabling the switch cancels the pending continuation. Disabling and re-enabling does not revive previously canceled waits. Enabling also arms quota-blocked chats still open on that computer. ## Example ```json { "defaultModel": "anthropic/claude-sonnet-4-5", "thinking": { "mode": "adaptive" }, "genome": true, "semanticSummaries": "ast", "diffStyle": "default", "chatLayout": "speakers", "scrollSpeed": 1, "toolTimeout": 2, "compaction": { "strategy": "auto", "triggerThreshold": 0.95, "keepRecent": 4 }, "taskRouter": { "spark": "anthropic/claude-haiku-4-5", "ember": "anthropic/claude-sonnet-4-5", "compact": "google/gemini-2.5-flash" }, "agentFeatures": { "desloppify": true }, "retry": { "maxTransientRetries": 5, "baseDelayMs": 3000 } } ``` ## Fields ### Model | Field | Default | What it does | | ----------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `defaultModel` | `"none"` | The model to use, as `provider/model`. With `"none"`, Empryo asks you to pick one at launch. When [`taskRouter.default`](/docs/recipes/task-router) is set, saving `defaultModel` moves it to the same model. | | `thinking.mode` | `"auto"` | Extended thinking: `"auto"`, `"adaptive"`, `"enabled"`, `"off"`. `"auto"` uses adaptive thinking on Claude models that support it. | | `thinking.budgetTokens` | | Token budget when the mode is `"enabled"`. Minimum 1024. | ### Display | Field | Default | What it does | | ------------------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `theme` | | Theme name and transparency. `/theme` sets it. See [themes](/docs/tools/themes). | | `locale` | system | Interface language, such as `ja`, `zh-Hans`, or `ar`. `/language` sets it. `--locale` overrides it for one run. | | `localizedCommands` | `false` | Also accept slash commands typed in the interface language, such as `/لغة` for `/language`. | | `diffStyle` | `"default"` | `"default"`, `"sidebyside"`, `"compact"`, or `"off"` (desktop only: hides diffs in the chat). | | `collapseDiffs` | `false` | Collapse diffs when a reply finishes. `Ctrl+O` expands them. | | `chatLayout` | `"speakers"` | Terminal app only. How messages are framed: `"speakers"`, `"rail"`, or `"bubbles"`. | | `scrollSpeed` | `1` | Terminal app only. Multiplies how far the chat moves per mouse-wheel notch and per `Alt+J` / `Alt+K` press, from `0.5` to `5`. | | `showReasoning` | `false` | Show the model's reasoning. | | `showNarration` | `false` | Show the model's short notes between tool calls. `/narration` sets it. | | `statusBar.git` | `"branch"` | Terminal app only. What the footer shows after the branch: `"branch"` (nothing more), `"files"` (`+N ~N`: new and changed files in the working tree), `"lines"` (`+N -N`: lines added and removed in tracked files since the last commit), `"last-commit"` (`+N -N`: lines the last commit added and removed), or `"off"` (no Git segment). | | `statusBar.edits` | `true` | Terminal app only. The `✎ +N ~N` count of files this tab's agent created and edited in this session. | | `motion` | `true` | Animations. Turn off if you prefer no motion or work over a slow SSH connection. | | `gitDecorations` | `true` | Git status colors and letters in the file tree. | | `projectsLayout` | `"tree"` | Desktop projects view layout: `tree`, `rail`, `inbox`, `grouped` or `rows`. | | `projectsStyle` | `"floating"` | How Files and Projects sit in the desktop sidebar: `floating`, `blended` or `stacked`. | | `projectsRailUnfold` | `false` | Desktop rail layout: hovering the rail opens a panel with every project and tab. | | `projectsTreeLook` | `lines` | Desktop projects tree look: `lines` (tree guides, compact rows) or `airy` (no lines, roomier rows, a soft wash on the open tab). Applies to the projects tree and the tabs beside the rail. | | `projectsRailPanel` | `files` | Desktop rail layout: what sits beside the rail, `files` or `tabs` (the open project's tabs under its name and picture). With `tabs` the rail does not unfold. Switch between them at the top of the panel. | | `projectsTabBar` | `false` | Desktop tree layout: keep the tab bar above the chat while the projects tree lists the tabs. `projectsTabBarTui` is the terminal's own switch and is `true` by default. | | `projectsView` | `true` | Desktop projects view: your projects (this folder plus any folder you add, like `../proxy`) in the sidebar, each with its own tabs, engine and Genome. | | `projectsSubprojects` | `false` | Also split this repo into its subprojects (monorepo packages and workspaces) under it. `projectsSubprojectsTui` is the terminal's own switch. | | `projectsViewTui` | `false` | Terminal projects view, set apart from the desktop one. `projectsLayoutTui`, `projectsStyleTui`, `projectsRailUnfoldTui`, `projectsArrangeTui` and `projectsTabBarTui` work like the desktop keys. | | `projectsSortTui` | `"manual"` | Terminal projects tree: order of the tabs under each project, `manual`, `newest`, `oldest` or `recent` (recently active). | | `projectsGroupTui` | `"none"` | Terminal projects tree: split each project's tabs into sections, `none`, `status` (Needs you, Working, Unread, Idle) or `day` (Today, Yesterday, Previous 7 days, Older). | | `projectsFilterTui` | `"all"` | Terminal projects tree: which tabs show, `all`, `live` (needs you, working or unread) or one status: `attention`, `working`, `unread`, `idle`. The open tab always shows. | | `vimHints` | `true` | Show Vim key hints in the editor panel. | | `nerdFont` | auto | Use Nerd Font icons. Detected from your installed fonts. Set `true` or `false` to force it. | | `editorSplit` | `60` | Width of the editor panel as a percentage of the space it splits with the chat (minus the one-column gutter, within each side's minimum width). Dragging the editor's edge saves it. Values outside 1 to 99 are clamped and anything that is not a number falls back to 60. | | `tabNaming` | `true` | Name each tab from its first prompt. | | `skillPicker` | `true` | Typing `$` in the composer opens the skill picker (desktop and TUI). Off keeps `$` as plain text. | | `notifyTurns` | | Notify you when a reply finishes while you are looking elsewhere. | | `notifySubTabs` | `false` | Also notify for child tabs an agent opened (subagents, reviewers, council members): desktop banners, sound, terminal bell and phone. | | `notifyErrors` | `true` | Desktop, global only. Notify when a turn fails, even a short one. | | `notifySound` | `false` | Desktop, global only. Play a soft chime with each notification. | | `batterySaver` | `"battery"` | Desktop, global only. When to save power: `"battery"`, `"low"` (below 20%) or `"off"`. | | `startOpening` | `true` | Desktop, global only. Play the short opening on the start screen. | | `askProfileOnOpen` | `true` | Desktop, global only. Ask for a profile after you pick a project on the start screen. | | `restoreTabsOnOpen` | `true` | Desktop, global only. Reopen a project on its last session and tabs. | | `accountNames` | `"masked"` | Desktop, global only. How account emails show in usage and subscription views: `"visible"`, `"masked"` or `"hidden"`. | | `tabsInSidebar` | `true` | Desktop, global only. List each project's tabs under it in the sidebar. | | `autoDownloadUpdates` | `true` | Desktop, global only. Download a new version in the background as soon as it is out. Off: the update prompt offers the download. | | `autoInstallUpdates` | `true` | Desktop, global only. Install a downloaded version when the app quits. Off: install it yourself from the update prompt. | | `modelPicker.groupModels` | | Group the model picker by subscription plan or vendor. | ### Behavior | Field | Default | What it does | | ------------------------ | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `defaultForgeMode` | `"default"` | The mode new sessions start in. | | `startMenu` | `"always"` | When the terminal UI shows its start menu. `"always"` shows a start menu on every launch: with `startFlow` on, that is the project and session menu (Esc from the session list reaches the project list, which also holds your paired computers and **Connect a device**); with `startFlow` off, it is the menu that asks where Empryo should run. `"when-needed"` shows a menu only when there is a choice: an engine to join, a computer you paired, or a project with saved sessions. | | `startFlow` | `"pick"` | `"pick"` asks for a project, then a session, when the terminal UI starts. Started inside a project folder, it opens that project's session list. `--cwd` picks the project; `--session`, `--resume` and `--new-session` skip it. `"off"` opens chat in the current folder straight away. | | `yolo` | | Skip every approval prompt. Your `/privacy` rules still apply. `/yolo` sets it. | | `approvals.fetchPage` | `"ask"` | `"allow"` lets `fetch_page` read pages (GET) without asking. Requests that send data still ask. | | `approvals.fetchDomains` | | Hosts `fetch_page` may read without asking, for example `["docs.python.org", "github.com"]`. A host also covers its subdomains. A redirect to another host is not followed: the agent has to fetch the new address, and that fetch is checked again. | | `approvals.outsideCwd` | `"ask"` | `"allow"` stops the prompt for edits and commands that touch files outside the project. Read from the global file only. | | `approvals.destructive` | `"ask"` | `"allow"` stops the prompt for destructive commands. Read from the global file only. | | `coAuthorCommits` | `false` | Add an Empryo co-author line to commits the agent makes. | | `toolTimeout` | `2` | Time limit for shell, project, and agent tools, in minutes. | | `agentShell` | `"terminal"` | How the agent's shell commands run. `"terminal"` uses your login shell (zsh or bash) with the aliases, functions and variables your startup files define, like a new terminal window; variables that look like credentials stay out. On Windows commands still run in `cmd` with your user variables. `"sh"` runs plain `sh` (`cmd` on Windows) with the minimal environment. The agent can also pick `sh`, `bash`, `zsh`, `cmd` or `powershell` for one command. | | `sessionCheckpoints` | `true` | Save progress during each turn so a crash does not lose it. Turn off to save disk space. | | `backgroundMode` | `"ask"` | What happens to running work when you close Empryo: `"ask"`, `"keep"` it running, or `"stop"` it. Global file only. Phone access and starting at login are separate switches. | | `closeChildTabs` | `"ask"` | What happens to a tab's sub-tabs when you close it: `"ask"` each time, `"close"` them too, or `"keep"` them open. Global file only. | | `worktreeCleanup` | `"off"` | What happens to a git worktree when you close the last tab open on it: `"off"` keeps it, `"ask"` offers to remove it (desktop app; the offer is dropped if a tab opens there again), `"remove"` deletes its folder from disk, including ignored files such as `node_modules` and build output, plus its index and engine records. A worktree with uncommitted or untracked files, or an ignored `.env`, `.env.*`, `.pem`, `.key`, `.p12` or `.pfx` file anywhere in it (inside ignored folders too), is always kept. The branch stays. | | `artifacts.capture` | `true` | Collect the screenshots, pages, drawings, PDFs and videos the agent makes as the tab's [artifacts](/docs/surfaces/tui#artifacts). | | `artifacts.show` | `true` | Show artifacts. `false` hides them in the desktop app, the terminal, the phone apps and headless events; they are still collected, so turning it back on shows everything made meanwhile. The desktop switch is **Settings → Chat → Show artifacts**. | | `artifacts.inline` | `true` | With [Mito](/docs/agents/mito) on, put the pictures, videos and pages a turn shows, attaches to a question or names in its answer inline in that answer, in the terminal, the desktop app and the phone apps, and in Mito's "While you were away" card. `false` keeps them in the artifacts list only. Without Mito nothing changes. | | `checkpointSnapshots` | `true` | After each turn that edits files, save a private git snapshot so undo can restore them. Turn off to stop the automatic snapshots. `/checkpoint` still saves one when you ask; undo refuses rather than restore files through a turn without one. | An approval prompt also offers to allow that kind of request for the rest of the session: page fetches, or work outside the project. That choice lasts until the tab closes and covers nothing else. ### Remote access | Field | Default | What it does | | -------------------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `deviceTrust` | `"ask"` | Which computers may take full control of this one without a pairing link or an Allow. `"ask"` lets none in. `"tailnet"` lets in computers signed in to your own Tailscale account. `"wifi"` lets in those, plus computers on the same Wi-Fi or wired network. `"link"` lets in anyone with a fresh pairing link. Global file only. `/remote trust` sets it. See [Skip the Allow on an agent box](/docs/surfaces/devices#skip-the-allow-on-an-agent-box). | | `remoteAwake` | `"timer"` | Keep this computer awake for remote work. `"timer"` stays awake `remoteAwakeMinutes` after a phone or computer connects and after the turns it started finish; every new connection restarts the timer. `"always"` stays awake while phone access runs. `"off"` never keeps it awake. Global file only. See [Keep your computer awake](/docs/surfaces/phone#keep-your-computer-awake). | | `remoteAwakeMinutes` | `30` | Minutes for the `"timer"` choice of `remoteAwake`, from 1 to 1440. Global file only. | | `remotePort` | `8787` | Port phone and remote access listens on. When it is taken, the next 3 ports are tried. Global file only. | ### Code intelligence | Field | Default | What it does | | ------------------------------------ | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `genome` | `true` | Build the Genome, Empryo's index of your code's files, symbols, and how they connect, when you open a project. | | `semanticSummaries` | `"synthetic"` | One-line summaries of your symbols. `"off"`, `"ast"` (from doc comments), `"synthetic"` (doc comments plus names, no cost), `"llm"` (written by a model), `"full"` (all of these). | | `semanticSummaryLimit` | `300` | How many symbols get model-written summaries. The most connected symbols go first. Controls the cost of `"llm"` and `"full"`. | | `semanticAutoRegen` | `false` | Rewrite model summaries when files change. The other modes always update. | | `genomeTokenBudget` | auto | How much of the context the Genome may use. Grows as the conversation gets longer. | | `genomeMaxFiles` | `10000` | Most files the Genome indexes. In a bigger repo the most recently changed files go first. `0` removes the cap. Changing it rescans. To leave files out on purpose, list them in `.empryoignore`. | | `genomeChurnWeight` | `60` | How much the Genome favors files that change often, compared with files the rest of the code depends on. `0` ignores change history. | | `cochangeHints` | `true` | When you check `git status`, list files that usually change together with yours but are missing. Uses local git history only. | | `codeIntelligence` | | Which code-analysis methods to use. See [intelligence](/docs/concepts/intelligence). | | `disabledLspServers` | `[]` | Language servers to skip, by package name. | | `lspAutoInstall` | `true` | Install language servers for the languages in your project, in the background. | | `nvimPath` / `nvimConfig` | auto | The Neovim binary and config for the built-in editor. See [the editor](/docs/tools/editor). | | `codeIntelligence.backend` | `"auto"` | Force one code-analysis method: `"auto"`, `"ts-morph"`, `"lsp"`, `"tree-sitter"` or `"regex"`. | | `editorIntegration` | | Whether the agent may use the built-in editor (`agentAccess`) and which of its actions: diagnostics, symbols, hover, references, definition, code actions, rename, format, LSP status and the cursor context. | | `editorIntegration.syncEditorOnEdit` | | Terminal app. The editor panel follows the files the agent edits. | | `editorIntegration.codeActions` | | Terminal app. The agent's editor tool may apply LSP quick fixes and refactorings. | | `editorIntegration.lspStatus` | | Terminal app. The agent's editor tool may list the language servers attached to the open file. | | `editorIntegration.editorContext` | | Terminal app. The agent's editor tool may read the open file, cursor and selection. | ### Compaction When a conversation gets long, Empryo summarizes older parts to make room. See [compaction](/docs/context/compaction). ```json "compaction": { "strategy": "auto", "triggerThreshold": 0.95, "resetThreshold": 0.4, "keepRecent": 4, "maxToolResults": 30, "llmExtraction": true } ``` Related fields: | Field | Default | What it does | | --------------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `compaction.maxToolResults` | `30` | Tool results kept through a compaction. | | `contextManagement.pruningTarget` | | Which agents get old tool results pruned: `"none"`, `"main"`, `"subagents"` or `"both"`. | | `compaction.resetThreshold` | `0.4` | How full the context should be after a compaction. Automatic compaction arms again once the context is below it. | | `compaction.onResume` | `false` | Compact before the first turn after a break, once the prompt cache has gone cold and the context is big. See [after a break](/docs/context/compaction#after-a-break). | | `compaction.resumeAfterMinutes` | `60` | Minutes away before a resume compacts. Never shorter than the cache lifetime. | | `compaction.resumeMinTokens` | `150000` | Smallest context, in tokens, that a resume compacts. | | `contextManagement` | | More options for what is kept in context. See [compaction](/docs/context/compaction). | | `contextWindowOverrides` | `{}` | The real context size of a model, in tokens. Use it when a provider reports the wrong size. | | `maxRequestChars` | `{}` | Largest request a model accepts, in characters. For gateways that reject large requests. | ### Retries For rate limits and temporary errors. The wait doubles after each attempt. See [model fallback](/docs/recipes/model-fallback). ```json "retry": { "maxTransientRetries": 3, "maxStallRetries": 3, "baseDelayMs": 2000 } ``` | Field | Default | What it does | | --------------------------------- | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `retry.maxTransientRetries` | `3` | Retries for rate limits, overloads, timeouts and dropped connections. 1 or more; Settings and `/retry` offer 1 to 10. | | `retry.maxStallRetries` | `3` | Retries when a response stops arriving. Only used when `watchdog` is on. 1 or more; Settings and `/retry` offer 1 to 10. | | `retry.retryOnStatus` | `[]` | Extra HTTP statuses (400 to 599) to retry like a temporary error, for a router that sometimes answers `400 Provider returned error`. `[400]` retries those up to `maxTransientRetries` times. A context-too-large 400 still compacts instead. | | `retry.shrinkOutputOn400` | `false` | A 400 that names the context window always retries once with room to spare and keeps it for that model this session. On, a 400 with no reason to a `max_tokens` that fills the window to the edge does too. For strict routes such as MiniMax through OpenRouter. | | `retry.baseDelayMs` | `1000` in chat, `2000` for agents | Wait before the first retry, in milliseconds. 250 to 60000; Settings and `/retry` offer up to 10000. | | `watchdog` | `false` | Stop and retry when a response stalls. Off by default because slow models and long silent reasoning are normal. | | `streamLoopGuard` | `false` | Cut off a response that keeps repeating the same text ("hmm, hmm, hmm, ..."), drop the repeated part and send the same request once more with the provider's default temperature. A second loop stops the turn. Nothing is added to the prompt. Off by default; turn it on for models that loop. | | `watchdogTimeouts` | | How long counts as a stall. `/timeouts` sets these. | | `watchdogTimeouts.firstChunkMs` | `300000` | Wait for the first chunk of a response, in milliseconds. 30000 to 900000. | | `watchdogTimeouts.chunkMs` | `240000` | Longest gap between chunks. 30000 to 900000. | | `watchdogTimeouts.toolMaxMs` | `900000` | Longest wait while tools run. 120000 to 1800000. | | `watchdogTimeouts.forceResolveMs` | `5000` | Grace after a stop before the turn is closed. 1000 to 30000. | The older `retry.maxAttempts` field still works as a default for both retry counts. ### Streaming | Field | Default | What it does | | ------------------------------------- | ----------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `performance.streamIdleMs` | | How long a stream may go silent before it counts as stalled, in milliseconds. | | `performance.streamFirstGenerationMs` | off (`75000` when `watchdog` is on) | How long a request may show no model output before it is sent again, in milliseconds. Unset and with `watchdog` off, Empryo waits as long as the model takes, so long silent reasoning is never cut off. | | `performance.streamHeadMs` | `120000` | How long a streaming request may wait for the provider to start answering, in milliseconds. A provider that accepts the request and sends nothing fails after this with a message naming the provider and model, is retried once, then falls back. `0` turns it off; `EMPRYO_STREAM_HEAD_MS` sets it for one run. | | `performance.codexResponsesLite` | `"auto"` | The smaller request shape for Codex subscription models: `"auto"`, `"on"` or `"off"`. | | `performance.codexClientMetadata` | | Send Codex client metadata headers. | | `performance.requestCompression` | `true` | Compress model requests of 1 KB or more: zstd, or gzip where the server only takes gzip. A server that refuses gets the plain body. Also compresses the sealed phone and computer-to-computer links once both ends support it. `EMPRYO_REQUEST_COMPRESSION=off` turns it off for one run. | ### Prompt cache See [prompt cache and ping](/docs/context/prompt-cache). | Field | Default | What it does | | ------------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `cache.ttl` | `"5m"` | How long Anthropic keeps the prompt cache: `"5m"` or `"1h"`. An hour survives longer pauses but each cache write costs more. | | `cache.extendedRetention` | | Ask OpenAI to keep the prompt cache for 24 hours. | | `cache.prewarm` | `true` | Write the cached start of the request while you type, so the reply starts faster. | | `cache.keepAlive` | | Ping idle conversations so their prompt cache stays warm. | | `cache.threads` | `false` | Claude message threads: after the first request, send only the new messages and the previous reply's id, not the whole conversation. Same token cost and cache hits; uploads shrink about 25× on long sessions, and the first token arrives sooner on very long contexts. Claude API and Claude subscription only. A thread lasts 5 minutes after its last request; any edit to the history, the system prompt or the tools starts a new one. | | `cache.coldPrune` | `false` | Drop old tool results after a pause of 5 to 60 idle minutes, depending on the model and `cache.ttl`. The 2 newest results stay. Providers that keep their cache longer than the pause lose those cached results, so the next request can cost more. | ### Web search | Field | Default | What it does | | -------------- | ------- | ------------------------------------------------------------------------------------------------------------------- | | `webSearch` | `true` | Allow the `web_search` tool. Off means no web search at all. | | `nativeSearch` | `true` | Let the model provider run the search on its own servers, where Empryo has tested that it works. Needs `webSearch`. | With `nativeSearch` on, a supported model searches in one step and returns its own sources. Your search then goes only to your model provider. Two things to know: - The provider runs the search, so Empryo cannot ask you to approve each search. Turn `nativeSearch` off if you want every search to run on your machine, with a prompt. - The provider's search tool adds about 2,200 input tokens to each request. They are cached, so the real cost is lower. Provider-side search is on for Claude (direct and through the proxy), GPT through the proxy, and OpenRouter models that support it. Other models use the search services you have keys for, with DuckDuckGo as a free fallback. `/web-search` shows which one is in use. You can change both settings in `/provider-settings` or in the desktop app's provider settings. | Variable | What it does | | ----------------------------------- | ----------------------------------------------------------------------------------------- | | `EMPRYO_NATIVE_SEARCH_UNVERIFIED=1` | Also use provider-side search on Gemini, Grok, and Groq direct, which are not yet tested. | ### Provider tools Some tools are run by the model provider, not by Empryo. Whether a tool is available depends on the provider and model, so these settings allow a tool but cannot guarantee it. See [provider tools](/docs/context/provider-tools). | Field | Default | What it does | | ------------------------------------------ | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `computerUse` | `true` | Let the agent take screenshots and use the mouse and keyboard. It still needs a model that accepts images and a machine that supports it, and your OS may ask for permission. See [computer use](/docs/tools/computer-use). | | `computerUseApps` | | Which apps the agent may control, with allow and deny lists per platform. | | `computerUseLaneOrder` | | Which computer-use engine drives, tried in order: a list of lane ids such as `["empryo", "codex:<plugin>:<server>"]`. Only the driving engine's tools reach the model. | | `computerUseSettings.nativeDiscoveryOrder` | `[]` | In auto mode, which native driver is tried first: `["native", "cua"]` or `["cua", "native"]`. Empty uses the platform default. | | `codeExecution` | `true` | Let the provider run code in its own sandbox. Claude and OpenAI only. | | `anthropicTextEditor` | `false` | Give Claude its own file-editing tool alongside Empryo's. Claude only. | To see what is available for a model: ```bash empryo --capabilities anthropic/claude-opus-4-6 ``` These settings are under **General** in `/provider-settings` and in the desktop app's provider options. ### Browser | Field | Default | What it does | | ------------------------------ | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `browser` | | The desktop app's [browser](/docs/tools/browser) panel. `browser.agentOpensHidden` starts a browser the agent opens minimised. `browser.startMuted` mutes it on every launch; the panel's mute button still toggles sound for the session. | | `terminalBrowser` | `true` | Give the agent the same `browser` tool in the terminal app and headless runs, using a hidden browser window. `false` removes the tool. | | `terminalBrowserAllowExternal` | `false` | Let that browser open public websites. When off, it can only open `localhost` and private network addresses. | ### Agents and limits | Field | Default | What it does | | --------------------------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `disabledTools` | `[]` | Tools you have turned off. Tools that are always on are ignored here. See [tools](/docs/reference/tools). | | `advisor` | | Model and defaults for the [advisor](/docs/tools/side-agents#advisor) (`/advise`). `advisor.contextChars` sets how much of the conversation each consult sends, in characters. | | `skills.autoManage` | `true` | Let the agent search, install and load [skills](/docs/tools/skills) on its own. | | `skills.autoLoad` | | Skills loaded into every session, by name. | | `skills.rememberSession` | | Load the skills a session had again when you resume it. | | `memory.autoDistill` | | Headless runs only. Save what the run learned to [memory](/docs/tools/memory) automatically. | | `images.autoResize` | `true` | Shrink image attachments that are larger than the provider accepts. `EMPRYO_NO_IMAGE_RESIZE=1` turns it off for one run. | | `goalLoop` | | Settings for the [goal loop](/docs/agents/goal-loop): rounds, extra checks, escalation. | | `modelFallback` | `{}` | Backup models to try when a model keeps failing. See [model fallback](/docs/recipes/model-fallback). | | `maxTurnSteps` | none | Step budget for one agent turn. Unset or `0` means no limit. | | `subagentMaxSteps` | none | Step limit for helper agents and reviewers. | | `subagentStreamProviders` | `[]` | Global-only list of provider ids whose dispatched helpers consume streams internally and return finished results. Main chat stays unchanged. Set through `settings(action:"set", key:"subagentStreamProviders", value:'["openrouter"]', scope:"global")`. `EMPRYO_SUBAGENT_STREAM_PROVIDERS=openrouter,my-provider` overrides the list; an empty environment value disables it. | | `subagentMaxMs` | none | Time limit for a helper agent, in milliseconds. It stops at the next step after the limit. | | `heavyWork.slots` | `0` (off) | How many heavy commands (typecheck, lint, test suites, builds, `xcodebuild`, `gradle`, `cargo build`, …) may run at once on this machine; `1` runs them one at a time. The limit is shared by every tab, project, worktree and engine: a heavy command from the shell tool, `project` or `api.run` in `code_script` waits for a free slot, and its output says how long it waited and what was running. A command that times out while waiting moves to the background and keeps its place. A command that has held its slot for 10 minutes stops counting, so a long build never blocks the machine; one that has waited 30 minutes runs anyway. Watch modes (`--watch`, `-w`) never count, and anything a slot holder starts skips the queue. | | `heavyWork.commands` | `[]` | More patterns, as regular expressions, for commands that count as heavy, matched against each command in a shell line after `cd`, `timeout`, `nice` and variable assignments, e.g. `["^bun run capture"]`. | | `preCommit.enabled` | `true` | Run the lint and type check before every `git commit` the agent makes. See [pre-commit checks](/docs/tools/project#pre-commit-checks). | | `preCommit.command` | none | The command the pre-commit check runs instead of the detected linters, e.g. `"uv run ruff check . && uv run basedpyright"`. Honored only from your global config or a project config git does not track; the agent must ask before setting it. | | `engineSleep.enabled` | `false` | Free memory from idle engines. A project engine with no running turn, queued work, background job, open question or enabled routine sleeps (a routine keeps its project engine awake so it can fire); its tabs stay listed on every device and the next message wakes it. Each engine also unloads its code map worker when idle and reloads it on the next lookup. Global file only. | | `engineSleep.childMinutes` | `20` | Idle minutes before a project engine sleeps. `0` keeps it awake. | | `engineSleep.genomeMinutes` | `10` | Idle minutes before an engine unloads its code map worker. `0` keeps it loaded. | | `mcpServers` | `[]` | [MCP servers](/docs/tools/mcp) to start or connect to. | | `providers` | | [Custom providers](/docs/providers/custom). | ### Accounts and gateways | Field | Default | What it does | | --------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `copilotHost` | github.com | Your enterprise GitHub host for [Copilot](/docs/providers/copilot). Global config only. `COPILOT_GITHUB_DOMAIN` overrides it. | | `llmgatewayAuth` | `"auto"` | Which LLM Gateway credential to use when you have both: `"key"`, `"login"`, or `"auto"`. | | `llmgatewayLoginOrg` | `"default"` | Which organization the browser sign-in created its key in. `"devpass"` bills your DevPass subscription. | | `grokApiEndpoint` | unset | Unset: new Grok sign-ins (SuperGrok / X Premium) use `api.x.ai/v1`; sign-ins saved earlier, and the "Grok (legacy proxy)" login, keep the Grok CLI proxy. `true` or `false` forces one route for every sign-in. The token only ever goes to x.ai or grok.com hosts. | | `antigravityCli` | `false` | Run Antigravity models through Google's official `agy` CLI (found on `PATH` or at `EMPRYO_AGY_PATH`) instead of calling the API directly. Sign-in then runs `agy`'s own login, which keeps its token in a private file instead of your keychain. See [Google Antigravity](/docs/providers/antigravity). | | `llmgatewayBudget.amount` | | Monthly LLM Gateway budget shown in the usage summary. | | `llmgatewayBudget.resetDay` | | Day of the month the budget resets, `1` to `28`. | | `voice` | | [Voice input](/docs/surfaces/voice-input): speech model (`gpt-transcribe` by default with an OpenAI key), hands-free voice (`handsFree`), live dictation (`live`, `liveModel`, `delay`), `language`, `prompt`, `keywords`, insert mode, recorder. | | `telemetry` | on | Anonymous usage counts. Opt out with `false`, `DO_NOT_TRACK=1`, or `EMPRYO_TELEMETRY=0`. `/developer` shows exactly what is sent. | ### Live updates | Field | Default | What it does | | ---------------------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `liveTranslations` | `true` | Download newer translations at most once every 6 hours. | | `soulstack.autoUpdate` | `true` | Keep the installed [SoulStack](/docs/tools/skills) up to date. | | `liveSkills` | `true` | Update the [skill that ships with Empryo](/docs/tools/skills) from empryo.com. Only newer versions, only if you have not edited your copy, and only when the download's checksum matches. | ### Desktop appearance The desktop app's look. Change it in **Settings → Appearance** and **Settings → Window**, or ask Empryo from a desktop chat; the terminal app cannot change these. They are stored in the desktop's own file, or under `appearance` in the global config when **Share appearance with CLI** is on. | Field | Default | What it does | | ----------------------------------------------------- | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `appearance.themeId` | | The desktop theme. | | `appearance.themeMode` | `"fixed"` | `"auto"` switches the theme between its dark and light version with the system. | | `appearance.density` | | Row heights and spacing: `"compact"`, `"cozy"` or `"comfy"`. | | `appearance.bgOpacity` | | Surface opacity, `0` to `100`. | | `appearance.cardOpacity` | `100` | Card opacity as a percentage of the surface. | | `appearance.chromeOpacity` | | Title bar and status bar background opacity, `0` to `100`. | | `appearance.chromeTone` | `"auto"` | Title bar and status bar text: `"auto"`, `"dark"` or `"light"`. | | `appearance.blur` | | Glass blur radius in pixels, `0` to `40`. | | `appearance.showNoise` | | Film grain over the surfaces. | | `appearance.reduceMotion` | `false` | Turn off spring and fade transitions. | | `appearance.motionFps` | `30` | Frame rate of looping animations (spinners, pulses, Mote) and of streamed text: `15`, `30`, `60`, or `0` for the display's rate. A window in the background runs them at 10. | | `appearance.showMascot` | `true` | Show Mote on the welcome and on the focused tab. | | `appearance.chatUserStyle` | `"thread"` | How your own messages are drawn: `"thread"` or `"bubble"`. | | `appearance.chatScale` | `100` | Chat text size as a percentage, `50` to `150`. | | `appearance.composerCollapse` | `"never"` | When the empty prompt box shrinks: `"never"`, `"working"` or `"always"`. | | `appearance.settingsPresentation` | | Settings as a `"popup"` or a workspace `"panel"`. | | `appearance.windowBackdrop` | `"blurred"` | What shows behind the window: `"blurred"`, `"clear"`, `"solid"` or `"dither"`. Changes apply right away, except going into or out of see-through (`"clear"`) compared with how the window opened: then the window shows **Restart now**. | | `appearance.blurInBackground` | `false` | macOS. Keep the window blurred while another app is in front. Uses more battery. Applies at the next launch. | | `appearance.enterQueues` | `false` | Enter queues a follow-up while a turn runs, and Cmd/Ctrl+Enter steers. Off: Enter steers. | | `appearance.systemTitlebar` | `false` | Use the system title bar instead of Empryo's. Applies at the next launch. | | `appearance.mazeGpuPower` | `"high-performance"` | Which GPU draws the codebase map: `"high-performance"` (Fast) or `"low-power"` (Eco). | | `appearance.mazeFpsDocked` / `appearance.mazeFpsFull` | `60` | Frame-rate cap of the codebase map, docked and full screen. | The window backdrop (**Settings → Window**) changes right away between Blurred, Wallpaper and Solid. Switching to or from See-through, **Keep blur in the background** and the system title bar take effect after a restart. Empryo also stores some of its own state in the config file, such as `onboardingComplete`, `configVersion`, and flags ending in `IntroSeen`. These are not settings. Changing them only shows or hides a one-time notice. ### Desktop keybindings `keybindings` maps a desktop action to a key. Only the actions you list change; every other shortcut keeps its default. A project config overrides single keys of the global one. ```json { "keybindings": { "tab-search": "mod+o", "palette": "mod+p", "graph": "none" } } ``` A key is modifiers and one key joined by `+`: `mod` (Cmd on macOS, Ctrl elsewhere), `ctrl`, `cmd`/`meta`, `alt`/`option`, `shift`, then a letter, digit, `f1`–`f24`, `left`/`right`/`up`/`down`, `tab`, `space`, `enter`, `escape`, `backspace`, `delete`, `home`, `end`, `pageup`, `pagedown` or a punctuation key such as `,` `.` `\` `` ` ``. Names such as `comma`, `period`, `backslash`, `plus` and `pgup` work too. `"none"` turns an action off. An unknown action, a key that cannot be read, or a value that is not text is ignored, and that shortcut keeps its default. A shortcut needs `mod`, `ctrl` or `cmd`, or is an f-key; a bare typing key such as `space` or `shift+a` is ignored. A key you bind wins over another action's default. The settings tool refuses the same mistakes before it writes them. | Action | Default | Action | Default | | --------------- | -------------- | ------------------- | ----------------- | | `palette` | `mod+k` | `tab-search` | `mod+shift+a` | | `settings` | `mod+,` | `stop-turn` | `mod+.` | | `sidebar` | `mod+b` | `side-panel` | `mod+j` | | `tools-pane` | `mod+i` | `focus-composer` | `mod+l` | | `graph` | `mod+shift+g` | `stem-panel` | `mod+shift+l` | | `find` | `mod+f` | `search` | `mod+shift+f` | | `split` | `mod+\` | `split-orientation` | `mod+shift+\` | | `previous-pane` | `mod+alt+left` | `next-pane` | `mod+alt+right` | | `next-tab` | `ctrl+tab` | `previous-tab` | `ctrl+shift+tab` | | `new-tab` | `mod+t` | `close-tab` | `mod+w` | | `reopen-tab` | `mod+shift+t` | `tab-1` … `tab-9` | `mod+1` … `mod+9` | | `terminal` | `` ctrl+` `` | `browser` | `mod+shift+b` | | `expand-tools` | `mod+shift+e` | | | Changes apply right away. The app menu, tooltips and the `?` cheatsheet show the new keys. [Keyboard shortcuts](/docs/reference/keybindings) lists every shortcut of both apps. ## Task router Use a different model for each kind of work. See [use multiple models](/docs/recipes/task-router) for advice. ```json "taskRouter": { "spark": "anthropic/claude-haiku-4-5", "ember": "anthropic/claude-sonnet-4-5", "webSearch": "anthropic/claude-haiku-4-5", "desloppify": "anthropic/claude-haiku-4-5", "verify": "anthropic/claude-haiku-4-5", "compact": "google/gemini-2.5-flash", "semantic": "anthropic/claude-haiku-4-5", "default": null } ``` | Slot | Used for | | ------------ | -------------------------------------------------- | | `spark` | Helper agents that read and research | | `ember` | Helper agents that edit code | | `explore` | The single `explore` agent. Uses `spark` if unset. | | `webSearch` | Web search | | `desloppify` | The cleanup pass after edits | | `verify` | The review after edits | | `goalReview` | The reviewer in the goal loop | | `review` | `/review`. Uses `goalReview` if unset. | | `compact` | Compaction | | `semantic` | Genome summaries | | `marionette` | The Marionette's file mapping | | `namer` | Tab names | | `default` | Anything without its own slot | If a slot is empty, Empryo uses `default`, then the model you are chatting with. `taskRouter.maxConcurrentAgents` is the single limit for dispatched and background agents together (default `16`, `0` for no limit). There is no separate CPU or memory cap. Change it in desktop Settings → Agent → Routing → Parallel agents, or terminal `/router` → Concurrency. It applies live to agents already waiting. `taskRouter.efforts` sets reasoning effort per slot, and per mode: `plan`, `auto` and `lite` apply to the chat model while a tab is in that mode, for example `"efforts": { "plan": "high" }`. See [effort by mode](/docs/recipes/task-router#effort-by-mode). ## Agent features ```json "agentFeatures": { "marionette": false, "desloppify": true } ``` | Feature | What it does | | ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `marionette` | Experimental. Before each prompt, map which files matter, using the `taskRouter.marionette` model. See [the Marionette](/docs/concepts/marionette). | | `desloppify` | Run a cleanup pass after agents edit code. | | `pythonKernel` | Off by default. Add a Python session that keeps its state between calls. See below. | | `toolLoading` | How tools are sent to the model: `"auto"` (default), `"provider"`, `"ours"`, `"all"`. See below. | | `contextGc` | Off by default. Drop tool results the agent no longer needs during a long turn. `true`, or `{ "keepSteps": n, "minChars": n }` to tune it. | | `turnAudit` | Off by default: tried on past sessions, it flagged turns that were later corrected for unfinished work about as often as turns that were not. When on and a turn that did real work ends, the tab's model checks the answer and the steps the agent took against what you asked, including what you added during the turn, in a separate short request. If requested work was left undone (stopped at a diagnosis, listed as next steps, done in part), the turn continues with that list, at most twice per message you send. Stop cancels a check in progress. `EMPRYO_TURN_AUDIT=1` turns it on for one run. | | `appendOnlyInstructions` | On by default for Claude 5 and later on the Anthropic API and Claude subscription. An edit to an instruction file (EMPRYO.md, AGENTS.md, global rules) applies at the next turn as a message appended to the conversation, instead of rewriting the system prompt: the prompt cache keeps hitting and Claude keeps its earlier thinking. `EMPRYO_APPEND_ONLY_INSTRUCTIONS=0` turns it off for one run. | | `writeOnceInputs` | Retired and being removed. It stays off on every surface, and a saved `true` is ignored. Shortening big tool inputs into notes led models to copy and invent those notes as real arguments, and an A/B run on real tasks cost more with it on. | | `backgroundAutoResume` | On by default. Wake the chat when a background agent finishes. | | `subagentTabs` | Off by default. Every subagent opens as a sub-tab under the tab that started it, a full chat you can watch and steer on every surface. | | `subagentTabsAutoClose` | On by default. Close any sub-tab an agent opens (subagents, orchestration lanes, `tab_open`) 5 seconds after it answers; a `tab_open` child waits until its parent has replied. Failed ones, council members and tabs you typed in stay open; click the timer to keep one. | | `nativeToolDeferral` | | Let the provider hide unused tools where it can. `toolLoading` overrides it. | | `backgroundResumeLimit` | How many times background agents may wake the chat per message you send. Default `10`, `0` for no limit. | | `repeatOpens` | How often an agent may open the same tab again (`tab_open` or an orchestration lane with the same label, round numbers ignored) since your last message. Default `4`, from `2` to `20`. The next one asks you first: Continue allows another set, Stop ends them. An identical tab that is still open, or closed less than 10 minutes ago, is never opened twice; the agent is pointed at it. | | `linkBroadcastWake` | Global only. What a broadcast from another tab does to idle tabs: `"wake"` (default) starts a turn in each, `"queue"` holds it for the tab's next turn, `"smart"` wakes only tabs with a warm prompt cache or a short conversation. Set it with `/link settings` or **Settings › Agent › Agent link**. See [tabs](/docs/agents/cross-tab#broadcasts-and-waking-tabs). | | `requestMap` | Off by default. Rank the session's first code map by the words in your request and name the likely files at its top. | | `fixHistory` | Off by default. Rank files that often needed fixes higher in the code map, and point co-change hints only at them. Needs git history. | | `editEchoes` | Off by default. After an edit renames something or changes how it is written, list other places in nearby files that still use the old form. | | `codeMode` | `"off"` (default), `"example"` or `"explore"`. Budget models such as Claude Haiku explore through `code_script`: `example` shows a worked script, `explore` also moves `grep`, `read` and `find` behind it. | | `learnedResidency` | `"off"` (default), `"unattended"` or `"everywhere"`. Tools a model rarely used in its recent turns load on demand, and a tool held back by default that the surface and model family used in at least 3% of its last 120 turns loads up front; `git`, `skills`, `ask_user`, `settings` and `plan` stay held back. A tab keeps the list it runs with until its prompt cache breaks anyway: a new chat, a compaction, a rewind, a model change, or a cache past its known lifetime. Off, the learned list changes no tool. See `EMPRYO_LEARNED_RESIDENCY` below. | | `finishNudge` | `"off"` (default), `"unattended"` or `"everywhere"`. When the agent lists work it has not done in `final_response` (`unfinished`), the list shows as "Not done yet" after the last automatic continuation, and only with items not already shown since your last message. If you stop the continuation, the held items show on the stopped turn. If it never starts (you steer, or Empryo restarts), the next turn reminds the agent of them and its answer decides what is still open. `/clear` and rewinding drop them. `"unattended"` continues to finish it only in headless runs, `"everywhere"` also in the desktop app and TUI, at most twice per message you send. `true` and `false` from older configs read as `"unattended"` and `"off"`. | Change these with `/agent-features`, or in the desktop app under Settings. The ones still being tested are together on one page, with what each does and what testing found: `/experimental` in the terminal, **Settings › Experimental** on the desktop. ## Experimental features The Experimental page lists every feature that is still being tested, in two groups: off by default, and on by default. Each one says what it does, what testing found so far and where it applies, with a switch. A change applies from your next message. | Feature | Setting | Default | What testing found | | ---------------------------------- | -------------------------------------- | ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------- | | Compact after a break | `compaction.onResume` | off | Measured by replaying real sessions; not tried live yet. | | Trim old results after a pause | `cache.coldPrune` | off | Measured by replaying real sessions. | | Send big inputs once (retired) | `agentFeatures.writeOnceInputs` | off, cannot be turned on | Models copied and invented the notes; being removed. | | Code map follows your request | `agentFeatures.requestMap` | off | The right file was in the map more often, but live runs took no fewer steps. | | Rank by fix history | `agentFeatures.fixHistory` | off | No difference in live runs yet. | | Finish check | `agentFeatures.turnAudit` | off | It flagged answers you later corrected and answers you accepted about equally. | | Find leftovers after edits | `agentFeatures.editEchoes` | off | Catches some leftovers; no effect on live runs yet. | | Code mode for small models | `agentFeatures.codeMode` | `"off"` | Small models rarely write scripts unless shown how. Not tested yet. | | Heavy commands take turns | `heavyWork.slots` | `0` (off) | Heavy commands rarely run at the same time, so it stays off. | | Learned tool loading | `agentFeatures.learnedResidency` | `"off"` | Measured in headless runs. | | Finish the job | `agentFeatures.finishNudge` | `"off"` | Replaces an older check that only worked in English. Not tested yet. | | Hide secrets from the model | `agentFeatures.redactKnownSecrets` | off | Checked by automated runs; not tested in live sessions yet. `EMPRYO_REDACT_KNOWN_SECRETS=1` turns it on for one run. | | Mito, one lead above your projects | `mito.enabled` | off | Checked by scripted runs on every surface; not measured on real work yet. See [Mito](/docs/agents/mito). | | Track pull requests | `github.pullPool` | on | Checked by automated runs in the desktop, terminal and phone apps; not measured in live sessions yet. See [pull requests](/docs/tools/pull-requests). | | Instruction edits as messages | `agentFeatures.appendOnlyInstructions` | on | Before, every edit reset the cache and Claude's thinking. | ### Mito's skills for lanes `mito.pushSkills` (global only, default on): when Mito opens or queues a lane with skills, Empryo loads them into the lane before its prompt runs. Off, the lane's prompt names them and the lane loads them itself. See [Mito](/docs/agents/mito#skills-and-mcp-servers-for-lanes). `mito.maxLanes` (global only, a whole number from 1 to 64, unset by default): a fixed cap on how many lanes Mito runs at once. Unset means no fixed number: Mito opens lanes until your computer is under pressure, with 90% or more of its memory in use or the CPU at 95% or more for a while, and then says which reading stopped it. Change it in **Settings › Experimental › Mito** on the desktop, `/experimental` in the terminal, or **Settings › Mito** on a phone, where it reads **Max lanes Mito runs at once**; empty or **Automatic** goes back to the automatic cap. `mito.reviewRounds` (global only, a whole number from 1 to 12, `4` by default): how many review rounds Mito runs on one worker's change before it asks you to go on. Each review lane Mito opens for a worker, and each message it queues into one, is a round, counted since your last message to Mito. The next round asks you first: Continue allows another set, Stop ends them. `mito.worktrees` (global only, `auto` by default, or `code`, `always`, `off`): where Mito's lanes work. `auto` keeps lanes in the main checkout and gives its own git worktree and branch only to truly big work (large, plan or orchestrate, work across the project, more than three files) or to work on files a lane in the main checkout is editing right now; lanes in their own worktrees don't count. `code` gives every lane that changes code a worktree, `always` every lane, `off` none. It keeps a lane in the main checkout when the worktree's estimated cost, learned from past worktrees, would leave under 10 GB free, and asks you first when a worktree needs more than 5 GB. `mito.view` (global only, `list` by default, or `sections`, `cards`, `rails`): how the [Mito view](/docs/agents/mito#mito-view) lays out your lanes. `list` keeps one list grouped by state. `sections` keeps the same lists and splits them under a header for each project. `cards` shows each project as a card with a bar of what needs you, failed, runs and is done. `rails` puts each project under a sticky header with a coloured rail, shows each lane's state as a word pill such as Needs you or Running 2m, and lays lanes out as a dense table on wide screens. An unknown value reads as `list`. Change it in **Settings › Experimental › Mito** on the desktop, `/experimental` in the terminal, or **Settings › Mito** on a phone. `mito.folders` (global only, `projects` by default, or `collections`): how Mito mode files lanes and sessions. `projects` keeps folders inside each project, with pinned items on top and the archive at the end of each project. `collections` lets a folder mix projects and filters the Mito view by All, Pinned, each collection and Archive. Mito mode's pins and folders stay apart from classic mode's. See [Mito](/docs/agents/mito#folders-pins-and-archive). `mito.organizeOnSetup` (global only, default on): the first time you open Mito, it puts the chats you already have open on its board, one card per chat with work in it, under its project and linked to the chat. Chats that wait on you or failed go to Blocked, chats that are running or were used in the last 3 days to Doing, older ones to Inbox. Cards already on the board are kept, and a chat that already has a card gets no second one. Off, the board starts empty. Ask Mito to organize the board to do it again later. `mito.openChat` (global only, `beside` by default, or `replace`): what happens when you open a chat that is not Mito while Mito is on. `beside` keeps Mito's chat open and shows the other chat next to it: in a panel on the left on the desktop and in the terminal, in a sheet you can drag up to full screen or down to close on phones. `replace` shows the other chat in place of Mito's chat, with a strip at the top that brings Mito back. In the app: Settings, Mito, When opening another chat. `mito.goals` (global only, default on): the Goal button and `/goal` in Mito's chat, Mito's goal tool, and each goal's progress on the overview, the board and in Mito's chat. Off, they are gone from Mito; `/goal` in a normal chat still runs a goal loop. See [Mito](/docs/agents/mito#goals). `mito.shell` (global only, default on): Mito gets the same shell tool as any tab, for quick checks and machine commands (status, cleanup, waking or sleeping a machine, your own scripts). It runs in the engine's root folder, or in a project or one of its worktrees, and asks first exactly like a tab does. Building, fixing and testing still go to lanes. Off, Mito has no shell. `mito.needsUserNotice` (global only, default on): Mito's `final_response` carries a required `needsUser`, and with `needsUser` true a `notice` (a title of up to 80 characters and an optional one-line body). When no notice of Mito's was actually sent that turn, the engine sends that `notice` as a needs-you notice, and tapping it opens Mito's chat. It keeps the same limits as Mito's own notices. Off, the field is gone. `mito.autoEnabled` (global only): older versions turned `agentFeatures.turnAudit` on with Mito and recorded it here. On upgrade Empryo puts `turnAudit` back to what it was before and removes the record; a `turnAudit` you set yourself stays. ### Mito's smart routing `mito.routing` (global only) turns on Smart routing: Mito picks each lane's model and effort from the models the role allows, by the lane's size and files, the style, how each model is paid for and the public rankings. It is off until you pick it; your `mito.roles` picks stay saved. | Key | Meaning | Default | | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------- | | `mode` | `advanced` uses `mito.roles`; `smart` lets Mito pick | `advanced` | | `style` | `frugal`, `balanced` or `lockin` | `balanced` | | `strongReviews` | Reviews on the strongest allowed model that did not write the change | `true` | | `dailyCap` | Dollars of pay-per-use spend a day before Mito asks, also before it feeds an open pay-per-use lane; `null` is no cap. Unpriced pay-per-use models always ask under a cap | `5` | | `pins` | Per lane role, `{ "model": "provider/model", "effort": "high" }`: that role keeps this model while the others stay smart | `{}` | | `offered` | The "Let Mito handle this" card was answered | `false` | A value Empryo cannot use is reported once and its default is used. ### Mito's models `mito.roles` holds Mito's router, in the global config only (a project's config cannot set it). One entry per role: `lead`, `triage`, `summary`, `worker`, `writer`, `planner`, `orchestrator`, `reviewer`, `advisor`. Each takes: | Key | Meaning | Default | | -------- | ----------------------------------------------------------------------------------------------------------------- | ------- | | `on` | The role's switch. The lead is always on | `true` | | `model` | `provider/model` for the role; `null` takes the role's default (see [Mito](/docs/agents/mito#models)) | `null` | | `effort` | Reasoning effort for the role's model | `null` | | `allow` | Providers (`"anthropic"`) or full model ids (`"subscriptions/claude-opus-5-5"`) the role may use; empty means all | `[]` | ```json { "mito": { "roles": { "reviewer": { "model": "openai/gpt-5.5", "allow": ["openai", "anthropic"] }, "advisor": { "on": false } } } } ``` ## Stem add-on Stem remembers what worked in a project (earlier fixes, answers to earlier questions, stopped work and your feedback) and reminds the agent next time. It used to be an experiment and is now an add-on: turn it on under **Settings › Add-ons** on the desktop, or with `/stem on` in the terminal. The setting is still `agentFeatures.stem` (off by default), so nothing changes if you already had it on. When the stem app is installed (macOS, Linux and Windows, downloaded automatically), it gives the notes, and `/stem status` shows each kind of note and whether it has earned being shown: a kind is shown once it was right in at least half of 10 or more turns. Without the stem app, Empryo's built-in Stem gives the notes and measures what they saved by holding back `agentFeatures.stemHoldout` percent of tasks (default 10). `agentFeatures.stemMark` (default on) shows a small Sprout icon at the desktop composer's top-left corner. The environment variables in the table below override these settings for a single run. ### Tool loading ```json "agentFeatures": { "toolLoading": "auto" } ``` Every tool sent to the model adds to the size of each request. To keep requests small, Empryo holds back tools you use less often. The agent finds a held-back tool with `tool_search` and runs it with `run_tool`. The list of tools does not change during a conversation, which keeps the provider's prompt cache working. See [tools](/docs/reference/tools). | Choice | What happens | | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `auto` | The same tools are held back on every model. Where the provider can hide tools itself (Claude 4.5 and later, GPT 5.4 and later), it does; on every other model Empryo holds them back behind `run_tool`. Tools that ask for approval still ask when reached through `run_tool`. | | `provider` | Only the provider hides tools. Other models get every tool. | | `ours` | Empryo holds back tools on every model. The provider's own hiding is off. | | `all` | Every tool in every request. Nothing is hidden, and requests are largest. | Tools from MCP servers are always reached through `run_tool`. When a server connects or disconnects mid-conversation, the agent is told in a note. `/tools` shows which tools are sent and which are held back for the current model. Longer instructions for a tool travel with the tool, not in every request. The guides for the browser, subagents (`dispatch` and the `background_*` tools), `memory` and `rename_tab` are added once, to the first result of that tool in a conversation. The rules for sharing a checkout with other tabs arrive with the first note about other tabs, so a run with no other tabs never pays for them. ### Python kernel ```json "agentFeatures": { "pythonKernel": true } ``` This adds a `python_kernel` tool: a Python session that keeps its variables between calls. The agent can load a data file once and ask many questions about it, instead of starting a new `python` process each time. It uses IPython if it is installed, and plain Python otherwise. There is one session per project, it starts in the project folder, and `reset: true` clears it. A call that runs past its time limit restarts the session. It is off by default because it runs code with your permissions, like `shell` does. It needs `python3` on your PATH. To turn it on for one run, set `EMPRYO_PYTHON_KERNEL=1`. ### Marionette mode The Marionette is an experimental step that maps which files matter for a prompt before the agent starts. `marionetteMode` sets how hard it looks: ```json "marionetteMode": "fast" ``` | Mode | How it works | | ------------------ | ------------------------------------------------------------------------------------ | | `none` | Uses the code index only. No model call. | | `fast` _(default)_ | Searches the index, then one model call picks the files. | | `assist` | Searches the index, then a model checks with a few tool calls. | | `deep` | The model does the whole search itself. Slowest, and results vary more between runs. | Change it with `/marionette none|fast|assist|deep`, in Settings, or for one run with `--marionette-mode`. `marionetteBudget` limits steps and time for `assist` and `deep`. ## Providers Add keys and custom providers on these pages: - [All providers](/docs/providers/overview): environment variables and `--set-key` commands. - [Custom providers](/docs/providers/custom): any OpenAI-compatible API. - [Copilot](/docs/providers/copilot): use your GitHub Copilot subscription. ### Extra request-body parameters Some provider features are turned on by a field in the request, not by a tool. For example, DashScope reads `enable_search`. `extraBody` adds your own JSON to every chat request for a provider or a model. ```json { "extraBody": { "proxy": { "enable_search": true }, "proxy/gpt-5.6-luna": { "verbosity": "low" } } } ``` Keys are a provider id or a full model id. When both match, the model's entry wins. [Custom providers](/docs/providers/custom#extra-request-body-parameters) have their own `extraBody` field, which this map can override per model. Your fields replace anything Empryo would have sent under the same name. If the provider rejects a field, the request fails. Embedding requests do not get these fields. > **Note:** > A project's `extraBody` applies to every request made in that project, because it can change any part of a request. ### Custom request headers `providerHeaders` adds HTTP headers to every chat request for a provider or a model, built-in or custom. Use it for a team id, a gateway route, or a proxy that wants its own token. ```json { "providerHeaders": { "opencode-go": { "X-Team": "core" }, "openrouter/anthropic/claude-sonnet-5": { "X-Route": "eu", "X-Gateway-Key": "{env:GATEWAY_KEY}" } } } ``` Keys are a provider id or a full model id; when both set the same header, the model's value wins. `{env:NAME}` reads an environment variable when the request is sent, so a secret stays out of the file. A header you set replaces one Empryo would send under the same name. Header names must be valid HTTP tokens, values must be text, and `Host`, `Content-Length`, `Transfer-Encoding` and `Connection` cannot be set. A wrong entry is skipped and named in Events; the other headers, and the rest of the file, still load. The `settings` tool refuses a wrong value before it writes it. The model picker marks every model that sends custom headers: a tag icon on desktop, "custom headers" after the model in the terminal, and in the model's caption on the phone. On desktop, edit them in **Settings → Provider options → Custom headers**: pick a provider, or one of its models, add header names and values, and save to the project or global scope. Or ask Empryo ("send X-Team: core to opencode-go") and it writes `providerHeaders` through the `settings` tool. ## Auth & key storage Empryo stores keys in your system keychain when one is available, and in a protected file otherwise. | Platform | Where keys are stored | | --------------------------- | ------------------------------------------------------------------------------- | | macOS | Login Keychain, service `empryo` | | Linux | The system secret store through `secret-tool` (GNOME Keyring, KWallet) | | Linux without `secret-tool` | `~/.empryo/secrets.json`, readable only by you | | Windows | Encrypted for your user account (DPAPI), in `%LOCALAPPDATA%\Empryo\secrets.dat` | | Windows without DPAPI | A plain JSON file in the same folder, readable only by you | | Windows (WSL) | Same as Linux | `empryo --set-key <provider> <key>` saves a key. `empryo --list-providers` shows which providers have one. ### Several keys for one provider Run `--set-key` again with a different key and Empryo keeps both. When one account runs out of quota during a turn, Empryo switches to the next key and continues. When every key is used up, you see the provider's error. A short rate limit waits and retries with the same key. Keys from environment variables are never rotated. This works for built-in and [custom](/docs/providers/custom#several-accounts-on-one-provider) providers. `/keys` lists what is stored. ### Lookup order ```json { "keyPriority": "env" } ``` | Value | Order | | ----------------- | ---------------------------------------------- | | `"env"` (default) | Environment variable, then keychain, then file | | `"app"` | Keychain, then file, then environment variable | Use `"app"` if keys exported in your shell keep overriding the ones you saved. ### Use a key for one launch Environment variables work in the terminal app too. Nothing is saved: ```bash LLM_GATEWAY_API_KEY=sk-... empryo ANTHROPIC_API_KEY=sk-ant-... empryo ``` There is no `--key` flag. ### Remove a key `/keys` lists every provider and lets you delete a key. You can also delete it from your keychain directly, for example on macOS: `security delete-generic-password -a empryo -s anthropic-api-key`. ## Instruction files Empryo can load project rules from the instruction files other AI tools use: ```json { "instructionFiles": ["empryo", "claude", "cursorrules"] } ``` | Key | File | | ---------------- | --------------------------------- | | `empryo` | `EMPRYO.md` | | `claude` | `CLAUDE.md` | | `claude-local` | `CLAUDE.local.md` | | `codex` | `AGENTS.md` | | `agent-md` | `AGENT.md` | | `cursorrules` | `.cursorrules` | | `github-copilot` | `.github/copilot-instructions.md` | | `cline` | `.clinerules` | | `windsurf` | `.windsurfrules` | | `aider` | `.aider.conf.yml` | | `amp` | `AMPLIFY.md` | | `gemini` | `GEMINI.md` | | `qwen` | `QWEN.md` | | `warp` | `WARP.md` | | `junie` | `.junie/guidelines.md` | | `zed` | `.rules` | | `continue` | `.continuerules` | | `roo` | `.roorules` | | `augment` | `.augment-guidelines` | | `trae` | `.trae/rules/project_rules.md` | | `goose` | `.goosehints` | Each file is read from the project folder and from your home folder. If they disagree, the project file wins. Choose files with `/instructions` in the terminal app, or under Settings → Instruction files in the desktop app. ### Load a file only for some models By default, every enabled file loads for every model. `instructionRouting` limits a file to certain models or agents: ```json { "instructionFiles": ["empryo", "claude", "codex"], "instructionRouting": { "claude": ["claude"], "codex": ["openai", "agent:reviewer"] } } ``` With this setup, a Claude tab reads `EMPRYO.md` and `CLAUDE.md`, and a GPT tab reads `EMPRYO.md` and `AGENTS.md`. Switch a tab's model and the files change on the next message. | Pattern | Matches | | ----------------------------------------------- | ------------------------------------------------------------------------------------------------------- | | `claude`, `openai`, `google`, `xai`, `deepseek` | The model's maker, through any provider or gateway. `anthropic`, `gpt`, `gemini`, and `grok` also work. | | `provider:proxy` | Exactly this provider | | `family:google` | The model's maker, written out | | `anthropic/*`, `proxy/gpt-*` | The full model id, with `*` wildcards | | `*sonnet*`, `gpt-5*` | The model name, with `*` wildcards | | `agent:<name>` | A custom agent (`--agent`, `/agent`) | `/instructions` shows a **for:** row under each enabled file. Press Enter to cycle through Everyone, Claude, OpenAI, and Gemini, or type `/instructions route <file> <all|claude|openai|google>`. The desktop app has the same choice next to each switch. A file that is on but not for the current model is marked _not for this model_. Project settings override global ones. ## Privacy Stop the agent from reading certain files: ``` /privacy add .env /privacy add secrets/** ``` Some files are always blocked, including `.env`, `.pem` files, `credentials`, `id_rsa`, `.npmrc`, `.netrc`, `shadow`, and `passwd`. ### A repository's own config A repository's `.empryo/config.json` loads in full when you open it: its `mcpServers`, `providers`, `presets`, `extraBody` and hook files included. Those can start programs on your machine and send requests to other servers, so read the file before you open a repository you did not write. ### Passing credentials to commands Commands the agent runs (the shell tool, background jobs and orchestration shell steps) get a filtered copy of Empryo's environment: `PATH`, `HOME`, locale, toolchain and terminal variables, never tokens, keys or passwords. A variable you exported before starting Empryo, such as `NODE_AUTH_TOKEN`, does not reach them, and exporting it again or restarting does not change that. The simplest fix needs no setting: put the credential in the tool's own file, such as `~/.npmrc`. Commands can use it, and the agent cannot read it. To pass a variable from your environment instead, add a rule to `forwardEnv` in `~/.empryo/config.json`. Each rule names the variables and the programs that may receive them: ```json { "forwardEnv": [{ "env": ["NODE_AUTH_TOKEN"], "commands": ["npm", "pnpm", "yarn"] }] } ``` - **Global only.** A repository's `.empryo/config.json` cannot set `forwardEnv`, and the settings tool cannot change it. Edit the file yourself. - **Only the programs you name.** The variable is passed only when every program in the command is in the rule and is found outside the project, with plain `cd` steps allowed in between: `npm ci` or `cd web && pnpm install` get it. `npm ci && curl …`, `sh -c …`, `env npm …`, `npx …`, `./script`, a leading `VAR=value`, quotes, `$`, `%`, `~`, globs, backticks, `(`, `{`, `<` or `>`, `-c`, `-e` or `-p` style arguments, and a file with the program's name inside the project do not. - **Package commands only.** For package managers, only built-in subcommands that never fall back to a `package.json` script, in any supported version, pass it. npm: `ci`, `install`, `i`, `add`, `update`, `up`, `uninstall`, `remove`, `rm`, `un`, `view`, `info`, `show`, `whoami`, `ping`, `ls`, `list`, `outdated`, `audit`, `publish`, `pack`, `dedupe`. pnpm: `install`, `i`, `add`, `update`, `up`, `remove`, `rm`, `uninstall`, `un`, `publish`. Yarn: plain `yarn`, `install`, `add`, `remove`, `pack`. Bun: `install`, `i`, `add`, `update`, `remove`, `rm`. Anything else, such as `run`, `exec`, `dlx`, `x`, `create`, `init` or a script name, does not. - **Never shown to the model.** The value goes into the program's environment, not its arguments. Where it appears in command output, background job logs, saved command output or error reports, it is replaced with `[redacted NODE_AUTH_TOKEN]`. That holds for every command while the variable is set, including ones that never receive it but print it, such as `cat` on a file that holds the token. Logs are cleaned as they are written, so a log read while the command runs, or left behind by a crash, never holds the value. - **At least 8 characters.** Shorter values cannot be reliably hidden in output, so they are never passed. - **Explained when it is missing.** When a package manager fails and your `.npmrc`, `.yarnrc.yml` or `bunfig.toml` uses a variable that is set but not passed, the error names the variable and this setting. > **Warning:** > The program list limits which commands receive the variable, not what they do with it. `npm install`, `pnpm install` and `npm run` run the repository's own scripts, and the agent can edit those scripts, so they can read the variable too. Give the variable a token that can only read packages, and avoid listing interpreters such as `node` or `bun` unless you mean to. ### Passing every secret to the shell To let shell tool commands see your credentials as a terminal would, turn on **Pass secrets to the shell** in the Privacy tab (`/privacy` in the desktop app), or run `/privacy secrets on` in the terminal app. It sets `"shellSecretPassthrough": true` in `~/.empryo/config.json`; `/privacy secrets off` turns it back off. - **Everything credential-shaped.** Tokens, keys, passwords and proxy logins from Empryo's environment and from the startup files of the shell the command runs in, such as `export VERCEL_TOKEN=…` or a plain `DEPLOY_KEY=…` in `~/.zshrc`, reach every shell tool command. Variables named in a `forwardEnv` rule are passed too. Commands run in your own shell with your aliases, so `vercel deploy` works as it does in your terminal. - **Startup files see your environment.** With the switch on, your startup files run with your inherited credentials, so `export DEPLOY_TOKEN=${DEPLOY_TOKEN:-…}` keeps the real token. - **Saved setup files stay filtered.** Definitions containing known credentials, including short tokens and quoted aliases, stay in memory instead of the saved shell setup. Only switch-on commands restore those definitions. The eight-character limit applies to output redaction, not to excluding credentials when the switch is off. - **PowerShell profiles run once.** Empryo captures profile state privately, then launches the command with `-NoProfile` and replays that same state. With the switch off, credentials and authenticated proxy URLs are excluded. With it on, generated tokens are registered for redaction before execution; the profile cannot generate or print a different token in a second startup. - **Windows session credentials win.** Values inherited by Empryo take priority over persisted registry values, including differently cased variable names. The registry only fills missing credentials. - **Global only.** A repository's `.empryo/config.json` and presets cannot set it, and the settings tool cannot change it. - **Hidden in output.** Values of 8 characters or more are replaced with `[redacted NAME]` in command output and logs. Shorter values are passed but cannot be hidden. > **Warning:** > With this on, any command the agent runs can read and send your credentials, including commands a prompt injection in a web page or repository talks it into. Prefer a `forwardEnv` rule for a single deploy token. ## Environment variables | Variable | Default | What it does | | --------------------------------- | ------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `EMPRYO_NO_GENOME` | unset | Skip the Genome scan at startup. | | `EMPRYO_HEAVY_WORK_SLOTS` | `heavyWork.slots` | Heavy commands that may run at once on this machine, overriding `heavyWork.slots` for this run. `0` turns the queue off. A command holding a slot passes `EMPRYO_HEAVY_WORK_HELD` to everything it starts, so an engine or test it launches never waits behind it. A slot whose holder stops renewing it for 20 seconds (killed, stopped, asleep) is freed. | | `EMPRYO_GENOME_SCAN_SLOTS` | a quarter of the CPU cores, 1 to 3 | How many projects build a large index at the same time on this machine. Others wait their turn and show "Queued to index". A project you send a message in skips the line. `0` turns the queue off. See [many projects at once](/docs/concepts/genome#many-projects-at-once). | | `EMPRYO_MAX_OUTPUT_TOKENS` | unset | Output-token cap. When set, it wins over `performance.maxOutputTokens` and over the model's own listed limit. Unset, Empryo uses the limit from the provider's live listing or models.dev, else `64000`. Every request is also capped at the context window minus the input, so a listed limit as large as the window never makes the provider refuse the call. | | `EMPRYO_PRESETS` | unset | Presets to load at startup, separated by commas. `--plugin` sets this. See [presets](/docs/reference/presets). | | `EMPRYO_NO_PROMPT` | unset | Set to `1` to skip the first-run add-on prompt. Useful in CI. | | `EMPRYO_NO_PHONE` | unset | Set to `1` to keep this run away from phone access: it will not join, start or change it, and nothing it does reaches your paired phones. The desktop app sets it by itself for a test run (`EMPRYO_E2E=1`) that uses your own home folder. | | `EMPRYO_TELEMETRY` | unset | Set to `0` to turn off anonymous usage counts. | | `EMPRYO_PYTHON_KERNEL` | unset | Set to `1` to turn on the Python kernel for one run. | | `EMPRYO_PROXY_VERSION` | latest | Install a specific version of the proxy add-on. | | `EMPRYO_AUTO_INSTALL_ADDONS` | unset | Add-ons to install automatically, such as `proxy,neovim`. | | `EMPRYO_MEMORY_LIMIT_MB` | `1536` | Memory limit for Empryo itself. Above it, memory-heavy analysis such as type-aware diagnostics is skipped. | | `EMPRYO_TREE_MEMORY_LIMIT_MB` | `4096` | Memory limit for Empryo plus the programs it started, mostly language servers. | | `EMPRYO_LSP_IDLE_MS` | `180000` | How long an unused language server keeps running before it stops. Lower it on a machine with little memory. Raise it if you switch between languages often. | | `EMPRYO_LSP_MAX_CLIENTS` | `6` | How many language servers can run at once. Past this, the least recently used one stops. | | `EMPRYO_LSP` | unset | Set to `1` to start language servers in headless runs (`--headless`). Without it they answer from the index and parsers alone. | | `EMPRYO_NO_MOTION` | unset | Set to `1` to turn off animations in the terminal UI. `NO_MOTION` works too. | | `EMPRYO_NO_IMAGE_RESIZE` | unset | Set to `1` to send image attachments at full size. | | `EMPRYO_THINKING_BINDING` | unset | `error` makes Claude check earlier thinking the way it does for accounts created on or after 31 August 2026, so you can see what those users see. `drop_block` asks Claude to drop earlier thinking that no longer matches the conversation. Unset, Empryo resends a request Claude refused over earlier thinking with that thinking dropped. | | `EMPRYO_THINKING_DROP_LOG` | `<configDir>/logs/thinking-drops.jsonl` | Where Empryo records each time Claude drops or flags earlier thinking because something before it changed: how many blocks, from which message, and what changed. Claude reports this on requests to the Anthropic API. | | `EMPRYO_APPEND_ONLY_INSTRUCTIONS` | unset | `0` turns append-only instructions off for this run, whatever `agentFeatures.appendOnlyInstructions` says: an instruction-file edit then rewrites the system prompt at the next agent rebuild, as before. | | `EMPRYO_REDACT_KNOWN_SECRETS` | unset | `1` hides secret values from the model for this run and `0` shows them, whatever `agentFeatures.redactKnownSecrets` says. | | `EMPRYO_TURN_AUDIT` | unset | `0` turns the end-of-turn finish check off and `1` turns it on, whatever `agentFeatures.turnAudit` says. | | `EMPRYO_SCRIPT_LLM` | unset | `0` removes `api.llm` from `code_script`: the agent reads every file into its own context instead of asking a cheaper model. | | `EMPRYO_SCRIPT_MODEL` | the `spark` route, else Claude Haiku 5.5 next to a Claude model, else the tab's model | The model `api.llm` asks inside `code_script`. Each script may make 50 calls or spend $0.50. | | `EMPRYO_SCRIPT_MODEL_HOURLY_USD` | `5` | Most a tab may spend on `api.llm` calls in one clock hour; calls past it return `null` and the script's footer says why. | | `EMPRYO_TOOL_LEDGER` | `<configDir>/tool-ledger.json` | Where Empryo records which tools each turn used, per surface and model family (the last 120 turns). Held-back tools used in at least 3% of those turns load up front. `off`, `0`, `false`, `no` or `disabled` stops recording and turns off both that loading and `EMPRYO_LEARNED_RESIDENCY`. | | `EMPRYO_LEARNED_RESIDENCY` | `agentFeatures.learnedResidency` | After 30 recorded turns, tools that surface and model family used in fewer than 1% of the last 120 turns move behind `tool_search`, which shrinks every request. Core tools such as `read`, `grep`, the edit tools, `shell` and `project` never move. `1` turns it on everywhere, `0` turns it off and the learned list changes no tool. | | `EMPRYO_UNFINISHED_NUDGE` | `agentFeatures.finishNudge` | A turn whose final answer lists work in `unfinished` continues up to twice instead of stopping. `0`, `off`, `false` or `no` turns it off, `everywhere` also continues turns where you are present, any other value continues headless runs only. | | `EMPRYO_EDIT_ECHOES` | `agentFeatures.editEchoes` | `1` lists leftover sites after edits for this run, `0` turns it off. | | `EMPRYO_PROMPT_MAP` | `agentFeatures.requestMap` | `1` shapes the session's first code map by the first request for this run, `0` turns it off. | | `EMPRYO_PROMPT_TERMS` | `agentFeatures.requestMap` | `v1` ranks files by the request's words with the newer matcher for this run; any other value keeps the older matcher. | | `EMPRYO_MAP_SUSPECTS` | `agentFeatures.requestMap` | `1` names the likely files at the top of the code map for this run, `0` leaves them out. | | `EMPRYO_FIX_PRIOR` | `agentFeatures.fixHistory` (weight 60) | A positive number weights fix history in the code map for this run; `0` turns it off. | | `EMPRYO_HINT_FIX_GATE` | `agentFeatures.fixHistory` | `1` keeps only co-change hints whose partner often needed fixes, for this run; `0` keeps them all. | | `EMPRYO_CODE_MODE` | `agentFeatures.codeMode` | `example` or `explore` sets code mode for budget models for this run; any other value turns it off. | | `EMPRYO_GREP_BUDGET` | unset | A line count. Grouped `grep` context shows every file's first match block before any second one, keeps blocks whole and says what it cut. Unset, the output is unchanged. | | `EMPRYO_PREFIX_DIGEST_LOG` | unset | A file path. Each request appends one JSON line with hashes of its system prompt and tool list, so you can tell a prompt change from a cache expiry. | | `EMPRYO_STREAM_CADENCE` | on | After 50 pieces of a reply, a stream that goes fully silent for 120 s (or 10 times its longest gap so far) is treated as stalled and retried. Set to `off` to wait for the full idle limit instead. | > **Note:** > For the memory and language-server limits, an empty, zero, negative, or invalid value uses the default. ## Morphs Morphs are panels and boards you build in the desktop app. A morph can also give the agent rules and lookups, which Empryo calls its cells. These settings are read from your global config only, so a repository cannot loosen them. See [Morphs](/docs/tools/morphs). | Key | Values | What it does | | --------------------- | -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | | `cells.reach` | `"morph"` (default), `"all"` | Which sessions can use morphs. `"morph"`: only tabs in morph mode. `"all"`: every session. | | `cells.views` | `"any"` (default), `"signed"`, `"off"` | Whether a morph's own display code may run. `"signed"`: only morphs signed by Empryo or by a key in `trustedKeys`. `"off"`: never. | | `cells.autoApprove` | `false` (default), `true` | Skip the approval step for morphs you wrote yourself. | | `cells.requireSigned` | `"official"`, `"trusted"`, `"any"` | Only allow signed morphs. | | `cells.trustedKeys` | Ed25519 public keys, base64 | Your organization's signing keys, for `"trusted"`. | | `cells.directories` | URLs to `index.json` files | Your organization's own morph directories. | A morph you hide from the agent on its card stays hidden, whatever `reach` says. ## Hooks See [hooks](/docs/tools/hooks). Empryo reads hooks from five places: Claude Code's three settings files and Empryo's two config files. Every matching hook runs. ## Storage `/storage` shows how much disk space each part of Empryo uses (Genome, sessions, plans, memory, input history, binaries, fonts) and lets you clean it up. ## Which setting wins Session, then project, then global. A command saves to whichever scope it targets. Use `/model-scope` to save the current model for the project or for everywhere. --- ## Keyboard shortcuts Canonical: https://empryo.com/docs/reference/keybindings > Every keyboard shortcut in the Empryo desktop app and terminal UI, and how to rebind desktop shortcuts with the keybindings setting. Every shortcut in both apps, on one page. In the desktop app `Cmd` is the macOS key and `Ctrl` the Windows and Linux one, written `Cmd/Ctrl`. Press `?` in the desktop app or `Alt+H` in the terminal app to see the list inside the app. ## Desktop app ### Rebind a shortcut Add `keybindings` to your [configuration](/docs/reference/configuration#desktop-keybindings): action name → key. Only the actions you list change. ```json { "keybindings": { "tab-search": "mod+o", "palette": "mod+p", "graph": "none" } } ``` - `mod` is `Cmd` on macOS and `Ctrl` elsewhere. Other modifiers: `ctrl`, `cmd` (or `meta`), `alt` (or `option`), `shift`. - The key is a letter, a digit, `f1`–`f24`, `left`, `right`, `up`, `down`, `tab`, `space`, `enter`, `escape`, `backspace`, `delete`, `home`, `end`, `pageup`, `pagedown`, or a punctuation key. Names such as `comma`, `period`, `slash`, `backslash`, `backquote`, `minus`, `equal`, `plus`, `pgup` and `pgdn` work too. - A shortcut needs `mod`, `ctrl` or `cmd`, or is an f-key (`f6`). A bare key such as `space`, or `shift+a` and `alt+a`, is ignored so you can still type it. - `"none"` turns a shortcut off. - `Cmd/Ctrl` with `=`, `+`, `-` or `0` is the window zoom, and `F11` is full screen on Windows and Linux. Binding an action to one of them is ignored. - An unknown action, a key Empryo cannot read, or a value that is not text is ignored, and that shortcut keeps its default. The rest of the config still loads. - A key you bind wins over another action's default. - Changes apply as soon as the config is saved. The app menu, tooltips and the `?` cheatsheet show the new keys. - A letter follows the letter your keyboard layout types, so `mod+z` is the key marked Z on QWERTZ and AZERTY too. Digits and keyboards that do not type Latin letters use the key's position. - On Windows and Linux, typing with `AltGr` (for `@`, `€` or `[`) never fires a shortcut. On Windows, `Ctrl+Alt` and `AltGr` are the same key to the system on layouts that have AltGr, so a `ctrl+alt` shortcut may not fire there; `mod+shift` is the safer choice. Inside a web page in the browser panel on Windows, a `ctrl+alt` shortcut follows the typed character only. - While a panel below has focus, its own keys come first. `find` also opens search in an open file. - The mic shortcut is set apart, with [`voice.key`](/docs/surfaces/voice-input#change-the-mic-shortcut). Ask Empryo (“open the tab search with Cmd+O”) and it sets this through the settings tool, which refuses unknown actions, keys it cannot read and bare typing keys. ### Rebindable shortcuts | Action | Default | What it does | | ----------------------------- | ----------------------------- | ------------------------------------------------- | | `palette` | `Cmd/Ctrl+K` | Command palette | | `tab-search` | `Cmd/Ctrl+Shift+A` | Search open tabs | | `settings` | `Cmd/Ctrl+,` | Settings | | `stop-turn` | `Cmd/Ctrl+.` | Stop the running turn | | `focus-composer` | `Cmd/Ctrl+L` | Focus the prompt box, also from the browser panel | | `sidebar` | `Cmd/Ctrl+B` | Show or hide the sidebar | | `side-panel` | `Cmd/Ctrl+J` | Show or hide the side panel | | `tools-pane` | `Cmd/Ctrl+I` | Open tools and diffs | | `graph` | `Cmd/Ctrl+Shift+G` | Orchestration graph or chat | | `stem-panel` | `Cmd/Ctrl+Shift+L` | Stem panel, when Stem is on | | `find` | `Cmd/Ctrl+F` | Search the conversation or the open file | | `search` | `Cmd/Ctrl+Shift+F` | Search the whole project | | `split` | `Cmd/Ctrl+\` | Split the view | | `split-orientation` | `Cmd/Ctrl+Shift+\` | Switch between side by side and stacked | | `previous-pane` / `next-pane` | `Cmd/Ctrl+Alt+←` / `→` | Move between split panes | | `new-tab` | `Cmd/Ctrl+T` | New tab | | `close-tab` | `Cmd/Ctrl+W` | Close the tab | | `reopen-tab` | `Cmd/Ctrl+Shift+T` | Reopen the last closed tab | | `next-tab` / `previous-tab` | `Ctrl+Tab` / `Ctrl+Shift+Tab` | Next / previous tab | | `tab-1` … `tab-9` | `Cmd/Ctrl+1` … `9` | Go to tab 1–9 | | `terminal` | `` Ctrl+` `` | Show or hide the terminal | | `browser` | `Cmd/Ctrl+Shift+B` | Show or hide the browser | | `expand-tools` | `Cmd/Ctrl+Shift+E` | Expand or collapse every tool call | ### Fixed shortcuts | Shortcut | What it does | | ------------------------------------------ | --------------------------------------------------------------------------------- | | `Enter` | Send. While a turn runs, it steers the turn (see `appearance.enterQueues`). | | `Shift+Enter` | New line | | `Cmd/Ctrl+Enter` | Queue a follow-up while a turn runs (steers when `appearance.enterQueues` is on) | | `Shift+Tab` | Step to the next mode, in the prompt box | | `Cmd/Ctrl+Shift+M` | Choose the model for this tab | | `⌘⌥E` (macOS), `Alt+E` (Windows, Linux) | Step reasoning effort | | `↑` / `↓` | Previous / next prompt from history | | `Ctrl+R` | Fuzzy-search prompt history | | `Cmd/Ctrl+S` | Stash the draft | | `Cmd/Ctrl+Shift+S` | Open the stashed drafts | | `Cmd/Ctrl+V` | Paste an image into the prompt box | | `@` | Mention a file | | `Esc` | Stop the running turn when the prompt box is empty; close an overlay or preview | | `?` | Shortcut cheatsheet | | `Cmd/Ctrl+Shift+N` | New window | | `Cmd/Ctrl+Shift+W` | Close the window | | `Cmd/Ctrl+=` / `-` / `0` | Zoom in, out, actual size | | `F11` (Windows, Linux) | Full screen | | `Cmd+Y` (macOS), `Ctrl+Y` (Windows, Linux) | Start or stop voice input. Change it with `voice.key`. `Esc` cancels a recording. | ### Prompt box lists | Shortcut | What it does | | -------------------------------------------------- | -------------------------------------------------------------- | | `/` at the start | Start a slash command; a list of commands opens | | `@` | Mention a file; a list of files opens | | `$` | Add skills to this message; a list of skills opens | | `↑` / `↓` | Move through the open list | | `Enter` | Pick the highlighted command or file | | `Tab` | Pick the highlighted file, or complete the highlighted command | | `Space` in the skill list | Choose or unchoose the highlighted skill | | `Enter` / `Tab` in the skill list | Add the chosen skills | | `Esc`, or `Backspace` with nothing typed after `$` | Close the skill list | | `Esc` | Close the file list; in the command list, clear the prompt box | | `Ctrl+R` | Search prompt history; `Esc` or `Ctrl+R` again closes it | ### Prompt box editing While the prompt box has focus, `Ctrl` (not `Cmd`) edits text like a shell: | Shortcut | What it does | | ---------------- | ---------------------------------------- | | `Ctrl+U` | Delete the current line | | `Ctrl+C` | Clear the draft when nothing is selected | | `Ctrl+K` (macOS) | Delete to the end of the line | | `Ctrl+W` (macOS) | Delete the word before the cursor | ### Inside panels These work while the panel or card has focus, and come before the shortcuts above. [Morphs](/docs/tools/morphs) can add their own key chords. | Panel | Shortcut | What it does | | ------------------------ | ---------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | | Open file | `Cmd/Ctrl+S` | Save | | Open file | `Cmd/Ctrl+F` (the `find` key) | Find in the file | | Open file | `Esc` | Close the find bar | | File tree filter | `↓` | Move from the filter into the file list | | Projects filter | `↓`, `Enter`, `Esc` | Move into the list, open the first matching project, clear the filter | | Panel divider | `←` / `→`, `Home` / `End`, `Enter` / `Space` | Make the panel narrower or wider (`Shift` for bigger steps), smallest or largest, back to its usual width | | File tree, Projects | `↑` / `↓`, `Home` / `End` | Move between rows | | File tree, Projects | `→` / `←` | Open or close a folder; `←` also moves to the parent | | File tree | `Enter` / `Space` | Open a file, or open and close a folder | | File tree | `F2` | Rename | | File tree | `Delete`, or `Cmd/Ctrl+Backspace` | Delete | | File tree | `Cmd/Ctrl+C` / `X` / `V` | Copy, cut, paste a file | | Browser | `Cmd/Ctrl+T` | New browser tab | | Browser | `Cmd/Ctrl+W` | Close the browser tab | | Browser | `Cmd/Ctrl+L` | Focus the address bar | | Browser | `Cmd/Ctrl+R` | Reload | | Browser | `Cmd/Ctrl+Shift+[` / `]` | Previous / next browser tab | | Browser | `Cmd/Ctrl+1` … `8`, `Cmd/Ctrl+9` | Browser tab 1–8, last browser tab | | Browser page | `Cmd/Ctrl+Esc` | Leave the page and go back to Empryo | | Browser page | `Cmd/Ctrl+=` / `-` / `0` | Zoom the page | | Terminal | `Cmd+C` (macOS), `Ctrl+Shift+C`, or `Ctrl+C` / `Ctrl+Insert` with a selection (Windows, Linux) | Copy | | Terminal | `Ctrl+Shift+V` or `Shift+Insert` (Windows, Linux) | Paste | | Terminal | `Cmd/Ctrl+F` | Find in the terminal | | Terminal find bar | `Enter` / `Shift+Enter`, `Esc` | Next / previous match, close the find bar | | Terminal | `Cmd/Ctrl+Shift+A` with a selection | Add the selection to your message | | Orchestration graph | `Esc` | Clear the selection, leave focus, then close the graph | | Orchestration graph | `Enter` | Select the overlord, or steer the selected agent | | Orchestration graph | `F` | Fit the graph to the view | | Orchestration graph | Arrow keys | Move between agents | | Orchestration graph | `Backspace` / `Delete` | Cut the selected agent | | Orchestration graph | `+` / `-` | Zoom in, out. `Cmd/Ctrl+0` resets the window zoom, not the graph's. | | Git | `Cmd/Ctrl+Enter` in the commit message | Commit | | Git | `↑` / `↓`, `Home` / `End` in the changed files | Move between files | | Model picker | `↑` / `↓`, `Home` / `End`, `Enter` | Move through models, pick one | | Model picker | `←` / `→` with an empty search | Previous / next provider | | Sessions menu | `↑` / `↓`, `Enter` | Move through sessions, open one | | Update dialog | `↑` / `↓`, `Home` / `End` on the notes grip | Make the release notes shorter or taller, smallest or largest; `Shift` takes bigger steps | | Sign-in accounts | `↑` / `↓`, `Home` / `End`; `↓` from its search | Move between accounts, go from the search into the list | | Engine list | `↑` / `↓`, `Home` / `End`, `Page Up` / `Page Down` | Move between engines, ten at a time with Page Up / Page Down | | Command palette | `↑` / `↓`, `Enter` | Move through results, run one | | Command palette | `Tab` / `Shift+Tab` | Next / previous scope | | Command palette | `>` or `/`, `#` first | Search only commands, only memories | | Tab bar | `←` / `→`, `Home` / `End` | Move to another tab | | Tab bar | `Enter` / `Space`, `Delete` | Open the focused tab, close it | | Tab search | `↑` / `↓`, `Enter` | Choose a tab, switch to it | | Tab search | `Esc` | Clear the search, then close it | | Projects | `N` | New tab in the focused project | | Projects | `Delete` / `Backspace` | Remove or hide the focused project | | Question card | `↑` / `↓`, `Enter` | Choose an answer and send it; on **Other**, start typing | | Question card | `1` … `9` | Send that answer | | Question card | `Esc` | Skip the question, when it can be skipped; while typing, go back to the choices | | Diff | `Enter` / `Shift+Enter` in its search | Next / previous match | | Diff | `↑` / `↓`, `Shift+↑` / `Shift+↓` | Move the line cursor, extend the selection | | Diff file list | `↓` / `j`, `↑` / `k`, `Home` / `End` | Move between files | | Diff file list | `O` | Open the file | | Find in a file | `Enter` / `Shift+Enter` | Next / previous match | | Find in the conversation | `Enter` / `Shift+Enter`, `Esc` | Next / previous match, close the find bar | | Image viewer | `+` / `=`, `-`, `0` | Zoom in, out, reset | | Image editor | `Delete` / `Backspace` | Remove the selected shape | | Image editor | `Enter` in a text label | Place the text | | Canvas | `Esc` | Back to the chat | | Canvas card | `Enter`, `[` / `]`, `R` | Open it, move it back / forward, run it | | Genome map | `/` | Search files | | Genome map | `F`, `+` / `=`, `-` | Fit, zoom in, zoom out | | Genome map | Arrow keys | Pan | | Genome map | `Esc` | Step back: stop the trace, leave solo, leave the room, clear the selection | | Genome map search | `Enter`, `Esc` | Pick the first match, clear the search | | Pull requests | `↑` / `↓`, `Home` / `End` | Move between pull requests | | Pull requests | `O`, `R`, `C`, `D` | Open, refresh, copy the link, view the diff | | Pull requests | `Delete` / `Backspace`, `Shift+F10` | Remove from the list, open its menu | | Steering log | `↓` from its search, `↑` / `↓`, `Esc` | Into the list, move, clear the search | | Start screen | `↑` / `↓`, `Enter` | Choose a session or profile, continue | | Start screen | `Esc` | Back from the profile step | | Settings | `↑` / `↓`, `Enter`, `Esc` in its search | Move through results, open one, clear the search | | Settings | `↑` / `↓`, `Home` / `End` in the section list | Move between sections | | Plan | `Cmd/Ctrl+Enter` in a comment | Send the comment | | Feedback | `Cmd/Ctrl+Enter` | Send the feedback | | Guided tour | `←` / `→` | Previous / next step | | Logs | `Enter` / `Space`, `Esc` | Open a row, clear the filter | | Prompt queue | `Esc` in its search | Clear the search | | Rename fields | `Enter`, `Esc` | Save, cancel | ## Terminal app The terminal app's shortcuts are fixed, except the mic key: `Ctrl+Y` starts and stops voice input, and [`voice.key`](/docs/surfaces/voice-input#change-the-mic-shortcut) changes it (`Esc` cancels a recording). While a panel or dialog is open, it handles its own keys. ### Session and menus | Keys | What it does | | ---------------- | ---------------------------------------------------------------------------------------------------- | | `Ctrl+K` | Command palette | | `Alt+H` | Keyboard reference | | `Ctrl+L` | Pick a provider and model | | `Ctrl+D` | Cycle to the next mode | | `Alt+E` | Step reasoning effort for this tab | | `Ctrl+N` | New session. The current one is saved first. | | `Ctrl+S` | Browse and install skills | | `Ctrl+G` | Git menu | | `Ctrl+P` | Browse and restore past sessions | | `Alt+P` | Projects | | `Alt+R` | Error log | | `Ctrl+E` | Show or hide the Neovim editor | | `Ctrl+X` | Stop the current response | | `Ctrl+C` | Copy the selection. With nothing selected it clears the prompt box; in an empty prompt box it quits. | | `Ctrl+Shift+C` | Copy the selection. Never quits. | | `Cmd+C` | Copy the selection, in terminals that pass `Cmd` through | | `Esc` | Clear the selection | | `Ctrl+Shift+Esc` | Stop all computer use and release the mouse and keyboard | ### Tabs | Keys | What it does | | ----------------------------- | ------------------------------------------------------------- | | `Ctrl+T` | New tab | | `Ctrl+Shift+T` | Reopen the last closed tab | | `Ctrl+W` | Close the tab | | `Ctrl+1` … `Ctrl+9`, `Ctrl+0` | Go to tab 1–9, or tab 10. `Alt+1` … `Alt+0` work too. | | `Ctrl+\` / `Ctrl+]` | Previous / next tab | | `Tab` | Next tab, in the prompt box when no autocomplete list is open | ### Chat | Keys | What it does | | ----------------------- | ------------------------------------------------------------------------ | | `Ctrl+O` | Expand or collapse all code and reasoning blocks | | `Ctrl+B` / `Ctrl+F` | Back / forward through [checkpoints](/docs/tools/checkpoints), then live | | `Alt+K` / `Alt+J` | Scroll the chat up / down | | `Page Up` / `Page Down` | Scroll a screen at a time | ### Prompt box | Keys | What it does | | ------------------------ | ------------------------------------------------------------------------------------------------------ | | `Enter` | Send. While the agent works, it steers the current turn. | | `Shift+Enter` / `Ctrl+J` | New line | | `Ctrl+U` | Delete the current line | | `→` | Accept the suggested completion | | `Esc` | Close the suggestion list or history search, cancel a recording, or leave a checkpoint you are viewing | | `Alt+Q` | Queue as a follow-up turn. `Alt+Enter` or `Ctrl+Enter` too, where the terminal passes them through. | | `Alt+O` | Open a folded paste | | `Alt+S` / `Alt+P` | Stash the draft / bring back the last stash | | `↑` / `↓` | Previous / next prompt from history | | `Ctrl+R` | Fuzzy-search prompt history | | `Shift+Tab` | Cycle to the previous mode | | `Ctrl+V` / `Alt+V` | Paste an image | | `@` | Mention a file | | `$` | Add skills to this message: `↑` / `↓` to move, `Space` to choose, `Enter` to add, `Esc` to close | | `/` | Start a slash command | --- ## Presets Canonical: https://empryo.com/docs/reference/presets > Load shareable Empryo settings bundles by name, file path, or URL to keep your router, agent features, theme, and providers the same across machines and teams. A preset is a JSON file of Empryo settings that you can share. Use one to give your whole team the same model routing, theme, and privacy rules, to keep your own machines in sync, or to pin a known-good setup to a repository. Presets are applied on top of the built-in defaults when Empryo starts. They never rewrite your own config file. Remove a preset from the list and the next launch behaves as before. ## Load a preset List presets in the `presets` array of a config file, or pass them on the command line. ```json { "presets": [ "team/standard", "./presets/local.json", "https://example.com/empryo-preset.json" ] } ``` ```bash # For one launch. Repeat --plugin to stack presets. empryo --plugin team/standard --plugin ./extra.json # The same, with an environment variable EMPRYO_PRESETS=team/standard,./extra.json empryo ``` Empryo reads presets from three places. When two presets set the same thing, the later one wins: 1. **Global**: `presets` in `~/.empryo/config.json` 2. **Project**: `presets` in `.empryo/config.json` in your project 3. **Command line**: `--plugin <spec>` or `EMPRYO_PRESETS` A project's presets load when you open it. A preset can start programs such as MCP servers, so read [the repository's config](/docs/reference/configuration#a-repositorys-own-config) before you open a repository you did not write. ## Ways to name a preset | Form | Example | |------|---------| | Registry name | `team/standard` | | Absolute path | `/etc/empryo/preset.json` | | Relative path | `./presets/local.json`, `../shared.json` | | Home path | `~/empryo/preset.json` | | URL | `https://example.com/preset.json` | URLs must use `https://`. Plain `http://` is refused, and so is a redirect to a non-HTTPS address. A registry name is looked up in Empryo's public preset registry. Anything that does not match one of these forms is skipped with a warning. ## Browse with the wizard ```bash empryo presets # or empryo --presets ``` The wizard lets you browse the registry, preview what a preset changes, and add it to your global or project config. ## When a preset fails Loading is quiet when everything works. If a preset fails, Empryo prints one short line and starts anyway. One broken preset never stops Empryo from launching. To see what happened with each preset: ```bash empryo --verbose-presets ``` This prints one line per preset, `ok` or `fail`, with where it was loaded from. ## Write a preset A preset needs a `name` (lowercase letters, numbers, and hyphens) and a `version` in `x.y.z` form. Put the settings under `config`. It accepts any [configuration](/docs/reference/configuration) field. ```json { "name": "team-standard", "version": "1.0.0", "description": "Team model routing, theme, and agent features", "config": { "theme": { "name": "catppuccin" }, "taskRouter": { "spark": "anthropic/claude-haiku-4-5", "ember": "anthropic/claude-sonnet-4-5" }, "agentFeatures": { "desloppify": true } } } ``` Share it as a file in your repository, or host it at an HTTPS address. A preset file can be up to 512 KB. ## Environment | Variable | What it does | |----------|--------------| | `EMPRYO_PRESETS` | Presets to load, separated by commas. `--plugin` sets this for you. | ## See also - [Configuration](/docs/reference/configuration): every setting a preset can change. - [Use multiple models](/docs/recipes/task-router): model routing, the setting teams share most often. --- ## Tools Canonical: https://empryo.com/docs/reference/tools > Every tool the Empryo agent can use: what each one does, which app or mode it needs, which tools are always on, and how to turn the others off. <!-- Generated file. Do not edit by hand: run `bun run docs:tools`. --> Tools are the actions the agent can take: read a file, search your code, run a command, edit, commit. This page lists every tool, what it does, and which modes can use it. To keep requests small, Empryo does not send every tool with every message. Tools you use less often stay out of the request until the agent needs one. The agent finds it with `tool_search` and runs it with `run_tool`. You do not have to do anything for this to work. To change it, see [tool loading](/docs/reference/configuration#tool-loading). See [compound tools](/docs/concepts/compound-tools) for why Empryo's tools do a whole job in one call. ## All tools The catalog has 48 tools; `/tools` lists the ones you can turn off. | Tool | What it does | Notes | |------|--------------|-------| | `skills` | Let the agent search, install, and load skills from skills.sh | | | `read` | Read file contents with optional line range or symbol target | always on | | `edit_file` | Edit, create, or write files with line-anchored matching | always on | | `multi_edit` | Apply multiple edits to one or more files atomically | always on | | `undo_edit` | Undo recent edits to a file | | | `grep` | The Genome's repo-wide search (symbol context, count mode, dep search) | always on | | `find` | The Genome's file/symbol finder: fuzzy ranked, globs, concept overview | always on | | `shell` | Execute shell commands (background:true for servers/watchers/long builds) | always on | | `shell_jobs` | Background shell jobs: list, status, log tail/poll, wait, stop | | | `advisor` | Second opinion over this conversation from a tool-less model | | | `link` | Live link to other agents: list, send, ask (blocking), reply, broadcast, notify_owners (tabs that own given files), inbox, history | | | `orchestrate` | Multi-agent graphs with loops: validate, save, run, watch, resume, stop | | | `routine` | Scheduled routines (cron): list, add, remove, enable, run now | | | `project` | Auto-detected lint, format, test, build, typecheck across 23 ecosystems | always on | | `explore` | Delegate a read-only question to a solo explore agent (fg or background) | | | `dispatch` | Spawn parallel subagents for multi-file tasks | | | `background_dispatch` | Spawn a detached agent that runs while you keep working | | | `background_status` | Check background agents (non-blocking) | | | `background_stop` | Stop a running background agent | | | `background_await` | Block until background agents finish and collect results | | | `agent_send` | Send a follow-up instruction to a running subagent (dispatch id or bg-N) | | | `agent_create` | Create or update a custom agent definition, dispatchable immediately | | | `plan` | Create an implementation plan for large changes (7+ files) | | | `update_plan_step` | Update a plan step's status during execution | | | `ask_user` | Ask the user a question and wait for their response | | | `request_secret` | Ask the user for a secret in a private card; commands get it as an env var | | | `navigate` | LSP symbol lookup: definitions, references, callers, type hierarchies | always on | | `genome_query` | Chain search → filter → deps → outline → read in one Genome call | always on | | `genome_analyze` | Codebase analysis: file profiles, dead code, packages, symbol queries | always on | | `genome_impact` | Dependency graph: dependents, dependencies, cochanges, blast radius | always on | | `genome_vision` | Display images and videos inline in chat (PNG, JPG, GIF, video files/URLs) | TUI only | | `analyze` | LSP diagnostics, type info, outline, code actions on a file | always on | | `web_search` | Search the web for documentation, APIs, error messages | | | `find_model` | Fuzzy-search the model catalog: providers, models, key state | | | `find_agent` | Fuzzy-search custom agent definitions: name, purpose, mode, model | | | `fetch_page` | Fetch readable pages or make structured HTTP probes | | | `git` | Git operations: status, diff, log, commit, push, pull, stash, branch | | | `list_dir` | List directory contents (supports multiple paths + recursive depth in one call) | | | `refactor` | Code transforms: extract, format, organize imports, rename/move symbols and files | | | `memory` | Read/write persistent memories across sessions | always on | | `history` | Search this conversation's own record word for word, including what compaction summarized away: the user's exact messages, earlier answers, full tool output; scope project searches this project's earlier sessions | | | `editor` | Open file in embedded Neovim editor | TUI only, needs the `neovim` addon | | `task_list` | Create and track tasks for the current session | | | `settings` | Read and change Empryo's own settings; the open app applies them at once | | | `profiles` | Create, change, delete, list and select profiles (agent + model, mode, routing, skills) | | | `ast_edit` | Structure-aware edits for TypeScript and JavaScript | always on | | `structural_edit` | Structure-aware find and rewrite for other languages (Go, Rust, Python and more) | | | `show` | Show an interactive card or a live React view in the chat or the side canvas | | ## Tools added by the app or the mode Empryo adds these automatically when the current app or mode needs them. They do not appear in `/tools`. | Tool | What it does | |------|--------------| | `final_response` | Ends the turn with the final answer, which the model writes in its `answer` argument; the answer streams into the chat as it is written | | `respond_to_steering` | Answer a message you sent while the agent was working, next to that message | | `code_script` | Run one script that looks things up, edits code in any language, checks the result, and reports back. Inside the script, `api.llm(question, {input})` asks a fast, cheap model about one file, log or chunk, so the agent can read dozens of files in parallel and keep only the answers | | `council` | Have 2 to 4 agents, each with its own brief, debate one topic and return a verdict | | `cells` | Read and use the rules, lookups, and data a morph gives the agent | | `browser` | Use the built-in browser: read the page, click, type, take screenshots, inspect, audit | | `rename_tab` | Rename this tab when the task changes | | `worktree` | List, create, open, move and remove git worktrees. `open` starts a new tab on a task in a worktree, and `move` moves this tab once its turn ends. | | `computer`, `computer_*` | [Computer use](/docs/tools/computer-use): see and drive the apps on your screen. Added when computer use is on and your machine supports it. | | `model` | Look up models and switch the one a task uses | | `spark` | Hand a read-only research task to a helper agent | | `agent` | Hand work to one of your custom agents | | `reviewer` | Review the current state of the repository and return PASS or FAIL | | `notify_phone` | Send a push notification to your paired phones and watches when you asked to be told about something | | `lanes` | Mito only. See every lane (tab) on this computer with what each waits on, how full its context is, whether its cache is warm, what it spent and what is left; see what lanes and projects spent, in tokens, prompt cache, tools and sub-agents; open a lane in a project with a task in the mode that fits (lite for writing and research, duck for talk), optionally in a worktree for a branch or as one of your custom agents; queue more work, steer one or several lanes mid-turn, answer what a lane waits on, compact it, switch its mode or model, read its latest answer, stop or close it; leave itself a follow-up that wakes it later, also after a restart | | `board` | Mito only. Mito's board of work across projects: list, add, move, update and remove cards in inbox, doing, blocked and done | | `playbook` | Mito only. Mito's notes on how you work: read, rewrite or add one rule to the playbook, see how many Empryo sessions are on this computer, page through what you typed in them, and mark a study as running or done | | `machine` | Mito only. The computer Mito runs on: system, load, every Empryo engine, what is left running and stopping it, hooks that wake Mito when memory, CPU, heat or disk run high, probes made for this system, and your other devices | | `projects` | Mito only. Every project Mito can reach: start a new project in its own folder (beside your other projects when only a name is given, outside your home folder only with your yes, git only when asked), and list, add and remove a project's git worktrees | | `scout` | Mito only. Look before a brief, only when the ask leaves it open: a three-line digest from that project's own engine (the project, whether its Genome is ready, whether the ask's words cluster in docs, in code or neither), or a map of a vague or wide ask, written to a file in the project whose path goes into the lane's brief | | `folders` | Mito only. Mito mode's folders, pins and archive, the same ones you see in the sidebar and the Mito view: create, rename and delete folders (inside a project) or collections (across projects), move lanes and sessions, pin and unpin them or a whole folder, archive without deleting anything and restore. Pinned items are skipped by every cleanup | | `context` | Mito only. Mito's own context and long history: see how full it is and what a clean or a summary would cost, drop bulky old tool results, replace older history with a summary written by a model or by Mito itself, and read back the journal that keeps every summary | | `notify` | Mito only. Tell you something on purpose: one notice in the desktop and terminal apps, and on your phones when you are away or it is urgent. Empryo refuses the same news twice within 30 minutes and more than 6 notices an hour | | `models` | Mito only. Mito's model router and model book: each role's default model, whether it is on and what it may use, the signed-in models cheapest first with price, access, context window and public rankings, side-by-side comparisons, and a refresh of prices and rankings | | `pulls` | Mito only. The pull requests of every lane: list the ones that need someone, read one with its checks and latest comments, and merge it or mark it ready for review after your yes | | `script` | Mito only. Run one short script over Mito's own tools for bulk work in one call: list lanes, then read, queue, steer, stop or close the ones that match; move cards; read the machine's status. Each call inside it is the same as a direct call, with the same hooks, approvals and owner questions, and the result lists every call with done, refused or failed | | `repos` | Mito only. Each project's git repos read through your signed-in gh: role, privacy and access per repo; the issues seen and their state; check for new issues now; open a lane to fix one; decline one; reply on an issue and close it, each only as far as your comment and close settings allow; save your answer to connect Git and change a project's issue mode | | `goal` | Mito only. Set a goal on a new lane in a project or on an open lane, with a board card linked to it; check how far each goal is (a percentage and one line on what changed, reported every round); stop a goal and keep the lane | ## Tools by mode Each mode gives the agent a different set of tools. | Set | Purpose | Tools | |------|-----|-------| | **Core** | Sent with every request. | `read`, `edit_file`, `multi_edit`, `grep`, `find`, `shell`, `project`, `memory` | | **Always available** | Present in every mode. | `final_response`, `respond_to_steering` | | **Cannot be turned off** | `/tools` does not list these, and Empryo ignores them in `disabledTools`. | `read`, `edit_file`, `multi_edit`, `grep`, `find`, `shell`, `project`, `memory`, `lanes`, `board`, `playbook`, `machine`, `projects`, `repos`, `folders`, `context`, `notify`, `pulls`, `models`, `goal`, `script`, `genome_query`, `genome_analyze`, `genome_impact`, `navigate`, `analyze`, `ast_edit`, `code_script`, `final_response`, `respond_to_steering` | | **Read-only helpers** | What read-only helper agents (explore, research) may use. No edits, shell, or git. | `read`, `grep`, `find`, `genome_analyze`, `genome_impact`, `list_dir`, `web_search`, `explore`, `code_script`, `editor`, `navigate`, `analyze`, `memory`, `skills`, `profiles`, `fetch_page`, `ask_user`, `plan`, `update_plan_step`, `history` | | **Running a plan** | What the agent can use while it carries out an approved plan. | `read`, `edit_file`, `code_script`, `undo_edit`, `multi_edit`, `task_list`, `list_dir`, `shell`, `shell_jobs`, `project`, `grep`, `find`, `navigate`, `analyze`, `git`, `editor`, `refactor`, `update_plan_step`, `memory`, `skills`, `genome_analyze`, `genome_impact`, `history` | | **Morph mode** | For building panels and boards. See [Morphs](/docs/tools/morphs). | `read`, `grep`, `find`, `list_dir`, `code_script`, `navigate`, `genome_query`, `genome_analyze`, `genome_impact`, `analyze`, `edit_file`, `multi_edit`, `undo_edit`, `web_search`, `fetch_page`, `git`, `ask_user`, `task_list`, `memory`, `find_model`, `find_agent`, `cells`, `rename_tab` | | **Duck mode** | Cannot see your code. Web and agent messages only. | `web_search`, `fetch_page`, `link`, `advisor`, `find_model`, `rename_tab` | | **Orchestrate mode** | Designs and runs multi-agent workflows. Does not edit files itself. | `read`, `grep`, `find`, `list_dir`, `code_script`, `navigate`, `genome_query`, `genome_analyze`, `genome_impact`, `web_search`, `fetch_page`, `ask_user`, `task_list`, `memory`, `find_agent`, `find_model`, `orchestrate`, `routine`, `background_status`, `background_stop`, `background_await`, `agent_send`, `shell_jobs`, `link`, `council`, `rename_tab`, `notify_phone` | | **Mito** | The lead above every project. Plans, opens and steers lanes, starts projects and worktrees, keeps the board and the playbook, watches the machine, answers with views, sets Empryo up for the work and wakes itself with follow-ups. Does not edit files or run commands itself. On Mito's tab `link` only lists agents, sends, asks, replies and reads the inbox and threads, and a change through `settings` or `skills` asks you first. | `lanes`, `board`, `playbook`, `machine`, `projects`, `repos`, `folders`, `context`, `notify`, `pulls`, `models`, `goal`, `script`, `scout`, `show`, `settings`, `skills`, `read`, `grep`, `find`, `list_dir`, `web_search`, `fetch_page`, `ask_user`, `memory`, `history`, `find_agent`, `find_model`, `link` | ## Switching tools off ```json { "disabledTools": ["shell", "git"] } ``` `/tools` in the terminal app and **My tools → Permissions & reach** in the desktop app both change this setting. Tools marked *always on* are ignored in this list, even if you edit the file by hand. The agent cannot do basic work without them, so turning off `read` or `grep` would only cause confusing failures. ## Next **Configuration** Every setting, including `disabledTools` and the agent features. **Commands** Every slash command in the terminal and desktop apps. --- ## Sponsors & Backers Canonical: https://empryo.com/docs/sponsors > The people and companies who fund Empryo, an AI coding agent, plus GitHub Sponsors tiers from $5 to $1,000 a month and one-time options. The people and companies below fund Empryo's development. This page lists monthly sponsors, one-time backers, and what each sponsorship tier includes. **Sponsor monthly** Monthly tiers from $5 to $1,000. Cancel anytime. **Give once** One-time gift through PayPal or GitHub. Your name goes in BACKERS.md. ## Featured sponsors Featured sponsors get a logo in the README, on this page, and on the home page. ![LLM Gateway, featured sponsor](https://empryo.com/backers/logo-with-name-white.svg) *LLM Gateway, featured sponsor* [LLM Gateway](https://llmgateway.io/dashboard?ref=6tjJR2H3X4E9RmVQiQwK) ([@theopenco](https://github.com/theopenco)) gives you models from OpenAI, Anthropic, Google, and many other providers through one API, with cost tracking and support for your own keys. **DevPass** is their fixed-price monthly plan. Empryo includes an `llmgateway` provider, so you can sign in with `/login llmgateway` and pick a model. ## Monthly sponsors **Heart of the forge, $1,000 a month** Logo at the top of the README, a banner on this page, a launch post, and a quarterly roadmap call. Available. [Sponsor at this tier](https://github.com/sponsors/proxysoul). **Anvil, $500 a month** Logo in the README and on this page, social media posts, and a direct contact for integration work. Available. [Sponsor at this tier](https://github.com/sponsors/proxysoul). **Forge, $100 a month** A row in the README supporters table, a spot on this page, and priority on bugs and feature requests. Available. [Sponsor at this tier](https://github.com/sponsors/proxysoul). **Ember, $25 a month** Your name in BACKERS.md, a mention in release notes, and early access to the changelog. - **3utterfly3ffect** ([@peter1599](https://github.com/peter1599)) **Spark, $5 a month** A sponsor badge and your name listed with the other supporters. - **Levi** ([@feketefh](https://github.com/feketefh)) - **Praneeth Merugu** ([@PraneethMerugu](https://github.com/PraneethMerugu)) - **Liiro** ([@Liiro](https://github.com/Liiro)) - **Mr. ED** ([@edheltzel](https://github.com/edheltzel)) ## Permanent backers One-time gifts of $200 or more stay listed permanently. - [LLM Gateway](https://llmgateway.io) ([@theopenco](https://github.com/theopenco)) ## One-time backers Thank you to everyone who sent a one-time gift. - **Ismail Ghallou** ([@smakosh](https://github.com/smakosh)) - **Nermin B.** ([@nerminba](https://github.com/nerminba)) - **window92** ([@window92](https://github.com/window92)) - **Liiro** ([@Liiro](https://github.com/Liiro)) ## Sponsor Empryo **Monthly on GitHub** Monthly tiers from $5 to $1,000. Cancel anytime. **One-time on GitHub** GitHub Sponsors also accepts one-time gifts. **One-time on PayPal** Send a one-time gift and get listed in [BACKERS.md](https://github.com/proxysoul/empryo/blob/main/BACKERS.md). Sponsored placements are ads and are labeled as such. They don't change which models Empryo uses or recommends. --- ## ACP editors Canonical: https://empryo.com/docs/surfaces/acp > Run Empryo as an ACP agent in Zed, T3 Code and other editors: setup, models, permissions, sessions, file access and protocol limits. `empryo acp` lets an editor drive Empryo over the [Agent Client Protocol](https://agentclientprotocol.com). ACP runs through the shared Empryo engine, including its tools, session journal and context management. The editor owns the chat interface. This command is available in ACP development builds. A released build that reports an unknown command does not include this integration. ## Connect from the desktop app ACP-enabled desktop builds include the engine. You do not need a separate CLI installation, Bun or Node. 1. Open Empryo, sign in to a provider and choose your default model. 2. Open Settings and search for **ACP**. 3. Choose **Set up Zed** or **Set up T3 Code**. Empryo adds itself to that editor's settings (Zed's `agent_servers`, T3 Code's providers) and keeps everything else in the file. Choose **Open Zed** or **Open T3 Code** to start it. 4. For any other ACP editor, choose **Other editors** to copy the agent command, or the Zed settings block, and open the setup guide. The copied configuration uses the installed application's absolute path with `--acp`. The editor starts its bundled engine over stdio without opening another Empryo window. You can close the desktop window while using the editor. If you move the application, copy its connection configuration again. Development builds copy a connection to the local checkout and require its dependencies. A published build without the ACP settings entry does not include this integration. ## Connect from the CLI Run `empryo` in your project. Sign in through `/login` or configure credentials through `/keys`, then choose your default model with `/model`. Both desktop and CLI connections use Empryo's credentials, not API keys stored in the editor. With the CLI installed, an editor launches this process: ```sh empryo acp ``` Stdout contains only newline-delimited JSON-RPC. Diagnostics go to stderr. Do not wrap the command in a script that prints a banner to stdout. For a source checkout, use the absolute path to Bun as the command and these arguments: ```json ["/absolute/path/to/empryo/apps/cli/src/boot.tsx", "acp"] ``` ## One-command setup ```sh empryo acp setup zed empryo acp setup t3 ``` `setup zed` adds Empryo to your Zed settings under `agent_servers` (`~/.config/zed/settings.json`, or `%APPDATA%\Zed\settings.json` on Windows), pointing at the Empryo you ran it with, keeps your other settings and comments, then opens Zed in the current folder. `setup t3` adds an Empryo local ACP provider (`providerInstances.acpRegistry_empryo`) to T3 Code's settings (`~/.t3/userdata/settings.json`, or `$T3CODE_HOME/userdata/settings.json`), which a running T3 Code picks up without a restart, then opens T3 Code. Add `--no-open` to only write the settings. Running either command again updates the same entry instead of adding another. ## Zed Run `empryo acp setup zed`, or open Agent Settings, select External Agents, and add a custom agent. Zed stores it under `agent_servers`: ```json { "agent_servers": { "Empryo": { "type": "custom", "command": "empryo", "args": ["acp"], "env": {} } } } ``` Use an absolute executable path if Zed cannot find `empryo`. Open your project, then choose Empryo from the Agent panel's new-thread menu. The model and mode selectors come from Empryo. Zed's provider sign-in is separate. An Empryo thread does not require a Zed-hosted model subscription. See [Zed's external-agent documentation](https://zed.dev/docs/ai/external-agents). For an isolated test instance, launch Zed with `--user-data-dir`. Its settings belong in that directory's `config/settings.json`, not your normal Zed settings file. ## T3 Code Verified with **T3 Code Nightly `0.0.46-nightly.20261015.3176`** on macOS arm64, Linux arm64 and Windows x64. Versions with **Local ACP command** in **Add provider** support these steps without patches. The fastest way is **Settings → ACP → Set up T3 Code** in the Empryo app, or `empryo acp setup t3`. To add it by hand instead: 1. In Empryo, open **Settings → ACP → Other editors** and choose **Copy agent command**. This copies JSON containing `command` and `args`. 2. In T3 Code, open **Settings → Providers**. Select the computer where Empryo is installed, then choose **Add provider → Local ACP command**. 3. Put the JSON's `command` value in **Executable**, without the surrounding JSON quotes. Choose **Add argument** for each `args` entry, in order. Put one literal argument in each row; do not paste the JSON array or join everything into a shell command. 4. Choose **Next**, set **Label** to `Empryo`, then choose **Add instance**. Leave the generated instance ID unchanged. No T3-hosted model subscription is required for this local agent. 5. Return to the workspace. Choose **Add project → Local folder**, enter your project's path, and open a new thread. In its model picker, choose **Empryo** and one of your configured Empryo models. 6. Send a prompt. T3 starts Empryo's bundled engine, displays its tool activity and streams the answer. The Empryo window can be closed. For a typical macOS installation, the copied values are: ```json { "command": "/Applications/Empryo.app/Contents/MacOS/Empryo", "args": ["--acp"] } ``` Use the values copied from your own installation, not the example path. Windows and Linux use their own executable paths. With a separately installed CLI, **Executable** can instead be its absolute `empryo` path and the argument row is `acp`. ## Verified clients and platforms Each run below registered Empryo through the editor's own UI, sent a prompt, watched Empryo call its read tool on a file in the project and show that file's exact content as the answer. | | macOS arm64 | Linux arm64 | Windows x64 | | --- | --- | --- | --- | | Zed 1.24.2 | passes | passes | passes | | T3 Code Nightly 0.0.46 (20261015) | passes | passes | passes | The [ACP Test Compatibility Kit](https://agentclientprotocol.com/libraries/testing) (acp-tck 0.2.0) reports **CONFORMANT** for both protocol v1 and v2 on macOS arm64, Linux arm64, Linux x64 and Windows x64, with zero failures. Session delete and fork are tested and pass. Its skipped items are capabilities Empryo does not advertise: audio input, additional workspace roots and the logout and authentication flows. ## Other ACP clients Use stdio transport with `command: "empryo"` and `args: ["acp"]`. Send an absolute workspace path in `session/new.cwd`. Each process serves one workspace; start another process for a different workspace. The same stdio entrypoint supports ACP v1 and native ACP v2 through the official SDK protocol router. Zed uses the v1 path; the tested latest T3 Code runtime uses native v2. Each connection negotiates one version, and its subsequent frames follow that version. ## Models, modes and commands The server returns model and mode configuration options during session setup. Clients change them through `session/set_config_option`. On v1, `session/set_mode` and the compatibility endpoint `session/set_model` remain available. Native v2 uses grouped configuration options instead of the retired mode/model methods. Modes: Code, Plan, Autonomous, Orchestrate, Duck and Lite. They behave as in the desktop app, because the mode lives in the engine. Orchestrate runs its agent graphs as ordinary tool calls; the visual graph view is a desktop-app panel. Morph is not offered, because it builds desktop Cells. An **Effort** option (ACP category `thought_level`) appears when the current model has reasoning levels; T3 Code shows it next to the mode, as in "Code · Medium". The model picker includes the current model, configured models and every cached or bundled model from signed-in providers. Commands arrive as prompt text. Empryo announces available commands to the editor: `/compact`, `/mode`, `/model`, `/approvals`, `/effort`, `/context`, `/mcp`, `/memory` and `/sessions`, plus your installed skills and custom agents. `/context`, `/mcp`, `/memory [search]` and `/sessions` answer as text without a model turn. `/compact` summarises earlier turns of the session. `/mode plan`, `/approvals ask` and the others change that session option without a model turn; with no value they show the current one. Commands that open Empryo's own terminal or desktop panels do not open those panels inside an external editor. ## File access and permissions On v1, when the client advertises `fs.readTextFile`, Empryo requests file contents through the client, including unsaved text buffers. File paths are absolute and line numbers are 1-based. No client filesystem method is called without its advertised capability. Native v2 uses engine-owned filesystem access; it does not use the retired v1 client filesystem delegation. Tool notifications contain a title, the tool's programmatic name, kind, status and file locations when available. The tool name is also in `_meta.empryo.tool`. Every file edit adds a `diff` entry with the file's text before and after the change, so the editor can show a diff view. Message and thought chunks carry a stable `messageId`. During a turn Empryo reports context usage and session cost with `usage_update`, and the session title with `session_info_update`. When the client advertises `elicitation.form`, questions from the agent open as a form with the offered answers instead of a permission prompt. Clients that advertise `session.notices` receive provider retries and engine notices as `notice` updates; others receive them as thoughts. Clients that advertise `session.compaction` receive one ID-addressed `compaction_update` per compaction, including automatic ones; others receive a short message. Reasoning uses the separate thought channel. Task and implementation plans use ACP plan updates. Gated destructive operations, writes outside the workspace and supported interactive choices go to the client's permission interface. Each request offers `allow_once`, `allow_always`, `reject_once` and `reject_always`. An "always" answer covers the same kind of request for the rest of the session. `_meta.empryo.category` says what is being asked (`tool`, `destructive`, `outside_cwd`, `fetch`, `web_search`, `question` or `plan_review`). A denied external edit leaves the file unchanged. The **Approvals** option sets when Empryo asks: **Ask first** asks before every edit, command and other change, **Review** asks only before risky commands and writes outside the workspace, and **Full access** never asks. Ask first also asks when the global `yolo` setting is on. A plan waits for your review. The request offers `approve`, `revise` and `reject`. With `revise`, send the change you want as `_meta.empryo.text` in the permission response; clients with `elicitation.form` get a form instead. The shared engine's existing policy permits external reads and writes inside its configuration and OS temporary directories without an outside-workspace prompt. The ACP adapter does not impose a different policy. ## Sessions and cancellation ACP session identifiers are opaque. Keep the whole identifier when storing it or sending it back. Sessions share one engine and run their turns at the same time; see [Empryo extensions](#empryo-extensions) for how sessions in other folders run. The shared engine writes the canonical session journal. On v1, `session/load` restores a saved conversation and replays its text to the client; `session/resume` restores it without replay. On v2, `session/list` discovers persisted sessions and `session/resume` restores them. The next provider request contains the restored conversation, not just a replay in the editor. Closing an in-memory session does not delete its journal. `session/fork` copies a session's conversation into a new session that the next turn continues from. `session/delete` removes a session from `session/list` (v1 and v2); once every tab of a saved session is deleted, its journal is deleted too. On v1, `session/prompt` completes with a stop reason and `session/cancel` is a notification. Native v2 accepts a prompt with its message identifier before generation completes, then reports message/tool updates and running, requires-action or idle state. Cancellation reaches the same shared engine and ends the active turn. Tool calls left unfinished are reported as failed instead of leaving a progress indicator running. ## Empryo extensions Empryo advertises the empryo-acp protocol in `agentCapabilities._meta.empryo`: ```json { "protocol": "1.0", "extensions": { "steer": 1, "turnSummary": 1, "usage": 1, "auth": 1, "config": 1, "memory": 1, "lsp": 1, "routines": 1, "genome": 1, "runs": 1, "subagents": 1, "checkpoints": 1, "turns": 1, "handoff": 1, "models": 1, "openFile": 1, "terminal": 1 }, "singleWorkspace": false, "concurrentSessions": true } ``` A client opts in by sending `clientCapabilities._meta.empryo` with the same major protocol and the extensions it understands. Clients that send nothing get standard ACP only. - **steer:** `_empryo/session/steer` with `{ sessionId, prompt }` queues a message for the running turn and returns `{ steerId }`. `_empryo/steer_update` reports `queued`, then `applied` or `dropped`. An applied message is also sent as `user_message_chunk`. Set `promptWhileBusy: true` to have a `session/prompt` sent during a turn treated as a steer. - **turnSummary:** at the end of a turn that changed files, `_empryo/turn_summary` lists each file with its change and added and removed line counts. - **usage:** `_empryo/usage/quota` returns the usage windows of your signed-in subscriptions, with the percentage used and the reset time. - **auth:** `_empryo/auth/status` lists providers and whether each is signed in; `_empryo/auth/logout` signs one out. Sign-in itself uses the terminal sign-in method. - **config:** `_empryo/config/get` reads the global, project or effective settings; `_empryo/config/set` writes one key (`null` removes it) and updates the options of affected sessions. - **memory:** `_empryo/memory/list` lists or searches memories; `_empryo/memory/delete` removes one. - **lsp:** `_empryo/lsp/status`, `_empryo/lsp/start` and `_empryo/lsp/install` manage language servers. - **routines:** `_empryo/routines/list` and `_empryo/routines/run`. - **genome:** `_empryo/genome/rebuild` rebuilds the code index; `_empryo/genome_status` reports scanning, then ready or failed. - **runs:** `_empryo/runs/list` and `_empryo/runs/get` return orchestration runs with their nodes, verdicts and edges. - **subagents:** `_empryo/subagent/list`, `_empryo/subagent/instruct` and `_empryo/subagent/stop` work on a session's background agents. - **checkpoints:** Empryo saves a checkpoint after each turn in a git workspace. `_empryo/checkpoint/list` returns them with the files each turn changed, `_empryo/checkpoint/diff` compares one with the working tree or another checkpoint, and `_empryo/checkpoint/restore` returns files and conversation to that checkpoint (scope `both`), then sends `_empryo/transcript_reset` and replays the conversation. - **turns:** when Empryo starts a turn on its own (for example another tab messages the session), `_empryo/turn_started` arrives, then the turn's normal `session/update` messages, then `_empryo/turn_ended` with its stop reason. - **handoff:** `_empryo/session/handoff` with `{ sessionId, modeId?, prompt? }` opens a new session that continues the conversation, optionally in another mode. With a prompt, the new session starts a turn reported through the turns extension. - **models:** `_empryo/models/capabilities` with an optional `modelId` returns each signed-in model with its provider, context window, output limit, effort levels, whether it accepts image attachments (`imageInput`) and price per million tokens where the catalog has them. - **openFile:** Empryo gets an `open_in_editor` tool and sends `_empryo/open_file` with `{ sessionId, path, line?, reason }` when it wants you to look at a place in a file. Clients that do not negotiate it never see the tool. - **terminal:** when the client also advertises the standard `terminal` capability, Empryo runs foreground `shell` commands in the editor terminal (`terminal/create`, `wait_for_exit`, `output`, `release`) and shows it in the tool call. All of Empryo's command checks still apply first. Background jobs, commands with forwarded environment variables and Windows keep running locally, and a failed editor terminal falls back to running locally. Session list entries carry `_meta.empryo` with the mode, model, whether a turn is running and the session cost. A tool call stopped by `session/cancel` ends as `failed` with `_meta.empryo.cancelled: true`, since ACP v1 has no cancelled status. A single-file edit carries `_meta.empryo.change` (`added`, `modified` or `deleted`). Clients that negotiate empryo-acp but not `session.notices` receive notices as an `agent_message_chunk` with `_meta.empryo.notice`. These also reach every client, with no opt-in: the `session/prompt` response carries `_meta.empryo.usage` (tokens, cost and steps for the turn), plan entries carry `_meta.empryo.stepId` and `skipped`, compaction updates carry `_meta.empryo.trigger` and `strategy`, and `session/load` replays tool calls as well as messages. New sessions start in `defaultForgeMode`, and `showReasoning: false` hides thought chunks. Each ACP session is a tab in Empryo's engine, so sessions run their turns at the same time, as tabs do in the app. A session that is running a turn returns `session_busy` for another prompt or a settings change; other sessions are unaffected. The first session's folder is the process's home workspace. A session in another folder runs as a checkout of that engine, with its own engine process and code index. Any folder works, git repository or not. Files are only carried between checkouts of the same repository, so a session in another project never copies your home workspace's changes. Such a session reloads in a later process when that process opens the same home workspace first. Reads go through the editor's unsaved buffers whenever the editor offers `fs.readTextFile`, also while several sessions run turns at once. Errors carry `data.reason`: `invalid_params` (-32602) for an unknown model, `resource_not_found` (-32002), `session_busy` (-32050), `unsupported_content` (-32055), `not_running` (-32056) and `extension_unavailable` (-32058) for an extension the client did not negotiate. ## Connection lifecycle Session creation, restoration and model/mode changes reserve the connection while they are in progress. Conflicting control requests receive an error rather than racing the same engine; cancellation remains available immediately. Protocol output respects editor backpressure. If a protocol write fails or the editor disconnects, Empryo cancels the active work and closes its owned engine instead of leaving an idle background process. Diagnostics, including startup diagnostics, go to stderr rather than the JSON-RPC stream. A protocol write that does not complete within 30 seconds closes the connection. Native-v2 turns retain their 30-minute turn deadline; cancellation cleanup and engine shutdown have five-second grace periods. If the engine cannot stop, the connection closes rather than advertising a misleading idle state. ## Supported input and limits Text, text-resource context and PNG, JPEG, WebP and GIF images use the engine's prompt input. Audio is not advertised. Unsupported image formats return an error. Client-supplied MCP servers use stdio or HTTP on v2; v1 also retains SSE support. Definitions are converted into the shared engine's MCP configuration. MCP-over-ACP is not advertised or supported. Client terminals are optional. Empryo's engine runs commands itself; do not infer that it delegates terminal ownership to an editor merely because that editor advertises terminal support. ## Troubleshooting - **No model configured.** Choose a model in Empryo before starting the editor thread. - **Provider rejects a turn.** Check stderr and the provider's sign-in or quota. A failed model call returns an error, not a successful empty answer. - **Wrong workspace or missing directory.** Supply a valid absolute path. Empryo refuses to continue against a different directory when adoption fails. - **Connection closes on startup.** Check the executable path, ensure stdout contains no wrapper output, and read the editor's agent log. - **Empty resumed transcript.** Use the exact saved ACP identifier. The canonical journal, not the old snapshot files, holds current history. See the [ACP protocol reference](https://agentclientprotocol.com/protocol/v1/overview) for client-side message shapes and capability negotiation. --- ## Desktop app Canonical: https://empryo.com/docs/surfaces/desktop > The Empryo desktop app: tabs, a visual map of your codebase, a file preview with code intelligence, visual diffs, terminals, and a browser the agent can drive. ![The desktop app: the chat beside the codebase map, the file tree, and a side panel on the right.](https://empryo.com/screenshots/desktop.webp) *The desktop app: the chat beside the codebase map, the file tree, and a side panel on the right.* The desktop app gives you the same agent as the [terminal UI](/docs/surfaces/tui), in a window. You can see your codebase as a map, preview and edit files with real code intelligence, review diffs visually, run terminals, and watch the agent use a browser. It runs on macOS, Windows and Linux (`.AppImage`, `.deb`, `.rpm` and `.pkg.tar.zst`). Get it from the [download page](https://empryo.com/download). The desktop app and the CLI share the same settings by default, so your keys, theme and configuration carry over. On a wide window, answers stay in a centered column about 820 pixels wide, lined up with the prompt box, so long paragraphs stay easy to read. Tool calls start at the same left edge and may run wider, up to 1040 pixels. In a narrow pane, both fill the pane. ## Opening Empryo Empryo opens straight on the start screen. The logo plays a short opening in place, about two seconds, and you can click or type right away; any key or click ends it. Turn it off with **Play the opening** at the bottom of the start screen. With reduced motion on, it never plays. On a wide window the logo and a live brush painting sit on the left and the picker sits on the right. Below about 1180 pixels wide, the logo and the painting move into a band across the top and the picker takes the full width. The start screen has two tabs. - **Projects** (the default): pick one or more folders, and they open together as projects in this window. **Running now** lists every Empryo already running on this computer, from terminals, the background and other windows, so you can join one. **Settings → Engines** shows the same list. With **Restore last session** on, a project opens on its last session. - **Sessions** lists your recent sessions from every recent project, newest first. A session can span several projects. Select one to see, beside the list, each project in it and every tab, with the tab's model, mode and profile and which tab was open last, then press Enter or **Open this session**. The **Open on** row chooses the computer that runs the project. **This computer** is the default. Each computer you paired shows up next to it, with a dot when it answers. Pick one to open its projects, or pick **Connect a device** to pair another computer. See [Another computer](/docs/surfaces/devices). After you pick, you can add a [profile](/docs/tools/profiles) for the tab you land on and every new tab in this window. The list sits under your pick, with **Change** to go back (or press Escape). Use the arrow keys and Enter, or click. **Skip** keeps what would happen anyway: the session's own profiles, or your default profile. **Always skip** turns this off; **Ask for a profile when opening** on the start screen turns it back on. The profile list only appears when the project has profiles. ## Tabs Each tab is its own conversation on the same project. Tabs share the Genome (Empryo's live map of your code) and memory, and they [coordinate file edits](/docs/agents/cross-tab) so they don't overwrite each other. Every edit is labelled with the tab that made it. Each tab shows a running indicator, its model, how many files it has edited and what it has cost so far. While a tab's [background agents](/docs/agents/dispatch) are still running, the tab shows a pulsing agent mark, with a count when there is more than one, even after its own turn has ended. Hover the tab to read "2 background agents running". The mark goes away when the last one reports. Double-click a tab to rename it and drag to reorder. The name is saved with the session, so it survives a reload and appears in the [terminal UI](/docs/surfaces/tui). The tab order is shared with the terminal and your phone. Right-click a tab, in the strip or the sidebar, for its full menu, including **Branch into a new tab**. In the chat, the pencil next to a prompt edits it, and the arrow beside it can **Rewind here** or **Resend** it (see [checkpoints](/docs/tools/checkpoints#edit-rewind-or-resend-a-prompt)). Each answer shows when it finished, in your computer's clock format. Images and videos from a turn show as tiles under the answer; click one to open it full screen. ### Worktrees The line at the top of the composer shows where the tab works: the local repository, or a git worktree in its own colour, which the tab's label shares. Pick another place there to move the tab. The same tab moves, with its conversation and its draft, and the files it changed are copied along. Uncommitted changes the tab did not make stay where they are, and so do files the destination already has its own uncommitted changes to (a notice lists them, and the agent is told). A message you send while the tab moves waits and runs in the new place. A tab with background agents still running moves once they have reported. The next message runs in the worktree with its own engine and its own Genome, and the line shows the Genome's progress while it maps. **New worktree…** creates a branch and a checkout, shows git's progress on the same line, and moves the tab there. The Git panel lists the local repository and every worktree with the tabs in it. The diff list and revert follow the tab's checkout. The agent can do the same with the `worktree` tool, including moving its own tab once its turn ends. **Clean up worktrees when you close their tabs.** **Settings → General → Tabs & sessions → Closing the last tab on a worktree** decides what happens once no tab is open on a worktree anymore: **Keep the worktree** (the default), **Ask to remove it** (a notice offers **Remove** or **Keep**), or **Remove it automatically**. Closing one of several tabs on the same worktree does nothing; only the last one counts. Removing deletes the worktree's folder from disk, including ignored files such as `node_modules` and build output, along with its index and engine records; its branch stays. A worktree with uncommitted or untracked files, or an ignored `.env` or key file anywhere in it (inside ignored folders too), is always kept, and the notice says why. The local repository is never removed. The setting is `worktreeCleanup` (`"off"`, `"ask"`, `"remove"`) in the [configuration](/docs/reference/configuration), global or per project. ## The prompt box - **At a glance:** the line at the top of the prompt box shows where the tab works, what it is doing now (**Idle**, or the current step such as _Reading src/auth.ts_), how long the turn has run, how many messages are queued and how full the context is. Click the percentage for the context breakdown. A question or approval takes the prompt box's place until you answer it. - **Model, effort and mode:** the row under the prompt starts with who answers, in one capsule. The model shows its provider and name, for example _Anthropic · Claude Opus 5.5_; in a narrow window the provider's logo stands in for its name. Hover it to see how the model is reached (a subscription, an API key or a gateway route). Click it for the model list (`Cmd+Shift+M` on macOS, `Ctrl+Shift+M` on Windows and Linux); **Route tasks…** at the bottom of that list sends subtasks to other models. The effort shows the level as bars and a word, coloured by level, and opens the levels (`⌘⌥E` or `Alt+E` steps through them). The mode opens the modes; `Shift+Tab` in the prompt box steps to the next one. - **Send:** `Enter` sends. The Send button fills in once there is something to send, and its tooltip shows the shortcut. While a turn runs, the same button stops it; type to **Steer** (`Enter`) or **Queue** (`Cmd/Ctrl+Enter`). - **Attach:** the paperclip attaches images or files; dropping or pasting works too. - **More (⋯):** goal loop, Marionette, review once or until it passes, compact the conversation, stash a draft and open stashed drafts, the tab's agent profile, **Collapse input** and the keyboard shortcuts. - **Unsent text stays:** what you type is kept for that tab, session and project. Quit, restart or crash and it is back in the prompt box when you open the tab again; sending clears it. The terminal app keeps the same draft. To park a draft somewhere else, stash it. - **Mention a file:** type `@` and pick a file or folder; its content goes to the agent with your prompt. A word starting with `@` that is not a file in the project, such as an npm package `@scope/package`, is sent as plain text. A file that exists but cannot be read still stops the send and shows why. - **Fill the chat:** once a long draft starts to scroll, the grip at the top of the prompt box widens. Drag it up past the normal height and the prompt box fills the chat; drag it down or double-click to return. Clearing the draft brings it back to its normal size. - **Stay open or shrink:** the prompt box stays fully open by default. **More (⋯) → Collapse input** makes the empty box shrink **Always** or only **When working**; hover or focus opens it again. ## Keyboard shortcuts `Cmd` on macOS, `Ctrl` on Windows and Linux. Press `?` in the app for the cheatsheet. Most of these can be rebound or turned off with [`keybindings`](/docs/reference/keybindings#rebind-a-shortcut); [Keyboard shortcuts](/docs/reference/keybindings) lists every action name. | Shortcut | Action | | --------------------------------------- | ----------------------------------------------------------------------- | | `Cmd/Ctrl+K` | Command palette | | `Cmd/Ctrl+,` | Settings | | `Cmd/Ctrl+Shift+A` | Search open tabs | | `Cmd/Ctrl+T` | New tab | | `Cmd/Ctrl+Shift+T` | Reopen the last closed tab | | `Cmd/Ctrl+W` | Close the tab | | `Cmd/Ctrl+1`…`9` | Go to tab 1–9 | | `Ctrl+Tab` / `Ctrl+Shift+Tab` | Next / previous tab | | `Cmd/Ctrl+L` | Focus the prompt box | | `Cmd/Ctrl+.` | Stop the running turn. `Esc` in an empty prompt box does too. | | `Cmd/Ctrl+Shift+M` | Choose the model for this tab | | `⌘⌥E` (macOS), `Alt+E` (Windows, Linux) | Step reasoning effort for this tab. `⌥E` alone still types accents. | | `Shift+Tab` | Step to the next mode (in the prompt box) | | `Ctrl+R` | Fuzzy-search prompt history | | `Cmd/Ctrl+S` / `Cmd/Ctrl+Shift+S` | Stash the draft / open the stashed drafts | | `Cmd/Ctrl+F` | Search the conversation (or the open file) | | `Cmd/Ctrl+Shift+F` | Search the whole project | | `Cmd/Ctrl+B` | Show or hide the sidebar | | `Cmd/Ctrl+J` | Show or hide the context pane | | `Cmd/Ctrl+I` | Open tools and diffs | | `Cmd/Ctrl+Shift+G` | Switch between the orchestration graph and the chat | | `Cmd/Ctrl+Shift+L` | Show or hide the Stem panel, when Stem is on | | `Cmd/Ctrl+\` | Split the view. Add `Shift` to switch between side-by-side and stacked. | | `Cmd/Ctrl+Alt+←` / `→` | Move between split panes | | `` Ctrl+` `` | Show or hide the terminal | | `Cmd/Ctrl+Shift+B` | Show or hide the browser | | `Cmd/Ctrl+Shift+E` | Expand or collapse every tool call | | `Cmd/Ctrl+Shift+N` / `Cmd/Ctrl+Shift+W` | New window / close the window | ## The Primordial Deep The Primordial Deep is the desktop app's map of your repository. Each file is drawn as a cell. Its position comes from your real import graph, so the layout stays put while you work. As the agent reads and edits files, they light up, and a small marker follows whatever the agent is working on right now. Hover a file to see what it imports and what imports it. Search to jump to a file. You can open the map full screen or dock it beside the chat. The map slows itself down when nothing is happening, so it is cheap to leave open. A button on the map chooses which graphics chip draws it: **Fast** uses the discrete GPU for the smoothest picture, and **Eco** uses the integrated one to save heat and battery on laptops. The same setting lives in **Settings → Window & layout**. **Battery saver** (Settings → Window, and the Usage page) caps animations at 15 frames a second and refreshes plan meters every 5 minutes. Choose **On battery** (the default), **Below 20%** or **Off**. ## Panes - **Sidebar:** a file tree with a filter. Files the agent edited get a diff button. - **Context pane:** what is in the agent's context: code map stats, recently read and edited files, top memories, loaded skills and indexing status. - **Tool calls:** a live list of tool calls with timers, and a before/after diff viewer. Calls of the same kind fold into one row (for example **Ran ×8**); its preview lists the newest calls first, so you see the latest command without opening it. - **Status bar:** code map counts, tokens and cost, files edited, Git branch, and which tab is editing which file. On a subscription, the plan meter follows the model of the tab you are in; pin any plan's meter from the Subscriptions or Usage page to keep it there, in this tab or in all tabs, and click a pinned meter to change or unpin it. Use the refresh button beside it to update the numbers now. **Cache** shows how long the [prompt cache](/docs/context/prompt-cache) lasts. - **Pull requests:** the GitHub pull requests your tabs opened or worked on, with checks, reviews and merge state. Merge, close or read comments from there. See [pull requests](/docs/tools/pull-requests). - **File preview:** a Monaco editor (the editor from VS Code) with go-to-definition, find-references and hover info from your language servers. Edit and save with `Cmd/Ctrl+S`. ## The workbench Settings and tools live in the workbench, a set of pages you reach from the sidebar, the breadcrumb or `Cmd/Ctrl+K`. It has seven sections: Work, Changes, Genome, My tools, Costs & usage, Settings and Help. API keys, MCP servers, skills, agents, permissions, routines and background jobs all have their own page there. [The workbench](/docs/surfaces/workbench) describes each section. ## Browser The desktop app includes a Chromium browser that the agent can drive. It can open your app, click, type, scroll, take screenshots at different device sizes, inspect elements, record network traffic and run performance and accessibility audits. You watch it happen in the same window, so you can show the agent a bug and have it fix the bug in one place. ### It reads the page before it clicks Instead of guessing a CSS selector from your source code, the agent first takes a snapshot of the page. The snapshot lists every visible interactive element with a short handle: ``` button "Save changes" ref=e7 * button "Undo" ref=e8 textbox "Email" ref=e3 [value=""] [scrollable "Results" y=0/1840 ref=e12] ``` The agent then clicks `ref=e7` directly. That is one step instead of a guess, a click and a screenshot to check. It uses far fewer tokens than an image, too. Snapshots include elements inside shadow DOM and same-origin iframes, and clickable `div`s and `span`s. That makes them work on React component libraries and web-component apps, not just plain HTML. - A `*` marks an element that is new since the last snapshot. After a click, a new dropdown shows up as starred options. - Elements hidden behind a modal or toast are left out, and the overlay covering them is named. ### You keep your keyboard The agent types into the element it targets, not into whichever window has focus. You can keep typing in the chat while the agent fills in a form. Minimise the browser and the page keeps working. Screenshots are taken from the page itself, so a background tab captures the same as a visible one. ### Several agents, several pages Each chat tab gets its own browser tabs. Any agent can read any page, but only the tab that opened a page can click or type in it. If an agent tries to drive another tab's page, it is refused and told who holds it. [Cross-tab coordination](/docs/agents/cross-tab) has the full rules. ### Dev servers List your dev commands in `.empryo/launch.json` and the agent can start one and open it in a tab. If the file doesn't exist, the agent can create it for you. By default the browser only opens `localhost` and private-network addresses. Public websites are blocked. ## Projects the TUI already has open When the TUI shares a project with `/remote`, more than one app can use its engine. Open that project in the desktop app and it asks first: - **Join the TUI**: the desktop, the TUI and a paired phone show the same chats, live. Quitting the TUI disconnects the desktop window. - **Open on its own**: the desktop starts its own engine with its own chats. The TUI keeps working. Tick **Always do this** to skip the question next time. Change your answer from the start screen, from the workspace menu at the top of the window, or in the General section of Settings. Recent projects the TUI is sharing carry a **TUI** tag. ## Only in the desktop app - **The Primordial Deep**, the codebase map described above. - **The browser**, with page snapshots, device sizes, network recording and audits. - **The Monaco file preview**, with editing and code intelligence. - **Visual diffs** in the tool-call pane and the sidebar. - **Embedded terminals:** up to five shells, with a shell picker. Toggle with `` Ctrl+` ``. - **Images:** attach, paste or drag images in, crop and annotate them, and open them full size. The agent sees them. - **Right-to-left layout:** in Arabic the whole interface mirrors, including sliders, menus and arrow-key navigation. Each paragraph of a prompt or reply takes its own direction, so mixed Arabic and English reads naturally, while code, paths and diffs stay left-to-right. See [Languages](/docs/tools/languages). ## Next **Cross-tab coordination** How parallel tabs avoid overwriting each other's edits. **Configuration** The settings shared by the desktop app and the CLI. --- ## Another computer Canonical: https://empryo.com/docs/surfaces/devices > Use the Empryo on another computer from the one you sit at. Pair once, then open its projects here. Chats, tools and files stay on that computer. > Experimental: connecting to another computer is new. Expect rough edges and report what breaks. Your laptop can use the Empryo on your home PC as if you sat at the home PC. This page calls the computer that runs the engine the host. The host runs the chats, tools, terminals, accounts, sessions and memory. The computer you sit at draws the screen and keeps its own keyboard, clipboard, voice input and theme. The two computers reach each other over the same Wi-Fi or wired network, or over Tailscale. They never connect through the Empryo relay that phones can use. Both computers need the same Empryo version. ## Connect a computer **1. Turn on remote access on the host** On the host, run `/remote` in the terminal UI or the desktop app. To copy the pairing link, press `c` in the terminal UI. In the desktop app, the **Remote access** window shows the QR code for phones and, under **Another computer**, the pairing link with **Copy link**. If no Empryo window stays open on the host, also run `/remote background on`, so the host keeps listening after you quit. **2. Bring the link to the computer you sit at** Send the pairing link to yourself in any way you like, for example in a note or a message. The link pairs one device, within 10 minutes of `/remote`. **3. Open Connect a device** In the terminal UI, pick **Connect a device** in the start menu or run `/devices`. In the desktop app, pick **Connect a device** in the **Open on** row of the start screen, or open **Settings › Remote › Other devices**. The list shows the hosts that have `/remote` on and that this computer can see on the Wi-Fi or on your tailnet. It never lists the computer you sit at. **4. Paste the pairing link** Pick the host if it is in the list, then paste the link. If the host is not in the list, pick **Paste a pairing link** and paste it. **5. Allow it on the host** The host asks whether this computer may take full control and shows a key. The computer you sit at shows the same key. Click **Allow** on the host only if the two keys match. Pairing happens once. From then on the host shows up next to **This computer** in the start menu, in the **Open on** row and in `/devices`. The first time you look for devices on the Wi-Fi, macOS asks to let Empryo find devices on your local network. If you choose **Not now**, Tailscale and pairing links still work. ## Open a project on the host To open a project on the host, pick the host, then pick a project. The list shows the projects open on the host and the projects this computer opened there before. To open another folder, pick **Open a folder there** and type its full path on the host. The host asks you to trust a folder it has not opened before. For a host named Home PC, while the link is up, the terminal UI shows `⇄ connected to Home PC` in the top line and `⇄ Home PC` next to the prompt box. The desktop app shows **Connected to Home PC** in the status bar. If the link drops, the work keeps running on the host. The terminal shows `Home PC not answering · reconnecting`, the desktop shows **Reconnecting to Home PC**, and what you type waits until the link is back. These work on the host: - Sessions, memory, settings and the git status line. - Files, the built-in Neovim and the diff and image viewers. - Files you drop into the prompt box. Empryo copies them to the host first. - Signing in to a provider. The browser opens on the computer you sit at, and the account signs in on the host. ## Pair a phone while you use the host `/remote` belongs to the computer whose engine you use. While you are connected to the home PC, `/remote` turns on phone access on the home PC and shows its QR code. The phone pairs with the home PC directly and uses the same engine as your window. When another device asks to pair with the home PC, the Allow question also shows up on the computer you sit at, and your answer there counts. ## Keep the host reachable With background access on, the host keeps listening after you quit Empryo and after the host restarts. Run `/remote background on` on the host, or click **Keep it on** in **Settings › Remote › This computer**. Opening a project from another computer then starts that project's engine on the host if none runs. The engine keeps running when you disconnect, and connecting again joins it. Without background access the host stops listening shortly after its last window closes. On Windows, turn background access on at the PC itself. Windows does not let an SSH session add the startup task Empryo needs. When that fails, Empryo says so and keeps remote access running until its last window closes. Empryo keeps the host awake for remote work on macOS, Windows and Linux. See [Keep your computer awake](/docs/surfaces/phone#keep-your-computer-awake) for the choices. If phones and computers on the Wi-Fi can't reach a Windows host, see [Windows Firewall blocks devices on the Wi-Fi](/docs/troubleshooting#windows-firewall-blocks-devices-on-the-wi-fi). On a Linux host with ufw, see [ufw blocks devices on the Wi-Fi](/docs/troubleshooting#ufw-blocks-devices-on-the-wi-fi). For a host that runs in WSL, see [Nothing on the Wi-Fi reaches Empryo in WSL](/docs/troubleshooting#nothing-on-the-wi-fi-reaches-empryo-in-wsl). ## Wake a sleeping host If the host is asleep, the start menu and the **Open on** row show **Wake Home PC and connect**. Empryo sends a Wake-on-LAN packet from the computer you sit at and connects as soon as the host answers, usually within a minute. **Settings › Remote › Other devices** has a **Wake** button that does the same. Wake-on-LAN works under three conditions: - You connected to the host at least once, so this computer knows the host's network card. - The computer you sit at is on the same Wi-Fi or wired network as the host. - Wake-on-LAN is on for the host's network card. ## Skip the Allow on an agent box A computer you only use as an agent box can let your own devices in without a click. Run `/remote trust` on the host and pick who joins, or type the value directly: | Command | Who joins without a link or an Allow | | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------- | | `/remote trust tailnet` | Computers signed in to your own Tailscale account. Devices shared with you from another account and tagged devices never count. | | `/remote trust wifi` | Your Tailscale computers, and any computer on the same Wi-Fi or wired network. | | `/remote trust link` | Anyone with a fresh pairing link. | | `/remote trust ask` | Nobody. Every computer needs the link and your Allow. This is the default. | > **Warning:** > With `/remote trust wifi`, anyone who can join that network gets full control of the host. Use it only on a network you trust. Use `/remote trust link` only on a host that nobody else can reach. A trusted host shows up under **Connect a device** as **Your Tailscale device** or with **Joins with one pick**. Pick it and you are in. The first time a computer joins this way, it remembers the host's key, and from then on it refuses a look-alike on the network. A container or a virtual machine counts as being on its own network, not on your Wi-Fi, so `/remote trust wifi` does not let it in. In the terminal UI, `/remote trust` with no value opens a list with the current setting marked. In the desktop app it opens **Settings › Remote › This computer**, where **Who may take full control of this computer** has the same choices. The setting lives in your global settings as [`deviceTrust`](/docs/reference/configuration#remote-access). A project's `.empryo/config.json` cannot change it. ## Forget a computer To forget a host, run `/devices` and pick **Forget**, or click **Forget** next to it in **Settings › Remote › Other devices**. Empryo removes the key on both computers. If the other computer is off, Empryo says so, and you remove this computer there the next time it is on. ## Linux, WSL and containers Linux works at both ends. A Linux computer can be the host, and a Linux laptop, WSL or a container can connect to a Mac or Windows host. Without Bonjour or Avahi, Empryo looks for devices on the Wi-Fi itself, so Linux and Windows find them too. WSL reaches the network through Windows, so it counts as being on the same Wi-Fi as the Windows computer. ## Next **Phone app** Pair a phone with the same `/remote` and drive your chats from it. **Troubleshooting** What each pairing and connection error means, and how to fix it. --- ## Headless & output formats Canonical: https://empryo.com/docs/surfaces/headless > Run Empryo from scripts and CI with empryo --headless: plain, JSON, and JSONL event output, multi-turn chat over stdin, and exit codes. ![A headless run: the prompt, the streamed answer, and the summary at the end.](https://empryo.com/screenshots/headless.webp) *A headless run: the prompt, the streamed answer, and the summary at the end.* `--headless` runs the same agent without the terminal UI. Use it in scripts, CI jobs, and other automation. This page describes the output you get back. For complete CI examples, see the [CI recipe](/docs/recipes/headless). ```bash empryo --headless "explain the auth middleware" echo "find unused exports" | empryo --headless # prompt from stdin ``` The assistant's answer goes to **stdout**. Progress lines (model, tools, the summary at the end) go to **stderr**. That keeps your pipes clean. You can choose one of three output formats. ## Plain text (default) The answer streams to stdout as it is written. If stdout is a terminal, the Markdown is rendered with colors. If you pipe it, you get raw text. Use `--render` or `--no-render` to force either behavior. Two more flags help here: - `--quiet` (or `-q`) hides the progress lines on stderr. - `--diff` lists the files the agent changed when the run ends. The list goes to stderr and still appears with `--quiet`. ## JSON: `--json` Prints one formatted JSON object when the run finishes. Nothing streams before that. ```json Result object { "model": "anthropic/claude-opus-4-8", "mode": "default", "prompt": "list all TODOs", "output": "…assistant's final answer…", "steps": 7, "tokens": { "input": 18432, "output": 1204, "cacheRead": 16000 }, "cost": 0.0812, "toolCalls": ["grep", "read", "find"], "filesEdited": ["src/auth/session.ts"], "duration": 38211 } ``` `cost` is an estimate in US dollars. `duration` is in milliseconds. The `error` key appears only when the run fails. ## Events: `--events` Prints a stream of JSON Lines (JSONL): one JSON object per line, written as things happen. Every object has a `type` field. These are the ones you will use most: | Type | Fields | | --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `start` | `model`, `mode`, `session`, `genome` (`files` and `symbols`, or `null`), `workers` | | `text` | `content`: the next piece of the answer | | `tool-call` | `tool`, `toolCallId`, `input` | | `tool-result` | `tool`, `toolCallId`, `summary` (a short summary of the result) | | `step` | `step`, `tokens` (running totals, plus the last step's input, output, and cached tokens), `at` (when the step was sent, in epoch milliseconds) | | `warning` | `message` | | `error` | `error` | | `model-call` | One event per model call, from any lane: `modelId`, `lane` (`main`, `subagent`, `background`, `compaction`, and so on), `effort`, `startedAt`, `durationMs`, `state` (`ok` or `error`), `input`, `output`, `cacheRead`, `cacheWrite`, `errorMessage`. `effort` is the level the request actually carried and is absent when none was sent | | `done` | `output`, `steps`, `tokens`, `cost`, `toolCalls`, `filesEdited`, `duration` | | `session-saved` | `sessionId` (only with `--save-session`) | You may see other types too, for example when the agent starts sub-agents or compacts its context. Sub-agent events carry the worker's model and `effort` too: `agent-activity` as `modelId`, `background-status` as `model`. Ignore any type your script does not need. The full list of lanes is in [Logs, errors and worker effort](/docs/tools/logs#the-model-call-log). ```bash Parse events with jq empryo --headless --events "refactor the store" | while read -r line; do case "$(jq -r .type <<<"$line")" in tool-call) echo "→ $(jq -r .tool <<<"$line")" ;; done) echo "done in $(jq -r .duration <<<"$line")ms" ;; esac done ``` ## Chat: `--chat` `--chat` keeps a conversation going over stdin. Each line you send is one turn. End a line with `\` to continue the message on the next line. Blank lines are skipped. `--json` and `--events` work in chat mode too, once per turn. When stdin ends or you press `Ctrl+C`, Empryo saves the session and prints the command to resume it. ```bash empryo --headless --chat <<'EOF' what does the session store do? now add a TTL field to it EOF ``` With `--events`, chat mode adds three event types: `ready` before each prompt, `turn-done` after each turn, and `chat-done` at the end. ## Exit codes | Code | Meaning | | ----- | ------------------------------------------ | | `0` | Success | | `1` | Error | | `2` | Timeout (`--timeout` was reached) | | `3` | `--review` finished with a FAIL verdict | | `130` | Stopped with `Ctrl+C` | ## What is different without a UI - There is no terminal UI, editor panel, or splash screen. - Nobody is there to approve actions, so actions that would normally ask for approval are allowed. - You cannot steer the agent while it runs. Stdin is only read in `--chat` mode. - The default [profile](/docs/tools/profiles) applies to the run. `--profile <name>` picks another one, `--no-profile` runs plain. > **Tip:** > For faster starts on small CI jobs, pass `--no-genome` (or set `EMPRYO_NO_GENOME=1`). This skips the initial scan of your repository. Use `--max-steps` and `--timeout` to stop runs that go on too long. --- ## Surfaces Canonical: https://empryo.com/docs/surfaces/overview > Use Empryo from the terminal UI, the desktop app, the phone app or the headless CLI. All of them run the same agent with the same tools, sessions and settings. You can run Empryo as a terminal app, as a desktop app or as a command with no UI for scripts and CI, and drive it from your phone. Each one runs the same agent. Pick the one that suits the task in front of you, and switch whenever you like. **Terminal UI** Run `empryo` in a repository. You get a keyboard-driven chat with tabs, panels, a status bar and an optional embedded Neovim. **Desktop app** A native window with a visual map of your codebase, a file preview with code intelligence, visual diffs, terminals and a built-in browser. **Phone app** Drive the chats on your computer from an iPhone, iPad, Apple Watch or Android device, and get told when a turn is done. In beta. **Another computer** Use the Empryo on your home PC from your laptop. Chats, tools and files stay on the home PC, and your laptop draws the screen. **Headless CLI** No UI. Pass a prompt, read plain text, JSON or a stream of JSON events, and check the exit code. Made for scripts and CI. ## What stays the same The interface changes. The rest does not: - **The Genome.** Empryo keeps a live map of your code (files, symbols and how they depend on each other) so the agent knows where to look before it edits. See [Genome](/docs/concepts/genome). - **The tools.** Edits go through syntax-aware [editing](/docs/tools/ast-edit) and language servers, not blind find-and-replace. - **Sessions and checkpoints.** [Sessions](/docs/tools/sessions) and [checkpoints](/docs/tools/checkpoints) are saved in the project's `.empryo/` folder, so you can resume or roll back from any surface. - **Settings.** [Configuration](/docs/reference/configuration), API keys, themes and [memory](/docs/tools/memory) are shared. Set a key once and every surface can use it. - **Parallel tabs.** In the terminal UI and the desktop app, tabs working on the same repository [coordinate their edits](/docs/agents/cross-tab) so they don't overwrite each other. ## Which one to use | You want to… | Use | | ---------------------------------------------------- | --------------------------------------------------------------------------- | | Work with the agent interactively from your terminal | [Terminal UI](/docs/surfaces/tui) | | See your codebase, diffs and a browser in one window | [Desktop app](/docs/surfaces/desktop) | | Run Empryo from a script or a CI job | [Headless CLI](/docs/surfaces/headless) | | Follow and steer your chats away from the computer | [Phone app](/docs/surfaces/phone) | | Use the Empryo on another computer from this one | [Another computer](/docs/surfaces/devices) | | Speak prompts instead of typing them | [Voice input](/docs/surfaces/voice-input) | | Look up a flag or a slash command | [CLI reference](/docs/reference/cli) · [Commands](/docs/reference/commands) | --- ## Phone app Canonical: https://empryo.com/docs/surfaces/phone > Drive the chats on your computer from your phone, tablet or watch: iPhone, iPad, Apple Watch and Android. Pair with /remote and get told when a turn is done. The Empryo app for iPhone, iPad, Apple Watch and Android is in beta. It drives the chats on your computer: the agent still runs there, with your files, keys and settings, and the phone shows each step and sends what you type or say. It needs iOS 26, watchOS 26 or Android 10 or later. Get the iPhone, iPad and Apple Watch app from the [App Store](https://apps.apple.com/us/app/empryo/id6817397907) and the Android app from [Google Play](https://play.google.com/store/apps/details?id=com.empryo.mobile). ## Pair your phone 1. On your computer, run `/remote` in the terminal UI or the desktop app. Empryo shows a QR code. If the terminal window is too small for the code, press `o` to open it in your browser. 2. In the Empryo app, tap **Scan the code** and point the camera at the QR code. If the camera can't see the screen, copy the pairing link with `c` in the terminal UI or **Copy link** in the desktop app, send it to the phone, and paste it in the app. 3. If the phone pairs over the quick link, your computer asks first. Click **Allow** there, or run `/remote allow`. Over the Wi-Fi or Tailscale, the phone pairs right away. **On the same Wi-Fi you can skip the code.** While `/remote` is on, the app's home screen lists the computer under **Nearby on this Wi-Fi**. Tap it, then **Pair with** the computer, check that the phone and the computer show the same six-digit code, and click **Allow** on the computer. No computer yet? Tap **Try the demo** on the home screen for a scripted chat that runs on the phone alone. After that, the phone finds your computer on its own. Each link pairs one device, within 10 minutes of `/remote`. A quick link stays open for 5 minutes. ### Choose how the phone reaches your computer `/remote` offers every way it can: the Wi-Fi, Tailscale and the quick link. To offer only one, use one of these instead: - To pair while the phone is on the same Wi-Fi, run `/remote wifi`. - To pair over Tailscale from anywhere, run `/remote tailscale`. Tailscale must run on the phone and on the computer. - To pair from anywhere with no account, run `/remote quick`. The phone connects through the Empryo relay, and the computer asks before it lets the phone in. If phones on the Wi-Fi can't reach your computer, see [Windows Firewall blocks devices on the Wi-Fi](/docs/troubleshooting#windows-firewall-blocks-devices-on-the-wi-fi) or, for Empryo inside WSL, [Nothing on the Wi-Fi reaches Empryo in WSL](/docs/troubleshooting#nothing-on-the-wi-fi-reaches-empryo-in-wsl). ### Keep phone access on after you quit Run `/remote background` and pick **Keep phone and computer access on**, or type `/remote background on`. Phone access then keeps running after you quit Empryo, starts again with your computer, and the phone can start work by itself. Pick the other choice, or type `/remote background off`, to turn it off. In the desktop app, the same switch is **Keep remote access on** in the **Remote access** window, and **Keep it on** in **Settings › Remote › This computer**. From a shell, `empryo phone on` turns on background phone access and prints the pairing code, `empryo phone off` turns it off and `empryo phone status` shows it. If the computer refuses to register the background service, the command says "Phone access could not change" with the reason and exits with code 1. On Windows this happens when Empryo runs over SSH, outside a signed-in desktop session. Run the command from a terminal on the computer itself instead. ### Keep your computer awake While phone access is on, Empryo can stop your computer from falling asleep so you can still reach it from your phone. Choose how in **Settings › Remote › This computer › Keep this computer awake**: - **For a while** (default): the computer stays awake for a set number of minutes (30 unless you change **Minutes**) after a phone or computer connects, and after the turns it started finish. Every new connection restarts the timer. Once it runs out, the computer sleeps on its normal schedule. - **Always**: the computer never sleeps while phone access is on. - **Off**: the computer sleeps on its normal schedule, even during a turn. The settings are `remoteAwake` and `remoteAwakeMinutes` in the [configuration](/docs/reference/configuration#remote-access). On Linux, Empryo uses `systemd-inhibit`. When Linux refuses the sleep lock, which can happen when nobody is signed in at the computer itself, Empryo only blocks idle sleep, so closing the lid still puts the computer to sleep. ### Remove a phone or stop phone access `/remote forget` removes a paired phone from this computer. `/remote stop` stops phone access until the next `/remote`. ### Use your phone with another computer's engine While your window uses the engine on another computer, `/remote` pairs the phone with that computer. See [Another computer](/docs/surfaces/devices#pair-a-phone-while-you-use-the-host). ## What you can do from the phone - **Drive any chat.** Watch every step, steer a turn while it runs, or queue what comes next. A message sent while the chat compacts waits in the queue and says so. See [steering](/docs/agents/steering). - **Edit, rewind or resend.** Long-press a prompt to change it, go back to it, or send it again. See [checkpoints](/docs/tools/checkpoints#edit-rewind-or-resend-a-prompt). - **Find any chat.** The chat list groups chats by project and worktree. Filter by **All**, **Needs you**, **Working**, **Done** or **Idle**, sort oldest or newest first, drag to reorder, swipe to close, or close every idle chat at once. The **+** beside the project switch starts a new chat. Tabs keep the same order as on your computer. - **See every chat at once.** The all-chats button in the chat header, or a pinch on the chat, shows every open chat as a small live card. On a tablet or a wide screen, two chats can sit side by side. - **Read the thinking.** With **Show reasoning** on in the app's settings, each thought is its own row in the steps. With it off, a finished turn shows one **Thought** row with its length; tap it to read what the model thought. - **Answer from anywhere.** Questions and approvals come to the phone, with numbered answers. - **Switch projects.** Open any project you have open or used recently on your computer, or start one in the background. - **See what runs.** Engines, under Projects, lists every engine on your computer, what it is doing and which windows hold it. Stop one, or restart the phone's own engine; its chats open again in a fresh one. - **Pick the model.** Choose the model, effort and routing for a chat. - **Switch accounts.** On iPhone, Settings → Accounts lists your subscriptions and API keys with the usage of each. Tap one to make your computer use it. Account names stay hidden until you tap the eye. - **Follow pull requests.** A chat's row shows the pull request it works on, with its state and checks. Tap it to see the chat's pull requests and their merge, checks, reviews and threads. See [pull requests](/docs/tools/pull-requests#phone). - **Follow a goal.** A [goal](/docs/agents/goal-loop) shows **Checking goal** while it reviews, and you can change its rounds while it runs. - **Watch the meter.** A running turn shows its tokens, cost and generation time, and they stay right when the app reconnects or reloads the chat. - **Talk instead of typing.** Speak a prompt, or go hands-free so each pause sends. See [voice input](/docs/surfaces/voice-input). - **Attach pictures.** Add a photo or take one with the camera. - **Run on a schedule.** Create and edit [routines](/docs/tools/routines) that run every hour, every day, on weekdays or once a week. - **See what it made.** Screenshots, pages, drawings and PDFs the agent makes in a chat are its artifacts. The stack chip under the composer, or `/artifacts`, lists them by the prompt that made them; tap one to open it on the phone. Images and videos from a turn also show as tiles under its answer and open full screen. - **Read diagrams and cards.** Mermaid diagrams draw as cards; tap one for full screen. [Interactive answers](/docs/tools/interactive-answers) show with native sliders, switches and charts. - **Ask Mito.** The [Mito](/docs/agents/mito) entry above your chats opens what needs you, every lane across your projects, the board and the playbook. Stop, compact or close a lane from there, or tap **Talk to Mito**. - **Check on the computer.** Status shows how much memory and CPU Empryo and all apps use, how hot the computer runs and its battery. The heat level is Normal, Warm, Hot (the computer may slow down to cool itself) or Very hot (it is slowing down). On a Mac it is the level macOS reports; on Linux and Windows it comes from the CPU temperature, which is shown too, when the computer reports one. ## Know when it is done When a turn finishes, fails or needs you, the phone gets a notification. A Live Activity shows the running chat on the Lock Screen, in the Dynamic Island and in StandBy, and the Apple Watch shows the same status. The "turn finished" notification is skipped when you used the computer's keyboard or mouse in the last two minutes, since you are already there to see it; failures and questions still come through. Linux needs `xprintidle` for this check, otherwise every finished turn notifies. [Child tabs](/docs/agents/child-tabs) an agent opened stay quiet unless you turn on `notifySubTabs`. ## Apple Watch and Wear OS The watch talks only to your iPhone, so it works wherever the phone reaches your computer: on Wi-Fi, over Tailscale or through the relay. Tap the mic and speak a prompt; your computer turns it into text, you check it, and it goes to the chat you picked, or steers that chat if it is working. You can also type or scribble instead, pick another chat, stop a chat that is working, and answer a question or approve a step. Models and settings stay on the phone. Wear OS watches do the same through the Android app and use the watch's own speech recognition. Prompts sent from a watch say so on the computer and the phone, and the terminal and desktop show the watch next to the phone while it is connected. On Android, press and hold an answer, a plan or a summary to select text and copy it. On Android 12 and later, Settings → System colours swaps the world's palette for the colours Android takes from your wallpaper; the world's scenery and status colours stay. ## Next **Desktop app** The window your phone connects to. **Another computer** Use the Empryo on your home PC from your laptop, with the same pairing. **Routines** Prompts that run on a schedule, started from the phone or the computer. --- ## Terminal UI Canonical: https://empryo.com/docs/surfaces/tui > Use Empryo in your terminal: the start menu, shortcuts, the prompt box, modes, tabs, panels, the status bar, mouse support and the embedded Neovim editor. ![The terminal UI: a conversation with tool calls, the status line, and the prompt box.](https://empryo.com/screenshots/terminal.webp) *The terminal UI: a conversation with tool calls, the status line, and the prompt box.* Run `empryo` inside a repository and the terminal UI opens. You chat with the agent, watch its tool calls, and review what it changed without leaving the keyboard. Everything you need is one shortcut or one slash command away. Press `Alt+H` or type `/shortcuts` at any time to see every shortcut, grouped. New to the terminal? The [terminal lessons](/docs/terminal-guide) replay the real app and let you press each key yourself. ## Choose where to run When you start `empryo`, Empryo asks which project to open, then which session to continue, then opens chat. The project list shows: - **Open here**, the folder you started in. - **Open another folder…**: type a path; Tab completes it, and `~` stands for your home folder. - Your recent projects. - Each computer you paired, and **Connect a device**. See [Another computer](/docs/surfaces/devices). Started inside a project folder (a git repository, or a folder with saved sessions), Empryo skips the project list and shows that project's sessions; Esc goes back to the project list. A session open in another window is marked so; picking it joins that window's engine. With [`startMenu`](/docs/reference/configuration#behavior) left at `"always"`, every launch shows at least one menu: a project you pick with no sessions opens a new chat, and a launch inside a project with no sessions shows its session menu. With `"when-needed"`, a project with no sessions opens a new chat straight away, and a paired computer still brings up the where-to-run menu. `--cwd` picks the project for you, `--session` or `--resume` opens a session, and `--new-session` starts a fresh one in chat. To open chat in the current folder straight away, run `/start-flow off` or set [`startFlow`](/docs/reference/configuration#behavior) to `"off"`. When engines already run the chosen project, or with `startFlow` off, the start menu then asks where Empryo should run. It lists these rows: - Each engine that already runs this project, shown as **Join** followed by its name and state. If none runs, **Open here** starts a new engine on this computer. - **Start a new engine**, when an engine already runs the project and you want your own tabs and session. - Each computer you paired, with the network it answers on. Pick one to open a project there. See [Another computer](/docs/surfaces/devices). - **Connect a device**, to pair another computer. - **Quit**. Use the arrow keys and Enter, or a number. With `startFlow` off, this menu shows on every launch; to show it only when there is a choice, such as an engine to join or a paired computer, set [`startMenu`](/docs/reference/configuration#behavior) to `"when-needed"`. ## Keyboard shortcuts These work from the chat view. While a panel or dialog is open, it handles its own keys. `Alt+H` shows them in the app; [Keyboard shortcuts](/docs/reference/keybindings) lists both apps on one page. | Keys | Action | | --------------------------- | --------------------------------------------------------------------------------------------------------------------------- | | `Ctrl+K` | Open the command palette and search every command. | | `Ctrl+L` | Pick a provider and model. | | `Ctrl+D` | Cycle to the next [mode](#modes). | | `Alt+E` | Step reasoning effort for this tab. The status bar shows the level. | | `Ctrl+S` | Browse and install skills. | | `Ctrl+G` | Open the Git menu. | | `Ctrl+P` | Browse and restore past sessions. | | `Ctrl+E` | Show or hide the [Neovim editor](#embedded-neovim). | | `Alt+P` | Open Projects. | | `Ctrl+T` | Open a new tab. | | `Ctrl+Shift+T` | Reopen the last closed tab. | | `Ctrl+W` | Close the current tab. | | `Ctrl+N` | Start a new session. The current one is saved first. | | `Ctrl+1`…`Ctrl+9`, `Ctrl+0` | Go to tab 1–9, or tab 10. `Alt+1`…`Alt+0` work too. | | `Ctrl+\` / `Ctrl+]` | Previous / next tab. | | `Ctrl+B` / `Ctrl+F` | Step back / forward through [checkpoints](/docs/tools/checkpoints). Stepping past the newest returns you to the live state. | | `Alt+K` / `Alt+J` | Scroll the chat up / down a few lines. `scrollSpeed` in the [configuration](/docs/reference/configuration) sets how far. | | `Page Up` / `Page Down` | Scroll the chat a screen at a time. | | `Ctrl+X` | Stop the current response. | | `Ctrl+O` | Expand or collapse all code and reasoning blocks. | | `Ctrl+C` | Copy the selection. With nothing selected, it clears the prompt box; in an empty prompt box, it quits. | | `Ctrl+Shift+C` | Copy the selection. Never quits. | | `Cmd+C` | Copy the selection, in terminals that pass `Cmd` through. | | `Esc` | Clear the selection. | | `Ctrl+Shift+Esc` | Stop all [computer use](#computer-use) and release the mouse and keyboard. | | `Alt+H` | Keyboard reference. | | `Alt+R` | Error log. | A checkpoint is saved for every prompt, covering both your files and the conversation. `Ctrl+B` and `Ctrl+F` let you look back through them. ### The prompt box | Keys | Action | | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------- | | `Enter` | Send the prompt. While the agent is working, this sends a steering message to the current turn. | | `Shift+Enter` / `Ctrl+J` | New line. | | `Ctrl+U` | Delete the current line. | | `→` | Accept the suggested completion. | | `Esc` | Close the suggestion list or history search, cancel a recording, or leave a checkpoint you are viewing. | | `Alt+Q` | Queue the prompt as a separate turn after the current one. `Alt+Enter` or `Ctrl+Enter` also work in terminals that pass them through. | | `Alt+O` | A long paste is folded into one line in the prompt. Open it in place to read or edit it before you send. | | `↑` / `↓` | Previous / next prompt from history, when the cursor is on the first or last line. | | `Ctrl+R` | Fuzzy-search your prompt history. | | `Tab` | Go to the next tab (when no autocomplete list is open). | | `Shift+Tab` | Cycle to the previous mode. | | `Ctrl+V` / `Alt+V` | Paste an image from the clipboard as an attachment. | | `Alt+S` / `Alt+P` | Save the current draft for later / bring back the most recent saved draft. | | `@` | Mention a file. A fuzzy file picker opens. A word like `@scope/package` that is not a file is sent as plain text. | | `$` | Add skills to this message. `↑` / `↓` move, `Space` chooses, `Enter` adds, `Esc` closes the list. | | `/` | Start a slash command, with autocomplete. | If you clear a long draft with `Ctrl+C`, Empryo saves it first. Press `Alt+P` to get it back. To change a prompt you already sent, hover it in the chat and click **Edit**. Empryo goes back to the [checkpoint](/docs/tools/checkpoints) before that prompt and puts its text in the prompt box. Change it and send it to carry on from there. This also works for a turn you stopped with `Ctrl+X` before Empryo replied. The same row has **Rewind here**, which sends the prompt again from that point, and **resend**, which sends it again at the end of the chat. ## Modes A mode tells the agent how to approach your request: `default`, `plan` or `lite`. Press `Ctrl+D` to cycle forward through every mode, `Shift+Tab` to cycle back, or pick one with `/mode`. Your choice is remembered per project. [Modes](/docs/context/prompt-system#modes) explains each one. Empryo asks before the agent reads a web page, touches files outside the project or runs a destructive command. For page reads and work outside the project, the prompt can also allow that kind of request until the tab closes. To stop the page-read prompt for good, set [`approvals.fetchPage`](/docs/reference/configuration#behavior) to `"allow"`, or list the sites you trust in `approvals.fetchDomains`. `/yolo` skips every prompt. ## Tabs Each tab is its own conversation on the same repository. Tabs share the [Genome](/docs/concepts/genome) (Empryo's live map of your code) and memory, and they [coordinate file edits](/docs/agents/cross-tab) so two tabs never silently overwrite the same file. - **Open:** `Ctrl+T` asks for a name, then opens the tab. `/tab new` does the same. - **Close:** `Ctrl+W`. If the tab is busy, Empryo asks first. The last tab can't be closed. - **Switch:** `Ctrl+1`…`Ctrl+0`, `Ctrl+\` / `Ctrl+]`, `Tab` in the prompt box, or click the tab bar. - **Rename:** `/tab rename <name>`. The name is saved right away, so it survives a restart and shows up in the desktop app. - **Reorder:** `/tab move left` or `/tab move right`. The order is shared with the desktop app and your phone. - **Profile:** `/profile <name>` sets up the tab with a [profile](/docs/tools/profiles) (model, mode, skills, routing); `/profile off` puts it back. `empryo --profile <name>` starts every tab in the window on it. All tabs are saved in one session. Reopen the session and your tabs come back. ### Artifacts Screenshots, pages, drawings, PDFs and videos the agent makes are the tab's artifacts. Each one shows under the turn that made it; click it to open it. The prompt box shows how many the tab has, and clicking that count lists them. `/artifacts` lists them too, and `/artifacts 2` opens the second one, or saves a copy when it can't be opened. To hide them everywhere, run `/artifacts off` (or set `artifacts.show` to `false` in `/settings`); `/artifacts on` brings them back. ### Diagrams Mermaid diagrams in an answer are drawn to fit the terminal. A diagram too wide for the window is turned on its side, and one that still does not fit shows its source. **Fullscreen** under a diagram opens it on its own: scroll in both directions, copy it, and press `Esc` to close. ### Worktrees A tab can work in a git worktree: a second checkout of the repository on its own branch, so two tabs can change the same files without getting in each other's way. `/worktree add <branch>` creates the branch and its worktree and moves this tab there (`--from <ref>` picks where the branch starts). `/worktree open` moves the tab into a worktree you already have, and `/worktree list` shows them all. `/worktree agent <task>` starts an agent on the task in a new worktree. `/worktree remove` and `/worktree prune` clean up. The agent can do the same with its `worktree` tool. As in the [desktop app](/docs/surfaces/desktop#worktrees), each worktree gets its own engine and Genome. ## Panels Anything beyond the chat opens in a panel. Search for it in the command palette (`Ctrl+K`), or use the command shown. **Model picker** `Ctrl+L` or `/models`. Pick a provider and model. On [LLM Gateway](/docs/providers/overview#llm-gateway) models, `Ctrl+R` lets you choose which upstream vendor serves the model. **Command palette** `Ctrl+K`. Fuzzy-search every command and panel. **Settings** `/settings`. Every settings panel, plus **All settings**: each setting the terminal reads, with its value and where it comes from. Type to search, then press Enter to change one for this project or globally, or to clear it. **Sessions** `Ctrl+P` or `/session history`. Browse and restore past sessions. **Skills** `Ctrl+S` or `/skills`. Search, install and load skills. **Git** `Ctrl+G` or `/git`. Status, diff, commit, branch, stash, push and pull. **Router** `/router`. Use a different model for each kind of task, such as code, exploration, planning and verification. **MCP** `/mcp`. See connected MCP servers and their tools, and reconnect them. **Language servers** `/lsp`. Install, enable and disable language servers. **Genome** `/genome`. Settings and status for the code map. **Memory** `/memory`. View and clear what Empryo remembers across sessions. **Status** `/status` or `/context`. Token use, context window and system health. **Usage** `/usage`. Spend per model and period, and what is left on your plans. The [command reference](/docs/reference/commands) lists every slash command. ## Status bar The header and footer keep the important numbers in view: - **Model:** the provider and model. Models served through the proxy or LLM Gateway show a prefix. - **Git:** the current branch, with `*` when you have uncommitted changes, for example `main*`. Set `statusBar.git` to add new and changed file counts (`"files"`), lines changed since the last commit (`"lines"`), the last commit's size (`"last-commit"`), or hide the segment (`"off"`). See [configuration](/docs/reference/configuration#display). - **Agent edits:** `✎ +3 ~28` counts the files this tab's agent created (`+`) and edited (`~`) in this session. Files you reverted are left out. It is not a Git count. `statusBar.edits: false` hides it. - **Mode:** the active mode, or one badge per tab when several tabs are open. - **Context:** how full the model's context window is. The gauge changes colour as it fills, and shows when Empryo is compacting the conversation or when you are viewing an older checkpoint. - **Plan meter:** on a subscription model, your plan's tier, how much of its current limit you have used and when it resets, for example `pro ▰▱▱▱▱ 10% ↺7d`. When the account reports no tier it reads `plan`. See [Subscriptions](/docs/providers/subscriptions), [Proxy](/docs/providers/proxy) and [Copilot](/docs/providers/copilot#usage-and-quota). - **Cost:** the estimated cost of the session so far, or `FREE` / `Local` for local models. The footer also rotates shortcut hints and tips. In the chat, calls of the same kind fold into one row such as `Ran ×8`; its preview lists the newest calls first. ## Mouse support - Click and drag to select text. The selection is copied to your clipboard. Right-click copies and clears the selection. - The scroll wheel scrolls the chat. New output keeps the view pinned to the bottom. - Click the tab bar to switch, close or open tabs. - Click the editor pane to focus it, and click the chat to go back. ## Computer use With computer use, the agent can see and control apps on your machine, not just files. `/computer` shows what it can reach right now (displays, app windows, browser tabs), which operating system permissions are still missing, and any active sessions. - `/computer stop` or `Ctrl+Shift+Esc` stops everything and gives the mouse and keyboard back to you. - `/computer teach` records a workflow while you demonstrate it. See [computer use](/docs/tools/computer-use) for the details. ## Embedded Neovim Press `Ctrl+E` to open a real Neovim editor beside the chat. Neovim is an optional [add-on](/docs/tools/addons): ```bash empryo addon install neovim ``` - When the agent edits a file you have open, the buffer reloads. The agent can also drive the editor through the [editor tool](/docs/tools/editor): navigate, rename, format and read diagnostics. - Drag the editor's right edge to resize it; the width is saved as its share of the space it splits with the chat. `/editor split` steps through 40, 50, 60 and 70 percent from the keyboard. `/nvim-config` switches between Empryo's bundled Neovim config and your own. - While the editor has focus, every key goes to Neovim, `Esc` and `Ctrl+C` included. `Ctrl+E` closes the editor and returns to the chat. Click the chat to type there; click the editor to go back. - Clicks, drags and the wheel land on the cell under the pointer, and Neovim always draws at the panel's exact size, after a window resize or an editor resize too. ## Next **Command reference** Every slash command, grouped by area. **Themes** Change how the terminal UI looks, or make your own theme. --- ## Voice input Canonical: https://empryo.com/docs/surfaces/voice-input > Speak prompts in the terminal UI, desktop app, phone and CLI. Transcribe on your ChatGPT plan, live with gpt-live-transcribe, or offline with whisper.cpp. Voice input lets you speak a prompt instead of typing it. It works in the terminal UI (TUI), the desktop app, the phone app and the headless CLI. Empryo records a short clip, turns it into text, and either puts the text in your message box for review or sends it right away. ## Option 1: your operating system's dictation You do not need Empryo's voice feature at all if your system already has dictation. It types into any text field, including Empryo's message box. - **macOS**: turn on **System Settings → Keyboard → Dictation**. Click into the message box, press the dictation key (🎤 or Fn), and speak. - **Windows**: press **Win+H**. Use Empryo's own voice input when you want better accuracy on technical words, automatic sending, headless runs, or Linux. ## Option 2: offline with whisper.cpp (free, no key) [whisper.cpp](https://github.com/ggml-org/whisper.cpp) runs speech-to-text on your own machine. Nothing leaves your computer and you need no API key. First install it: ```bash brew install whisper-cpp # macOS. Linux/Windows: grab the official # prebuilt from github.com/ggml-org/whisper.cpp/releases # (whisper-bin-ubuntu-*.tar.gz / whisper-bin-x64.zip) # and put whisper-cli on PATH. Linux needs libgomp1. ``` Then download a model. In the TUI, run `/voice setup`. It downloads the default model and tells you when the mic is ready. To pick a different model, name it: | Command | Size | Notes | | ---------------------------------- | ------- | ------------------------------- | | `/voice setup tiny.en` | ~75 MB | Fastest, English only | | `/voice setup base.en` | ~142 MB | Fast, English only. The default | | `/voice setup small.en` | ~466 MB | More accurate, English only | | `/voice setup large-v3-turbo-q5_0` | ~547 MB | Best quality, all languages | You can also download a model yourself: ```bash mkdir -p ~/.local/share/whisper-cpp curl -L -o ~/.local/share/whisper-cpp/ggml-base.en.bin \ https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-base.en.bin ``` On Windows, use `%USERPROFILE%\.local\share\whisper-cpp` instead. Empryo looks for models in `~/.local/share/whisper-cpp`, `~/.cache/whisper-cpp`, and Homebrew's `share/whisper-cpp/models` folder. If it finds several, it uses the most accurate one. To choose a model yourself, set `voice.localModel` to a model name (`"base.en"`) or a full file path. The desktop app records in a different audio format. It converts the recording with `ffmpeg` before passing it to whisper.cpp, so install `ffmpeg` if you use local transcription in the desktop app. ## Option 3: cloud transcription with an OpenAI or Groq key ### Your ChatGPT plan (the default) If you signed in to ChatGPT with `/login codex`, voice input works with no key and no extra setup. Empryo sends each clip to the transcription service ChatGPT's own apps use, so it runs on your plan instead of an API bill. It is the default whenever you are signed in, even when you also have an API key. Picking `chatgpt/transcribe` while signed out uses your OpenAI or Groq key instead; with no key, voice says to run `/login codex` rather than showing ready. If a clip fails on the plan, it goes to your key at `api.openai.com` (or Groq), never to ChatGPT. - The text arrives when you stop talking, in about a second. Words while you speak need an OpenAI API key: [turn live dictation on](#live-dictation-words-appear-as-you-speak) to use it. - It takes no keywords, so product names can come out misspelled ("Empryo" became "MPRIO" in our tests). Pick `openai/gpt-transcribe` and set `voice.keywords` when names matter. - ChatGPT keeps each clip in your account for 30 days. Empryo cannot shorten that: the service ignores retention options and refuses to delete the file (tested September 30, 2026). - It is not a public API, so OpenAI can change or block it. When a clip fails there, Empryo transcribes it with your OpenAI or Groq key, or local Whisper, instead. ### An API key If you already have an OpenAI or Groq key, voice input works with no extra setup. ```bash empryo --set-key groq <key> # or empryo --set-key openai <key> ``` | Key | Model Empryo uses | Price (September 2026 list) | | ------------------------ | ------------------------------------------------------------- | --------------------------- | | ChatGPT plan (signed in) | ChatGPT's transcription service | part of your plan | | OpenAI | `gpt-transcribe`, OpenAI's most accurate speech-to-text model | $0.0045 per minute | | Groq only | `whisper-large-v3-turbo` | free tier, then per hour | A ChatGPT sign-in wins over keys, and OpenAI wins over Groq. Pick another model with `/voice model` in the TUI, the Voice page in desktop Settings, or [the config](#configure-transcription). ## Live dictation: words appear as you speak With an OpenAI API key and no ChatGPT sign-in, live dictation is on by default. When you are signed in to ChatGPT it is off by default, so your plan does the work; turn it on to spend your key on live words. Your words show up in the draft while you talk, the way ChatGPT's dictation does, without a voice conversation. Stop talking and it stops by itself; the draft already holds the final text. Empryo keeps a connection to OpenAI ready before you press the mic, so the first words appear about a second after you start and the last ones about half a second after you stop (measured on September 30, 2026). - **TUI**: `/voice live off` or `/voice live on`, or `/voice settings` and pick **Live dictation**. - **Desktop**: `/voice live off` or `/voice live on` in the composer, or **Settings → Voice → Live dictation**. `/voice settings` opens that page, and searching Settings for "dictation" jumps there. - **Anywhere**: ask Empryo to set `voice.live` to `false` to turn it off. ## Stops when you go quiet After you speak, about 2.5 seconds of quiet ends the recording and the text lands in the draft, or is sent if `voice.insertMode` is `"send"`. Holding the shortcut to talk ignores quiet and stops when you let go. Change the wait with `/voice auto-stop 4`, the **Stop after silence** row in desktop Settings, or `voice.autoStop`. `0` or `off` keeps listening until you stop it. The phone app reads the same wait from your computer's config. ### Hands-free: talk, pause, it sends, it listens again Turn on hands-free and you only press the mic once. Each time you go quiet, what you said is sent, and the mic opens again for the next thing you say. Stretches with no speech are thrown away instead of sent. Press the mic again to end the session; what you said up to then is still sent. Esc ends it too, but throws away what you said since the last pause. - **TUI**: `/voice hands-free on`, or `/voice settings` and pick **Hands-free**. The recording line shows "hands-free" while it listens. - **Desktop**: `/voice hands-free on` in the composer, or **Settings → Voice → Hands-free**. The mic's tooltip says it is listening. - **Phone**: touch and hold any mic and pick **Hands-free**, or open **Settings → Voice**. The phone reads and writes the same setting on your computer, so all three always agree. A small repeat badge on the mic means it is listening hands-free. - **Anywhere**: ask Empryo to set `voice.handsFree` to `true`. Hands-free always sends; it ignores `voice.insertMode`. If `voice.autoStop` is `0`, hands-free still stops after 2.5 seconds of quiet, because it needs a pause to know when you are done. On the ChatGPT plan it costs nothing extra; with live dictation on, the open mic streams to OpenAI and is billed per minute while it listens. Live dictation uses `gpt-live-transcribe` ($0.017 per minute) and needs an OpenAI API key. Empryo streams your microphone at 24 kHz to OpenAI's Realtime API. A pause of about 0.7 seconds closes a sentence, so the text before it becomes final while you keep talking. Empryo still records the whole clip: if the live stream drops, it transcribes the recording with your normal model instead, so nothing you said is lost. `voice.delay` trades speed for accuracy. The default is `low`, which gave the fastest first words in our tests without losing accuracy. | Delay | Behaviour | | --------- | --------------------------------- | | `minimal` | Words appear fastest | | `low` | Fast, good for captions | | `medium` | Balanced | | `high` | More accurate, words arrive later | | `xhigh` | Most accurate, slowest | Live dictation works in the TUI, the desktop app and the phone app. Headless runs record a clip and transcribe it when you press Enter. ## Use voice in the TUI 1. Press `Ctrl+Y`, click the mic button in the message box, or run `/voice`. 2. Speak. The message box shows `● REC` and a small level meter that moves with your voice, so you can see the mic is picking you up. 3. Press `Ctrl+Y` again to stop. Press `Esc` instead to cancel and throw the recording away. 4. Wait while it shows `transcribing…`. The text is added to your draft, after anything you already typed. With live dictation on, the words appear while you speak. 5. Edit the draft if you want, then press `Enter` to send. To send the text automatically instead, set `voice.insertMode` to `"send"`. ## Use voice in the desktop app The desktop app records through your system microphone, so it needs microphone permission. You do not need a separate recording tool. 1. Click the mic button in the message box, or press `⌘Y` on macOS or `Ctrl+Y` on Windows and Linux. 2. Speak. The mic icon pulses with your voice. 3. Click the mic button again to stop. Press `Esc` to cancel instead. 4. Review the text in your draft, then send it. You can also **hold** the shortcut to talk. Hold the key, speak, and let go. Recording stops and transcribes when you release. A quick tap (under 400 ms) starts and stops recording as usual. By default the text stays in your draft (`voice.insertMode` is `"insert"`). Set it to `"send"` to send it automatically. ## Use voice in headless mode You need an interactive terminal for this. Run: ```bash empryo --headless --voice ``` Empryo records until you press `Enter`. A status line shows the elapsed time and a level meter. Press `Esc` or `Ctrl+C` to cancel. The text becomes your prompt. If you also type or pipe a prompt, the spoken text is added after it: ```bash empryo --headless --voice "also update the tests" ``` ## Configure transcription Voice settings live under `voice` in `config.json`. That is `~/.empryo/config.json` for all projects, or `.empryo/config.json` for one project. ```jsonc { "voice": { "model": "openai/gpt-transcribe", "language": "en", "insertMode": "insert", "live": true, "delay": "medium", "prompt": "A coding session in a TypeScript monorepo called Empryo.", "keywords": ["Empryo", "Genome", "useChat", "Bun"], }, } ``` | Key | What it does | | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `model` | Speech-to-text model as `provider/model`: `chatgpt/transcribe` (your ChatGPT plan), `openai/gpt-transcribe`, `openai/gpt-4o-transcribe`, `openai/gpt-4o-mini-transcribe` or `groq/whisper-large-v3-turbo`. That provider needs a key. | | `language` | The language you speak, as one code (`en`) or a list (`en,fr`). Leave it out to detect the language. | | `insertMode` | `"insert"` puts the text in your draft. `"send"` sends it right away. | | `live` | Shows words as you speak. On by default when you have an OpenAI API key and are not signed in to ChatGPT; `true` or `false` sets it either way. | | `autoStop` | Seconds of quiet after you speak before recording stops by itself. Default `2.5`; `0` keeps listening. | | `handsFree` | `true` sends each time you go quiet and listens again until you stop the mic. Off by default. | | `liveModel` | The live model. Defaults to `gpt-live-transcribe`. | | `delay` | Live speed against accuracy: `minimal`, `low` (default), `medium`, `high` or `xhigh`. | | `prompt` | A sentence about what you usually talk about. It helps with jargon. | | `keywords` | Exact words to expect, such as names and identifiers. No `<`, `>` or line breaks. | `prompt` and `keywords` go to `gpt-transcribe` and `gpt-live-transcribe`. Other models get `prompt` only. In the TUI, `/voice settings` opens all of this in one picker, and `/voice model`, `/voice live`, `/voice hands-free`, `/voice auto-stop`, `/voice delay` and `/voice language` change one thing each. In the desktop app it is **Settings → Voice**, which also shows which model will run and why live dictation is not ready. On the phone, touch and hold any mic for hands-free, live words, what happens when you finish and the quiet wait, or open **Settings → Voice** for the same four. The phone saves them on your computer, so the TUI and desktop change with it. Every text field on the phone has a mic: the chat box, answers to questions, steering a running step, plan notes, new schedules, handoff notes and the reason for stopping a step. Only the field you started from receives the words. Fields that send (chat, answers, steering, plan notes) follow your send and hands-free choices; the others only fill the field. ### Change the mic shortcut `voice.key` changes the mic shortcut in both the TUI and the desktop app: ```jsonc { "voice": { "key": "mod+shift+v" }, } ``` Join keys with `+`. The last part is the key. Everything before it is a modifier. | Part | Meaning | | ------------------------------------ | ----------------------------------------------------------------------- | | `ctrl` / `control` | Control | | `cmd` / `meta` / `command` / `super` | Command on macOS, Windows key on Windows | | `mod` | Command on macOS, Control everywhere else | | `alt` / `option` / `opt`, `shift` | Alt or Option, Shift | | last part | A letter or digit (`y`), a function key (`f5`), or a key name (`space`) | The defaults are `ctrl+y` in the TUI and `mod+y` in the desktop app. A few rules: - If Empryo cannot read your shortcut, it uses the default instead of showing an error. - A single letter with no modifier is not allowed, because it would trigger on every keystroke. Function keys on their own are fine. - `Esc` always cancels a recording. You cannot change that. - Restart the TUI or the desktop app after changing the shortcut. ### Use your own transcription server Set `voice.baseURL` to any server that offers an OpenAI-compatible `/audio/transcriptions` endpoint. This could be a whisper server on your machine or on your local network. Your audio then stays on your network. A custom server needs no provider key, and `model` can be a plain name: ```jsonc { "voice": { "baseURL": "http://localhost:9000/v1", "model": "large-v3", }, } ``` ### Transcribe with a chat model that understands audio Set `voice.llm` to send the recording to a chat model that accepts audio, instead of a speech-to-text endpoint. Any provider you have set up works. Use `voice.instruction` to tell the model how to write the text, for example to remove filler words: ```jsonc { "voice": { "llm": "openai/gpt-4o-audio-preview", "instruction": "Transcribe faithfully, but drop filler words and add punctuation.", }, } ``` ### Use your own recording command `voice.command` replaces the recording command in the TUI and headless mode. Empryo replaces every `{output}` with the path of the audio file. The command must keep recording until it is stopped, and write an audio format your transcription service accepts: ```jsonc { "voice": { "command": ["sox", "-d", "-c", "1", "{output}"] }, } ``` ## Requirements and troubleshooting The TUI and headless mode record with a command-line tool. Empryo uses the first one it finds: - **macOS**: `rec` (part of SoX) or `ffmpeg`. Run `brew install sox` if you have neither. - **Linux**: `arecord` (from `alsa-utils`), `ffmpeg`, or `rec` (SoX). - **Windows**: `ffmpeg`. If none is installed, the error message tells you what to install for your system. Each recording can be up to 5 minutes long, and the audio file can be up to 10 MB. ## Privacy Empryo sends your audio only to the transcription service you configured. With whisper.cpp, it never leaves your machine. In the TUI and headless mode, the recording is saved to a private temporary file and deleted after transcription or when you cancel. The desktop app keeps the recording in memory until transcription finishes. --- ## The workbench Canonical: https://empryo.com/docs/surfaces/workbench > Find runs, jobs, agent conversations and routines in the terminal workbench. Explore the desktop destinations for code, changes, tools, costs and settings. ## Terminal workbench Open `/workbench` for the engine's activity in one place. Select Runs, Jobs, Link, Advice or Routines from its navigation. Use the on-screen keys to inspect an item; press `Esc` to return to the conversation. | Go directly to | Command | | --------------------------------- | ----------- | | Multi-agent workflow runs | `/runs` | | Background shell jobs | `/jobs` | | Messages and rooms between agents | `/link` | | Saved second opinions | `/advice` | | Scheduled routines | `/schedule` | The [terminal lessons](/docs/terminal-guide) show these views live, with the keys to press. ## Desktop workbench ![The desktop app's main areas. Each one keeps its own back history.](https://empryo.com/media/docs-workbench.svg) *The desktop app's main areas. Each one keeps its own back history.* The workbench is how the [desktop app](/docs/surfaces/desktop) is organized. The window has a few main areas, called destinations. Chat is one of them. Keys, MCP servers, skills, routines and the rest each live on a page inside a destination. Every page has a breadcrumb and a back button. The app remembers where you were, so a reload brings you back to the same page. To find a page quickly, press `Cmd+K` (macOS) or `Ctrl+K` (Windows and Linux) and type its name. ## The destinations | Destination | What you do there | | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | | **Work** | Talk to the agent. Tabs, the message box, tool activity, and the [Primordial Deep](/docs/surfaces/desktop#the-primordial-deep) codebase map | | **Changes** | Review what the agent changed in this session, work with Git, and restore [checkpoints](/docs/tools/checkpoints) | | **Genome** | Explore the [Genome](/docs/concepts/genome), Empryo's map of the files and symbols in your repository | | **My tools** | Manage [skills](/docs/tools/skills), [agents](/docs/tools/agents), [MCP servers](/docs/tools/mcp), permissions, and running work | | **Costs & usage** | See [what you spent](/docs/concepts/cost-tracking), every [model call](/docs/concepts/model-events), and metrics | | **Settings** | Change appearance, models and accounts, code and context options, and system settings | | **Help** | Read guides, run diagnostics, check session status, and send feedback | A Cell can add its own page next to these. Cells are small add-on apps that run inside Empryo. A Cell that declares a `workspace.tab` extension opens as a full page with the same navigation and back history as the built-in destinations. See [Cells & Morphs](/docs/tools/morphs). ## My tools My tools holds the things you install or configure for the agent: skills, custom agent definitions, MCP connections, and permissions. It also has an **Engine** group. These pages show work that keeps running after a turn ends: | Page | What it shows | | --------------- | -------------------------------------------------------------------------------- | | Agent runs | Every sub-agent and background agent, updated live | | Orchestration | [Multi-step agent runs](/docs/agents/workflows) and their progress | | Routines | [Scheduled runs](/docs/tools/routines) and their history | | Background jobs | Shell commands the agent started in the background, with logs and a stop button | | Rooms | [Messages between agents](/docs/agents/cross-tab) in different tabs | | Advice | Notes from the [advisor](/docs/tools/side-agents#advisor) for each tab | ## Settings Settings is split into four groups: | Group | Pages | | --------------------- | ---------------------------------------------------------------------------------------------------- | | **Appearance** | Theme, Window & layout, Preferences, Language | | **Models & accounts** | Accounts & keys, Subscriptions, Provider options, Proxy | | **Code & context** | Behavior, Code intelligence, Context & compaction, Web search, Language servers, Syntax highlighting | | **System** | Addons, Storage | Each setting matches a key in [the configuration reference](/docs/reference/configuration). The desktop app and the terminal read the same `config.json`, so a change in one applies to the other. ## Changes, usage, and help - **Changes** has three tabs. _Session changes_ lists what the agent wrote in this session. _Working tree & Git_ lets you stage, unstage, and commit, with a diff preview for each file. _Checkpoints_ lets you roll back to a [checkpoint](/docs/tools/checkpoints). - **Costs & usage** shows your running spend, then _Model calls_ (each request with its latency and why it stopped) and _Metrics_. - **Help** has _Guides & support_, _Diagnostics_ (the same checks as `doctor`), _Session status_, and _Send feedback_. ## Moving around Each destination keeps its own history. Back takes you to the previous page inside that destination, not to the last thing you clicked anywhere in the app. When you switch to another project folder, the old history is cleared. Back never takes you into a project you closed. ## Next **Desktop app** The window, tabs, browser, and the Primordial Deep. **Configuration** Every setting behind the Settings pages. --- ## Learn Empryo in the terminal Canonical: https://empryo.com/docs/terminal-guide > Twenty-three short demos of the real Empryo terminal. Press the keys yourself: sign-in, the router, subagents, workflows, the Genome, computer use and more. When a lesson pauses, press the key it shows or click the prompt. Type `/onboard` in the app to come back here. Not installed yet? [Set it up first](/wizard). ## Ask about your code Type a question and press Enter. Empryo finds the code through the Genome, reads only the lines it needs and answers with the files and symbols it used. Each step appears in the tool rail with its time, and the turn ends with its cost. [Prompt controls](/docs/surfaces/tui#the-prompt-box) ## Find any command `Ctrl+K` opens the command palette: every command, panel and setting in one searchable list. Type a few letters to filter it. `/` in the prompt does the same for slash commands. [Terminal controls](/docs/surfaces/tui) ## Sign in with your subscriptions `/login` lists every account Empryo can use: Claude Pro and Max, ChatGPT, GitHub Copilot, Grok, Gemini and more, with the ones already signed in marked. Pick one, approve it in your browser, and its models join the model picker. API keys go in `/keys`. [Subscriptions](/docs/providers/subscriptions) ## Switch models and effort `Ctrl+L` opens the model picker for every provider you have connected, subscriptions included. Type to search, Enter to switch. `/effort` sets how hard the model thinks. Each tab keeps its own choice. [Providers and models](/docs/providers/overview) ## Tune each provider `/provider-settings` holds each provider's own options: thinking, effort, how long the prompt cache lives and provider-side tools like web search. `Tab` moves between the providers and their options, `Enter` changes a value, and each change saves to this project or to every project. [Provider options](/docs/context/provider-options) ## Route each job to a model `/router` gives every job its own model: the chat, explorers, coders, code review, web research and prompt preparation. Set how many subagents run at once, up to unlimited, and add backup models for when a provider fails. [The task router](/docs/recipes/task-router) ## Keep going when a provider fails Model Fallback, at the bottom of `/router`, gives each model a list of backups. When a provider is overloaded or rate limited, Empryo retries the same model, then switches to the next backup and finishes the turn on it. `/retry` sets how many retries come first. [Model fallback chains](/docs/recipes/model-fallback) ## Run subagents in parallel Ask for parallel work, or let Empryo decide. It splits the task, runs subagents side by side, each on the model its job needs, and merges what they report. Findings one subagent makes reach the others at their next step. [Parallel subagents](/docs/agents/dispatch) ## Connect agents in a workflow `/orchestrate` runs a graph of agents: a planner, a coder, two reviewers in parallel and an arbiter that sends failed work back for another round. Every step can use a different model. `/runs` follows the graph live. [Multi-agent workflows](/docs/agents/workflows) ## Ask the Genome The Genome is a live map of your code: symbols, calls, imports and git history. Empryo knows what depends on a file before it edits it, and tells you. `/genome` shows what is indexed. [The Genome](/docs/concepts/genome) ## Map the request first The Marionette reads your request before the agent starts and turns it into a map of the repo: the files and symbols it touches, how they connect, and what it could not tell. The agent starts from the map instead of searching. `/marionette <request>` maps one request, and `/marionette on` maps every one. [The Marionette](/docs/concepts/marionette) ## Bring your own agents `/agents` lists the agents defined as Markdown files in your project and your home folder, each with its own instructions, model, mode and tools. Empryo reads their descriptions and hands them the work that fits: in a dispatch, in a workflow or on their own. [Agents](/docs/tools/agents) ## Plan before it edits `Ctrl+D` cycles the modes. In plan mode Empryo researches and writes a plan without touching a file. Read the steps, then implement, revise, or hand the plan to a workflow. [Plan mode](/docs/recipes/plan-mode) ## See every change and go back `/changes` lists every file the agent touched with its diff. Checkpoints hold both the files and the conversation, so you can step back to any earlier turn. [Checkpoints](/docs/tools/checkpoints) ## Steer while it works Type while the agent runs and press Enter: your note reaches it at its next step, without stopping the turn. Ask it something and it answers right under your note, then carries on. `Alt+Q` queues a follow-up instead, and `Ctrl+X` stops the turn. [Steering](/docs/agents/steering) ## Get a fresh review `/review` starts a separate reviewer on what this tab changed. It reads the diff without the conversation's assumptions and reports findings with the file and line. [The reviewer](/docs/agents/review) ## Talk it through with the duck `/duck` opens a rubber duck in a new tab: a side chat that cannot see your code, for thinking out loud about names, trade-offs and plans. `/duck <question>` asks it straight away. `/advise` gets a second opinion on the whole conversation, and `/council` lets two to four models debate a hard call. [Duck, advisor and council](/docs/tools/side-agents) ## Work in several tabs `/tab new` (or `Ctrl+T`) opens a tab with its own conversation, model and mode on the same project, and `/tabsplit` shows two side by side. Ask one tab to check with another: it asks, and the other tab answers in its own pane. [Tabs that talk](/docs/agents/cross-tab) ## Pick up where you left off `Ctrl+P` lists your saved sessions with their titles and size. Open one to continue exactly where it stopped. `/memory` keeps decisions and lessons between sessions. [Sessions](/docs/tools/sessions) ## Work from your phone `/remote` turns on phone access and shows a QR code. Open the Empryo app on your phone or tablet and scan it; the phone joins this session over Wi-Fi. A prompt you send from the phone runs here, with this project, its tools and your models, and the answer shows on both screens. `/remote stop` turns it off. The code and address in this demo are stand-ins, so the QR code does not scan; run `/remote` in your own terminal for a real one. ## Let it use your apps Ask for something outside the terminal and Empryo drives the app itself. It lists what is open, reads the window's controls the way a screen reader does, then clicks and types through them by name, several steps at a time. `/computer` shows what it can reach and what your system still has to allow, and `/computer stop` takes the controls back. [Computer use](/docs/tools/computer-use) ## Add skills, tools and routines `/skills` loads playbooks for specific jobs, `/mcp` connects external tools, and `/schedule` runs a routine on a timer, like a morning check of your project. [Skills](/docs/tools/skills) ## Keep the prompt cache warm `/cache` shows how long your provider keeps the prompt cached, with a live countdown. `/ping` refreshes it while you are away, so the next turn stays cheap. [Prompt cache](/docs/context/prompt-cache) --- ## Addons Canonical: https://empryo.com/docs/tools/addons > Install Empryo's optional addons from the command line: a local proxy for chat subscriptions, and a bundled Neovim for the editor panel. Addons are optional extras that are not part of the main download. You install them only if you want what they add, and you manage them with `empryo addon`. There are two addons today. Neither is required, and a fresh install includes neither. | Addon | What it adds | |-------|--------------| | `proxy` | [CLIProxyAPI](https://github.com/router-for-me/CLIProxyAPI), a local relay that lets you use an existing Claude, ChatGPT, Gemini or Grok chat subscription instead of an API key. Use at your own risk; see [Proxy](/docs/providers/proxy). | | `neovim` | A Neovim binary for the [editor panel](/docs/tools/editor), so you don't have to install Neovim yourself. | ## The first-run prompt The first time you start Empryo in an interactive terminal, it asks whether you want either addon. Whatever you answer, it won't ask again. The prompt is skipped when the terminal is not interactive (CI, pipes) or in headless runs. To skip it explicitly: ```bash EMPRYO_NO_PROMPT=1 empryo ``` ## Manage addons ```bash empryo addon list # installed or not, version, path empryo addon install proxy # install the proxy addon empryo addon install neovim # install Neovim empryo addon update neovim # reinstall the latest version empryo addon remove proxy # uninstall empryo addon setup # show the first-run prompt again empryo addon --help # full usage ``` `empryo --addon …` works the same as `empryo addon …`. For listing, `list`, `ls`, `--list` and `-l` are interchangeable. ## Where files go | Path | What | |------|------| | `~/.empryo/bin/` | The `cli-proxy-api` and `nvim` binaries Empryo runs | | `~/.empryo/installs/` | One folder per installed version | On Windows these live under `%LOCALAPPDATA%\Empryo`. Empryo records what it installed under `addons` in `~/.empryo/config.json`: ```json { "addons": { "proxy": { "installed": true, "version": "1.4.2", "installedAt": "2025-01-15T12:00:00Z" }, "neovim": { "installed": true, "installedAt": "2025-01-15T12:00:00Z" } } } ``` ## If you already have the binary If `cli-proxy-api` or `nvim` is already on your `PATH` (from Homebrew, apt, scoop and so on), Empryo uses it and you don't need the addon. If you install the addon anyway, Empryo keeps its own copy in `~/.empryo/bin` so a later `PATH` change can't break it. `addon remove` only deletes that copy. It never touches your system install. ## SoulStack [SoulStack](https://github.com/proxysoul/SoulStack) is ProxySoul's set of skills, immune cells and working takeaways. Empryo doesn't turn it on by itself. Nothing changes until you install it. Empryo finds a copy you already have: `SOULSTACK_DIR`, `soulstack.dir` in the global config, the checkout behind the `soulstack` command, or `~/dev/SoulStack`. Installing runs SoulStack's own setup script, which links its skills into `~/.agents/skills` and adds the takeaways to `~/.empryo/EMPRYO.md` inside a marked block. Your own rules stay. ```bash empryo soulstack # what's installed, where, and whether an update is out empryo soulstack install # set it up (clones to ~/dev/SoulStack when there is no copy) empryo soulstack check # look for an update, change nothing empryo soulstack update # get the latest and set it up again empryo soulstack remove # take it out again empryo soulstack auto off # stop the daily update ``` Once it's installed, the desktop app and the terminal check GitHub once a day and update it on their own. You can turn that off with `soulstack.autoUpdate`. In the terminal the same commands are under `/soulstack`. On desktop they're in Settings, under Add-ons. ## Environment variables | Variable | What it does | |----------|--------------| | `EMPRYO_AUTO_INSTALL_ADDONS` | Install these addons automatically at startup, comma-separated (`proxy,neovim`). Handy in Docker images and CI. | | `EMPRYO_PROXY_VERSION` | Install a specific CLIProxyAPI version instead of the default. | | `EMPRYO_NO_PROMPT` | Set to `1` to skip the first-run prompt. | ## Proxy quickstart > **Warning:** > **Use at your own risk.** The relay sends your consumer subscription credentials to endpoints built for the vendor's own apps. Empryo is not affiliated with Anthropic, OpenAI, Google or xAI. Whether your plan allows this is between you and your provider. Rate limits, revoked credentials or a suspended account are possible. Details in [Proxy](/docs/providers/proxy). ```bash empryo addon install proxy empryo # then, inside the terminal UI: /proxy login # add a Claude, ChatGPT, Gemini or Grok subscription /proxy status # see which accounts are active /proxy quota # see how much of each plan is left ``` Once an account is added, its models show up in `/models`. [Proxy](/docs/providers/proxy) explains how to read the quota meters, including the weekly per-model limits Claude applies on top of the account-wide ones. --- ## Agents Canonical: https://empryo.com/docs/tools/agents > Define your own specialist subagents as markdown files. Empryo also reads the agent folders you already have for Claude Code, opencode and Gemini CLI. A custom agent is a markdown file that describes a specialist: what it's for, which model runs it, which tools it may use, and the instructions it follows. When Empryo splits work across parallel helpers, it can hand a task to your specialist instead of a general-purpose one. Use one when you keep giving the same kind of instructions: "review this for security issues", "find the slow paths, don't edit anything", "write release notes in our style". Empryo uses the same file layout as Claude Code, opencode and Gemini CLI, and reads their folders. An existing `.claude/agents/reviewer.md` works with no changes. ## Write one Create a markdown file with `name` and `description` in the frontmatter. The body is the agent's instructions. ```markdown --- name: perf-hunter description: Finds hot paths and allocation churn. Use before optimizing anything. mode: explore tools: read, grep, genome_analyze effort: low --- You hunt for performance problems. Report the top 3 hot paths with `file:line` and the measured or inferred cost of each. Never edit files. ``` Save it as `.empryo/agents/perf-hunter.md` in your project. Empryo picks up new and edited files within a few seconds. You don't need to restart. Run `/agents` to see every definition Empryo found, grouped by project and global scope. In the terminal UI, press Enter on a row to read the full instructions, or `r` to re-scan. The desktop app shows the same list in a drawer. ## Where Empryo looks Empryo scans these folders, including subfolders, so you can organize files like `agents/review/security.md`. An agent's identity is its `name` field, or the filename if `name` is missing. The folder path doesn't matter. When two files use the same name, the one higher in this list wins. Project folders always beat global ones, and within each scope Empryo's own folder comes first. ``` .empryo/agents/ project .agents/agents/ project .opencode/agents/, .opencode/agent/ project (opencode) .gemini/agents/ project (Gemini CLI) .claude/agents/ project (Claude Code) ~/.empryo/agents/ global ~/.agents/agents/ global ~/.config/opencode/agents/, …/agent/ global (opencode) ~/.gemini/agents/ global (Gemini CLI) ~/.claude/agents/ global (Claude Code) ``` ## Frontmatter Only `name` and `description` are required. Every other field limits or tunes the agent. | Field | What it does | | :---------------- | :-------------------------------------------------------------------------------------------------- | | `name` | Unique id, lowercase with hyphens. Defaults to the filename | | `description` | When to use this agent. Empryo reads this to decide when to delegate | | `mode` | `explore` (read-only) or `code` (may edit files). Leave it out to let the task decide | | `model` | A full `provider/model` id, or a short alias (see below) | | `tools` | Only these tools are allowed. Leave it out to allow the normal set | | `additionalTools` | Extra Empryo-only tools to allow on top of `tools`, so the file still works in other agents | | `disallowedTools` | Tools to remove, applied after `tools` | | `effort` | Reasoning effort for this agent | | `maxTurns` | Maximum number of steps the agent may take | | `skills` | [Skills](/docs/tools/skills) to load into the agent's context at start | | `temperature` | Sampling temperature for this agent | | `color` | Color used for the agent in panels and transcripts | Empryo ignores keys it doesn't know. A `permission:` block written for another tool won't break the file. ### Read-only or editing `mode` decides whether the agent can change files. If the file sets a mode, that mode always applies. An `explore` agent stays read-only even when it's given an editing task. opencode's `subagent` and `primary` values are understood too. The `tools` list is enforced. If the agent tries a tool that isn't on the list, the call is refused with a message naming the agent that blocked it. A custom agent can never get more power than the session allows. If your session is read-only, so is every agent it starts. ### Models A full `provider/model` id is used exactly as written. Short aliases such as `haiku`, `sonnet` or `fast` map onto the fast model you've configured in Empryo, because the author's provider may not be yours. `inherit`, or no `model` field, uses whatever model Empryo would have picked. ## Run one Empryo chooses one of your agents on its own when a task matches its `description`. So write the description as a rule for when to use it ("Use after writing or modifying code"), not as a title. You can also ask for one by name in your prompt ("have perf-hunter look at the boot path"). The agent can run it as a parallel helper within the current turn, or in the background while you keep working. In a headless run, you can run the whole session as one of your agents: ```bash empryo --headless --agent perf-hunter "why is the boot path slow?" ``` If the name doesn't exist, Empryo stops with an error that lists the available agents. It won't quietly fall back to the default. ### Helpers that start helpers A helper running as one of your agents can start parallel helpers of its own with `dispatch`, one level deep. Its instructions decide when, for example "split the work into one helper per screen". A plain helper gets this only when you ask for it in your prompt ("let it start its own helpers"). - A read-only agent's helpers are read-only too. - Their helpers can't start more. - Every helper at every level counts against the same agent limit. While a helper waits on its own helpers, it gives its slot to them. - Their rows, costs and edits show up under the same dispatch as their parent. - If an agent has a `tools` list, add `dispatch` to it to allow this. Put `dispatch` in `disallowedTools` to forbid it. - Background agents, verifiers and reviewers never start helpers. Helpers running as a custom agent show its name: in the desktop Subagents panel and in the terminal UI's dispatch tree. ## Profiles A custom agent can also run a whole tab, with its own model, mode, skills and routing. That's a [profile](/docs/tools/profiles): pick it with `/profile <name>` and turn it off with `/profile off`. ## Let Empryo write one Describe a role you want to reuse ("a release-notes writer that follows our CHANGELOG style") and ask Empryo to save it as an agent. It writes the file to `.empryo/agents/`, or to `~/.empryo/agents/` if you ask for a global one, and can use it in the same turn. If another folder already has an agent with the same name, Empryo tells you which file wins, so a new definition never loses silently to an old `.claude/agents/` copy. --- ## AST editing Canonical: https://empryo.com/docs/tools/ast-edit > How Empryo edits TypeScript and JavaScript by symbol name instead of by matching text, so edits don't fail on whitespace or drift with line numbers. When Empryo edits a TypeScript or JavaScript file, it changes the code by symbol, not by searching for text. It says "set the return type of `fetchUser`" instead of "find these exact three lines and replace them". Small changes stay small, and an edit can't fail because of whitespace, quotes or line endings. The tool that does this is called `ast_edit`. AST stands for abstract syntax tree, the structured form of your code that the TypeScript compiler builds. You never call `ast_edit` yourself. Empryo uses it automatically for TypeScript and JavaScript files, and this page is a reference for what it can do. In a project with no TypeScript or JavaScript files, such as a Go or Rust repository, Empryo loads `ast_edit` on demand instead of sending it with every request. The model can still pull it in when it meets a stray `.ts` file. Empryo decides when a tab starts, from the files git tracks plus new files that are not ignored, or from a scan of the folder when it is not a git repository. The decision is saved with the session, so a resumed session keeps the same tools and its prompt cache. ## Where the idea comes from The approach grew out of a Master's thesis in Computer Science, [*Typed vs Untyped Programming Languages*](https://www.diva-portal.org/smash/record.jsf?pid=diva2%3A1690910&dswid=-6127) (Ouail Bni and Artur Matusiak, 2022), and its reference implementation [JS Typer](https://github.com/proxysoul/Javascript-Typer). The thesis showed that converting JavaScript to TypeScript could be done entirely by editing the syntax tree rather than the text. `ast_edit` applies the same idea to AI coding. ## Examples Change a function's return type: ```ts ast_edit({ path: "src/api.ts", action: "set_return_type", target: "function", name: "fetchUser", value: "Promise", }) ``` Make a function async, add a parameter and add an import, as one batch: ```ts ast_edit({ path: "src/api.ts", operations: [ { action: "set_async", target: "function", name: "fetchUser", value: "true" }, { action: "add_parameter", target: "function", name: "fetchUser", value: "cache: boolean" }, { action: "add_named_import", value: "./types", newCode: "User" }, ], }) ``` Rename a class method: ```ts ast_edit({ path: "src/store.ts", action: "rename", target: "method", name: "UserStore.fetch", value: "load", }) ``` Replace a whole function body: ```ts ast_edit({ path: "src/util.ts", action: "set_body", target: "function", name: "parseInput", newCode: "return JSON.parse(raw);", }) ``` A batch is all-or-nothing. If one operation fails, none of them are applied. ## Targets You point an edit at a symbol by its kind and name. | Target | Addressed by | |--------|-------------| | `function`, `class`, `interface`, `type`, `enum`, `variable`, `constant` | `name` | | `method`, `property` | `"ClassName.member"` or `"member"` | | `arrow_function` | `name` (for `const fn = () => {}`) | | `constructor` | `ClassName` | Anonymous code, such as an inline callback, can't be targeted directly. Empryo edits the named symbol that contains it instead. ## Action reference **Small edits** | Action | Effect | |--------|--------| | `set_type` | Type annotation of a variable, property or parameter | | `set_return_type` | Function return type | | `set_initializer` / `remove_initializer` | Variable initializer | | `set_value` | Enum member value | | `set_async` / `set_generator` | Toggle `async` / `function*` | | `set_export` / `set_default_export` | Toggle export modifiers | | `set_abstract` / `set_static` / `set_readonly` / `set_scope` / `set_optional` / `set_overrides` / `set_ambient` | Class member modifiers | | `set_const_enum` / `set_declaration_kind` | Other modifiers | | `rename` | Rename the declaration only | | `remove` | Delete the declaration | | `add_parameter` / `remove_parameter` | Function and method parameters | **Body and member edits** | Action | Effect | |--------|--------| | `set_body` | Replace a function or method body | | `add_statement` / `insert_statement` / `remove_statement` | Individual statements | | `add_property` / `remove_property` | Interface and class properties | | `add_method` / `remove_method` / `add_constructor` / `add_getter` / `add_setter` | Class members | | `add_member` / `remove_member` | Enum and type-literal members | | `add_decorator` / `remove_decorator` | Decorators | | `add_overload` | Function overload signatures | | `set_extends` / `add_extends` / `remove_extends` / `add_implements` / `remove_implements` | Inheritance | | `add_type_parameter` | Generic type parameters | | `add_jsdoc` / `remove_jsdoc` | JSDoc comments | | `unwrap`, `set_structure`, `extract_interface` | Structural rewrites | **Whole-symbol replacement** | Action | Effect | |--------|--------| | `replace` | Replace a whole symbol | | `replace_in_body` | Replace text inside a named symbol, found by a unique anchor or a start/end anchor pair | **File-level** | Action | Effect | |--------|--------| | `create_file` | Create a new file (`newCode` is the content) | | `add_imports` / `add_import` / `remove_import` / `add_named_import` / `remove_named_import` | Imports | | `set_module_specifier` | Change an import path | | `add_export_declaration` / `add_named_reexport` | Re-exports | | `add_namespace` | Namespace declarations | | `organize_imports` / `fix_missing_imports` / `fix_unused` | Cleanup | | `add_function` / `add_class` / `add_interface` / `add_type_alias` / `add_enum` / `add_variable` | Add top-level declarations | | `insert_text` | Insert text at an anchor (`"after-imports"`, `"before-exports"`, or an index) | | `rename_global` | Rename a symbol across the project | ## Supported files `.ts`, `.tsx`, `.js`, `.jsx`, `.mts`, `.cts`, `.mjs`, `.cjs`. For every other file type, and for files with a syntax error, Empryo uses its regular text-based edit tools. ## Safety - Batches are atomic: all operations apply, or none do. - `undo_edit` reverses an `ast_edit` change the same way it reverses any other edit. - After an edit, new type errors are reported back to the agent so it can fix them in the same turn. - Files blocked by your `/privacy` patterns can't be edited. --- ## The browser Canonical: https://empryo.com/docs/tools/browser > Let the agent open, click through and check the app you build: a browser panel on desktop, a headless browser in the terminal. Local addresses only by default. ## Overview Empryo can open your running app in a browser, click through it, fill in forms, take screenshots and read what's on the page. Use it to check that a change actually works, reproduce a UI bug, or test a flow without doing it by hand. The agent drives the browser through one tool, `browser`, with an `action` argument (`open`, `click`, `snapshot` and so on). It's available on every surface: | Surface | Browser | What it can do | |---------|---------|----------------| | Desktop app | A visible, tabbed browser panel | Everything below, plus audits, network throttling, request recording and a dev-server runner | | Terminal UI and headless | A headless browser with no window | Open, navigate, snapshot, screenshot, click, type, keys, scroll, resize, inspect, run JavaScript, wait, highlight, manage tabs, clear storage | The same prompt works on both. On desktop, the speaker button next to reload mutes every tab in the browser panel, including tabs opened after you press it. Press it again to unmute. To start muted every time, turn on **Always start muted** in Settings → Browser network (`browser.startMuted`). **Pop out to its own window** moves the whole panel into a separate window, so you can put it on another screen. Pages keep their state; close the window or bring it back to dock it again. ## Local addresses only, by default The browser opens `localhost` and private-network addresses only. Public websites are blocked. It's meant for the app you're building, not for browsing the web, and keeping it local limits what a malicious page could make the agent do. To allow public sites: - **Desktop:** Settings → Browser network, or `"browser": { "allowExternalNetwork": true }` in config. - **Terminal and headless:** `"terminalBrowserAllowExternal": true` in config. ![A screenshot is large and still leaves the agent guessing a selector. A snapshot lists every element with a short ref, so the click lands on the first try.](https://empryo.com/media/docs-browser-snapshot.svg) *A screenshot is large and still leaves the agent guessing a selector. A snapshot lists every element with a short ref, so the click lands on the first try.* ## Snapshots before screenshots `browser(action:'snapshot')` returns every visible interactive element as a short text list, each with a stable `ref`: ``` button "Save changes" ref=e7 * textbox "Email" ref=e3 [value=""] [scrollable "Results" y=0/1840 ref=e12] ``` The agent then acts on the ref, for example `browser(action:'click', ref:'e7')`, instead of guessing a CSS selector from your source code. A `*` marks elements that are new since the last snapshot. That's how the agent checks what a click did without paying for a screenshot, which costs far more tokens than a text list. ## Desktop-only actions The desktop browser panel adds developer-tools features: - `audit`: Core Web Vitals, page weight, accessibility and SEO checks, and horizontal-overflow detection. - `throttle`: slow network (slow 3G, 4G, offline) and CPU slowdown. - `network_start` / `network_stop`: record every request with its status, size, timing and failures. - `run_server` / `stop_server` / `list_servers`: start your dev servers from `.empryo/launch.json` and open them in a tab. You share the panel with the agent and can watch or take over at any time. When several agents work at once, each tab is held by one agent at a time so two agents never type into the same page (see [tabs](/docs/agents/cross-tab)). ## The terminal browser In the terminal UI and in `--headless` runs, the browser has no window. It uses the system web view on macOS and Windows, and Chrome or Chromium on Linux. On Linux, install Chrome or Chromium, or set `BUN_CHROME_PATH` to its path. Without one, the browser tool isn't offered. Screenshots are sent to the model as images, so it can still see the page. To turn the terminal browser off, set `"terminalBrowser": false` in config. ## Config | Key | Default | Effect | |-----|---------|--------| | `terminalBrowser` | on where supported | The browser tool in the terminal UI and headless runs | | `terminalBrowserAllowExternal` | `false` | Allow public websites in the terminal browser | | `browser.allowExternalNetwork` | `false` | Allow public websites in the desktop browser panel | | `browser.startMuted` | `false` | Mute the desktop browser panel every time it starts | ## Browser vs. computer use This tool drives pages in Empryo's own browser. [Computer use](/docs/tools/computer-use) goes further: it can drive your own Chrome, other app windows or the whole screen, with separate permissions for each. --- ## Checkpoints Canonical: https://empryo.com/docs/tools/checkpoints > Undo, redo and rewind agent work, or edit, rewind and resend any prompt. Step back through past turns and restore files and the conversation. Checkpoints let you undo what the agent did. Every time you send a prompt and the agent finishes responding, Empryo saves a checkpoint. You can look back at any of them, undo to one, or start over from an earlier point with a new message. Use them when the agent went in the wrong direction and you want to return to where things were good. ## Look back In the terminal UI, press `Ctrl+B` to step back one checkpoint and `Ctrl+F` to step forward. | Shortcut | Action | |----------|--------| | `Ctrl+B` | View the previous checkpoint | | `Ctrl+F` | View the next checkpoint, or return to live | While you're viewing a past checkpoint, later messages are dimmed and a marker appears: ``` ↶ Viewing checkpoint #2, send a message to rewind here. ``` Looking is read-only. No files change. Press `Ctrl+F` past the last checkpoint to go back to live. ## Try again from an earlier point Send a message while you're viewing a past checkpoint, and the conversation continues from there. The model forgets everything after that point. The later messages stay visible, dimmed, so you can still read them. This is the quickest way to recover from a wrong turn: go back to the last good point and ask for something different. ## Edit, rewind or resend a prompt Every prompt you sent has three actions: | Action | What happens | | --- | --- | | **Edit** | Puts the prompt back in the box. When you send, it replaces the original and everything after it | | **Rewind here** | Removes everything after that prompt and sends it again | | **Resend** | Sends the same prompt, with its files and images, again at the end of the chat. Nothing is removed | | Where | How | | --- | --- | | Desktop | The pencil next to a prompt edits it. The arrow beside it has **Rewind here** and **Resend** | | Terminal | Hover a prompt: **Edit**, **Rewind here**, **resend** and **Copy** sit in a row under it | | iPhone and Android | Long-press a prompt | Edit and Rewind here change the conversation only. Files the agent changed stay as they are; use [undo](#undo-and-redo) to restore them. ## Turn off automatic snapshots To restore files, Empryo saves a private git snapshot after each turn that edits them. These are refs under `refs/empryo/`, not tags, so they do not show in `git tag` and are never pushed. To stop them, turn off **Checkpoint snapshots** in the desktop app (Settings → General → Session log), pick `checkpointSnapshots` in the terminal's `/settings` → **All settings**, or set `"checkpointSnapshots": false` in your config. Viewing a past checkpoint and sending a message from it still works. `/checkpoint undo` refuses, leaving files and conversation unchanged, when it would have to restore a file through a turn that has no snapshot, so it never brings back an older version than the one you picked. `/checkpoint` still saves a snapshot when you ask, and an undo that goes ahead still saves a redo snapshot. ## Undo and redo `/checkpoint undo` reverts the last checkpoint. It rewinds the conversation and restores the files the agent changed. | Command | What it does | |---------|-------------| | `/checkpoint` | List all checkpoints | | `/checkpoint N` | View checkpoint N | | `/checkpoint live` | Return to the live view | | `/checkpoint undo` | Undo the last checkpoint | | `/checkpoint undo N` | Undo back to checkpoint N | | `/checkpoint redo` | Redo the last undone checkpoint | | `/checkpoint save` | Save a snapshot of the current state now | Undone turns stay in the chat, dimmed, below a marker: ``` ↶ Rewound past this point. ``` > **Note:** > Sending a new message after an undo clears the redo history, like undo in any editor. ## The checkpoint rail A narrow rail along the right edge of the chat shows one mark per checkpoint. The terminal UI and the desktop app both have it. - A spinner marks the checkpoint that's still running. - The latest checkpoint is drawn as a diamond. - A filled dot means that turn edited files. A hollow dot means it didn't, or that it was undone. - The checkpoint you're currently viewing is highlighted. If there are more checkpoints than fit, `+N` counts show how many are hidden above and below. The rail scrolls to follow you. ## How files are restored When a turn that edited files finishes, Empryo saves that state as a private snapshot under `refs/empryo/`. Undo restores only the files edited in the turns you undid. Other files, including ones another tab is working on, are left alone. > **Note:** > **No git repository?** You can still look back and rewind the conversation. Files are not restored, so the agent works from the rewound conversation instead. ## Sessions and tabs Checkpoint snapshots are saved with the session and come back when you reopen it. Deleting a session removes its snapshots. Each tab has its own checkpoint history. Undoing in one tab doesn't affect any other tab. ## Messages sent while the agent works If you type a message while the agent is still working (steering), it doesn't create a new checkpoint. It becomes part of the checkpoint that's running. --- ## Computer use Canonical: https://empryo.com/docs/tools/computer-use > Let the agent use real interfaces: Empryo's browser, your Chrome, other app windows or the whole screen, with per-capability permissions and a stop button. ## Overview Computer use lets the agent operate an interface instead of a file. It can work in a tab in Empryo's browser, a tab in your own Chrome, another app's window, or the whole screen. Use it for tasks that only exist in a UI: filling a form in an admin panel, checking a settings screen, walking through a sign-up flow. It's on by default and needs no extra account or app. Your operating system still has to grant screen recording and input access the first time. To turn it off, set `"computerUse": false`, or use **Settings → Computer use** on desktop or `/computer` in the terminal UI. | Surface | What it can drive | | ----------- | ---------------------------------------------------------------------------------------------------------- | | Desktop app | Empryo's browser panel, your Chrome, and other apps and displays | | Terminal UI | The same, without the browser panel. `/computer` lists targets, permissions and live sessions | | Headless | Browsers and other apps. Anything set to "ask" is refused with a reason, because nobody is there to answer | If something is missing, `/computer setup` in the terminal UI lists what's still needed and the command that fixes each item. ## How the agent sees the screen Screenshots are expensive and still leave the model guessing where to click. So by default the agent reads the screen's accessibility tree, the same structured list of controls that screen readers use: ``` [1] heading "Form" (enabled) actions: click level="1" [3] textbox "Name" value="Eru" (focusable, enabled, editable) actions: set_value, focus [4] checkbox "I agree" (focusable, enabled, checked) actions: toggle, focus [7] button "Send" (focusable, enabled) actions: click, focus ``` A few rules keep this cheap and reliable: - **Only changes come back.** After the first look, the agent sees only what changed (`~` changed, `+` added, `-` removed). - **Numbers expire after an action.** Once the agent changes something, the old element numbers are no longer accepted. It has to look again, so it never clicks the wrong thing on a page that moved. - **Several steps, one look.** The agent can plan a sequence of actions, run them together and read the result once. - **Screenshots only when needed**, for visual checks or when an app exposes no accessibility tree. The agent acts by meaning first: set this field's value, toggle this checkbox, press this button. It only falls back to clicking at screen coordinates when there's no better option, because a named button survives a layout change and a coordinate doesn't. ## The tools | Tool | What it does | | ---------------------- | ------------------------------------------------------------------------------------------------------------- | | `computer_js` | Write a short script against the screen: pick a target, run several actions, read the result, all in one call | | `computer_targets` | List what can be driven right now: displays, app windows, browser tabs | | `computer_observe` | Read one target's controls; optionally include a screenshot | | `computer_act` | Do one action, then read the result | | `computer_batch` | Do several actions in order, then read the result once | | `computer_do` | Hand a simple, mechanical goal to jev (see below) | | `computer_tab` | Open, close or show a tab in the Chrome profile Empryo manages | | `computer_workflow` | List, run or record a taught workflow | | `computer_permissions` | Show what the OS has granted and how to grant the rest | On [Cua Driver](#cua-driver) windows, `computer_act` and `computer_js` also take `menu` (run a menu path), `verify` (check up to eight conditions) and `frame` (move and resize the window). ## Scripting with `computer_js` `computer_js` is the fast path and is on by default. The model writes a few lines of JavaScript against a `cua` object: ```js let tab = await cua.createBrowserTab("empryo", "http://localhost:5173"); await tab.setValue(3, "Eru"); await tab.click(8); return await tab.getAXState(); ``` Actions queue up and run together when the script reads the screen again. Because the whole group is known in advance, Empryo can check it against your permissions once and ask you a single question instead of one per click. There are three browsers to choose from. Only the last needs setup: - `"empryo"`: the browser built into Empryo. The default, with nothing signed in. - `"chrome"`: real Chrome on a separate profile that Empryo manages, not your own. - `"extension"`: your own signed-in Chrome, once you install the Empryo extension. ### Inside `code_script` The same tools work from inside `code_script`, so one script can drive the screen and the project together: open a tab, read it, click, then check a file or run a test, all in one call. In Stem mode they sit on `$.computer`: ```js const id = await $.computer.tab("open", { url: "http://localhost:5173", browser: "chrome" }); const page = await $.computer.observe(id, { mode: "both" }); const go = /\[(\d+)\] button\s+"Save"/.exec(page); await $.computer.batch(id, [{ type: "click", index: Number(go[1]) }], { mode: "screenshot" }); return await $.read("notes.md"); ``` A script can also work by name instead of parsing the element list: `find` returns the first match or `null`, `click` and `fill` act on it, and `waitFor` polls until a text is on screen (10 seconds unless you give a `timeout`). ```js await $.computer.fill({ role: "textbox", name: "Email" }, "ada@example.com"); await $.computer.click("Sign in"); await $.computer.waitFor("Welcome back", { timeout: 15000 }); ``` A region reads small text without sending the whole screen: `$.computer.observe(id, { mode: "screenshot", region: [x1, y1, x2, y2] })`. Outside Stem mode, call them with `api.tool("computer_batch", { ... })`. The same approvals apply. Screenshots taken during the script come back as images with its result, up to the newest 4, so the model sees the final screen without another round trip. Opening a tab, reading it, clicking and reading a file took 2 model requests this way instead of 5. ## Connecting your own Chrome To let the agent work in your everyday Chrome, with your logins, you need two things: 1. **The bridge**, which lets Chrome talk to Empryo. On desktop: **Settings → Computer use → Connect Chrome → Register bridge**. In the terminal UI: `/computer extension install`. 2. **The extension.** Until it's in the Chrome Web Store, you load it yourself: open `chrome://extensions`, turn on Developer mode, click **Load unpacked**, and pick the folder Empryo shows you. `/computer extension` tells you whether the extension is installed, registered and connected. **Several profiles at once.** Load the extension in each Chrome profile you want to use, such as work and personal. They all connect together and keep their sign-ins apart. The agent picks a tab by its profile, and `computer_targets` lists the tabs of every connected profile. Before the agent looks at a tab on a site it has not worked on yet, Empryo asks you once. While the agent is driving your Chrome, the extension's toolbar badge lights up, the tab title is marked, and Chrome shows its own "Empryo started debugging this browser" bar. Press `Ctrl+Shift+X` (`Cmd+Shift+X` on Mac) in Chrome to stop immediately. ## Using it from other apps `empryo mcp computer-use` publishes the same computer-use tools as an MCP server. Claude Desktop, Codex or any other MCP client can then drive your machine through Empryo, with Empryo's permissions and stop controls still in place. ## Who decides each click A full language model doesn't need to choose every click. Many steps are just "pick one of these controls", and a small, fast classifier can do that. That classifier is **jev**, the model behind Empryo's [TypeSafe](/docs/tools/typesafe) feature. With a TypeSafe key, you choose who drives in **Settings → Computer use**, or with `computerUseDrive` in config: | Setting | Label | What happens | | ---------- | ----------------- | ---------------------------------------------------------------------------------------------------------- | | `"assist"` | jev and the model | The model plans and hands the routine clicking and typing to jev. The default, and the recommended choice. | | `"jev"` | jev alone | jev chooses every action. | | `"model"` | The model alone | The model chooses every action and can batch them. | Without a TypeSafe key, the model drives, and the settings screen says so. jev has firm limits: - **It only picks from what's on screen.** It can't invent a control, and a made-up choice is rejected before anything happens. - **It stops instead of guessing.** If it's not confident enough, repeats an action that did nothing, or sees nothing useful, it hands control back to the model. `typesafe.pilotMinConfidence` sets that threshold (default `0.55`). - **It can't write text.** Values must appear literally in the goal, such as "email is eru@empryo.dev". A field that needs composed text goes back to the model. - **Same permissions as the model.** Every step jev takes goes through the same checks, approvals and stop controls. ## Seeing and stopping the agent You can always tell what the agent is controlling: - **A ring around the browser panel** means it's working inside one Empryo browser tab. - **A window cue** means it's driving your Chrome. The cue stays visible even when Empryo isn't the front window. - **A screen cue** means it's driving the whole machine. The agent cursor appears from the first observation and stays visible while the model thinks or waits between actions. Idle animation stops without fading the cursor. It hides when computer use finishes or you press Stop. Cua draws native-app cursors; browser tabs use Empryo's labelled cursor and exact target marker. `computerUseSettings.cursor` controls whether cursors are enabled. Moving your own mouse or typing does not interrupt the agent, so you can keep working next to it. To stop it, use any of these: - `/computer stop` in the terminal UI - **Stop all computer use** on desktop - The stop button on a tab the agent is driving - `Ctrl+Shift+X` / `Cmd+Shift+X` in Chrome, when it's driving through the extension Stopping blocks the agent's next action with "the user stopped this task" and releases any key or mouse button it was holding. ## Permissions Each capability has its own switch, whatever the model says it needs. A switch is `true` (allow), `false` (deny) or `"ask"` (you decide each time; headless runs deny). | Switch | Default | Covers | | -------------------- | ------- | --------------------------------------------------------------- | | `nativeInput` | `true` | Clicks and key presses outside the browser | | `uploads` | `ask` | File inputs and file pickers | | `downloads` | `ask` | Accepting a download | | `clipboardRead` | `ask` | Reading your clipboard | | `clipboardWrite` | `ask` | Writing to your clipboard | | `credentialEntry` | `false` | Typing into password and credential fields | | `arbitraryExecution` | `ask` | Running JavaScript in a page, or raw browser debugging commands | | `consequential` | `ask` | Actions like send, pay, delete, publish, grant | Set them under `computerUseSettings.switches`. When Empryo asks, the question lists every step in the batch before any of them runs. You can remember your answer for the session or permanently, per app or site and per kind of action. `computerUseApps` controls which applications may be driven at all: a default of `allow` or `deny`, plus per-platform exceptions (macOS bundle id, Windows process name, Linux window class). ### Spotting risky actions Empryo recognizes risky buttons by a fixed list of words such as _send_, _pay_, _delete_, _publish_ and _grant_. That list misses plenty, for example _Empty Trash_, _Deploy_ or _Drop table_. With [Decision models](/docs/tools/typesafe) set up, turn on `decisionModels.computerUseGuard` and jev also checks the controls the word list didn't recognize. It can only add an approval prompt, never remove one, so if it's wrong you get an extra question, not a missing safeguard. It starts in shadow mode (`computerUseSettings.consequenceMode: "shadow"`): it records what it would have flagged but doesn't prompt. Set `"apply"` to let it ask for approval. Password, one-time-code and API-key fields are never sent to it. ### Always-on protections Two protections aren't switches: - **Secure fields.** With `secureFieldGuard` on (the default), no screenshot is taken while a password field has focus, and typed secrets never reach the log. - **Log redaction.** The action log keeps actions, costs and outcomes. Typed text and screen text are kept only if you turn on `verboseTrace`. ## Browser profiles The browser the agent uses has a profile, and the default is the safest one. | Profile | What it is | | ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | | `ephemeral` _(default)_ | A fresh session, wiped on close. No saved logins to misuse. | | `empryo:<slug>` | A persistent Empryo profile. Logins survive between runs. | | `chrome:<slug>` | Your installed Chrome (or Chromium, Edge, Brave and others), started by Empryo with its own separate profile. Sign in once inside it. | | `chrome:<slug>` with `attach: true` | The browser you already have open, with your real profile, logins and extensions. | Chrome won't run two copies on the same profile, and copying a profile corrupts it. So to use your real profile, Empryo attaches to it instead: quit Chrome, start it once with `--remote-debugging-port=9222`, and Empryo connects to that port. Everything the agent does then happens in your own session, and the site and risky-action checks still apply. Empryo never copies or launches your default Chrome profile directly. Set up profiles in **Settings → Computer use → Browser profile**. ## Cua Driver Empryo prepares [Cua Driver](https://github.com/trycua/cua) automatically on the first computer-use request. It reuses an installed driver or runs trycua's official user-level installer, then starts the graphical daemon. You still approve the OS screen-recording and accessibility prompts. Cua is the default native-window driver: - It clicks and types in the background. Your cursor stays put and the window stays where it is. - Chrome tabs it opens start as background tabs, so Chrome does not jump over the app you are using. The managed Chrome also starts without a window of its own, so starting it does not take your focus either. It still reads, scripts and screenshots its tabs. Ask it to show a tab when you want to watch, or turn on `computerUseSettings.focusNewTabs` to bring every new tab to the front. - Every action reports what happened: confirmed, can't tell, or probably did nothing. - It runs app menu commands such as File → New through accessibility, so no keyboard shortcut and no focus change. - It checks conditions on a window (a button exists, a field holds a value, the window has a given frame) over several samples and answers holds, doesn't hold or can't tell. It never guesses yes. - It moves and resizes windows and reads the result back. - It launches apps without bringing them to the front, and lists minimized and hidden windows too. - On macOS the permissions belong to CuaDriver.app, so they survive Empryo updates. Its windows show up in `computer_targets` as `window:cua:<pid>:<window>`. The same permissions, approvals, stop controls and logging apply. ### Set it up from Empryo | Step | Desktop app | Terminal UI | Shell, SSH or headless | | ------------------------- | ------------------------------------------------- | ------------------------- | --------------------------------------- | | Status | Settings → Computer use | `/computer cua` | `empryo cua` (add `--json` for scripts) | | Install | **Install Cua Driver** | `/computer cua install` | `empryo cua install` | | Start | **Start Cua Driver** | `/computer cua start` | `empryo cua start` | | Allow (macOS) | **Grant Accessibility + Screen Recording** | `/computer cua allow` | `empryo cua allow` | | Update | **Update Cua Driver to x.y.z** | `/computer cua update` | `empryo cua update` | | Missing libraries (Linux) | **Install the system libraries Cua Driver needs** | `/computer cua libraries` | `empryo cua libraries` | | Live preview | **Show live preview** | `/computer cua preview` | `empryo cua preview` | Each step only shows up when it applies: update appears when Cua Driver reports a newer release, allow when a macOS permission is missing. - **Install** runs trycua's official installer for your user account, then starts the driver. It is the same command you could run yourself: ```sh /bin/bash -c "$(curl -fsSL https://cua.ai/driver/install.sh)" # macOS, Linux irm https://cua.ai/driver/install.ps1 | iex # Windows PowerShell ``` - **macOS.** Empryo starts the driver through CuaDriver.app, so macOS asks about Accessibility and Screen Recording for CuaDriver, not for your terminal. Allow opens those dialogs. - **Windows.** Start registers a logon task and starts it now, so the driver runs in your signed-in desktop session, also when Empryo itself runs over SSH. - **Linux.** The driver needs your graphical session. From a desktop terminal Empryo starts it. From a shell with no display, Empryo installs it and tells you to run `cua-driver serve` in your session. If the driver needs system libraries your distribution lacks (a minimal Debian needs libX11, libXi and libxkbcommon), Empryo names them and offers the `apt-get` or `dnf` command; it runs it itself only as root. - **A broken install.** If `cua-driver` is there but cannot start, Empryo reports it as broken and offers to reinstall instead of failing. - **Update** installs the newest release and restarts the driver. - **Live preview** turns on Cua Driver's picture-in-picture window, which shows the app it is driving in the background. The window belongs to the driver, so it stays on screen after Empryo quits. The driver restarts to apply it; run it again to turn it off. | Setting | Meaning | | --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `computerUseSettings.nativeBackend: "auto"` | Default. Automatically prepare Cua Driver and discover its windows first. CuaDriver.app needs Accessibility and Screen Recording on macOS; Windows and Linux need an interactive graphical session. Explicit backend pins and existing target ownership remain unchanged. | | `computerUseSettings.nativeBackend: "empryo"` | Always use Empryo's helper. | | `computerUseSettings.nativeBackend: "cua"` | Require Cua Driver, and report clearly when it's missing. | If you have Codex or the ChatGPT desktop app installed, their computer-use plugins also appear under **Settings → Computer use → Engines** as fallbacks. Empryo doesn't install or ship them, and they stay off unless you turn them on there. `/computer lanes` prints the same list in the terminal UI. ## Several agents at once Several agent tabs can each drive their own target at the same time. Only one agent at a time can type or click outside the browser, since there's only one keyboard and mouse. ## Config | Key | Default | Effect | | -------------------------------------- | ----------- | ----------------------------------------------------------------------------------------- | | `computerUse` | `true` | Turns computer use on or off, including the provider's own computer tool where one exists | | `computerUseDrive` | `"assist"` | Who picks each action: `assist`, `jev` or `model` | | `computerUseSettings.switches` | see above | Allow, ask or deny per capability | | `computerUseSettings.cursor` | `true` | Show the mote cursor | | `computerUseSettings.focusNewTabs` | `false` | Bring the managed Chrome and each new tab it opens to the front | | `computerUseSettings.secureFieldGuard` | `true` | No screenshots while a password field has focus | | `computerUseSettings.verboseTrace` | `false` | Keep typed text and screen text in the log | | `computerUseSettings.consequenceMode` | `"shadow"` | Whether the risky-action check only records (`shadow`) or also asks (`apply`) | | `computerUseSettings.nativeBackend` | `"auto"` | Which native driver to use | | `decisionModels.computerUseGuard` | `false` | Ask jev about controls the word list doesn't recognize | | `decisionModels.pilotMinConfidence` | `0.55` | Below this, jev hands the step back to the model | | `computerUseApps` | none | Which apps may be driven, per platform | | `browser.profile` | `ephemeral` | The active browser profile | | `browser.profiles` | `{}` | Your configured Empryo and Chrome profiles | ## Commands | Command | What it does | | ----------------------------- | ------------------------------------------------------------------------------------------------- | | `/computer` | Targets, permissions and live sessions | | `/computer setup` | What's still needed, and how to fix it | | `/computer cua` | Cua Driver status; `install`, `libraries`, `update`, `start`, `allow` or `preview` runs that step | | `/computer lanes` | Which engines can drive, in order | | `/computer extension` | Status of the Chrome extension | | `/computer extension install` | Register the bridge so Chrome can reach Empryo | | `/computer stop` | Stop everything and release input | | `/computer resume` | Let computer use act again after a stop | | `/computer teach` | Record a workflow by doing it yourself (`/computer teach stop` saves it) | | `/computer workflows` | List taught workflows | In headless runs, `--replay <path>` writes a printable HTML timeline of everything the agent did: status, timing, redacted actions, costs and screenshots. ## Next **The browser** Open and test your dev server: snapshots, clicks, audits and throttling. **Provider tools** Anthropic's and OpenAI's own computer tools, and when they're used. --- ## Editor & Neovim Canonical: https://empryo.com/docs/tools/editor > A real Neovim inside Empryo's terminal UI with your config, plugins and language servers. The agent reads, edits and navigates code in the same editor. Empryo's terminal UI can show a real Neovim next to the chat. It can use your own Neovim config, plugins and language servers. You and the agent work in the same editor: you watch its edits land, and it can see where your cursor is and what you've selected. The editor panel is part of the terminal UI. It needs Neovim, either installed on your system or through the [`neovim` addon](/docs/tools/addons) (`empryo addon install neovim`). Without Neovim, the editor commands are hidden. ## Open the editor | Key or command | What it does | |-----|--------| | `Ctrl+E` | Show or hide the editor panel | | `/editor` | Editor menu: toggle, open a file, settings, split | | `/editor open <file>` | Open a file in the editor | | `/editor settings` | Choose which editor and language-server features the agent may use | | `/editor split` | Step the editor width to the next of 40, 50, 60 and 70% | | `/vim-hints` | Show common Vim key hints in the editor footer | ## Keys, mouse and focus - While the editor has focus, Neovim gets every key, including `Esc`, `Ctrl+C` and Alt chords. Only `Ctrl+E` (close the editor) and `Ctrl+Shift+Esc` (stop computer use) stay with Empryo. - Click the chat to type there; click the editor to give it the keyboard back. - Drag the editor's right edge, or the gap beside it, to resize the editor. Its width is kept as a share of the space the editor and the chat split between them, so it keeps its proportion when the window or the side panels change size, and it is saved as `editorSplit` when you let go. - Clicks, drags and the scroll wheel land on the cell under the pointer. Neovim always draws at the panel's exact size, including after you resize the window or the editor. - Neovim's `'background'` follows the Empryo theme, so a light theme gets a light editor. - Neovim is optional. It starts the first time you open the editor, and without it the panel shows how to install it while the chat keeps the keyboard. ## Choose a Neovim config Pick a config mode with `/nvim-config`. The command is listed when Neovim comes from the `neovim` addon. | Mode | What you get | |------|----------| | `default` | Empryo's built-in config, which installs language servers for your project automatically | | `user` | Your own config from `~/.config/nvim` | | `none` | A bare Neovim with no plugins and no language servers | > **Note:** > The first time you open the editor in `default` mode, Empryo installs its plugins and the language servers your project needs. This happens once. ## What the agent can do in the editor The agent uses the editor through a tool called `editor`. You don't call it yourself; this is what it can do. ### Read | Action | Parameters | What it does | |--------|-----------|-------------| | `read` | `startLine?`, `endLine?`, `file?` | Read the buffer, a line range, or another file | | `cursor_context` | none | Current file, cursor position and selection | | `buffers` | none | List open buffers | | `terminal_output` | `count?` | Read recent terminal output (default: last 100 lines) | ### Edit | Action | Parameters | What it does | |--------|-----------|-------------| | `edit` | `startLine`, `endLine`, `replacement`, `file?` | Replace lines in the buffer | | `select` | `startLine`, `endLine` | Select a range of lines | | `yank` | `text?`, `register?` | Put text in a register (default: system clipboard) | | `highlight` | `startLine`, `endLine` | Highlight a range of lines so you can see what it means | ### Move around | Action | Parameters | What it does | |--------|-----------|-------------| | `navigate` | `file?`, `line?`, `col?`, `search?` | Open a file, jump to a line, or search | | `goto_cursor` | `line`, `col?` | Move the cursor | ### Language-server features | Action | Parameters | What it does | |--------|-----------|-------------| | `diagnostics` | none | Errors and warnings in the current buffer | | `symbols` | none | Functions, classes and variables in the file | | `hover` | `line`, `col` | Type and documentation at a position | | `references` | `line`, `col` | Every use of the symbol at a position | | `definition` | `line`, `col`, `jump?` | Where the symbol is defined | | `actions` | `line`, `col?`, `apply?` | Available quick fixes and refactorings | | `quickfix` | none | Apply the available quick fixes in the buffer | | `rename` | `line`, `col`, `newName` | Rename a symbol across the project | | `format` | `startLine?`, `endLine?` | Format the buffer or a range | ## Choose what the agent may use `/editor settings` lets you turn each feature on or off. All are on by default. | Setting | What it controls | |-------------|-------------| | LSP Diagnostics | Errors and warnings | | Document Symbols | Functions, classes, variables | | Hover / Type Info | Type info at a position | | Find References | Every use of a symbol | | Go to Definition | Jump to where a symbol is defined | | Code Actions | Quick fixes and refactorings | | LSP Rename | Project-wide rename | | LSP Status | Which language servers are running | | LSP Format | Formatting | | Editor Context | Share your open file, cursor and selection with the agent | | Sync on Edit | Jump to files the agent edits (off: only refresh the current buffer) | You can also decide when the agent may use the editor at all: | Mode | Behavior | |------|----------| | `Always` | The agent can always use the editor tool (default) | | `Never` | The editor tool is turned off | | `When editor open` | Only while the editor panel is visible | ## Language servers without the editor The agent's code navigation doesn't depend on the editor panel. When the editor is open, requests go through the language servers Neovim is already running. When it's closed, Empryo starts the servers itself. Both give the agent definitions, references, hover, diagnostics, rename, code actions, call and type hierarchy, and formatting. See [LSP servers](/docs/tools/lsp) to install or manage servers. --- ## Hooks Canonical: https://empryo.com/docs/tools/hooks > Run your own shell commands when the agent uses a tool, starts or ends a session, or compacts. Works with Claude Code hooks and reads Copilot and Codex hooks. Hooks run your own shell commands at set moments: before or after the agent uses a tool, when you send a prompt, when a turn ends, when a session starts or ends, and around context compaction. Use them to format files after edits, block commands you never want run, log activity, or send a notification when the agent finishes. Empryo uses the same format as Claude Code. Hooks you already have in `.claude/settings.json` work without changes. ## Quick example Format every file the agent edits with Prettier: ```json .empryo/config.json { "hooks": { "PostToolUse": [ { "matcher": "Edit|MultiEdit|ast_edit", "hooks": [ { "type": "command", "command": "jq -r '.tool_input.path // empty' | xargs -r prettier --write", "async": true } ] } ] } } ``` The hook receives the tool call as JSON on stdin, so `jq` pulls out the edited file's path. Run `/hooks` inside Empryo to see which hooks are active. ## Events | Event | When it runs | What `matcher` filters on | |-------|-------|---------| | `PreToolUse` | Before a tool runs | Tool name | | `PostToolUse` | After a tool succeeds | Tool name | | `PostToolUseFailure` | After a tool fails | Tool name | | `UserPromptSubmit` | When you send a message | none | | `Stop` / `StopFailure` | When a turn ends, or ends with an error | none | | `SessionStart` / `SessionEnd` | When a session starts or ends | none | | `PreCompact` / `PostCompact` | Before and after context compaction | none | | `SubagentStart` / `SubagentStop` | When a helper agent starts or finishes | none | | `Notification` | When Empryo waits for you: an approval, a question, or a plan to review | none | `Notification` never waits for the hook and can't block. Its payload has `message` and `notification_type`: `permission_prompt` for an approval, `elicitation_dialog` for a question, `plan_review` for a plan. ### Where each event fires | Event | Terminal UI | Desktop | Headless | |---|---|---|---| | `PreToolUse`, `PostToolUse`, `PostToolUseFailure` | yes | yes | yes | | `UserPromptSubmit`, `Stop`, `StopFailure` | yes | yes | yes | | `SessionStart`, `SessionEnd` | yes | yes | yes | | `PreCompact`, `PostCompact` | yes | yes | no | | `SubagentStart`, `SubagentStop` | yes | yes | no | | `Notification` | yes | yes | no | `SessionEnd` runs while Empryo is shutting down, so each `SessionEnd` hook gets at most 3 seconds. ## Rule format ```json { "matcher": "Bash|Edit", // tool names separated by |, or a regex "hooks": [ { "type": "command", "command": "my-hook.sh", "async": false, // true: run in the background, don't wait "timeout": 10, // seconds (default 10) "once": false, // true: run only once per session "if": "Bash(git *)", // extra filter on the tool's first argument "failClosed": false // true: block the tool if the hook itself fails } ] } ``` A missing or `"*"` matcher matches every tool. `if` narrows a rule by the tool's first string argument: `Bash(rm *)`, `Edit(*.ts)`. `*` matches any run of characters and `?` matches one. Tool names follow Claude Code (`Bash`, `Edit`, `Write`, `Read`, `Grep`, `Glob`, `WebSearch`, `Agent`), and Empryo maps its own tools onto them. You can also match an Empryo tool by its own name, such as `ast_edit`. ## Where hooks are read from Empryo merges hooks from these files, in this order: 1. Claude Code managed policy: `/Library/Application Support/ClaudeCode/managed-settings.json` (macOS), `/etc/claude-code/managed-settings.json` (Linux), `%ProgramData%\ClaudeCode\managed-settings.json` (Windows) 2. `~/.claude/settings.json` 3. `.claude/settings.json` 4. `.claude/settings.local.json` 5. `~/.empryo/config.json` and `~/.empryo/hooks.json` 6. `.empryo/config.json` and `.empryo/hooks.json` Hook files inside a repository load when you open it, next to the files in your home folder and policy files. Set `"disableAllHooks": true` in any of these files to turn hooks off. Managed policy hooks still run, so an organization's audit hook can't be switched off by a user. ### Hooks written for Copilot CLI or Codex Empryo also reads the hook files that Copilot CLI and Codex use, so a hook you set up once works in all of them. The files are read where they are; nothing is copied or changed. | Source | Tool | |---|---| | `/etc/github-copilot/policy.d/*.json` (`%ProgramData%\GitHub\Copilot\policy.d\*.json` on Windows) | Copilot CLI, machine policy | | `~/.copilot/hooks/*.json` (or `$COPILOT_HOME/hooks/`) | Copilot CLI | | `~/.copilot/settings.json`, the `hooks` block | Copilot CLI | | `.github/hooks/*.json` | Copilot CLI, repository | | `.github/copilot/settings.json`, `.github/copilot/settings.local.json` | Copilot CLI, repository | | `~/.codex/hooks.json`, `.codex/hooks.json` | Codex | | `~/.codex/config.toml`, `.codex/config.toml`, inline `[hooks]` tables | Codex | | `~/.codex/requirements.toml`, the enterprise-managed layer | Codex | | `~/.claude/plugins/**/hooks/hooks.json`, for plugins listed in `enabledPlugins` | Claude Code plugins | | `~/.codex/plugins/*/hooks/hooks.json`, or the path a `.codex-plugin/plugin.json` names | Codex plugins | | `~/.copilot/plugins/*/hooks.json` (or `hooks/hooks.json`) | Copilot plugins | How the differences are handled: - **Event names.** Copilot's names are mapped: `preToolUse` → `PreToolUse`, `agentStop` → `Stop`, `userPromptSubmitted` → `UserPromptSubmit`, and so on. Codex already uses Claude's names. - **Tool names in matchers.** Copilot's tool names (`bash`, `powershell`, `view`, `create`, `edit`, `str_replace_editor`, `apply_patch`, `grep`, `rg`, `glob`, `web_fetch`, `web_search`, `ask_user`, `update_todo`, `task`) are translated to Claude's before matching. Matchers already in Claude names, or containing regex characters, are used as written. - **Command forms.** Copilot's per-platform commands (`bash`, `powershell`, `command`, `exec` + `args`), `matcher`, `timeoutSec`, `cwd` and `env` are all supported. So are Claude's `args` form, `shell: "powershell"`, and Codex's `command_windows` / `commandWindows`. On Windows, a `powershell` entry runs through `powershell -NoProfile -Command`. - **Plugin paths.** `${CLAUDE_PLUGIN_ROOT}` (or Codex's `${PLUGIN_ROOT}`), `${CLAUDE_PLUGIN_DATA}` and `${CLAUDE_PROJECT_DIR}` are filled in and also set as environment variables. A Claude Code plugin's hooks run when the plugin is listed in `enabledPlugins`. Codex and Copilot plugin hook files run whenever the plugin is installed. Limits to know: - A Copilot hook without a timeout gets Copilot's default of 30 seconds, not 10. - Only `type: "command"` hooks run. `http`, `prompt` and `mcp_tool` entries are skipped. - Copilot's `permissionRequest`, `errorOccurred` and `userPromptTransformed` events have no Empryo equivalent and are ignored. ## Recipes **Block `rm -rf`** ```json { "matcher": "Bash", "hooks": [{ "type": "command", "command": "echo '{\"decision\":\"block\",\"reason\":\"rm -rf blocked\"}' && exit 2", "if": "Bash(rm -rf *)" }] } ``` Put this under `PreToolUse`. Exit code `2` blocks the call. **Block `.env` files for every tool** ```json { "matcher": "*", "hooks": [{ "type": "command", "command": "jq -e '[.tool_paths[]? | select(test(\"(^|/)\\\\.env(\\\\.|$)\"))] | length == 0' > /dev/null || { echo 'no .env' >&2; exit 2; }" }] } ``` Put this under `PreToolUse`. `tool_paths` lists every file the call touches, including paths inside a shell command, so this one rule covers reads, shell commands, git, the editor, scripts and MCP tools. See [`tool_paths`](#tool_paths). **Log every tool call** ```json { "hooks": [{ "type": "command", "command": "jq -r '.tool_name' >> /tmp/empryo-tools.log", "async": true }] } ``` Put this under `PreToolUse`. With no matcher, it runs for every tool. **Notify when done (macOS)** ```json { "hooks": [{ "type": "command", "command": "osascript -e 'display notification \"Done\" with title \"Empryo\"'", "async": true, "once": true }] } ``` Put this under `Stop`. ## How a hook talks to Empryo A hook reads JSON on stdin and can optionally write JSON to stdout. Exit code `0` means success, `2` means block, and anything else logs a warning. **stdin** ```json { "session_id": "abc", "transcript_path": "/proj/.empryo/sessions/abc/session.jsonl", "cwd": "/proj", "hook_event_name": "PreToolUse", "tool_name": "Bash", "tool_paths": [".env", "src/app.ts"], "tool_input": { "command": "cat .env src/app.ts" } } ``` `transcript_path` is the session's event log, present whenever the session has an id. Hooks get a safe subset of Empryo's environment (`PATH`, `HOME`, locale, toolchain and terminal variables), never credentials. To pass more, start Empryo with `EMPRYO_HOOK_ENV` set to a list of names, where a trailing `*` matches a prefix: `EMPRYO_HOOK_ENV="GHOSTEX_* MY_HOST_ID"`. A terminal host sets it when it launches Empryo, so its own variables reach every hook. A hook's `env` field adds fixed values. Non-tool events put their details at the top level: `prompt` for `UserPromptSubmit`, `source` for `SessionStart`, `reason` for `SessionEnd`, `trigger` for the compaction events, `error` for `StopFailure`. **stdout** (optional; `PreToolUse` can block the call, change its input, or add context for the model) ```json { "hookSpecificOutput": { "hookEventName": "PreToolUse", "permissionDecision": "deny", "permissionDecisionReason": "Blocked by policy", "updatedInput": { "command": "git status --short" }, "additionalContext": "This repo uses trunk-based dev" } } ``` `PostToolUse` can add `additionalContext` but can't block. ### Ways to block Any of these blocks the action: - Exit code `2`. Whatever the hook wrote to stderr becomes the reason. - `{"decision":"block","reason":"…"}` on stdout. - `{"continue":false,"stopReason":"…"}`, Claude Code's stop switch. - `{"hookSpecificOutput":{"permissionDecision":"deny"}}` or `"ask"`. **`ask` is treated as a block**, because Empryo has no way to pause and ask you from inside a hook, and treating "ask me first" as "go ahead" would be unsafe. In a headless run, a `UserPromptSubmit` block stops the prompt before the model is called. With `--events`, Empryo emits `{"type":"hook-blocked","event":"UserPromptSubmit"}` so your pipeline can see why it stopped. ### What blocking covers A `PreToolUse` block applies to every tool the agent can call: built-in tools, script tools, the browser, tools from any MCP server you connected, and tools used by helper agents. Switching to a different tool doesn't get around a hook. A hook can't block anything the model **provider** runs on its own servers, such as provider-side web search or code execution. Those have no local step to intercept. ### `failClosed`: when the hook itself fails By default, if a hook times out, can't start, or exits with a code other than `0` or `2`, the tool runs anyway. That matches Claude Code, and it means a flaky hook can't lock you out of a session. For a check that must hold, add `failClosed`: ```json { "type": "command", "command": "/opt/policy/gate", "failClosed": true } ``` Now a timeout, a failed start or an unexpected exit code blocks the action. This works for Claude, Copilot and Codex hook files. Hooks from a managed policy file fail closed by default. ### `tool_paths` Matching on `tool_name` alone leaves gaps. A rule that blocks `Read` on `.env` doesn't stop `Bash` from running `cat .env`. Matching the command text catches `cat .env` but not `< .env`, `cat $(echo .env)` or `cat$IFS.env`. So every tool event includes `tool_paths`: every file path the call refers to. Empryo collects them from the tool's arguments, including MCP tools, and parses shell commands the same way the [`/privacy`](/docs/reference/commands) file guard does, including redirects, command substitution and variables. One hook that checks this list covers every tool. Paths are exactly as the model wrote them. Resolve relative paths against `cwd` from the same payload. The field is left out when a call names no paths, and it's recalculated if an earlier hook changed the input. ## Good to know - Stopping the turn (`Ctrl+X` in the terminal UI) also stops running hooks. - The default timeout is 10 seconds. Keep hooks quick. - A failing hook (any exit code other than `0` or `2`) logs a warning and doesn't stop the agent, unless it has `failClosed`. --- ## Interactive answers Canonical: https://empryo.com/docs/tools/interactive-answers > Empryo can answer with something you can use: a quick card of numbers, sliders and buttons, or a live React view with charts and animation, in the chat or in a canvas beside it. Some answers are easier to use than to read. Ask "what would a 450k home cost me per month?" and Empryo can answer with a card: a slider for the price, one for the interest rate, a switch for a 15-year term, the monthly payment, a chart and buttons for the next question. Move a slider and every number on the card changes right away, without another message to the model. ## Ask for one Ask in your own words: "show me", "make it interactive", "let me play with the numbers". The agent decides when a card helps more than prose, and it adds a short sentence of text with every card. The agent shows cards with its `show` tool. Headless runs don't offer it. Turn it off in `/tools` (or the desktop tool settings) if you never want cards. ## What a card can hold | Part | What it shows | |------|---------------| | Stats | A few numbers at a glance, each with a label and an optional hint | | Chart | Bars or a line over labeled points | | Progress | A bar from 0 to 100 with a label | | Callout | A short highlighted note | | Text | A paragraph with basic markdown | | Code | A block of code you can copy | | Slider | A number you drag between a minimum and a maximum | | Switch | An on/off choice | | Buttons | Follow-up questions; tapping one sends it as your next message | | Choices | A short form of single or multiple choice questions with one submit button; your picks become your next message | Sliders and switches set values that the rest of the card uses. Any text, stat, chart point or progress bar can include a formula in double braces, such as `{{round(price * 0.2)}}`. Formulas support `+ - * / % ^`, comparisons, `a ? b : c`, and `round`, `min`, `max`, `sqrt`, `abs`, `pow`, `log` and `exp`. A button's text can use the same values, so "Compare lenders at {{rate}}%" sends the rate you picked. ## Live views and the canvas When a card is not enough, the agent writes a live view: a small React app in TypeScript, styled with Tailwind on your theme, with the app's own buttons, tabs, sliders, inputs, tables and cards, Framer Motion animation, Lucide icons, Recharts charts and three.js for 3D. Dashboards, calculators, diagrams, demos and small tools all fit. - **In the chat**: a view sits where the agent showed it, between the steps before it and the text after it. Hover it for the canvas button. - **In the canvas**: the agent can open a view in a canvas beside the chat, or you can move one there. The canvas follows the newest view while the agent works, pages back through earlier ones, and can fill the window. Close it and the view returns to its place in the chat. - **Talking back**: a view can send you a follow-up question when you press one of its buttons, so "Ask about this plan" goes straight to the agent. It can also ask the model a quick question and show the answer inside the view, without starting a turn. - **Charts and diagrams**: every chart has **Copy data**, which copies its numbers as tab-separated text you can paste into a spreadsheet. Mermaid diagrams draw as real diagrams in your theme. - **It remembers**: a view keeps what you changed across restarts and on your other devices. Your next message tells the agent what you changed, so it can answer about the view as you left it. - **When it breaks**: a view that hits an error says so under it, with an **Ask to fix** button that sends the error to the agent. Views run in a sandboxed frame with no network, storage or access to the app, files or your session. The agent's code is checked before it is shown: a syntax error, a missing default export or a module that is not available goes back to the agent to fix, and nothing broken reaches you. The agent can frame a view with text: markdown parts before and after it render in order around it. ## Where cards appear - **Desktop app**: under the answer, in your theme's colours. - **iPhone and Android**: under the answer, with native sliders, switches and charts. A live view shows its one-line summary and a note to open it on your computer. - **Terminal, headless and ACP**: the same card as text, with the values it started with. A live view shows its summary. The agent also gets the text version back, so it knows what it showed you and can talk about it. ## Limits - A card can hold up to 40 parts, and a list inside one up to 24 items. - A formula that cannot be worked out shows a dash (—) instead of a number. A formula longer than 600 characters is never worked out. - Formulas only do arithmetic on the card's own values. They cannot read files, reach the network or run code. - Values you set with a card's sliders live on that screen; reopening the chat shows the starting values. Choices you sent and live views keep their state. - A live view can be up to 160,000 characters of code and imports only the modules listed above. - Parts the app does not know are skipped, so a card made for a newer Empryo still shows what an older one can draw. --- ## Languages Canonical: https://empryo.com/docs/tools/languages > Use Empryo in 14 languages, from Arabic and Japanese to Spanish and Vietnamese. Switch live, get a mirrored desktop layout for Arabic, and see numbers and dates in your locale. ## Overview You can use Empryo in your own language. The terminal interface (TUI), the desktop app and headless runs all use the same translations. Fourteen languages ship with the app: | Language | Tag | Direction | |----------|-----|-----------| | English | `en` | left-to-right | | العربية Arabic | `ar` | **right-to-left** | | français French | `fr` | left-to-right | | 한국어 Korean | `ko` | left-to-right | | Русский Russian | `ru` | left-to-right | | 简体中文 Simplified Chinese | `zh-CN` | left-to-right | | 中文(台灣) Traditional Chinese | `zh-TW` | left-to-right | | 日本語 Japanese | `ja` | left-to-right | | Deutsch German | `de` | left-to-right | | Español Spanish (Spain) | `es` | left-to-right | | Español latinoamericano Latin American Spanish | `es-419` | left-to-right | | Português (Brasil) Brazilian Portuguese | `pt-BR` | left-to-right | | Türkçe Turkish | `tr` | left-to-right | | Tiếng Việt Vietnamese | `vi` | left-to-right | The language picker shows how much of each language is translated. If a translation is missing a line, you see the English text instead of a blank. ## Switching | Where | How | |-------|-----| | TUI | Run `/language` (or `/lang`, `/locale`). The interface updates in place, with no restart. | | Desktop | Open Settings → Language and pick a language. The window reloads in the new language. | | Headless | Pass `--locale <tag>` for one run, or set `EMPRYO_LOCALE` in your environment. | You can also choose to follow your system language. When more than one setting applies, Empryo uses the first one it finds: 1. The `--locale` flag. 2. The `EMPRYO_LOCALE` environment variable. 3. The `locale` setting in your config. A project config beats your global config. 4. Your operating system's language. If you ask for a tag Empryo does not have exactly, it picks the closest match. For example, `fr-CA` gives you French, and `es-MX` or `es-AR` gives you Latin American Spanish. If nothing matches, you get English. ## Right-to-left In Arabic, the desktop app mirrors its layout: - **The layout flips.** Spacing, borders and alignment all switch sides. - **Controls flip too.** Sliders, menus, tabs and toggle groups work right-to-left. Submenus open on the correct side, and the <kbd>←</kbd> and <kbd>→</kbd> keys move the expected way. - **Each message gets the right direction.** Prompts to a coding agent often start with a file path or a command. A browser would read a line like `src/auth.ts فيه خطأ في السطر ٤٢` as left-to-right because of that first word. Empryo ignores code-like words, counts the rest, and shows the line in the direction it was written. - **Code stays left-to-right.** Paths, names, inline code, code blocks and diffs keep their own direction inside Arabic text, so the words around them stay in order. - **Messages and interface are independent.** An Arabic message in an English interface reads right-to-left without flipping the rest of the screen, and the other way round. The **TUI does not mirror.** Terminals do not reorder mixed-direction text. You still see the Arabic translation, but the layout stays left-to-right. ## Numbers, dates and counts Numbers and times follow your language. A token count shows as `12.4K` in English and `12,4 k` in French. Relative times use natural phrasing, such as "yesterday" in English, «вчера» in Russian and "أمس" in Arabic. Costs always show in US dollars, because that is how model providers bill. Only the number format changes. ## Chinese, Japanese, Korean In the desktop app, Empryo adds a small space where Latin text meets Chinese, Japanese or Korean characters. It also uses strict line-breaking rules, so a line never starts with a closing bracket or certain punctuation. Simplified Chinese uses the `zh-CN` catalog and Traditional Chinese uses `zh-TW`; both keep product, provider, model and command names literal where they are part of the interface vocabulary. ## Live translations Translations can improve between Empryo releases. With the `liveTranslations` setting on and a language other than English selected, the TUI and the desktop app check for newer translations once when they start, and skip the check if the last one was less than 6 hours ago. They never check again while they run. English is built in, so an English interface checks only when you ask it to (`/language refresh` in the TUI, or Settings → Language in the desktop app). Every check also finds languages that contributors added, so those show up in the language picker. The download is anonymous. Empryo checks every file before using it and rejects anything unsafe or malformed. It saves good files on your computer. This setting is **on by default**. Set `"liveTranslations": false` in your config to turn it off. In the desktop app, you can also switch it off or check for updates from Settings → Language. Headless runs never download translations. They use what the TUI or desktop app already saved. ## Localized commands Turn on `localizedCommands` to type slash commands in your interface language. The English names keep working. For example, `/لغة` runs `/language`. This setting is off by default. ## Contributing a language Translations are published in the `locales` folder of the [proxysoul/Empryo](https://github.com/proxysoul/Empryo/tree/main/locales) repository on GitHub. To fix a translation or add a new language, open a pull request there. With live translations on, merged changes can reach you before the next release. --- ## Logs, errors and worker effort Canonical: https://empryo.com/docs/tools/logs > Where Empryo shows errors, model calls and compactions, what the reasoning effort next to each worker's model means, and where the error log file lives. Empryo keeps three logs while it runs: errors, model calls and compactions. One viewer shows all three in the terminal UI and in the desktop app. Next to every worker's model you also see the reasoning effort its requests actually carry, so you can tell at a glance which helper ran on what. ## Effort next to the model Wherever a worker's model is shown, its reasoning effort is shown beside it as `model · effort`. The effort is the level the request actually carried after every default was applied: an explicit effort on the task, then the agent definition, then the router lane, then your config, then the model's own default. When the model has no effort control, or no level was sent, nothing is shown. | Surface | Where you see it | |---------|------------------| | Terminal UI | Subagent rows under a dispatch, and the `/subagents` panels for live and background agents. Narrow terminals drop the effort before they drop the model. | | Desktop app | The subagents drawer, agent detail, inline dispatch cards, the events tab, engine runs and the nodes of an orchestration graph | | Headless | The `role · model · effort` progress line printed to stderr when each subagent starts, and the `effort` field on `background-status`, `agent-activity` and `model-call` events with `--events` | To change a worker's effort, set `effort` in its [agent definition](/docs/tools/agents), on the [task router](/docs/recipes/task-router) lane, or with `--effort` for a headless run. ## The model-call log Every model call Empryo makes is recorded with the model, the lane that made it, the effort, when it started, how long it took, tokens in and out (including cache reads and writes) and whether it succeeded. The lane says who made the call: | Lane | Who made the call | |------|-------------------| | `main` | A tab's own turn | | `subagent` | A blocking dispatch or explore worker | | `background` | A detached background agent | | `council` | A council seat | | `advisor` | An advisor consult | | `orchestration` | A node in an orchestration graph | | `review` | The reviewer | | `goal-review` | The goal-loop reviewer | | `marionette` | The Marionette pre-pass | | `web-search` | The web-search worker | | `compaction` | A compaction summary | | `namer` | The tab and session namer | | `desloppify` | The post-dispatch desloppify pass | | `verify` | The post-dispatch verifier | | `embed` | An embedding call | | `typesafe` | A TypeSafe classifier or pilot call | | `link` | A consult started through `agent_link` | | `routine` | A routine pre-pass | | `other` | Anything not named above | The same lane and effort are written to the usage ledger rows behind `/usage`, so spend can be broken down by who made the calls. ## The log viewer ### Terminal UI ``` /errors ``` `/logs` does the same. The viewer has three tabs: **Errors**, **Model calls** and **Compactions**. Press `Tab` or a digit to switch. | Key | Action | |-----|--------| | `/` | Search the current tab. `Enter` or `Esc` leaves the search box | | `f` | Move to the next filter | | `←` `→` | Change the selected filter's value | | `x` | Clear the search and every filter | | `Enter` | Open the selected row in a detail view. `Esc` goes back | | `Ctrl+Y` | Copy the selected row, or the open detail | | `r` | Model calls tab only: start or stop recording | | `Esc` | Close | Each tab has its own filters. Errors filter by source. Model calls filter by lane, model, effort, state and tab. Compactions filter by kind. Model calls are recorded only while recording is on. It is off when Empryo starts and stopping it clears what was recorded, so leave it off unless you are looking into something. Errors and compactions are always recorded. `/compact logs` opens the same viewer on the Compactions tab. ### Desktop app The **Logs** view lives in the context pane, with the same three sections: Errors, Model calls and Compactions. Each section has a search box, filters and a detail view per row. Open it from the command palette, by typing `/errors` or `/logs` in the composer, or by clicking the error indicator in the status bar. ## Errors that used to be hidden Failures inside Empryo that used to be swallowed are now reported: the code index and its language servers, tools, sessions, memory and the desktop app's main process all report unexpected failures to the same place. In the terminal UI they appear on the Errors tab, in the desktop app in the Logs view, and in headless runs on stderr. Some of these are settings you wrote that are not in effect, such as a project `config.json` that cannot be parsed. Those are reported once per breakage and again only after the file is fixed and breaks again, not on every turn that reads it. ## The durable error log Everything the Errors tab shows is also appended to a file, so a report about a freeze or a crash always has something to attach: | System | Path | |--------|------| | macOS and Linux | `~/.empryo/logs/errors.jsonl` | | Windows | `%LOCALAPPDATA%\Empryo\logs\errors.jsonl` | One JSON object per line, with a timestamp, the surface that wrote it (`tui`, `headless`, `desktop-bridge`), the source and the message. The desktop app redacts keys and bearer tokens from provider errors before they are written. The file rotates to `errors.jsonl.1` at 2 MB, a line that repeats within a second is written once, and a single session writes at most 2,000 lines. ## Other debug tools `/diagnose` runs a health check of the language servers, code parsing and semantic indexing for the current project. In the desktop app it has two tabs, **Health** and **Setup**, and an **Export debug bundle** button that collects logs and crash reports into your Downloads folder. The same export is in the command palette. The desktop app also has a live-logs console that streams the app's own log as it runs. It exists only when the app is launched with `--debug`, `--logs` or `EMPRYO_DEBUG=1`, and with any of those it opens on the boot screen. A normal launch has no console and pays nothing for it. ## Related - [Model events](/docs/concepts/model-events) is the older per-model summary view (`/model-events`). - [Cost tracking](/docs/concepts/cost-tracking) shows running totals and `/usage`. - [Troubleshooting](/docs/troubleshooting) lists where crash reports are written. --- ## LSP servers Canonical: https://empryo.com/docs/tools/lsp > Language servers give Empryo exact definitions, references and errors for your code. Empryo installs them for you, and /lsp lets you manage them in the TUI. A language server is a program that understands one programming language. It powers features like go-to-definition and error checking in code editors. Editors talk to these servers through the Language Server Protocol (LSP). Empryo uses the same servers, so the agent gets accurate answers about your code instead of guessing from text search. There is nothing to set up. When a session starts, Empryo detects the languages in your project and installs the recommended servers in the background, without holding up your prompt. ## Commands Run these in the TUI: ``` /lsp open the LSP manager (install, enable, disable) /lsp install search the Mason registry and install servers /lsp status running servers with language, backend and PID /lsp restart restart all servers, or only some ``` ## What the agent uses When a language server is running for a file, the agent's [code intelligence](/docs/concepts/intelligence) tools ask it first for: - Go to definition, type definition and implementation - Find references - Rename across the workspace - Diagnostics (errors, warnings and hints) - Code actions (quick fixes and refactors) - Call hierarchy (incoming and outgoing calls) - Type hierarchy (supertypes and subtypes) - Hover and type information - Document and workspace symbols - Format a whole file or a range The agent picks the right tool for you. You do not need to call these yourself. ## Dual backend Empryo reaches language servers in one of two ways: | Mode | When | |------|------| | **Neovim bridge** | The [editor panel](/docs/tools/editor) is open. Requests go through the language servers your Neovim already runs, so there is no extra startup. | | **Standalone** | Neovim is not running, or you use headless mode. Empryo starts the servers itself. | Both modes give the agent the same features. To limit memory use, Empryo keeps up to 6 standalone servers running at once and stops the one idle the longest when it needs room. ## Supported languages Empryo recognizes more than 40 languages and file types. For each one it knows the file extensions, how to find the project root, and which language server to use when one exists. Languages with a known language server include TypeScript, JavaScript, Python, Go, Rust, Java, Kotlin, Scala, C#, Swift, Dart, Elixir, OCaml, Lua, C, C++, Objective-C, Ruby, PHP, Zig, Bash, CSS, HTML, JSON, TOML, YAML, Dockerfile, Vue, GraphQL, Protobuf, Markdown, Nix, HCL/Terraform, Bazel/Starlark, Jsonnet, ReScript, Solidity and Emacs Lisp. Servers for these install on their own. You can add any other server from the Mason registry with `/lsp install`. When no language server covers a file, or a server cannot answer, Empryo falls back to lighter tools, in this order: 1. ts-morph, a TypeScript and JavaScript parser. 2. Tree-sitter, a fast parser that works for many languages. 3. Regular-expression search. ## Mason installer [Mason](https://github.com/mason-org/mason-registry) is a public registry of language servers and developer tools, first built for Neovim. `/lsp install` opens a searchable list of its packages. Pick one and press <kbd>Enter</kbd>. Empryo installs it based on the package type: - **npm** packages go into `~/.empryo/lsp-servers/` - **PyPI** packages install with `pip3` - **Cargo** packages install with `cargo install` - **Go** packages install with `go install` - **GitHub** release files are downloaded and unpacked On Windows, the install folder is `%LOCALAPPDATA%\Empryo\lsp-servers\`. PyPI, Cargo and Go packages need that toolchain on your computer. Automatic installs skip a package when its toolchain is missing. If a server is already on your `PATH`, or installed by Neovim's Mason, Empryo uses that copy. ## Settings | Setting | Default | What it does | |---------|---------|--------------| | `lspAutoInstall` | `true` | Installs recommended servers for your project's languages when a session starts. It installs at most 3 per start and tries each package only once per project. | | `disabledLspServers` | `[]` | Mason package names Empryo should never start. A project config replaces the global list. You can also toggle servers in `/lsp`. | See [Configuration](/docs/reference/configuration) for where these settings live. ## Check health Run `/diagnose` to check tree-sitter, language servers and semantic indexing. Use it when code navigation seems wrong or slow. --- ## MCP Servers Canonical: https://empryo.com/docs/tools/mcp > Connect Empryo to Model Context Protocol (MCP) servers over stdio, HTTP or SSE, so the agent can use their tools next to the built-in ones. MCP (Model Context Protocol) is an open standard for giving AI agents extra tools. Connect an MCP server to Empryo and the agent can call its tools, for example to open GitHub issues or query Sentry, alongside its built-in tools. Use it when the agent needs a service Empryo does not cover out of the box. ## Quick start Add a server to `mcpServers` in your config. This one runs the GitHub server as a local process: ```json { "mcpServers": [ { "name": "github", "command": "npx", "args": ["-y", "@modelcontextprotocol/server-github"], "env": { "GITHUB_TOKEN": "ghp_..." } } ] } ``` Restart Empryo or open `/mcp` to check it connected. The server's tools are now available to the agent as `mcp__github__<tool>`. Configs copied from Claude Code, Cursor, Gemini CLI, Windsurf or OpenCode work as they are. Empryo reads an object keyed by server name, `type` (`stdio`, `local`, `http`, `streamable-http`, `remote`, `sse`), `httpUrl`/`serverUrl`, a `command` array, `environment` and `enabled: false`. An entry with only a `url` connects over `http`, or `sse` when the URL ends in `/sse`. ## Where the config lives - **Global:** `~/.empryo/config.json` (on Windows `%LOCALAPPDATA%\Empryo\config.json`) applies to every project. - **Project:** `.empryo/config.json` applies to one repository. A project server with the same `name` as a global one replaces it. A project's MCP servers start when you open the project. Each server is a command on your machine, so read `mcpServers` before you open a repository you did not write. ## Three ways to connect | Transport | Use it for | Needs | | ----------------- | --------------------------------------------------------------------- | ---------------------------------------- | | `stdio` (default) | A server that runs as a local program | `command`, optional `args`, `env`, `cwd` | | `http` | A remote server over Streamable HTTP. Use this for new remote servers | `url`, optional `headers` | | `sse` | Older remote servers that only speak Server-Sent Events | `url`, optional `headers` | ```json { "mcpServers": [ { "name": "sentry", "transport": "http", "url": "https://mcp.sentry.dev/mcp" }, { "name": "legacy-service", "transport": "sse", "url": "https://legacy.example.com/events", "disabled": true } ] } ``` ## Settings | Field | Type | What it does | | ----------- | -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `name` | string (required) | The server's name. Also the prefix of its tool names | | `transport` | `"stdio"` \| `"http"` \| `"sse"` | How to connect. Default `"stdio"` | | `command` | string | Program to start (stdio) | | `args` | string[] | Arguments for `command` | | `env` | `Record<string,string>` | Extra environment variables for the program. It also gets your shell's environment and `PATH`, so tokens you export and tools from nvm, Homebrew, mise or uv are found | | `cwd` | string | Working directory for the program (stdio). Default: the project root. A relative path is read from the project root | | `url` | string | Server address (http, sse) | | `headers` | `Record<string,string>` | HTTP headers, such as `Authorization` (http, sse) | | `timeout` | number | Time limit for each tool call, in ms. Default 30000 | | `disabled` | boolean | Keep the entry but don't connect | | `resident` | boolean | Always send this server's tools to the model instead of loading them on demand. Use it for a server you rely on every turn. The set is fixed when a session starts, so the prompt cache holds: a server pinned later, or one that was not connected at startup, is reached on demand until the next session, and a pinned server that disconnects keeps its tools, which answer that it is not connected | | `redirect` | `"follow"` \| `"error"` | Whether a remote server may redirect. Set `"follow"` only if the server needs it | | `oauth` | boolean \| object | Sign in through the browser when a remote server asks for it. On by default for `http` and `sse` servers that don't send their own `Authorization` header. For a server that only accepts apps it registered, pass that app: `{ "clientId": "...", "clientSecret": "...", "issuer": "...", "scope": "...", "callbackPort": 33418 }` | ## Keep secrets out of the file Write `${NAME}` (or `{env:NAME}`) in `command`, `args`, `env`, `cwd`, `url` or `headers` and Empryo fills it from your shell when the server starts. `${NAME:-fallback}` uses the fallback when `NAME` is not set. A committed project config can then name the token without containing it: ```json { "mcpServers": { "github": { "type": "http", "url": "https://api.githubcopilot.com/mcp/", "headers": { "Authorization": "Bearer ${GITHUB_TOKEN}" } } } } ``` If a server fails and a variable it names is not set, the status says which one. ## Servers that need a sign-in Remote servers like Linear or Notion ask you to sign in. Add the server with its URL; when it first connects, Empryo opens your browser, you sign in, and the server connects on its own. If no browser can open (SSH, CI), the server's status shows the link to open. The sign-in is saved per server and refreshed for you; delete the server to forget it. Some servers only let apps they approved sign in (Figma's remote server is one). The status says so. If the service lets you register your own app, put its `clientId` (and `clientSecret`, `scope`, and the `callbackPort` you registered as `http://127.0.0.1:<port>/callback`) in `oauth`. With a `clientSecret`, also set `issuer` to the sign-in service's issuer URL, so the secret is only ever sent there. Otherwise use its local or token-based server. ## Tool names Every MCP tool is renamed to `mcp__<server>__<tool>` so it can never clash with a built-in tool. A server named `github` with a tool `create_issue` gives the agent `mcp__github__create_issue`. ## Connection behavior - All enabled servers connect when Empryo starts, up to four at a time. - If a local (stdio) server crashes, Empryo restarts it, up to three times with a growing delay. - If a local server fails to start, its status shows the last lines it printed to stderr, which usually name the missing token or package. - A remote server that is down or unreachable is retried up to three times with a growing delay. One that refuses (a wrong URL or a sign-in) stays failed until you retry it from `/mcp`. - An `http` server that answers 404 or 405 is tried again over `sse`, for older servers. - If a remote server forgets the session (after it restarts), Empryo reconnects and runs the tool call again. - When a server gives up after three restarts, its status keeps the last error. - When a server changes its tool list (`notifications/tools/list_changed`), Empryo fetches it again. From the next step of the same turn, new tools can be called through `code_script`, and through `run_tool` when tools load on demand. When every tool is loaded up front, the tool list stays as the session started, so the new tools are reached through `code_script`. Your tool list and system prompt do not change mid-session, so the prompt cache holds. Pinned (`resident`) servers keep the schemas the session started with but always run the server's current tool. - When Empryo exits, it closes every connection and stops every local server. ## Manage servers in the terminal UI Run `/mcp` to see each server's status and tools. | Key | Action | | -------- | ---------------------------------- | | Type | Filter servers by name | | `Ctrl+A` | Add a server | | `Ctrl+E` | Edit the selected server | | `Ctrl+D` | Delete the selected server | | `Ctrl+T` | Turn the selected server on or off | | `Ctrl+R` | Reconnect a failed server | | `Ctrl+P` | Ping a connected server | | `Tab` | Switch to the tools list | | `Enter` | Open the server's details | ## Headless runs MCP servers also connect in headless mode, so scripts and CI jobs can use them: ```bash empryo --headless "use the github MCP to list open issues" ``` --- ## Memory Canonical: https://empryo.com/docs/tools/memory > Empryo remembers your preferences, project decisions and past gotchas across sessions, and adds up to 3 relevant ones to each turn automatically. [Video: Recall at work: Empryo scores stored memories against the current request and the files in play, then adds the three most relevant, each labeled with why it was picked.](https://empryo.com/media/code-memory-recall.mp4) *Recall at work: Empryo scores stored memories against the current request and the files in play, then adds the three most relevant, each labeled with why it was picked.* Memory lets Empryo remember things between sessions: that you use bun, not npm; why the team switched state libraries; that a test is flaky on CI. You tell it once, and it comes back when it matters. Memory is stored **per project** by default. You can also keep **global** memories that apply to every project, such as "be terse". ## What gets stored Each memory has one of four categories: | Category | Example | |---|---| | `pref` | "use bun not npm", "be terse" | | `decision` | "switched to zustand because redux was too much boilerplate" | | `gotcha` | "JWT expiry uses the container clock, which drifts in prod" | | `context` | "legacy/ will be deleted next sprint, don't touch it" | The agent saves a memory on its own when you state a preference, make a decision with a reason, or hit a bug that wasn't obvious. You can also ask it directly: "remember that we deploy on Thursdays". [Video: Left: a rules file sent in full on every turn, outdated lines included. Right: Empryo adds three short memories that match the file being edited.](https://empryo.com/media/code-memory-prompt-bloat.mp4) *Left: a rules file sent in full on every turn, outdated lines included. Right: Empryo adds three short memories that match the file being edited.* ## How recall works Before each turn, Empryo compares your message and the files you are working on with what's stored. It adds up to **3 relevant memories** to the turn. You don't need to run a command or remember what's saved. If nothing is relevant, nothing is added. Memories only take up space in the conversation when they help. ## Browse and edit: `/memory` In the terminal UI, run `/memory` to open the memory browser. It has four tabs: - **All:** every memory you can see, from the project and global stores. Pin, edit or hide a memory from here. - **Hidden:** memories you hid. Restore them with `Ctrl+R`. - **Cleanup:** suggestions to review, such as duplicates, memories that point at deleted files, and memories that are rarely useful. - **Settings:** which stores the agent reads from and writes to, and which embedding model is in use. Hiding a memory is reversible. **Purge all** (`Ctrl+X`) deletes permanently, so use it with care. The desktop app has a Memory pane with the same data. ## Scopes Memories live in two databases: | Scope | Location | Use it for | |---|---|---| | Project | `.empryo/memory.db` in the repository | Decisions and gotchas about this code | | Global | `~/.empryo/memory.db` | Your personal preferences and style | New memories go to the project store by default. The read scope controls what recall can see: ``` all project + global (default) project only this repository global only your global preferences none recall off ``` Change both in `/memory` → **Settings**. ## Pinning Pin a memory to keep it out of cleanup suggestions and rank it higher in recall. Pin the rules you never want the agent to miss. ## Languages Memory search works in any language or script, including Chinese, Japanese, Arabic and Cyrillic, and mixed-script identifiers. It matches both whole words and parts of words, so rephrased and non-English queries still find the right memory. ## Better matching with an embedding model By default, Empryo uses a built-in offline embedder. It needs no API key and makes no network calls. It matches memories well when your wording overlaps with what was stored. For better matching of rephrased text, point memory at an embedding model: ```json { "memory": { "embeddingModel": "openai/text-embedding-3-small" } } ``` ### Do I need an API key? Yes, for a hosted model. Empryo uses the key you already configured for that provider. For `openai/text-embedding-3-small`, that is your OpenAI key. If the key is missing or wrong, Empryo falls back to the offline embedder and memory keeps working. `/memory` → **Settings** shows the reason. Local models in Ollama or LM Studio need no key. Pull the model, then name it in the config. ### Which models can I use? Any `provider/model` ID whose provider offers embeddings: | Provider | Model | |---|---| | OpenAI | `openai/text-embedding-3-small`, `openai/text-embedding-3-large` | | Google | `google/text-embedding-004` | | Mistral | `mistral/mistral-embed` | | OpenRouter | `openrouter/openai/text-embedding-3-small` | | Vercel AI Gateway | `vercel_gateway/openai/text-embedding-3-small` | | Ollama (local) | `ollama/nomic-embed-text`, `ollama/mxbai-embed-large` | | LM Studio (local) | `lmstudio/nomic-embed-text` | Providers without an embeddings API, such as Anthropic, xAI, Groq, DeepSeek and Bedrock, use the offline embedder instead. Custom OpenAI-compatible providers work if they expose an `/embeddings` endpoint. If you don't set `embeddingModel`, Empryo picks one in this order: your `taskRouter.semantic` model, then a default for your current chat provider (OpenAI, Google, OpenRouter or Vercel AI Gateway), then the offline embedder. Set `"embeddingModel": null` to always use the offline embedder. ### How do I check it's working? Open `/memory` → **Settings** and look at the **Embedding** row. It shows the model in use and where the choice came from. If your configured model failed, the row says why: a missing key, a provider without embeddings, or a network error. --- ## Cells & Morphs (experimental) Canonical: https://empryo.com/docs/tools/morphs > Change the Empryo desktop app with one JSON file: panels for notes, boards and timers, status chips, commands, shortcuts and agent rules. No code needed. ![The Cells & Morphs panel: every morph in this workspace with what it can reach, a live preview, an on/off switch, and the approval for anything that affects the agent.](https://empryo.com/media/morphs-showcase.webp) *The Cells & Morphs panel: every morph in this workspace with what it can reach, a live preview, an on/off switch, and the approval for anything that affects the agent.* > **Experimental.** Cells & Morphs are marked experimental. New features arrive with each release. A morph you write today keeps working: if an older app opens a morph made for a newer one, it shows the morph's fallback text instead. A morph is one JSON file that adds to the Empryo desktop app. The app reads the file, checks it, and shows what it describes: a panel next to the built-in ones, a chip in the status bar, a `/command` in the composer, a keyboard shortcut, suggestions on an empty tab, or a new accent color. Save the file and the change appears shortly after. Delete it and the app goes back to how it was. Two words, on purpose: - A **morph** is the file you build, turn on, install and share, plus everything it puts on screen. - Its **cell** is the part that affects the agent: rules, lookups, guards and state. This is the part you approve or revoke. In the terminal UI, `/cells` manages exactly that. Nothing on screen is called a cell. Empryo provides the building blocks. There is the **engine** (agents, tabs, runs, goal loops, teams, and the app's own data as feeds), the **runtime** (blocks, actions, views, feeds, state, intents) and the **places in the app** where things can appear. What you build with them is up to you: a ticket board, a notebook, a DJ deck that starts agents, a chapter wall for a novel, a plant monitor. You do not have to write morphs by hand. Open **Cells & Morphs** from the `...` menu (or run `/morphs`), click **New morph**, and describe what you want: "a notebook", "my tracker as a board I can drag", "a pomodoro timer that chimes". The agent writes the file. > **Note:** > **Use with an agent.** Any AI agent can write a morph from these resources: > - The task map at [empryo.com/docs/tools/morphs/llms.txt](https://empryo.com/docs/tools/morphs/llms.txt), with one section per task. > - This page as markdown at [/docs/tools/morphs.md](https://empryo.com/docs/tools/morphs.md). Cite a section as `/docs/tools/morphs.md#guards`. > - A ranked section search at `/api/docs/search?q=<terms>&scope=morphs`. > - The exact allowed keys, types, values and limits in the [Morph JSON Schema](https://empryo.com/morphs.schema.json). > A prompt that works: "Fetch https://empryo.com/docs/tools/morphs/llms.txt, pick the sections for the task, fetch each .md#anchor, write the morph, then validate it against https://empryo.com/morphs.schema.json." ## Try it in five minutes Open **Cells & Morphs** (`/morphs`), choose **Start from… → The lab (every part)** and turn it on. This one morph shows every kind of part a morph can have: numbers, a chart, controls, notes, pictures, tabs, an embedded page, and a small piece of custom code. Look around, then describe the morph you actually want. The agent writes it, and you can delete the lab. To try a board: choose **Start from… → Spec board (canvas)**. Make a `specs/` folder with one markdown file per feature, each starting with `status: todo`. Then run `/canvas`. Drag a card to *In progress*: the file is updated and an agent starts working on that spec in its own tab. ## Work it directly A morph's panel is something you use directly. It is not just a row of buttons that write prompts. For each control, the author picks what it does: - **Do it here.** A field stores what you type. A list can be edited in place (rename, delete, reorder, tick off). A toggle, slider or checkbox writes straight to the morph's state. A timer counts down and fires at zero. A button can `set`, `append`, `remove`, `toggle` or `inc` (increase) a state value. A `call` sends a request to the morph's own API (moving a ticket, adding a label, posting a message). The app sends it, asks you to confirm unless the author turned that off, and refreshes the board afterwards. - **Ask the agent.** A `prompt` is placed in the composer for you to send. With `send: true` it is sent right away. Use this only where the agent is really needed. - **Dress it.** While it is on, a morph can restyle the prompt box, the title bar, the status bar or a chat's frame. See [Decorate](#decorate). - **Say it.** `notify` shows one of the app's notices, starting with the morph's name: `{ "label": "Post it", "call": { … }, "notify": "Posting to the tracker…" }`. Add `notifyTone` (`info`, `success`, `warn` or `error`), `notifyDetail` for a second line, and `notifySystem: true` for an operating-system notification when the app window is not in front. Triggers use the same kind of notice. - **Show.** `open: "surface"` brings the morph's own panel forward (its pane tab, center tab or floating card). `open: "<popup>"` opens one of its popups. For example, a search box that stores `q` plus a feed whose URL contains `{{state.q | url}}` gives you search and results with no agent involved. A gallery item or a row with `attach` puts its image into your composer as a real attachment. A morph has two layers. The **UI layer** changes what you see, and each part appears where a built-in feature would: a tab in the context pane, a section above the file tree, a button in the title bar, an entry in the command palette. The **agent layer** changes how the agent works: rules it follows, lookups it can call, guards on its tools, and state it can write. ## The UI layer | Part | What it adds to the app | Key | |---|---|---| | Surface | A panel. It can hold stats, progress bars, badges, key/value rows, a board of grouped rows and action buttons. It can also hold fields (text you type, stored or turned into a prompt), notes (your own editable list), checkboxes, toggles and sliders (tied to state), timers, code, image galleries, kanban columns you drag between, dropdowns, tables, tabs, lists, charts and embedded pages. `place` decides where the panel goes: `tab` (its own full pane, the default for a panel with things to do), `side` (a tab in the context pane), `sidebar` (a section above the file tree), `float` (a card in the corner), `dock` (a strip just above the composer) or `canvas` (the **whole workspace**, instead of the chat). `chrome: "plain"` removes the card frame. You have the same switch for every morph | `surface` | | Extension | Blocks placed in **a specific part of the app itself**: a tab next to My work and My tools, a chat's header, the strip under the composer, the title bar, the status bar, the top of My tools. `place` asks the app for room. An extension names the exact place instead. `target` is one of **fourteen** places the app offers, and it shows the same blocks a panel can. You turn each extension on in **My tools** | `extensions` | | Popup | A window of blocks and actions, opened by its id from a button, a row, a palette entry or a trigger. Three shapes: `dialog` is centered, `sheet` is attached to the right edge at full height, `drawer` is a band across the bottom | `popups` | | Palette | An entry in the ⌘K command palette | `palette` | | Status | One chip in the status bar. Its text can count live rows: `{{pulses.jira.count}} open` | `status` | | Pulse | A JSON feed the app fetches on a schedule and shows as rows on the board. The source can be an API, the engine itself (`engine://…`), or **a folder in the repository** (`files://specs/*.md`, one file per card, with the file's frontmatter as its fields) | `pulses` | | Run | A button, a row action or a kanban column that sets the **engine** to work on that card. A tab of its own opens with the model and mode the morph asked for, and works while you stay on the board | `run` | | Command | A `/name` command in the composer. Enter sends the command's `prompt`, with anything you typed after the command added to the end | `commands` | | Reflex | A keyboard shortcut that places a prompt in the composer: `mod+shift+1` | `reflexes` | | Welcome | Suggestion buttons shown on an empty tab | `welcome` | | Toolbar | Buttons in the title bar next to the app's own. One click can show the panel, change state, call the API, place a prompt, open a link or copy text | `toolbar` | | Trigger | A reaction to an event: a turn ends, files change, a pulse gets new rows or fails, a timer reaches zero, the clock reaches `09:30` on weekdays. The reaction is a notice, a sound, an operating-system notification, or a prompt placed in an empty composer | `triggers` | | Pigment | While the morph is on, the app uses the morph's accent color. With `theme` it switches to a theme (`nord`, `dracula`, or one of your own) and goes back to yours when the morph turns off. `backdrop` puts a picture behind the whole chat. `decorate` restyles one of the app's own parts (the prompt, the title bar, the status bar, a chat's frame) | `pigment` | | Helper | A local program the morph needs, such as a script that reads what Spotify is playing, follows a build, or polls a sensor. The app starts it when the morph turns on and stops it when the morph turns off | `helper` | An action can have `layout`: a **Focus** button that rearranges the window when clicked. It takes one true/false value per pane: `sidebar` (the file tree), `context`, `map`, `terminal`, `browser`, `cells`, `canvas`, `graph`, `plan`, `router`, and `split` for chats side by side. `"centre": "chat|canvas|graph|plan|router|browser|map|cells"` picks what fills the middle. `"chat"` gives the middle back to the chat *without* closing the board that was there. Keys you leave out are not changed. The two per-chat panes (`graph` and `plan`) follow the pane where the button was pressed, not whichever tab has focus. An action can also have `run`, the one control that starts work (see [Runs](#runs-cards-that-do-the-work)). A desk (a tab tied to a board row, see [Desks](#desks-one-click-from-a-board-row-to-its-own-tab)) can have `mode`, `model` and `skills`: the tab it opens starts in that mode, with that model and those skills loaded. For example, a review desk in plan mode on a larger model, or a ticket desk in plan mode with your team's conventions. Every control acts only when you click, press a key or press Enter. A trigger can tell you something (a notice, a sound, a system notification) or offer a prompt in an empty composer, but it never sends a prompt by itself. A morph only adds to the app. It never removes, hides or renames anything the app already has. ## Settings, conditions, and where a morph lives **Settings.** A morph can declare `vars`, its settings. `{{var:HOST}}` works anywhere in the file: a URL, a header, a prompt, a row template. You fill in your values once in Cells & Morphs, and they are stored outside the file, so one shared morph works for everyone on a team. If a var has no value and no default, the morph's feeds wait until you fill it in. **Conditions.** `when` makes a morph sleep unless its conditions are met: a branch pattern (`release/*`), files that must exist, an operating system, environment variable names, weekdays, a time window. A sleeping morph stays in the list with the reason, and wakes up on its own when the conditions are met. **Rules per mode.** `instructions` can be a map by mode (`plan`, `default`, `lite`, and `*` for all modes), so the agent gets planning rules while planning and building rules while building. **Rules with scope.** `rules` is a list of `{ text, when }`. This is the same idea as Cursor's globs, Copilot's `applyTo` and Windsurf's activation modes: a rule only reaches the agent when its `when` matches. `paths` are globs over the files the turn mentions (`src/api/**`, `*.test.ts`). `mode` lists modes. `branch` is a glob. `desk: true` means only inside a desk tab. All conditions you list must match. `instructions` always apply, and rules add to them when they match. Rules belong to the agent layer, so they wait for your approval, and wait again if they are edited. ```json "rules": [ { "text": "Validate at the boundary; never trust a request body.", "when": { "paths": ["src/api/**"] } }, { "text": "List risks before steps.", "when": { "mode": ["plan"] } }, { "text": "Stay on the ticket; note anything else for later.", "when": { "desk": true } } ] ``` **Three locations.** - `.empryo/morphs/` is yours, in this repository. Empryo keeps `.empryo` out of git. - `.cells/` is committed, so everyone who clones the repository gets the morph. - `~/.empryo/morphs/` is yours, in every repository. When two morphs have the same id, the more specific one wins: your project copy hides the team's, which hides the global one. **Make my copy** copies a shared morph into your project folder. Remove your copy and the shared one comes back. **Where your settings live.** The file describes the morph. Your on/off switch, your var values and the live state of a **shared** morph (team or global) are stored in this project's `.empryo/cells-state.json`, not in the committed file and not in other repositories. So a global Jira morph can have a different `PROJECT_KEY` in each repository, be off in one and on in the others, and keep separate progress in each. The order is the same as in VS Code: the project setting beats your global setting, which beats the file. A global morph can also have a value or switch set **for every project**, used wherever no project setting exists. The card says which one applies ("Off here", "On everywhere", "here and for every project"), and one click removes an override. `/cells off <id> everywhere` and `empryo cells off <id> everywhere` do the same from the keyboard. When the agent runs `cells set` on a shared morph, it writes to this project's settings, and the file's `state` stays as the starting value. ## The agent layer | Part | What it gives the agent | Key | |---|---|---| | Instructions | Rules the agent follows while the morph is on, with the same weight as project instructions | `instructions` | | Lookup | A read-only HTTP GET the agent can call through the `cells` tool. Named parameters are URL-encoded into `{{holes}}`. The same address rules as a pulse apply, and the host must be written out in full | `lookups` | | Guard | A rule every matching tool call is checked against before it runs: `tool` (a name or glob), `match` (a glob or `/regex/` over the command, path or URL), `decision` (`deny` or `ask`) and `reason` | `guards` | | State | Key/value pairs the agent writes with `cells set` and every template reads as `{{state.key}}`. The values are saved and the panel updates | `state` | This is not the same as a hook. A [hook](/docs/tools/hooks) is a shell command that watches or blocks the agent. A morph gives the agent abilities and a shared workspace you can both see. Guards are the only overlap, and they are plain data: no shell, and they cannot rewrite a call. ### The agent layer needs its own yes Turning a morph on turns on its UI. Its agent layer (instructions, lookups, guards) stays **held** until you approve it in Cells & Morphs, where you can read exactly what it declares. Your approval stores a fingerprint of that layer on your machine, never in the shared file. If the file's agent layer changes later (a `git pull` of a shared morph, or an edit by any tool), the layer is held again and the panel tells you. The UI keeps working in the meantime. A change that only affects the UI does not need a new approval. This protects you from a common attack on AI tools, where text that steers the agent is quietly changed after you approved it. What you approve is exactly what runs, and any change needs a new approval. A held morph always tells you. When a morph needs your approval, for its agent layer or for a helper it wants to run, the app shows a notice with the morph's name. Click it to open Cells & Morphs on that morph, with the approval card at the top. The morph's own `cell.held` trigger fires at the same moment. ### Which sessions morphs reach By default, a morph only reaches the agent **in morph mode**, the dedicated tab where the Cellwright (the agent that builds morphs) works. A normal coding session has no `cells` tool, no morph instructions and no board context: the morph is your UI, not the model's. To change that, turn on **Morphs reach every session** in the panel (global config `"cells": { "reach": "all" }`). Then you can say "work on PROJ-142 from my board" in any tab. Guards apply in both settings. ### Hidden from the agent You can hide any morph from the agent on its card in Cells & Morphs: **Agent access → hidden**. A hidden morph still works on screen (its board, chip, buttons and popups), but the agent cannot see it at all. It is not in `cells list`, and the agent gets no rows, lookups, state writes, instructions, desk or guards from it (a guard's refusal would reveal its name). Use this for private messages, a personal board, or anything with a credential. The setting is yours, per project (`.empryo/cells-state.json`). It is never written into the morph file, it survives `git pull`, and it overrides every other setting, including "reach every session" and auto-approve. Hiding closes every route the app controls, not only the `cells` tool. The agent's file and shell tools cannot read the morph's file or its saved state, and the refusal does not name the morph. Engine feeds leave hidden morphs out. Hiding cannot remove a committed file's name from the repository, or take back what the agent already saw earlier in a session. If nobody should even know a morph exists, keep it in the global folder, not the repository. ### Desks, one click from a board row to its own tab Switching between tasks costs time and attention, and a short note about where you left off makes it easier to come back. Desks give each piece of work its own place to return to. A row with `desk` is a place: `{ "text": "PROJ-142 Login loops", "desk": { "id": "PROJ-142", "prompt": "Work on PROJ-142." } }`. From a pulse, use `"map": { "desk": "{{key}}", "prompt": "Work on {{key}}." }`. Click the row and a tab opens, named after the row, with the prompt placed in the composer (not sent). The row is included in **every turn** of that tab as a `<desk>` block, so "continue" means the same thing tomorrow. Click the row again from anywhere and you go back to the same tab. A strip above the composer shows how long you were away, the last thing said there, and a **Resume** button. The link between row and tab survives restarts. Closing the tab releases the row. A row with `tab` focuses that tab when clicked. `engine://attention` rows include a `tabId`, so an **Inbox** morph (Start from… → Inbox) can list failed reviews, finished agents and busy tabs, each row a shortcut to the right tab. ### Credentials A pulse or lookup can send headers: `"headers": { "authorization": "Bearer {{secret:JIRA_TOKEN}}" }`. `{{secret:NAME}}` reads Empryo's key store (`/keys`) and `{{env:NAME}}` reads an environment variable. The app fills in the values just before sending the request. They never reach the app's interface or the model. The morph's card lists only the **names** of the secrets and whether each one is set. These rules keep a credential safe: - **Approval covers where it goes.** A morph that uses a secret is held until you approve it in Cells & Morphs. The approval card names the secrets and the hosts they are sent to. If either changes (for example, a `git pull` that points the token at a new host), the morph is held again. - **Empryo's own keys are refused.** `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, search and login keys, and any other secret Empryo itself uses resolve to nothing in a morph, whichever way it asks. The card marks them *refused*. - **Credentials stay with their host.** If a request is redirected to another host, the credentials are not sent there. A missing secret makes the pulse report the problem instead of sending an empty token. A morph cannot set the `host`, `cookie`, `origin` or `referer` headers. - **The host is written out.** A `{{hole}}` in the host part of a pulse, call or lookup URL (`https://{{state.host}}/…`) is rejected when the file is checked. No feed row, morph state or agent can choose where a credential goes. Only `{{var:NAME}}` (your own value from Cells & Morphs) may appear in a host. A filled-in hole in the path cannot escape the path either: a row or parameter can change what a request asks for, but never where it goes. ![Morph mode: a tab that builds the app instead of the code. The tool calls appear as blocks snapping into place while it writes the file.](https://empryo.com/media/morphs-mode.webp) *Morph mode: a tab that builds the app instead of the code. The tool calls appear as blocks snapping into place while it writes the file.* ### Instructions, per mode `instructions` is usually one line the agent always reads. You can also write it per mode, `{ "plan": "…", "default": "…", "*": "…" }`, so the morph says one thing while you plan and another while code is written. `*` applies to every mode. Like the rest of the agent layer, it waits for your approval and is held again when the file changes. ### Organisation policy Organisations can set rules for morphs in the **global** config (`~/.empryo/config.json`, never in a repository): ```json "cells": { "requireSigned": "official" | "trusted" | "any", "trustedKeys": ["<base64 Ed25519 public key>"], "directories": ["https://git.example/cells/index.json"], "reach": "morph" | "all", "autoApprove": false, "views": "any" | "signed" | "off" } ``` - `requireSigned` loads morphs that are unsigned or changed after signing as **off**, with the reason on the card. `official` accepts only Empryo's keys. `trusted` also accepts the keys in `trustedKeys`. - `directories` lists internal morph catalogs. They appear under **Start from… → Directory**, labeled by host. - `views` controls custom code in morphs (see [Views](#views-the-free-mode)). ### What the agent is holding When you ask for a morph, the agent that answers is the **Cellwright**. It is a dedicated agent for building morphs, separate from the coding agent. These are all its tools, so you know what it can and cannot do while it builds: | It can | With | |---|---| | Read your project, to write a morph that fits it | `read`, `grep`, `find`, `list_dir`, `code_script` (read-only) | | Understand the code the morph is about | `navigate`, `genome_query`, `genome_analyze`, `genome_impact`, `analyze` | | Write and revise the morph file | `edit_file`, `multi_edit`, `undo_edit` | | See the result: live rows, feed health, a screenshot | `cells` (`list`, `board`, `debug`, `shot`, `refresh`, `lookup`, `set`, `scope`, `desk`, `install`) | | Check an API's real response before mapping a feed | `web_search`, `fetch_page` | | Read history, ask you a question, keep a checklist, remember | `git`, `ask_user`, `task_list`, `memory` | It does **not** have tools to run your project's code, use the shell, run tests or hand work to other agents. It builds the morph and shows you. Work that a morph starts is done by the normal coding agent, in its own tab. ![Search to results with no agent. The field stores q, the feed URL reads it, the tiles update. Click one and the picture goes into the composer.](https://empryo.com/media/morphs-search.webp) *Search to results with no agent. The field stores q, the feed URL reads it, the tiles update. Click one and the picture goes into the composer.* ### Build your own picker When the control you want is an app menu a morph cannot reach, build your own picker instead. You need three parts: 1. **A feed.** `engine://sessions/recent` (or `worktrees`, `agents/custom`, `tabs/open`, `git/branches`, `review/ledger` and others) lists what exists. 2. **A popup.** `"popups": [{ "id": "sessions", "shape": "sheet", "blocks": […] }]` holds the list. A **links tile** with `"open": "sessions"` puts a button on your board that opens it. 3. **An action.** A row action or tile whose prompt is the command that does the work: `"/session load {{id}}"`, `"/review"`, `"/canvas"`. It runs through the app's own command handling, so the action really happens. The roadmap starter does this for sessions: a tile opens a sheet, the sheet lists your recent sessions and when each was last used, and each row loads its session. ### The agent drives its own work Besides reading (`debug`) and looking (`shot`), the agent can use a live morph the way you would: - `press` works a control exactly like a click. It can target an intent by name, a panel action or button by its label (in the panel, a popup or an extension), a row by its text, or `"<row> › <action>"` for a row's own control. It then reports how the morph's state, feeds and rows changed. - `simulate` raises an app event (`turn.done`, `tool.call`, `run.done`, `pulse.changed` and so on) against the morph's triggers, with the values you ask for. It reports which triggers fired and what each did. They really fire, including cooldowns. - `watch` listens for a few seconds to everything the morph can hear from the engine and from its own updates, and returns a timeline. The working loop is: build, `debug`, `press` or `simulate`, `watch`, `shot`. None of these use a shortcut around the app. The agent presses the same buttons you would. ### The agent looks at its own work Two questions, two tools. `cells debug <id>` says what the morph **is**: its checked structure, what was dropped, which feed is empty. `cells shot <id>` says what it **looks like**: the app draws the morph and gives the agent the picture. `widths="dock,side,tab,canvas"` (or plain numbers) takes several pictures, so a panel can be checked at the size where it will actually appear. `widths="extension:<id>"` takes a picture of one extension instead: a `workspace.tab` page at page width, or a strip at the width of its place, so a chat header or composer strip gets checked the same way. A title that ran out of room, a block that came out empty, or a control with no label is easy to miss in the file and obvious in the picture. Screenshots only work on the desktop. Elsewhere, `debug` is all there is. ### The agent checks its own work `cells list` names what a morph restyles (`decorates composer:pulse`). `cells debug` prints the resolved `decorate` map and every `{{lane.*}}` hole it left for the chat to fill. That way "the style I asked for was dropped" and "this strip never reaches a chat" show up while the agent is building, not later on your screen. `cells debug <id>` returns what the app will actually draw, not the JSON as written: where it is placed, the block tree, a kanban's columns with the number of cards in each (plus any row group that matches no column, which is how you find a card that can never appear), the first rows with their mapped fields, each pulse's status and row count, the helper, and the computed reach. The Cellwright works in this loop: write the file, debug it, fix what was dropped. ### The agent opens desks too `cells` has a `desk` action. When you say "let's work on PROJ-142", the agent opens (or goes back to) that row's tab for you. `engine://desks` lists every tab tied to a row (title, busy or idle, tab), so a "where was I" morph needs only one pulse. ### Grid, putting things where you want them Every other block says *what* to show. `grid` says *where*: ```json { "kind": "grid", "columns": 3, "gap": "l", "items": [ { "span": 2, "label": "This week", "blocks": [ { "kind": "chart", "points": [] } ] }, { "blocks": [ { "kind": "stats", "items": [] } ] }, { "blocks": [ { "kind": "progress", "label": "Build", "value": 62 } ] } ] } ``` Use one to six equal columns, or `"columns": "auto"` for as many as fit at `min` pixels each. The auto grid reflows when the pane gets narrower. An item can `span` more than one column and have a `label` (a section heading without a divider). Grids can only go one level deep: a grid holds blocks, not more grids, so the layout stays easy to picture. A grid works anywhere blocks work: a panel, a popup, the canvas rail, the inspector. Everything inside follows the same rules as at the top level. A call, run or view inside a grid still counts toward the morph's reach and still needs your approval. ### How a board arranges itself `layout` decides the shape. The default is usually the right choice: | `layout` | What you get | |---|---| | `board` (default) | Columns side by side, each scrolling on its own. Nothing floats or overlaps. For a pipeline, a backlog, a queue. | | `grid` | Cards flow into as many columns as fit the width. For a gallery or a wall of readings. | | `rows` | One full-width column, limited to a comfortable reading width. For a log, a feed, a list. | | `free` | A loose canvas you can pan, zoom and arrange by hand. Only worth it when *position* means something, like a map or a hand-arranged graph. | Panning and zooming only exist in `free`. In the other three, the board behaves like every other pane: it scrolls, the columns stay in place, and cards never land on top of each other. [Video: Real capture. A card dragged from Doing to Done. The drop sends the change to the tracker, the board reloads, and the card lands.](https://empryo.com/media/morphs-kanban.mp4) *Real capture. A card dragged from Doing to Done. The drop sends the change to the tracker, the board reloads, and the card lands.* ### The canvas, a board instead of the chat `"place": "canvas"` gives a morph the whole window. The chat is not closed. It moves aside, and every tab keeps working behind the board. Press **Chat** (or run `/canvas` again) to switch back. A canvas morph is a board with cards. Compared to a docked board, you also get: - **Moving around.** Drag empty space or scroll to pan. Zoom with ⌘/Ctrl + scroll or the +/− buttons. The point under your cursor stays in place. - **Keyboard control.** Tab to a card. `Enter` opens its tab, `[` and `]` move it one column left or right, and `r` starts its run. - **Cards that show progress.** If a tab is open for a card, the card shows **working** while it runs and the cost when it finishes. - **Buttons on the card.** Whatever the morph attached to the row (a link, a tracker call, a popup, a state change) appears as a button on the card. There is also **Run** if the row has a run, and **Open** for its tab. - **One model choice.** The header has a model picker. Every run started from the board uses that model. - **Your own board.** `"board": "none"` on the surface makes the rows **data only**. Templates, a `list` with `from`, and views can still read them, but the app draws no columns, and the morph's blocks fill the center. That way a `view` can be the whole board. On a pulse, `"paint": false` does the same for that one feed. A kanban with `"lanes": []` is a plain kanban, not an empty one. The canvas stays smooth with many cards. Moving the board moves one layer without redrawing it, and cards outside the visible area are not drawn. A board of two hundred cards pans like a board of three. ### A folder of files as the data A feed's `url` can be `files://specs/*.md`: files in the project you have open. No network and no keys are needed. Each file becomes one card. The `key: value` block at the top becomes the card's fields, and the first `#` heading becomes its title. `path`, `file`, `name`, `summary` and `updated` are added for free. `files://docs/**/*.md` includes subfolders. Hidden files and `node_modules` are skipped. The limits are 200 files and 64 KB per file, and the path can never leave the project. ```json { "id": "specs", "url": "files://specs/*.md", "every": 15, "map": { "text": "{{title}}", "detail": "{{summary}}", "group": "{{status}}", "path": "{{path}}", "desk": "{{name}}" } } ``` **Files without any fields still work.** `{{summary | match:shipped=shipped:wip=doing:paused=parked | default:next}}` reads the file's own words, and the first matching phrase wins. A folder of ordinary notes becomes a board without anyone adding headers first. Drag a card once and the status is written into the file. When you drag a card, the change is written back into its file: `"onMove": { "write": { "field": "status", "pathField": "path" } }` adds or updates `status: doing` in that file's frontmatter. Only the frontmatter changes, the body is untouched, and the change shows up in `git diff`. ![The tracker morph. Sprint numbers from one feed, tickets from another sorted into four columns you drag between, and a search field that drives the feed. One file.](https://empryo.com/media/morphs-board.webp) *The tracker morph. Sprint numbers from one feed, tickets from another sorted into four columns you drag between, and a search field that drives the feed. One file.* ### A pipeline, not just a list A board can have a second direction. Give it `lanes` and each lane becomes a row of cards across the columns. The lane is the thing that moves (a spec, a ticket, a release) and the column is the stage it is in. `laneField` names the row field that decides a card's lane (`lane` by default), just as `field` names the one that decides its column. A card says which lane it belongs to with `lane`. A card can also have `progress` (0 to 100) to show a thin progress bar. The canvas can also have two side panels, both made of ordinary blocks: - `rail` is a column on the left, for what is next, what is queued, and buttons you press often. - `inspector` is a panel on the right about the card you last clicked. Clicking a card writes its id and fields into the morph's state (`{{state.selected}}`, `{{state.selected_text}}`, `{{state.selected_lane}}`, and one per mapped field). The inspector's blocks, and any feed whose URL uses that state, then show details of that card. Together that gives you a full orchestration board: a backlog on the left, work moving through stages in the middle, details and history on the right, and buttons on the cards that start agents. ### Motion, when the movement is the point A morph's own code (a `view` block) gets the app's animation library, [anime.js](https://animejs.com), already loaded. There is nothing to install: ```js export default ({ html, hooks, anime }) => function View() { const box = hooks.useRef(null); hooks.useEffect(() => { if (anime.reducedMotion) return; // asked for less movement: don't const a = anime.animate(box.current, { opacity: [0, 1], translateY: [8, 0], duration: 320 }); return () => a.pause(); // stops with the view }, []); return html`<div ref=${box}>arrived</div>`; }; ``` `animate`, `createTimeline`, `stagger`, `svg`, `utils`, `eases` and `reducedMotion` are available. Animate **position and opacity**. Those are cheap. Animating width, height, top or left makes the app recalculate the page layout on every frame, which a board of cards cannot afford. Keep the animation handle and stop it when the view goes away. Skip animation entirely when the system asks for reduced motion. The standard parts already move on their own (a progress bar fills, a levels strip bounces, a timer counts). Use your own animation only when the motion is the point. ### Runs, cards that do the work Any action, row action or kanban `onMove` can have a **run**: ```json "run": { "prompt": "Implement the spec in {{path}}.", "model": "anthropic/claude-sonnet-4-5", "mode": "plan", "skills": ["frontend-design"], "desk": "{{id}}", "background": true, "loop": true, "maxIterations": 4, "team": [ { "task": "Write the tests for {{path}}", "agent": "tester" }, { "task": "Review the design" } ] } ``` - `loop: true` turns the run into a **goal loop** instead of a single turn: a coder and a reviewer take turns until the reviewer says PASS, or until `maxIterations` rounds (default 5). It runs on the desk tab, in the background. - `team` makes the run **send out workers** in parallel. Each works on one task, filled in from the card, optionally as a named custom agent. The run combines their results before it finishes. - A `button` block, action or intent can also have `"desk": { "id": "{{id}}", "mode": "plan" }` on its own, to open the row's tab without a prompt. Boards that show agents can read `engine://agents/background`, `engine://desks` and `engine://review/ledger`, and react with the `run.done`, `agent.done`, `review.done` and `goal.done` triggers. When you click, or when a card is dropped in a column named in `runOn`, a new tab starts on that row with the model and mode the morph asked for, and the prompt is **sent**. With `background: true` (the default), **nothing on your screen changes**. No tab jumps to the front, nothing is written into the composer. The card shows the progress instead: a live dot while it works, the last thing the agent said, and the cost when it finishes. A **Watch** button lets you follow along if you want. `background: false` takes you to the tab. `stage: true` puts the prompt in the composer instead of sending it. A card can have up to four run actions (Start, Plan, Review, …), each with its own `desk`, so one card can have several tabs of its own. The tab a run opens always uses the **coding agent**, never morph mode, whatever your default mode is. Morph mode is for building morphs, and "implement this spec" is not that kind of work. A run or desk can still ask for a mode: `"mode": "default" | "plan" | "auto" | "lite"`, and the tab opens in that mode (the retired `architect`, `socratic` and `challenge` open in plan). A prompt that starts with `/` is a **command**, not text. It goes through the same path as a message you type, so `"prompt": "/review"` really starts a review and `"/dispatch …"` really dispatches. When the run finishes, the board is told about its card: `{ "on": "run.done", "match": "<desk id>" }` (and `run.failed`), with `{{desk}} {{cell}} {{row}} {{cost}} {{duration}} {{files}} {{error}}` available. The card can move itself to *In review*, post to an API, or just show a notice. `prompt`, `label` and `desk` are **filled in from the card** before the run starts: `{{path}}`, `{{title}}`, `{{text}}`, `{{id}}`, `{{column}}` (the column it was dropped in), and every field the row's map named. A hole the card does not have becomes empty text, never literal braces. Nothing here starts by itself. A run always starts from something you do, and it uses your own tokens. The morph's reach card counts every place that can start a run (**starts**). The **Spec board** starter (Start from… → Spec board) shows the whole flow in one file: `specs/*.md` become columns, you drop a card on *In progress*, and an agent works while you keep sorting. ### The engine pushes too An `engine://` pulse does not wait for its next scheduled fetch. As soon as the engine reports something a feed depends on, the feed updates. For example: - a turn starts or ends (`tabs/open`, `desks`, `attention`, `usage/models`, `sessions/recent`) - a background agent makes progress (`agents/background`) - a review or goal loop finishes (`review/ledger`, `attention`) - a task changes (`tasks/open`) - a file is edited or the file tree changes (`git/changes`, `diff/changes`, `git/branches`, `worktrees`) - an error happens (`errors/recent`) - MCP, skills or language server state changes So a board of agents or changes is as live as the app itself. `every` only matters for things the engine does not announce. Triggers can react to the same events: `tool.call` (a tool started, `match` is a tool glob, `{{tool}}`), `agent.step` (`{{title}} {{tool}} {{state}} {{detail}}`) and `context.changed` (a chat's context usage crossed another 10%, with `{{pct}} {{tokens}} {{window}}`, and `match` set to the level, such as `"70"`). ![A twenty-line script serves what is playing, and the morph reads it every three seconds. The playback buttons send commands back to the script.](https://empryo.com/media/morphs-spotify.webp) *A twenty-line script serves what is playing, and the morph reads it every three seconds. The playback buttons send commands back to the script.* ### Live sources, the feed pushes, you don't poll A feed's `url` can be `wss://…` (or `ws://127.0.0.1:…` for something running on your own machine). The app keeps the connection open while the morph is on, and each message from the server becomes rows right away. There is no interval and no waiting. Everything else works exactly like a fetched feed: the same board, chip and triggers. The only visible difference is the footer, which says **live** instead of "every 60s". ```json { "id": "builds", "url": "wss://ci.example.com/stream", "mode": "append", "limit": 40, "subscribe": { "watch": "{{state.repo}}" }, "headers": { "authorization": "Bearer {{secret:CI_TOKEN}}" }, "map": { "text": "{{job}}", "detail": "{{status}}", "tone": "{{level}}" } } ``` - With `mode: "replace"` (the default), each message **is** the whole list, as in a dashboard. With `mode: "append"`, each message adds one row at the top, up to `limit`, as in a log, a chat or a tail. - `subscribe` is sent when the connection opens (a string, or an object sent as JSON). It can use the morph's state, so "watch the branch I picked" works. - The same safety rules as any feed apply: encrypted when leaving your machine, unencrypted only to your own machine, a fixed address, and keys only after you approve them. Live feeds add three more: messages over 128 KB are ignored, a feed that sends too much is slowed down so it cannot freeze the app, and a dropped connection retries with increasing waits. - The card lists the feed as `live:ci.example.com`. The connection closes as soon as the morph turns off, goes to sleep, or you edit its file. ### Slots, a morph instead of part of the app `place` puts a morph where the app has left room for one. A **slot** goes further: the morph *replaces* that part of the window, and the app does not draw its own version. | `slot` | What it replaces | |---|---| | `transcript` | The message list. You can still type, and the composer stays. | | `composer` | The input box. You can still read, and the message list stays. | | `empty` | The empty tab, before the first message. | Three rules keep this safe: - **You can always undo it.** Every replacement shows a small restore button. Press it and the app's own version comes back. A morph cannot remove that button. - **Never during an answer.** A morph that replaces the input box steps aside while a turn is running, so **Stop** is always the app's own button. - **It goes away with the morph.** Turn the morph off, let it sleep, or change the file, and that part of the window returns to normal. With `place: "canvas"`, that covers every size: a strip above the input, a pane, one part of the window, or the whole window. ### Side by side The app can show two chats next to each other, stack them, and group panes that no longer fit into one shared column. A morph works in all of these layouts without any extra setup. - A panel keeps its place. `side`, `sidebar`, `tab`, `dock` and `canvas` are app panes, so they group, collapse and come back like the app's own panes. - `pane.header` is the one spot that appears once per visible chat. Each copy belongs to its own chat. A button there opens a desk, places a prompt or moves panels for the chat it sits in, not for whichever chat has focus. Keep it to one short line. It shares a row with the chat's name and close button, and hides itself when the pane is too narrow for both. - One morph has one state. Both copies read the same `{{state.*}}`, because there is only one morph. For per-chat facts, use `{{lane.*}}`. - A floating card belongs to one conversation. `place: "float"` sits over the focused chat's messages, never over the tab bar, another chat, or the strips above the prompt. - A morph can never push the prompt off screen. Strips below the input share one area that takes at most a third of the pane and scrolls on its own. The prompt stays where it is. ### Facts about one chat: `{{lane.*}}` Most holes are filled once, before anything is drawn, so every copy shows the same value. Chat facts are different. When two chats are side by side, the same morph is drawn twice, so these holes are filled separately for each pane's own chat. (A "lane" is one chat tab.) | Hole | What it contains | |---|---| | `{{lane.label}}` | The tab's name | | `{{lane.mode}}` | Plan, Auto, Lite and so on | | `{{lane.model}}` | The short model name, like `claude-opus-5` | | `{{lane.cost}}` | What this chat has spent, or empty | | `{{lane.status}}` | `working` while a turn runs, empty when idle | | `{{lane.tab}}` | The tab id, which a `tab` row action or a desk needs | `"text": "◆ {{lane.label}} · {{lane.status | default:idle}}"` in a `pane.header` extension gives each chat its own status line. These facts are read-only. They are not morph state, the agent cannot write them, and nothing is saved. A fact a chat does not have comes out empty (or as the `| default:…` value), never as braces on screen. ### Decorate `pigment` can do more than change colors. It can restyle one of the app's own parts while the morph is on. ```json "pigment": { "decorate": { "composer": "{{state.oncall | map:true=pulse:false=none}}", "statusbar": "edge" } } ``` Parts: `titlebar`, `pane` (one chat's frame), `composer` (the prompt box), `statusbar`. Styles: `edge` (a still border), `glow` (a soft glow), `pulse` (a glow that slowly brightens and dims), `sheen` (a highlight that travels along the edge), `none`. The morph does not supply CSS. The app draws the effect. The morph names a part and a style, and the color is the morph's accent. A style can be a template, so "make the prompt glow while I am on call" is one line. Animations only move and fade, and they stop when the system asks for reduced motion. Turn the morph off and the part goes back to normal. ### Popups A popup is a second place to put blocks. Give it an id, and any control opens it with `"open": "<id>"`. | `shape` | Where it opens | Good for | |---|---|---| | `dialog` | Centered, over everything | A short question, a confirmation, one form | | `sheet` | Attached to the right edge at full height, with the workspace still usable behind it | A list you read while you work, details about a row | | `drawer` | A band across the bottom | A log, a wide table, anything short and wide | The app draws the frame, the title and the close button. The morph fills the body with the same blocks a panel uses, and its actions become buttons at the bottom. A sheet leaves the rest of the window usable. A dialog or drawer blocks the window until you close it. ### Extensions, blocks in the app's own places There are three ways a morph can appear in the app: - A `place` asks the app for room, and the app decides where. - A **slot** replaces a part the app would normally draw. - An **extension** names an exact place in the app and adds blocks there, while the app keeps everything it already shows. It only adds. ```json "extensions": [ { "id": "mission-desk", "target": "workspace.tab", "title": "Mission desk", "icon": "radar", "blocks": [ { "kind": "list", "from": "missions", "select": true } ] }, { "id": "mission-strip", "target": "chat.header", "title": "On mission", "blocks": [ { "kind": "text", "text": "{{state.mission | default:idle}}", "size": "s" } ] } ] ``` | `target` | Where the blocks appear | Shape | |---|---|---| | `workspace.tab` | A tab next to **My work** and **My tools**, with its own back/forward history. Opening it never starts a conversation and never replaces work in progress. | a page | | `titlebar.after` | The top bar, next to the **Panels** menu. For buttons and readings that belong with the window controls. | one row | | `work.header` | The strip above the current work view. A status line about what the workspace is doing now. | a column | | `work.footer` | Below the work view and everything on the page. A total, a summary, a next step. | a column | | `files.after` | The bottom of the file sidebar, under the tree. A branch reading, a checklist about the files in front of you. | a column | | `pane.header` | The strip that names a chat when chats are **side by side**. See [Side by side](#side-by-side). | one row, **per chat** | | `chat.header` | Above the messages, under the title bar. Context for the conversation you are reading. | the chat column | | `chat.footer` | Below the messages and above the composer. What to do next about what was just said. | the chat column | | `composer.before` | Between the messages and the input box. Chips, pickers and counters you read while typing. | the chat column | | `composer.after` | Under the input box. Hints, budgets, a checklist before sending. | the chat column | | `context.before` | Above the context pane's tabs, on the right. What this chat is holding, shown before whichever tab is open. | a column | | `tools.before` | Above the built-in tool list, where a morph's controls sit at the same level as the app's. | a column | | `tools.after` | Under the built-in tool list, for secondary controls that should not crowd the top. | a column | | `status.after` | The bottom bar, after the app's own readings. A chip, a count, a small button. | one row | The app decides the **shape**, not the morph. The same blocks become a column in a pane, one shortened row in a bar, or a block at reading width in the chat column. The morph says *what* to show, and the place decides how it looks. The list of places is **fixed**. A target that is not in this list cannot be used, so an extension can never reach into an arbitrary part of the window. These rules make an extension safe to leave on: - **You turn it on.** Turning on the morph shows its panel. Each extension is listed separately in **My tools** with its place and blocks, and stays off until you turn it on there. One switch per extension, not one per file. - **It only adds.** Nothing the app shows in that place is moved, hidden or renamed. The extension sits next to it. That is the difference from a slot, which replaces and so always has a restore button. - **The same checks as everything else.** Blocks are checked the same way, and `{{holes}}` are filled in by the app. A `view` in an extension is custom code: it counts toward reach, needs agent-layer approval, and is dropped when the organisation's `cells.views` policy blocks views. So a live extension may show fewer blocks than the file declares, and the card says so. - **One morph, several places, one state.** The app tracks each extension as `${cell id}:${extension id}`. A morph can put a board in `workspace.tab` and a one-line summary in `chat.header`, both reading the same `state` and using the same declared `intents`. They never get out of sync, because there is only one morph. - **A page is a destination.** `"open": "extension:<id>"` on any control (a row action, a toolbar button, a trigger, an intent, a shortcut) opens the morph's `workspace.tab` page, with the same history and back button as a built-in tab. It never turns a page on: a page you switched off shows a notice with its switch. A place that is not a page cannot be opened this way, and the app shows a hint instead. The agent can use and screenshot an extension the same way as a panel: `cells press <id> "<button label>"` finds a control inside an extension, and `cells shot <id> widths="extension:<ext>"` draws that one extension at its place's width. ### The engine as a source, and buttons that act A pulse's `url` can read data from Empryo itself: - **Git and files:** `engine://git/changes`, `git/branches`, `git/log`, `worktrees`, `diff/changes` - **Sessions and history:** `sessions/recent`, `memory/recent`, `history/recent`, `review/ledger` - **Agents and tabs:** `agents/background`, `agents/custom`, `tasks/open`, `tabs/open`, `attention`, `desks`, `cells/live` - **Code map and tools:** `genome/stats`, `genome/active`, `errors/recent`, `mcp/servers`, `skills/installed`, `hooks`, `usage/models`, `lsp/servers` - **Orchestration:** `orchestration/runs` (every run: `status`, `done`/`total` nodes, `tokens`, `live` agents, and a paused gate's question and `options`), `orchestration/live` (one row per node of every live run: `state` idle/running/ok/fail/gate/detached, `steps`, `tokens`, `model`, `lastTool`, `edges`, enough to draw the run as a graph) - **Agent messages:** `link/rooms` (councils and debates between agents: `members`, `topic`, `last` line), `link/traffic` (recent messages between agents: `from`, `to`, `room`, `text`, `files`) These rows are the app's own data. They use the same templates. A "This workspace" morph that lists your uncommitted files next to your MCP servers takes six lines. A control whose prompt **is** a command runs that command: `{ "label": "Routing", "prompt": "/agent-features" }` opens the routing settings, `"/review"` starts a review, and `"/usage"` opens the usage panel. It goes through the app's own command handling, so nothing is written into the composer and nothing waits for Enter. If the app has no handler for that command, the prompt goes into the composer and you decide whether to send it. An action, row or toolbar button with `send: true` sends its prompt right away instead of placing it in the composer. Slash commands work too, so a morph can drive Empryo's own commands: `{ "label": "Review my changes", "prompt": "/review", "send": true }`. ### Every host Only the desktop app draws a morph's panels. The agent layer (the `cells` tool, the morph's instructions, lookups and guards) works the same in the terminal UI and in `--headless` runs. In the terminal UI, `/cells` lists morphs, approves or revokes an agent layer, and turns a morph on or off. From a script, `empryo cells <list|approve|revoke|on|off> [id]` does the same. One approval covers every way you run Empryo. ### Signed morphs A morph can carry an Ed25519 `signature` over its content (everything except `signature`, `source`, `enabled` and `state`). The Cells & Morphs panel shows: - **Signed by Empryo** for a key Empryo ships - **Signed · key …** for any other key - **Signature invalid** when the file changed after it was signed Signatures matter when your organisation requires them (see [Organisation policy](#organisation-policy)). Never edit the `signature` field by hand. ### Where morphs live, and sharing A new morph is **yours in every repository by default**: it is saved in `~/.empryo/morphs/*.json`, and the panel shows "every project" next to it. A morph about one repository (its board, its tests, its deploys) belongs in that repository's `.empryo/morphs/*.json`, where it overrides a global morph with the same id. `.cells/*.json` is committed for the whole team. You can move a morph between the three from its card. To share a morph, copy its file. To install one, use **Start from… → Install from GitHub…**, or ask the agent: ``` install proxysoul/Empryo/morphs/github-queue.json ``` **Start from… → Directory** lists the public directory (`morphs/index.json` in that repository). The starter morphs are also built into the app, so they work offline. Only `raw.githubusercontent.com` is fetched. The file is checked before it is saved, and it records a `source` (URL, fingerprint, time) so the panel can show where it came from. An installed morph's agent layer waits for approval like any other. Starter morphs: https://github.com/proxysoul/Empryo/tree/main/morphs. A morph can also come from an **A2UI** message ([a2ui.org](https://a2ui.org), a format for agent-generated UI). Paste the JSON and the panel converts Text, Row, Column, Button, TextField and Tabs into blocks, and the data model into `state`. **Copy as A2UI** exports a morph for any A2UI client. ### Reach Before you turn a morph on, it shows its **reach**: everything it can touch. Reach is worked out from the file itself, so a morph cannot under-report it. It lists the hosts the morph talks to, whether it gives the agent rules, how many lookups and guards it has, whether the agent can write its state, and how many places can put a prompt in the composer. A lookup whose host is a `{{hole}}` is listed as "any host, refused". ### What reaches the model Pulse rows are built from `map` templates, so only the fields the morph names are sent. Lookups work the same way with `map`, or with `pick`, a list of dot paths that are the only fields sent. If neither is set, the raw JSON is sent, cut at 12,000 characters. Every lookup result is wrapped as `<lookup-result cell=… tool=… host=…>` with a note that it is data, not instructions. No text in a morph can close that wrapper early. ### Naming the facts a row carries Some `map` keys fill a part of the card: `text`, `detail`, `badge`, `group`, `tone`, `href`, `id`, `desk`, `tab`, `image`, `attach`, `icon`, `prompt`. **Any other key is a named fact on the row.** You can use it as `{{owner}}` in a run's prompt, as `{{state.selected_owner}}` after the card is clicked, and as the `pathField` for writing back to a file. These two forms do the same thing: ```json "map": { "text": "{{title}}", "group": "{{status}}", "path": "{{path}}", "owner": "{{owner}}" } "map": { "text": "{{title}}", "group": "{{status}}", "fields": { "path": "{{path}}", "owner": "{{owner}}" } } ``` Use `fields` when there are several and you want to keep them apart from the card's own parts. If the app cannot use a feed at all (for example, a map value that is not a template), the feed is **dropped with a visible notice**. The morph's card says how many feeds were lost, instead of showing an empty board with no explanation. ### Example: a morph the agent works inside ```json .empryo/morphs/sprint.json { "schemaVersion": 1, "name": "Sprint", "instructions": "Say which ticket a change belongs to. Run the unit tests after editing src/.", "state": { "phase": "triage", "done": 2, "total": 5 }, "surface": { "title": "Sprint", "blocks": [ { "kind": "progress", "label": "Done", "value": "{{state.done}}", "hint": "{{state.done}} of {{state.total}}" }, { "kind": "field", "label": "Ticket", "placeholder": "PROJ-142", "prompt": "Work on ticket {{value}}." } ] }, "lookups": [ { "name": "ticket", "desc": "One ticket by key", "url": "http://127.0.0.1:4000/rest/api/3/issue?key={{key}}", "params": [{ "name": "key", "desc": "PROJ-123" }], "map": { "text": "{{key}} {{fields.summary}}", "badge": "{{fields.status.name}}" } } ], "guards": [ { "tool": "shell", "match": "*rm -rf*", "decision": "deny", "reason": "No recursive deletes here." }, { "tool": "edit_file", "match": "infra/**", "decision": "ask", "reason": "Infra edits need a second look." } ] } ``` With this morph on: - "look up PROJ-142" makes the agent call the `ticket` lookup. - When the agent finishes a ticket, it runs `cells set` with `done: 3`, and the progress bar moves. - A shell command containing `rm -rf` is refused, with the reason. - An edit under `infra/` stops and asks for your permission. ## Shapes What you build is up to you. These are examples of what people have made, not a fixed menu: - A **control deck** with no network: title-bar buttons and `/commands` for requests you repeat, a shortcut for the one you use every hour, a welcome suggestion for the morning. - A **live board** from any JSON the app can fetch without logging in: a public repository, a package registry, a status page, a CI service, or a service running on `localhost`. A private tracker can get there through your own proxy or aggregator. - A **project cockpit**: the project's real test suites, release steps and doc pages as rows, with actions for each. - A **focus theme**: colors, a welcome message, a status chip. - A **reference card**: key/value links and one copy button. - A **watcher**: triggers that tell you when docs change, a feed updates, or a turn ends. - A **deck**: a custom view with buttons that run intents, a rail of live rows, and agents started from whatever is on screen. **Start from…** in the catalog installs one of these, switched off, and asks the agent to adapt it for you. ## Example: the one-page work hub Tickets, pull requests and docs in one panel, so the agent can work on a ticket without you switching apps. ```json .empryo/morphs/work-hub.json { "schemaVersion": 1, "name": "Work hub", "accent": "#60a5fa", "surface": { "title": "Today", "body": "{{pulses.jira.count}} tickets · {{pulses.prs.count}} PRs", "actions": [ { "label": "Plan my day", "prompt": "Look at my board and propose an order for today.", "tone": "primary" } ] }, "status": { "text": "{{pulses.jira.count}} tickets", "tone": "accent", "prompt": "Walk me through my board." }, "pulses": [ { "id": "jira", "url": "http://127.0.0.1:4000/rest/api/3/search?jql=assignee%3Dcurrentuser()", "every": 60, "root": "issues", "map": { "group": "Jira · {{fields.status.name}}", "text": "{{key}} {{fields.summary}}", "badge": "{{fields.priority.name}}", "href": "https://acme.atlassian.net/browse/{{key}}", "prompt": "Work on ticket {{key}} from my board: read it, find where it lives in this codebase, propose a fix plan." } }, { "id": "prs", "url": "https://api.github.com/repos/acme/app/pulls", "every": 60, "root": "", "map": { "group": "Pull requests", "text": "#{{number}} {{title}}", "detail": "{{body}}", "href": "{{html_url}}" } } ], "commands": [ { "name": "ticket", "desc": "Work on a ticket from the board", "prompt": "Work on this ticket from my board: read it, find where it lives, propose a fix plan." } ], "toolbar": [ { "label": "Plan my day", "glyph": "list", "prompt": "Look at my board and propose an order for today." } ], "triggers": [ { "on": "pulse.changed", "pulse": "jira", "notify": "{{added}} new ticket(s)", "stage": "Look at the new tickets on my board." } ] } ``` The Jira pulse points at `127.0.0.1:4000` on purpose. Jira's API needs a login, and this example keeps the login out of the app, so the feed comes from something you run: your own aggregator, a proxy, or a script that writes JSON. (You can also send a token with `{{secret:NAME}}`, see [Credentials](#credentials).) GitHub's public API needs no login, so that pulse connects directly. With this morph on: - Type `fix PROJ-142`. The row for PROJ-142 (title, link, the PR that closes it) is included in the turn, so the agent starts with the ticket. - Type `/ticket PROJ-142`. The command's prompt is sent with the key added. - Ask "why is my jira pulse empty?". The agent calls `cells` and reads the pulse status: `ok 4 rows`, `error: HTTP 403`, `error: no rows matched the map`, or `blocked`. ## Triggers | Field | Meaning | |---|---| | `on` | **Agent events**: `turn.start`, `turn.done` (success), `turn.stopped` (you stopped it), `turn.failed`, `tool.done`, `file.edited` (the agent's own edit), `agent.asks` (a question or a permission request), `review.done`, `goal.done`, `agent.done` / `agent.failed` (a background agent), `plan.reviewed`, `compaction.done`, `model.changed`, `idle` (with `after` minutes, default 15). **App events**: `session.start`, `files.changed`, `error`, `tab.open`, `tab.close`, `window.focus`, `window.blur`. **Pulse events**: `pulse.changed`, `pulse.error`. **This morph**: `clock` (with `at`/`days`), `timer.done`, `cell.held`. | | `match` | A filter. For `files.changed` / `file.edited`: a glob over the paths (`*.md` matches a file name anywhere, `src/**` a folder). For `tool.done`: the tool name (`project`, `edit_*`). For `review.done` / `goal.done`: the verdict (`FAIL`). For `plan.reviewed`: the action. For `model.changed`: the model id. For `agent.done` / `agent.failed`: the agent's title. | | `pulse` | For `pulse.*` events: which pulse. Leave it out for any pulse of this morph. | | `notify` | A notice, starting with the morph's name. Click it to place the prompt, if there is one. | | `stage` | A prompt for the composer. Only placed when the composer is empty and no turn is running. | | `state` | A change to this morph's state, in the same form as a button's (`{ "inc": { "key": "turns" } }`, `{ "set": { "last": "{{tab}} · {{cost}}" } }`). Text is filled in from the event. | | `call` | **Send a request**: an HTTP call, a Slack or Discord webhook, n8n, a deploy hook. Set `url`, `method`, `headers`, `body` (text filled in from the event) and `done`. It runs under the same rules as a pulse. Its host and method are part of the morph's reach, approved with the agent layer, and held again when they change. A trigger's call does not ask each time. The cooldown limits how often it runs. | | `open` | `"surface"`, a popup id, or `"extension:<id>"` (the morph's own `workspace.tab` page): bring the morph forward when the event happens. | | `after` | For `idle` only: minutes without a turn, 1 to 240 (default 15). Set `cooldown` to about `after × 60` for one reminder per idle period. | | `cooldown` | Seconds between runs of this trigger, 5 to 3600, default 30. Across the whole app, two trigger runs are at least 3 seconds apart. | Available values: `{{name}}` and `{{tab}}` always. `{{cost}}`, `{{duration}}`, `{{files}}`, `{{tools}}`, `{{steps}}` on `turn.done`. `{{error}}` on `turn.failed`, `turn.stopped` and `error`. `{{tool}}`, `{{ok}}`, `{{summary}}` on `tool.done`. `{{path}}`, `{{count}}` on file events. `{{question}}` on `agent.asks`. `{{verdict}}`, `{{reason}}` on `review.done` and `goal.done` (plus `{{iteration}}`). `{{title}}`, `{{task}}` on `agent.*`. `{{action}}` on `plan.reviewed`. `{{before}}`, `{{after}}` on `compaction.done`. `{{model}}` on `model.changed`. `{{pulse}}`, `{{added}}`, `{{removed}}`, `{{count}}` on `pulse.changed`. `{{pulse}}`, `{{error}}` on `pulse.error`. The first load of a pulse does not count as a change. ```json "triggers": [ { "on": "turn.done", "call": { "url": "https://hooks.slack.com/services/…", "body": { "text": "{{tab}} finished in {{duration}} ({{cost}}, {{files}} files)" } }, "state": { "inc": { "key": "turns" } }, "cooldown": 5 }, { "on": "review.done", "match": "FAIL", "notify": "Review failed: {{reason}}", "sound": "error", "open": "surface" }, { "on": "agent.asks", "system": true, "notify": "{{tab}} needs you: {{question}}" }, { "on": "idle", "after": 20, "cooldown": 1200, "stage": "What should I pick up next from my board?" } ] ``` ## Toolbar Up to six buttons. `label` is the tooltip. `glyph` is one of `sparkles zap bug rocket book git list bell chart globe shield wrench clock flag star terminal`, or any Lucide icon name. An unknown glyph shows the morph's icon. Each button has one of `prompt`, `href`, `copy` or `open` (a popup id). ## Icons You can use any [Lucide](https://lucide.dev/icons) icon by its kebab-case name: `music`, `git-pull-request`, `circle-check`, `triangle-alert`. Put `icon` on an action, a board row, a stat, a badge, a `kv` row, a `links` tile, a tab, the panel (`surface.icon`, replacing the morph's icon) or the status chip. The app includes the whole set, so a morph only names an icon and never includes an SVG. A pulse map can choose a row's icon from the data: `"icon": "{{state | map:open=circle-dot:merged=git-merge:closed=circle-x}}"`. An unknown name shows no icon, but the label next to it still appears. ![A notebook morph in its own pane: a field that stores what you type, a list you edit in place, a focus timer, a toggle, a slider. No prompts sent.](https://empryo.com/media/morphs-notes.webp) *A notebook morph in its own pane: a field that stores what you type, a list you edit in place, a focus timer, a toggle, a slider. No prompts sent.* ## Blocks `stats`, `progress`, `badges`, `divider`, and the blocks below. Text and spacing options: `text` takes `size` (`s`/`m`/`l`), `mono` and `tone`. `kv` takes `boxed` (each row in its own box), `align: "right"` and `mono`. A row takes `tone` (outlines that row), `tag` (a small uppercase chip at its end, like "TAKEN", which can be a template) and `mono`. These options let you lay out a narrow inspector panel cleanly: a small uppercase `heading`, boxed key/value rows with right-aligned values, one highlighted and tagged row, a monospace caption, and a `buttons` row at the bottom. | Block | Fields | |---|---| | `field` | `label`, `placeholder`, `button`, `prompt` with `{{value}}`. Enter or the button places the prompt with the typed value. | | `select` | `label`, `options[]` of `label` + `prompt` or `href`. | | `table` | `columns[]` (up to 5), `rows[][]` (up to 12). Cells can be templates. | | `list` | `items[]` (board rows, up to 400), `virtual`, `height`. **From a feed** with `from: "<pulse id>"`: that pulse's rows, kept up to date. `where: { "<fact>": "<template>" }` keeps rows whose fact equals the value. `sort: "rank"` / `"-rank"`, `limit`. `select: true` makes a click write `state.selected*` exactly like a canvas card, so an inspector next to the list follows it. Every field of a fixed row can be a template (badge, group, lane, href, fields). | | `heading` | `text`, `level` `s`/`m`/`l`, `caps`, `hint`, `icon`, `tone`. A section title for a panel. `s` + `caps` gives the small uppercase label often used above each box in an inspector. | | `button` | Any action (`call`, `run`, `desk`, `open`, `state`, `prompt`/`send`, `href`, `copy`, `attach`, `layout`) plus `label`, `icon`, `tone` `primary`/`secondary`/`quiet`/`destructive`, `width` `full`/`auto`. A button **anywhere a block can go**: the inspector, the rail, a grid, a popup. Inside an inspector, its `{{holes}}` read the selected card (`{{id}}`, `{{text}}`, every named fact) and `{{state.*}}`. | | `buttons` | `items[]` (up to 6 actions), `align` `start`/`end`/`stretch`. A row of buttons, for example a wide primary one and a quiet one next to it. | | `tabs` | `tabs[]` of `label` + `blocks[]` (simple blocks only, up to 6 tabs). | | `chart` | `variant` `bars` or `line`, `label`, `points[]` of `label` + `value` (a number or a template), `max`. Drawn by the app. | | `frame` | `src` (`https://…`, or `ui://server/app` for an **MCP App**), `title`, `height`. A sandboxed iframe: it cannot access the app and cannot navigate away. | | `markdown` | `text` (up to 8000 characters), shown with the chat's own markdown renderer. For example a README in a panel. Templates work. | | `image` | `src` (https), `alt`, `href`, `height`. One image, loaded without sending a referrer. Its host counts toward reach. | | `links` | `items[]` (up to 12) of `label` + `href` or `prompt`, `glyph`, `hint`. A set of shortcut tiles. | | `countdown` | `label`, `until` (ISO date and time), `done`, `tone`. Counts down, warns in the last day, and shows `done` once the time has passed. | | `levels` | `live` (true/false or a template), `bars` (4 to 64), `values[]` (0 to 100, optional), `label`. An equalizer strip that moves while `live` is true. Without `values` it is decorative. With them it shows real levels. | | `callout` | `title`, `text`, `icon`, `tone`. A colored box with an icon: "Build failed", "3 reviews waiting". | | `avatars` | `size` `s`/`m`/`l`, `items[]` (up to 12) of `name`, `image`, `hint`, `href`. A stack of people, with initials when there is no picture. | | `steps` | `items[]` (up to 12) of `label`, `hint`, `icon`, `state` `done`/`active`/`todo`/`error` (a template works: `"{{status | map:ok=done:running=active}}"`). A pipeline drawn as a line of steps. | | `accordion` | `items[]` (up to 8) of `title`, `hint`, `icon`, `open`, `blocks[]` (simple blocks, up to 8). Sections that fold open and closed. The first is open unless `open` says otherwise. | | `view` | `module` (up to 64 KB, an inline JavaScript module), `css` (up to 16 KB, limited to the view), `title`, `height`. **Custom code**: the morph's own component, shown in the panel with the app's building blocks. It can trigger actions (`intent`, `desk`, `popup`, `select`, `refresh`) and use the app's theme (`tokens`, scoped `css`). See [Views](#views-the-free-mode). | `divider` takes an optional `label` ("Today") shown in the line. ### Views, the free mode The morph format is kept small on purpose. A `view` block is for anything it cannot express. The morph includes a JavaScript module, and the app loads it and shows the component it returns **inside the panel**. It uses the same page, the same theme and the app's own UI components. There is no iframe and no server. The module exports one function. That function receives the tools the app shares and returns a component: ```js export default ({ html, hooks, ui, icon }) => function Tally({ cell, setState, stage, notify }) { const n = cell.state.n ?? 0; return html` <${ui.Card}> <${ui.CardHeader}><${ui.CardTitle}>${icon("hash")} Tally: ${n}</${ui.CardTitle}></${ui.CardHeader}> <${ui.CardContent}> <${ui.Button} onClick=${() => setState({ inc: { key: "n" } })}>+1</${ui.Button}> <${ui.Button} variant="outline" onClick=${() => stage(`Summarise my ${n} tallies.`)}>Ask</${ui.Button}> </${ui.CardContent}> </${ui.Card}>`; }; ``` | What the app gives the module | | |---|---| | `h` | `React.createElement` | | `html` | [htm](https://github.com/developit/htm), bound to `h`. JSX-like syntax without a build step | | `hooks` | `useState`, `useEffect`, `useMemo`, `useRef`, `useCallback` | | `three` | [three.js](https://threejs.org), when the view asks for it with `"libs": ["three"]` on the block, or just by mentioning `three` in the source. The app includes it and loads it the first time a view asks. The view never imports it, it receives it, so the approved source stays the only code the morph ships. For example `new three.Scene()`, and a `WebGLRenderer({ canvas })` on a `<canvas>` the view draws, animated from `on()` events. | | `tokens` | The theme as CSS `var(…)` strings: `background`, `foreground`, `card`, `muted`, `mutedBackground`, `border`, `ring`, `accent`, `primary`, `destructive`, `success`, `warning`, `radius`, `fontMono`. Use them in inline styles or in the block's `css`. When the theme changes, they update automatically. | | `ui` | The app's components in its theme: `Button`, `Badge`, `Card`/`CardHeader`/`CardTitle`/`CardContent`, `Input`, `Textarea`, `Switch`, `Checkbox`, `Slider`, `Separator`, `Tabs`/`TabsList`/`TabsTrigger`/`TabsContent` | | `icon(name)` | Any Lucide icon by its kebab-case name | | What the component receives (kept up to date) | | |---|---| | `cell` | `{ id, name, accent, state, pulses, vars }`, the morph's live data. The view redraws on every change, so a new feed row or an agent's `cells set` shows immediately | | `setState(op)` | One state change, in the same form as a button's `state` (`{ set }`, `{ inc }`, `{ append }`, `{ toggle }`, …). It counts as your own edit | | `stage(text, send?)` | Place text in the composer. `send: true` sends it right away, under the same rules as an action | | `notify(text)` | A notice, starting with the morph's name | | `open(href)` | Open an `http(s)` link in your browser | | `intent(name, row?)` | **Run a declared action.** Runs one of the morph's [intents](#intents-hands-for-views) by name, with data from the row you pass in (it fills the `{{holes}}` in the intent's call, run, desk or prompt). The action itself is written in the file and approved as written. The code only chooses which one and supplies the data. Returns `false` if no intent has that name | | `desk(id, row?)` | Open (or go back to) a desk, a tab of its own, for a row | | `popup(id)` | Open one of the morph's popups, or `"surface"` | | `select(row)` | Write `state.selected*` for a row, exactly like clicking a canvas card | | `refresh()` | Fetch the morph's pulses now | | `on(type, cb, opts?)` | **Live engine events.** Subscribe to what the app reports as it happens, the same events its own panels use: `text-delta`, `tool-call` / `tool-result`, `step`, `turn-start` / `turn-done`, `agent-step`, `background-status`, `review-status`, `goal-status`, `task-update`, `context-status`, `pty-data`, `file-edited`, `fs-changed`, `tab-model`, `ask-user`, `plan-review`, `marionette-*`, `genome-status`, `worktree-agent`, `mcp-state`, `notice` / `warning` / `error` and more (`props.events` lists them all). It returns an unsubscribe function: call it inside `hooks.useEffect` and return it. Login flows and internal replies are never sent to views. `opts.scope` is `"tab"` (the default) or `"workspace"`. Both allow the same event names, but a workspace subscription hears every tab in the window, so a mission board can update for work you are not looking at. Without a third argument, the subscription is for the current tab | | `host` | **The tab around the view.** Read the workspace and the composer, and write to the composer with a safety check. See [The host](#the-host-live-context-and-engine-features) | | `cell.rows` | The rows of every pulse, by pulse id. `cell.intents` lists the intent names the file declares | #### The host: live context and engine features `host.version === 1`. **Reading context.** `host.useContext()` subscribes to `{workspace, tab:{id,label,modelId,mode,turnId}, selectedFile}`. It does not update on every keystroke or message. `host.useComposer()` subscribes separately to `{text,epoch,attachments,busy}`. Both return null when the tab or composer is not available. A workspace extension keeps track of the chat tab that opened it and can read that tab's composer. In event handlers, use `host.getContext()` and `host.getComposer()` to read the current values without subscribing. `getComposer()` includes typing that has not been saved yet. The returned objects are copies, not the app's live data. Context never includes credentials, config or message contents. **Writing to the composer.** `host.composer.setText(text, {text:expectedText, epoch:expectedEpoch})` replaces the tab's draft. `appendText` adds to the end (not at the cursor). Both keep attachments and return `{ok:true}` or `{ok:false,reason}`, where the reason is `unavailable`, `busy`, `conflict` or `too-large`. Pass the text and epoch you last read. If the draft changed since then, you get a conflict, and you should not overwrite the newer text. The `epoch` changes when the draft is replaced or discarded, not on every keystroke. Drafts are limited to 200,000 characters. Successful writes update the input without moving keyboard focus or losing a keystroke in progress. These methods never send a prompt. For your own text area, keep a local copy of the text and update it after each successful write, using the current `host.getComposer().text`. Composer updates are delivered in batches, so binding `value` directly to the last `host.useComposer()` result can lose keystrokes. When the text or epoch changes from outside, reload your local copy from the host. The Piano composer example does this. Its local copy is not a second saved draft. **Reading engine data.** `host.engine.read(name,args)` and `host.engine.useQuery(name,args,enabled?)` read orchestration runs, routines, shell jobs, advice, agent-link endpoints, council rooms and room transcripts. Get the exact names from `host.engine.queries` or `cells catalog`. The hook returns `data`, `error`, `isPending`, `isFetching` and a `refetch` function. Visible queries refresh every five seconds and stop while hidden. For token-by-token updates, use `props.on` instead of polling. **Acting on the engine.** `host.engine.act(name,args)` can control runs, add, enable, remove and run routines, stop jobs, and join or post to councils and agent-link rooms. Get the names from `host.engine.actions`. Every action opens a confirmation showing the exact action and arguments, and ownership is checked again before it runs. Results are `{status:"ok",data}`, `{status:"cancelled"}`, `{status:"unavailable"}` or `{status:"error",error}`. Check `data` for the engine's own result. The host fills in tab ids. There are no general-purpose methods for app internals, login or config. A view is still approved code that **runs inside the app, not in a sandbox**. **Examples.** Three example morphs use the host: Orbit deck, Mission desk and Piano composer. Mission desk labels its sprint and team data as sample data. You can replace those rows with HTTP, WebSocket, files or MCP data without changing how the view is mounted. **Hidden tabs.** A hidden workspace tab keeps its component state but pauses effects and live subscriptions. While a view is hidden, or after its tab closes, its host actions are unavailable, and pending refreshes and intents do not resume after the tab is shown again. Return unsubscribe functions from effects, close audio contexts, and dispose of three.js renderers when cleaning up. Effects run again when the tab comes back. **Styling.** A view block can have `"css": "…"`, a stylesheet that only applies inside that view. `.card:hover { border-color: var(--morph-accent) }` works, hover, focus and pseudo-elements need no JavaScript, and nothing affects the rest of the app. The `css` is approved together with the module, because a stylesheet can hide a control. A view that throws an error shows the error in its place. `cells debug` reports what happened to every view: shown, held, blocked (with the policy), or failed (with the message). #### Try the piano composer The Piano composer example replaces the composer with a piano you can type with. 1. Put `piano-composer.json` in your project's `.empryo/morphs/` folder. 2. Open My tools, turn on Piano composer and review its permissions. 3. Under workspace replacements, choose Piano composer for Composer and press **Use here / Retry**. Installing a morph does not select it for you. 4. Type in its Message field or press a piano key. Both edit your current draft. Turn Sound off to keep editing without audio. If you also want the chord strip below the normal input, turn on its `composer.after` extension separately. 5. Choose **Restore stock** to go back to the normal composer, with your draft kept. While a turn is running, the normal input is always used. The example's sprint and team rows are sample data. They do not connect to Jira or Microsoft Teams. #### Intents, hands for views ```json "intents": { "approve": { "call": { "url": "https://hub.example/nodes/{{id}}/approve", "method": "POST" } }, "start": { "run": { "prompt": "Build {{text}}", "loop": true, "maxIterations": 4 } }, "evidence": { "open": "evidence" }, "take": { "state": { "set": { "owner": "{{who}}" } } } } ``` An intent is an action declared once, by name, at the top of the file (up to 16). It can use the same actions a button has: `call`, `run`, `desk`, `open`, `state`, `prompt`/`send`, `href`, `copy`. Its `label` defaults to its name. A view runs one with `intent("approve", { id: node.id })`. A `button` block or an action cannot (they have their own action). Intents count toward reach exactly like buttons: a call's host, a run and a desk all count, are approved with the agent layer, and are held again when they change. So custom code can trigger actions without weakening any check. It picks **which** declared action to run and supplies data. It can never invent a host, a header or a prompt the file did not write. A view is **code that runs inside the app**, not in a sandbox. It runs in the app's own process and can reach whatever the app can. That is the price of drawing directly in the app instead of in a frame. So views are checked even more strictly than a helper's command: - A view counts toward reach ("runs its own code in the app"). - The morph's agent layer is held until you approve **that exact code** in Cells & Morphs. Any change holds it again. - An organisation can require a signature or turn views off with `"cells": { "views": "any" | "signed" | "off" }` in the global config. A blocked view is dropped and the card says why. Approving a view means trusting whoever wrote it. For code that must be isolated, use a `frame` with an MCP App instead. A view that throws an error only breaks its own block, not the whole panel. The module has no imports: everything comes from what the app shares, so the same file works in any Empryo version that provides those tools. If a view needs a server, use a `frame` with an MCP App. The rule that keeps the format small: **data by default, a view when data is not enough, hosted code when a view is not enough.** Row keys that the card uses directly are `id text detail badge group lane progress tone href prompt send icon image attach promoted desk tab actions fields`. Every **other** map key becomes a named fact in `fields`. `title` is not reserved: it is a fact like `owner`. `stats` takes a `variant`: `tiles` (default), `hero` (one big number) or `inline` (a strip). A row can have `promoted: true` to be highlighted when it arrives, without changing its position. Right-click a row to pin it, and Shift+right-click to hide it. Both are stored only on your machine. A `progress.value` can be a template that resolves to a number. `surface.virtual: true` makes a long board draw only the visible rows. ### Nothing is enforced Every part of the frame around a panel is optional: - `"chrome": "plain"` removes the card frame. - `"header": false` removes the header: the morph's icon, subtitle, refresh and fold buttons, and on a canvas the app's own header with its card count, model picker, zoom and Chat button. - `"footer": false` removes the footer (helper and pulse status, shortcut hints). - `"chrome": "bare"` removes all of it, so the panel is exactly the morph's blocks, edge to edge. On a canvas, the card count only shows for a board the app draws, and the model picker only for a morph that can start a run. You always keep a way back: the Cells & Morphs panel, `/canvas`, and the title-bar button. ### Backdrops `surface.backdrop` is an image (https, or `http://127.0.0.1`), or a template that resolves to one: `"{{pulses.np.rows.0.image}}"`. The app shows it blurred and dimmed behind the panel, slowly drifting, and fades to the next picture when it changes. For example, the cover of what is playing, a film poster, or a chart of the current run. `pigment.backdrop` does the same behind the whole chat while the morph is on. Nothing is shown until the template resolves to an image. The image's host counts toward reach. ## Helper A morph that needs something from your computer (Spotify's current track through AppleScript, a build's status, a sensor) can declare a program that provides it: ```json "helper": { "run": "bun .empryo/morphs/now-playing.ts", "port": 4877, "hint": "reads Spotify over AppleScript" }, "pulses": [ { "id": "np", "url": "http://127.0.0.1:4877/", "every": 5, "map": { "text": "{{title}}", "image": "{{art}}" } } ] ``` The app manages the helper for you: - It starts the helper when the morph turns on and stops it when the morph turns off or goes to sleep. - It restarts the helper if it crashes, waiting longer after each crash, and **restarts it when its script file changes**, so you can edit the script without toggling anything. - It passes `PORT`, `EMPRYO_CELL` and `EMPRYO_PARENT_PID` as environment variables. - The panel's footer shows `helper on :4877`, `helper held`, or `helper stopped`, with the last line of its error output when you hover. `cells debug` prints the end of the error output. - A helper can answer `304` to `If-None-Match`. That means "unchanged", not an error. - Helpers left behind by a previous app session are cleaned up first, and a declared `port` held by an old helper is freed. You never need to open a terminal for it. A helper is code from the repository running on your machine, so you must approve the morph's reach in Cells & Morphs before it starts. The `run` line is part of that approval, and a changed line holds the helper again. `run` must be one interpreter (`bun`, `node`, `python3`, `python` or `deno`), one script inside the project (or next to a global morph in `~/.empryo/morphs`), and plain arguments. No shell, no pipes, no `..`. When the agent builds a morph that needs a helper, it writes the script next to the morph. ## Pulses A pulse (a live feed) is a URL, how often to fetch it, where the list is in the response, and how to turn each item into a row. | Field | Meaning | |---|---| | `url` | `https://` to any host, or `http://` only to `127.0.0.1` / `localhost`. Local network addresses, cloud metadata addresses and credentials in the URL are not allowed. | | `every` | Seconds between fetches: 15 to 3600 for a remote host, and 3 or more for `127.0.0.1` and `engine://` (where the only cost is your own machine's). Values outside the range are adjusted to fit. | | `root` | The dot path to the list in the response: `issues`, `data.page.items`. Leave it empty when the response is the list. A single object becomes one row. A list of plain values (`["a","b"]`) is mapped with `{{value}}`. | | `map` | Templates for each row field. `{{dot.path}}` reads from the item: `#{{number}} {{title}}`. `text` is required. | | `limit` | Rows per pulse, up to 40. | The app fetches with `If-None-Match`, so an unchanged feed costs only a `304` response. A failed fetch keeps the last good rows and reports the error. Responses over 512 KB and requests that take more than 8 seconds fail. Redirects are followed up to three times. Each redirect must pass the same address rules as the original URL, and a public host can never redirect the app to a local address: `localhost` is only used when the file names it. A host name that resolves to a private or local address is refused, on every redirect. ## Templates These fields can contain `{{holes}}`: `status.text`, `surface.body`, stats `value` and `hint`, progress `hint`, `text` blocks, `kv` values. | Hole | Value | |---|---| | `{{pulses.<id>.count}}` | How many rows the pulse produced | | `{{pulses.<id>.status}}` | `ok`, `loading`, `error`, `blocked`, `idle` | | `{{pulses.<id>.rows.0.text}}` | Any field of any row | | `{{name}}` | The morph's name | ## Template holes and filters A hole is a dot path into the row (`{{fields.summary}}`) or into the morph's context: `{{pulses.<id>.count}}`, `{{pulses.<id>.rows.0.text}}`, `{{state.<key>}}`, `{{name}}`. Filters run from left to right. The set is fixed: `upper`, `lower`, `trim`, `truncate:40`, `default:, `, `plural:ticket` (or `plural:person:people`), `pct:state.total`, `ago`, `date`, `compact`, `map:open=🟢:closed=⚪`, `pick:a:b:c`, `shuffle:a:b:c`. For example, `{{pulses.jira.count | plural:ticket}}` gives "3 tickets". An unknown filter makes the hole empty. No code is ever run. `pick` chooses one option **based on** the value: the same value always gives the same option, and a different value may give a different one. `shuffle` picks a random option each time the value changes, never the same one twice in a row, and keeps it while the value stays the same. Both let the look follow the data without a helper or extra state: ```json "pigment": { "tintApp": true, "theme": "{{pulses.np.rows.0.text | shuffle:tokyo-night:nightfox:ember:vesper:nordic:synthwave}}" } ``` Here every new song picks a new app theme, and the same song keeps it. Theme ids are the ones `/theme` lists. A pulse that fails waits longer before retrying: twice the interval after each failure, up to ten minutes, with some randomness. It returns to its normal interval after the next success. The panel's refresh button fetches immediately. ## Limits When a morph goes over a limit, the app shortens long text (with an ellipsis) and drops extra items. A single broken block, row, action or pulse is dropped too. The rest of the morph still works. | Field | Limit | |---|---| | `name` / `description` | 60 / 240 characters | | `surface.title` / `body` | 120 / 400 characters | | `surface.blocks` | 24 (also `rail` and `inspector`). A `view` block's `module` up to 64 KB, its `css` up to 16 KB. | | `surface.actions` | 8. Each has one action. `intents`: 16. | | `surface.items` | 400 rows on the board. Named facts per row: up to 24, each up to 2 KB. A long fact is shortened **on its own**, without dropping the row's other facts. | | `pulses` | 8. `limit` up to 120 rows from a remote host, up to 400 from local, `engine://`, `files://` or a socket. Response body up to 512 KB remote, 2 MB local. An empty response is `ok, 0 rows`. Only a response with items where none could be mapped is an error. A 304 means "unchanged". | | `kanban` | 12 columns, 24 lanes. `lanes: []` means no lanes. | | `commands` | 6. `name` is 2 to 24 letters, digits or dashes. `desc` and `prompt` are both required: a command sends a prompt, so one written with `open` or `call` instead is dropped. A built-in command with the same name wins. If two morphs use the same command or shortcut, the first file keeps it. | | `reflexes` | 8. `keys` is two of `mod`, `shift`, `alt` (or `alt` alone) joined with `+`, then one letter or digit. `mod+<key>` alone is reserved for the app and the operating system. `mod+shift+c/f/n/p/s/t/v/w/z` are refused. | | `toolbar` | 6 | | `triggers` | 12 | | `popups` | 6, each with up to 12 blocks and 6 actions | | `extensions` | 6 per morph, each with up to 12 top-level blocks. `id` must match `^[a-z0-9][a-z0-9-]{0,23}$` and be unique within the morph. Every extension is off until you turn it on in **My tools** | | `palette` | 12 | | `instructions` | 4000 characters | | `state` | 32 keys, each a string, number or boolean | | `lookups` | 6, each with up to 6 parameters. Response up to 256 KB, 8 seconds, no redirects. | | `guards` | 12. `taint: "<host glob>"` limits a guard to calls that carry data from that host | | `welcome` | 6 | | `minRuntime` / `fallbackText` | A morph written for a newer app shows its fallback text instead of nothing. The current app is runtime 2. | Row and action links open in your browser, so they can point anywhere `http` or `https` reaches. `javascript:`, `file:` and `data:` links are dropped. ## Manage **Cells & Morphs** lists every morph with what it adds, its status (live, off, or broken with the reason) and an on/off switch. You can search, filter by status or by morph, and delete with a two-step confirmation. **Share** copies a morph's JSON. **Import from clipboard** installs one. **Start from…** installs a template, switched off, and opens the agent to fill in your URLs. The `/morphs` row in the composer shows how many morphs are live and names the first broken one. ## How morphs compare A morph combines several things in one file: data from outside, a panel inside your workspace, edits you make directly, state that is saved with the repository, and an agent that sees and works with the same state. Other tools offer some of these pieces: | System | What overlaps | What a morph adds | |---|---|---| | [GitHub Copilot canvas extensions](https://docs.github.com/en/copilot/how-tos/github-copilot-app/working-with-canvas-extensions) | The closest match: a side panel that works both ways, with saved state and capabilities the agent can call, committed to the repository (`.github/extensions`) and shipped in plugins | A canvas is **code** the agent generates (`extension.mjs` + `package.json`) and the app runs. A morph is data the app checks. That is why a morph can show its reach before you turn it on, hold its agent layer for approval, be signed, be hidden from the agent and set guards. It needs no build step, no dependency install, and no trust in generated JavaScript. A morph can also change the whole app (chips, commands, shortcuts, triggers, welcome), not just one panel. | | [Cursor canvases](https://cursor.com/docs/agent/tools/canvas) | Saved React components next to the chat, regenerated by skills, shared as read-only snapshots | Also agent-generated code, created from a conversation. The state is the component itself, not a shared object the agent reads back through a tool. | | [MCP Apps](https://blog.modelcontextprotocol.io/posts/2026-01-26-mcp-apps/) | Interactive views, forms, live state and tool calls inside an AI client | A morph is JSON, saved, tied to a repository and drawn by the app itself. It shapes the workspace *and* the agent. A morph can also **host** an MCP App (a `frame` with a `ui://` source) when a view really needs code. | | [A2UI](https://github.com/google/A2UI) | Safe JSON that is drawn with native components | A2UI is a format for UI that agents generate. A morph is an installed, lasting tool with feeds, rules, guards, state, commands and triggers. Cells & Morphs can import and export A2UI. | | Cursor plugins | Bundles of rules, skills, agents, commands, MCP and hooks | One shared file that covers the UI, visible state, live feeds, safety rules and agent context, approved as written, and hidden from the agent when private. | | Appsmith / ToolJet / Retool | Low-code boards, forms, dashboards and API connections | Those are separate internal apps. A morph lives inside your coding workflow and inside the agent's context. | | Backstage plugins | Developer dashboards and integrations | Portal plugins are built for whole organisations and need a build. A morph is one file per repository. | | VS Code extensions | Any panel, command or integration | Those need TypeScript, packaging, APIs, reloads and broad trust. A morph is one JSON file with no server and no extension code, drawn by the app, and it works locally. | Each kind of access has its own check. An approval fingerprint controls the agent layer and the keys a feed may send. [Reach](#which-sessions-morphs-reach) and [hidden](#hidden-from-the-agent) control what a model can see. Signatures show who wrote it. ## What a morph cannot do - Run code without your approval. Most of a morph is data, and the app draws every component. The exceptions are a `helper` and a `view` block. Both run only after you approved that exact command or code. - Send a message, click or type by itself. - Send a message or start work when an event happens. A trigger can notify you or offer a prompt, and you press Enter. - Reach the network from the app except through its feeds, calls and lookups. - Turn itself on. A morph the agent installs starts **off**. You read its reach in Cells & Morphs and turn it on. - Freeze the agent. A guard pattern that could run forever is refused instead of run. - Break the app. Each part is drawn separately: a broken morph shows nothing and the error is logged. --- ## Profiles Canonical: https://empryo.com/docs/tools/profiles > Save a whole way of working as a profile: model, mode, instructions, tools, skills and model routing. Pick it for a tab in one click, turn it off the same way. A profile is a ready-made setup for a tab. Pick one and the tab takes on its model, its mode, its instructions, the tools it may use, the skills it loads and which models do the helper jobs. Turn it off and the tab goes back to how it was. **QA** Tests changes through the real app. Runs in **auto** mode, loads a testing skill, may not edit code. **Writer** Docs, release notes, posts. Loads writing skills, keeps the shell away, answers on a strong writing model. **Reviewer** Reads diffs in **plan** mode, which researches and proposes instead of editing. High effort, a second model reviews. **Researcher** Read-only digging: code search, the web and memory. Cheap fast models do the helper jobs. **Pair programmer** Your everyday driver. A strong editing model, clean-up and checks after every edit. **Your own** Set up a tab the way you like it, then save it as a profile. ## What a profile holds | Part | What it does when you pick the profile | | :---------------- | :-------------------------------------------------------------------------------------------------------- | | Instructions | The text under the header. The tab follows it for the whole conversation | | `model` | The model that answers in this tab, as `provider/model` | | `forgeMode` | The tab's mode: `default`, `plan`, `lite` and the rest. `permissions` works too | | `effort` | Reasoning effort for that model | | `tools` | Only these tools are allowed. Leave it out for every tool | | `disallowedTools` | Tools the profile may never call | | `skills` | [Skills](/docs/tools/skills) loaded into this tab, and removed again when you turn the profile off | | `routing` | Which model does each helper job (list below) | | `features` | `desloppify` (clean up after edits), `verifyEdits` (check after edits), `marionette` (map the code first) | `tools` and `disallowedTools` also cover the tools Empryo keeps off the list until the agent asks for them. A blocked tool stays blocked when the agent calls it through `run_tool` or `code_script`, and an allowed one, such as `list_dir`, still works that way. ## Examples **QA** ```markdown --- name: qa description: Tests changes through the real app and reports what breaks. model: anthropic/claude-sonnet-4-5 forgeMode: auto effort: high disallowedTools: [edit_file, ast_edit, multi_edit] skills: [immune-system] routing: research: anthropic/claude-haiku-4-5 verify: google/gemini-2.5-flash features: verifyEdits: true --- Reproduce every bug before you report it. Run the app the way a user would. ``` **Writer** ```markdown --- name: writer description: Docs, release notes and posts in our voice. model: anthropic/claude-opus-4-6 forgeMode: default effort: medium disallowedTools: [shell] skills: [article-writing, unslop] routing: research: anthropic/claude-haiku-4-5 web-search: anthropic/claude-haiku-4-5 --- Lead with the concrete thing. Short sentences, plain words, no hype. ``` **Reviewer** ```markdown --- name: reviewer description: Reviews a diff before it ships. Never edits. model: anthropic/claude-opus-4-6 forgeMode: plan effort: high skills: [typescript-react-reviewer] routing: review: openai/gpt-5.6 --- Name every problem at file:line and say how to fix it. ``` **Researcher** ```markdown --- name: researcher description: Answers questions about the code and the web. Never edits. forgeMode: plan tools: [read, grep, find, navigate, web_search, fetch_page, memory] routing: research: anthropic/claude-haiku-4-5 explore: anthropic/claude-haiku-4-5 summaries: google/gemini-2.5-flash --- Cite the file and line for every claim. ``` **Pair programmer** ```markdown --- name: pair description: Everyday coding with checks after each edit. model: anthropic/claude-sonnet-4-5 forgeMode: auto routing: editing: anthropic/claude-sonnet-4-5 cleanup: anthropic/claude-haiku-4-5 features: desloppify: true verifyEdits: true --- Keep changes small and run the tests after each one. ``` Save a file like these in `.empryo/agents/` for this project, or in `~/.empryo/agents/` for every project. ## Create one **1. Ask Empryo** Describe it in chat: "make me a qa profile on Sonnet that loads the immune-system skill, can't edit files, and uses Haiku for research, then use it". The `profiles` tool writes the file and switches the tab when its reply ends. **2. Or use the editor** In the desktop app, open the profile menu next to the composer and choose **New profile**. The editor has three tabs: **Basics** (name, instructions, model, mode, effort), **Tools & skills**, and **Routing**. **Edit** in the Agents library opens the same editor for an existing profile. **3. Or save the tab you are in** Set the model, mode, routing and skills by hand, then choose **Save this tab as a profile**, or type `/profile save qa` in the terminal. Add `--global` to keep it for every project. ## Use it **1. Pick it** Type `/profile ` and pick from the list. Typing part of the name is enough: `/profile qa` or `/profile rev`. `/profiles` opens the full picker, and the desktop composer has a profile button. **2. Work** The tab shows the profile's name. Anything you change afterwards, like another model, wins over the profile. **3. Turn it off** Click the **X** next to its name, pick it again, or type `/profile off`. The model, routing and skills go back to what the tab had. The mode stays where it is. ## Start with a profile Launch the terminal app on a profile with `empryo --profile qa`. The first tab and every new tab you open in that window start with it. A name that does not exist stops the launch and lists the profiles you have. To use one profile everywhere, make it the default. Every new tab then starts with it, in the terminal, the desktop app and headless runs, on every project: | Where | How | | --- | --- | | Terminal | `/profile default qa`, or `/profile default ` and pick from the list | | Desktop | Turn the profile on, open the profile button and choose **Start new tabs with qa** | | Ask Empryo | "make qa my default profile" | | Settings | `defaultProfile` in `~/.empryo/config.json` | `/profile default off` (or **Start new tabs plain** on desktop) goes back to the plain agent. Tabs that are already open keep their profile, and a resumed session keeps the profile it was saved with. `empryo --no-profile` starts one launch plain even when a default is set. Headless runs take the same flags: `empryo --headless --profile qa "check the login flow"`, or `--no-profile` to skip the default. `--agent` still works as another name for `--profile`. A repository's own config can set `defaultProfile`. A profile can change the permission mode, so check it before you open a repository you did not write. ## Routing jobs `routing` sends each kind of helper work to its own model, and each job can use a different provider. | Job | What it covers | | :------------ | :------------------------------------------- | | `research` | Helper agents that read and search your code | | `editing` | Helper agents that edit files | | `explore` | The single explore agent | | `web-search` | Web search | | `cleanup` | The clean-up pass after edits | | `verify` | The check after edits | | `review` | `/review` | | `goal-review` | The reviewer in the goal loop | | `summaries` | Compacting a long conversation | | `marionette` | The code map built before an answer | Other router jobs (the advisor, the council, workflows, routines, tab names and Genome summaries) take their model from your global or project [task router](/docs/recipes/task-router) and are not part of a profile. When one of them has no model set there, it borrows from the profile: the council uses its `research` model and workflow judges use its `review` model. The task router slot names (`spark`, `ember`, `compact` and so on) work too. **Where profiles live and which one wins** Profiles are agent files, so Empryo reads them from the same folders as [agents](/docs/tools/agents), including `.claude/agents/`. When two files use the same name, the project folder wins over the global one. **Profiles and custom agents** Every custom agent can run a tab, and a profile is a custom agent with tab settings added. Empryo can still hand a profile to a helper agent as a specialist; the tab settings only apply when a tab runs it. **Retired modes** Profiles that still say `architect`, `socratic` or `challenge` open in `plan`. Those modes were folded into plan, which now carries architect's diagrams, tradeoff tables and critical-files list. --- ## Project tool Canonical: https://empryo.com/docs/tools/project > The project tool reads your config files, runs the right lint, typecheck, test, build and format commands in 23 ecosystems, and checks code before commits. The `project` tool lets the agent lint, typecheck, test, build and format your code without you telling it which commands your project uses. It reads the config files and lockfiles in the folder and picks the matching commands. You do not call it yourself. The agent calls it when it needs to check its work. The results show up in the chat like any other tool call. ## Actions | Action | What it runs | Example | |--------|-------------|---------| | `lint` | The project's linter | `project(action: "lint")` | | `typecheck` | The type checker | `project(action: "typecheck")` | | `test` | The test suite, or one test file | `project(action: "test", file: "src/foo.test.ts")` | | `build` | The build | `project(action: "build")` | | `format` | The formatter | `project(action: "format")` | | `check` | Typecheck, lint and test at the same time, with one combined report | `project(action: "check")` | | `run` | A dev server or a package script | `project(action: "run", script: "dev")` | | `list` | The packages in a monorepo | `project(action: "list")` | ## Parameters | Param | Required | What it does | |-------|----------|--------------| | `action` | yes | One of the actions above | | `file` | no | Limit the run to one file (useful for `test` and `lint`) | | `fix` | no | Let the linter fix what it can (for example `biome --write`, `eslint --fix`, `ruff --fix`) | | `script` | no | The script to start with `run` | | `flags` | no | Extra command-line flags | | `env` | no | Environment variables for the command | | `cwd` | no | The folder to run in, for one package of a monorepo | | `timeout` | no | Time limit in milliseconds. By default it uses your `toolTimeout` setting (2 minutes unless you changed it) | ## How the toolchain is detected Empryo looks for well-known files in the working folder: ``` bun.lock -> bun test, bun run lint, bunx tsc --noEmit Cargo.toml -> cargo test, cargo clippy, cargo check go.mod -> go test, golangci-lint run, go build pyproject.toml -> pytest, ruff check, mypy/pyright composer.json -> phpunit, phpstan/psalm Gemfile -> rspec, rubocop build.gradle -> gradle test, gradle check ``` In a JavaScript or TypeScript project, a script in `package.json` (such as `lint`, `typecheck`, `test` or `build`) wins over the detected tool. ### JS/TS linter detection When `package.json` has no `lint` script, Empryo picks the first linter it finds: 1. `biome.json` / `biome.jsonc` -> `biome check .` 2. `oxlintrc.json` / `.oxlintrc.json` -> `oxlint .` 3. `eslint.config.js` / `.eslintrc*` -> `eslint .` ### Python type checker detection - If `pyrightconfig.json` exists, it runs `pyright`. - Otherwise it runs `mypy .`. When the project uses uv, Poetry or Pipenv (it has a `uv.lock`, `poetry.lock` or `Pipfile.lock`), the commands run through that tool, for example `uv run pytest`. ## Full ecosystem support | Ecosystem | Lint | Typecheck | Test | Build | |-----------|------|-----------|------|-------| | **JS/TS (Bun)** | biome / oxlint / eslint | tsc | bun test | bun run build | | **JS/TS (npm)** | biome / oxlint / eslint | tsc | npm test | npm run build | | **JS/TS (pnpm)** | biome / oxlint / eslint | tsc | pnpm test | pnpm build | | **JS/TS (Yarn)** | biome / oxlint / eslint | tsc | yarn test | yarn build | | **Deno** | deno lint | deno check | deno test | -- | | **Rust** | cargo clippy | cargo check | cargo test | cargo build | | **Go** | golangci-lint / go vet | go build | go test | go build | | **Python** | ruff / flake8 | pyright / mypy | pytest | -- | | **PHP** | pint / php-cs-fixer | phpstan / psalm | phpunit | -- | | **Ruby** | rubocop | -- | rspec / rails test | -- | | **Swift** | swiftlint | swift build | swift test | swift build | | **Elixir** | credo | dialyzer | mix test | mix compile | | **Java/Kotlin (Gradle)** | gradle check (or spotless / ktlint) | gradle compileJava / compileKotlin | gradle test | gradle build | | **C/C++ (CMake)** | clang-tidy | cmake build | ctest | cmake build | | **Dart/Flutter** | dart analyze | dart analyze | flutter test | flutter build | | **Zig** | zig fmt --check | zig build | zig build test | zig build | | **Haskell** | hlint | stack build | stack test | stack build | | **Scala** | scalafmt --check | sbt compile | sbt test | sbt compile | | **.NET/C#** | dotnet format | dotnet build | dotnet test | dotnet build | | **iOS/Xcode** | swiftlint | xcodebuild build | xcodebuild test | xcodebuild build | | **Java (Maven)** | checkstyle | mvn compile | mvn test | mvn package | | **C/C++ (Make)** | -- | -- | make test | make | | **Clojure** | clj-kondo | -- | lein test / clj -M:test | lein uberjar | A `--` means Empryo found no standard command for that step, so the action reports that nothing is configured. ## Pre-commit checks When the agent commits with `git commit -m "…"` through the shell tool, Empryo first runs your linter and type checker. If they fail, the commit does not happen and the agent gets the errors so it can fix them. What runs depends on the project: - **JS/TS:** your linter and `tsc --noEmit`, for example `biome check . && tsc --noEmit` - **Deno:** `deno lint && deno check .` - **Rust:** `cargo clippy && cargo check` - **Go:** `golangci-lint run && go build ./...` (or `go vet` when there is no golangci-lint config) - **Python:** `ruff check` when ruff is configured (`ruff.toml`, `.ruff.toml` or `[tool.ruff]` in `pyproject.toml`), else `flake8` when it is configured (`.flake8`, or `[flake8]` in `setup.cfg` or `tox.ini`). Then `basedpyright` for `[tool.basedpyright]`, `pyright` for `pyrightconfig.json` or `[tool.pyright]`, or `mypy` for `mypy.ini` or `[tool.mypy]`. A tool the project does not configure is never run. This check does not depend on the agent remembering to lint. Empryo runs it on every agent commit. It runs only for a command that actually runs `git commit`; writing a script that contains `git commit` is not a commit. To pick the commands yourself, or to turn the check off for a project, set `preCommit` in the project's [configuration](/docs/reference/configuration): ```json { "preCommit": { "command": "uv run ruff check . && uv run basedpyright" } } ``` `{ "preCommit": { "enabled": false } }` turns it off. The checks have a 2-minute limit. Commits you make yourself, outside Empryo, are not affected. > **Warning:** > Without `preCommit.command`, the check only runs tools it recognizes from config files and never runs scripts from `package.json`. `preCommit.command` runs exactly what you write, so it is honored only from your global config or a project config that git does not track: a command that arrives with a cloned repository is refused, and the commit is stopped with a message saying where it came from. The agent must ask you before it sets `preCommit.command`. ## Monorepo discovery `project(action: "list")` finds the packages in a workspace. ### Supported workspace formats - **pnpm:** `pnpm-workspace.yaml` - **npm/yarn:** the `workspaces` field in `package.json` - **Cargo:** `[workspace] members` in `Cargo.toml` - **Go:** `use` directives in `go.work` ### Example output ``` 5 packages: @myapp/web -- packages/web (biome) [lint, typecheck, test] @myapp/api -- packages/api (biome) [lint, typecheck, test] @myapp/shared -- packages/shared (biome) [lint, typecheck] @myapp/cli -- packages/cli (biome) [lint] @myapp/docs -- packages/docs [test] Use project(action: "lint", cwd: "<path>") to target a specific package. ``` Each package is detected on its own, so the list shows what each one actually supports. When the agent tests a single file, Empryo runs the test from the package that owns that file instead of the whole workspace. ## When the agent uses the shell instead If the agent runs a command like `bun run lint` or `cargo clippy` through the shell, the command still runs. The result adds a short reminder to use the project tool next time, because its output is structured and shows up properly in the UI. ``` Command succeeded. Next time use project(action: "lint") -- it auto-detects the toolchain, results are structured, and output is visible in the UI. ``` --- ## Pull requests Canonical: https://empryo.com/docs/tools/pull-requests > Follow the GitHub pull requests each tab opens, pushes to or reviews: live checks, reviews and merge state, and merge, close or comment without leaving Empryo. Empryo keeps a list of the GitHub pull requests each tab works on. When the agent opens a pull request, pushes to its branch, views it or comments on it, the pull request joins that tab's list. Its state, checks, reviews and merge readiness stay up to date while you work, on the desktop, in the terminal and on your phone. Tracking is on by default. To turn it off, switch off **Track pull requests** in **Settings → Experimental**, or set `"github": { "pullPool": false }` in your [configuration](/docs/reference/configuration#experimental-features). ## What gets tracked A pull request joins a tab's list when, in that tab: - the agent runs `gh pr create`, including several in a loop or at the end of a long script; - the agent pushes to a pull request's branch, or views, comments on, closes, reopens or updates it with `gh`; - the agent names it in its final answer (a number, `owner/repo#123` or a link); - you add it yourself: type its number, or paste a link or `owner/repo#123`. ## What it needs Empryo reads pull requests through the GitHub CLI. Install [`gh`](https://cli.github.com) and run `gh auth login` once. The panel tells you what is missing: | Note | What it means | | ------------------------------- | -------------------------------------------------------------- | | Git isn't installed | Pull requests can't be matched to the folder. Links still work | | This folder isn't a Git repo | Add pull requests by link or `owner/repo#123` | | No GitHub remote in this folder | Add pull requests by link or `owner/repo#123` | | GitHub CLI (gh) isn't installed | Public repositories only | | GitHub CLI isn't signed in | Public repositories only | | GitHub rate limit reached | Reading resumes at the time shown | Pull requests in tabs you can see refresh more often than the rest. ## GitHub accounts `gh` can be signed in to several accounts and reads as the active one. When a pull request says **No access with the current gh account**, the panel checks your other accounts. If one of them can open it, **Use** that account in one click; otherwise **Add account** signs in another one with a code in your browser. **Settings → GitHub** lists every account `gh` knows, with **Use** and **Add account**. Using an account switches it for `gh` everywhere on the computer, like `gh auth switch`. The same page sets git for the open project: - **Name** and **Email** for commits, saved to **This project** or **All projects**. - **Push as**: the account git uses to push and pull here. It only changes this repository, and git asks `gh` for that account's token. Projects that push over SSH use your SSH key instead. `/accounts` opens the same page on the desktop. In the terminal, `/accounts` lists the accounts and who pushes, and `/git identity Your Name you@example.com` sets the commit name and email (add `--everywhere` for all projects). From `/prs`, press `a` to open accounts. ## Desktop app Open the **Pull requests** view in the side panel, or type `/prs`. The view's tab shows how many pull requests the tab has. - **All tabs** or **This tab** at the top picks whose pull requests you see. All tabs is the default; each card names the tab it belongs to, and clicking that name switches to the tab. - Pull requests are grouped into **Needs you**, **In progress**, **Ready to merge** and **Merged or closed**. A pull request merged or closed more than a day ago moves into the folded **Done** list. - Filter tags narrow the list: **All**, **Failing**, **Needs review**, **Ready**, **Open**, **Draft**, **Merged** and **Closed**. - **Add a pull request** takes a number, a link or `owner/repo#123`. Open a card to see its merge state, checks, reviews and threads. From there: | Action | When | | ---------------------------------------------------------------------------------- | -------------------------------------------- | | **Merge**: **Squash and merge**, **Create a merge commit** or **Rebase and merge** | The pull request is ready to merge | | **Ready for review** | It is a draft | | **Close** | It is open. Asks you to confirm | | **Reopen** | It is closed | | **Show comments** | Reads its comments and reviews, newest first | Each card's menu also has **Ask agent to fix checks**, **Ask agent to resolve conflicts**, **View diff** (in the pull request's own project), open in the browser, copy the link or number, **Refresh** and **Remove from list**, which you can undo. Tabs with a pull request show its icon and number on the tab and on project rows. Click it to open the panel on that pull request; with several, pick one from the list. When the agent's final answer names pull requests, a **Pull requests** card appears under it with each one's live title and state. Click a row to open it, or **Open panel** to see them all. ## Terminal and headless `/prs` lists the pull requests the tab touched, with their state and checks. Open or copy each one from there. It works in the terminal UI, the desktop app and headless runs. ## Phone On iPhone and Android, a chat with pull requests shows the main one on its row: its state, its number, how many more are open, and a red outline when checks fail or there are conflicts. Tap it to see that chat's pull requests. Tap one to see its branch, the size of its diff, and its merge, checks, reviews and threads, with **Open on GitHub**. Answers that name pull requests show the same live card as on the desktop. When a chat has pull requests your active `gh` account can't open, its pull requests sheet names the account that can, with **Use**, and lists your GitHub accounts with **Add account**. **Accounts** in the menu also holds the git card: name, email and who pushes for that chat's project. ## Next - [Desktop app](/docs/surfaces/desktop): panels, tabs and worktrees. - [Phone app](/docs/surfaces/phone): what you can do away from your computer. - [Commands](/docs/reference/commands): every slash command. --- ## Python kernel Canonical: https://empryo.com/docs/tools/python-kernel > Give the agent a Python interpreter that stays running between calls, so loaded data, variables and imports are still there on the next step. Off by default. The Python kernel gives the agent one Python interpreter that keeps running while you work in a project. Anything the agent loads or defines in one call is still there in the next call. This is the difference from the `shell` tool. Every `python -c` in the shell starts a new process, so a script that loads a large file has to load it again for every question. With the kernel, the agent loads the data once and then asks as many questions as it needs: ``` python_kernel(code: "import pandas as pd; df = pd.read_csv('sales.csv'); df.shape") → (48211, 17) python_kernel(code: "df.groupby('region').revenue.sum().sort_values().tail(3)") → region EMEA 1840221.55 APAC 2110984.10 NA 3922015.77 ``` The second call did not read the file again. `df` was already in memory. ## Turning it on The kernel is off by default. It runs any code the agent writes, with your user's permissions, which is as much power as the shell tool has. So you have to switch it on: ```json "agentFeatures": { "pythonKernel": true } ``` You can also switch it on from the app: - **Terminal UI:** run `/agent-features` and turn on **Python Kernel**. - **Desktop:** open the **Router** panel, go to the **Behavior** section and turn on **Python kernel**. - **For one headless run:** `EMPRYO_PYTHON_KERNEL=1 empryo --headless "…"` You need `python3` (or `python`) on your `PATH`. If Empryo cannot find Python, the tool is not offered to the model at all. ## Parameters | Field | Type | What it does | | ----------- | ------- | ------------------------------------------------------------------------------------------ | | `code` | string | The Python to run. Like a REPL, the value of the last expression is returned | | `reset` | boolean | Clear all variables first. Send it without `code` to just clear | | `timeoutMs` | number | Stop after this many milliseconds. Default 120000 (2 minutes), maximum 600000 (10 minutes) | Each call returns what the code printed to stdout and stderr, plus the value of the last expression. If the code raises an exception, the call fails with the traceback, and the interpreter keeps running with its variables intact. ## The Empryo API inside Python Python code gets an `api` object with the same API `code_script` has: reading, search, the code index, the language server, edits, running commands and other tools. Calls are synchronous, keyword arguments become the options object, and a failed call raises `ApiError`. ``` python_kernel(code: "hits = api.grep('loadConfig', path='src'); len(hits)") → 14 python_kernel(code: "api.edit.file('src/config.ts', 'retries = 3', 'retries = 5')") → {'ok': True, 'report': 'Edited src/config.ts (lines 12-12)'} ``` Edits made through `api` are checked, tracked and listed in the reply, and `code_script(rollback:'<id>')` undoes them. Waiting for an `api` call does not count toward the time limit. When Stem is on, Python also gets a `stem` object: the same `$` that Stem gives `code_script`, so its rules, notes and learning apply to Python's calls too. For one headless run, `EMPRYO_STEM=1` or `EMPRYO_STEM=0` turns Stem on or off. Plain `open()` and `subprocess` still work, but they bypass `api`: those reads and writes are not checked or tracked. ## Behaviour worth knowing - **IPython is used when it is installed.** You get rich output, `display` and `_`. Without IPython it uses plain Python. You do not need to install anything either way. - **There is one kernel per tab.** Each chat keeps its own variables, and its kernel stops when the tab closes. - **The working directory is the project root**, so relative paths work as you expect. - **A code run that hits its time limit is stopped** and the kernel restarts, so the turn does not hang. The reply tells the agent this happened. All variables are lost when that happens. - **It is not a Jupyter client.** Empryo talks to the Python process directly, so you do not need Jupyter installed. ## When not to use it Use `shell` for one-off commands such as `pytest`, `ruff` or a script you already have. The kernel adds nothing there, and it leaves a process running after the call. Use the [project tool](/docs/tools/project) for lint, typecheck and tests, because it already knows your toolchain. The kernel is worth it when each step builds on data the previous step left in memory, such as exploring a dataset or debugging a calculation step by step. --- ## Routines Canonical: https://empryo.com/docs/tools/routines > Schedule agent runs for a repository with /schedule: a nightly review, an hourly check, a daily summary. They run while Empryo is open, with no service. ## Overview A routine is a prompt that Empryo runs for you on a schedule. Use it for work you would otherwise repeat by hand: a nightly review of the day's changes, an hourly check for new pull requests, a weekly cleanup. Each routine belongs to one repository. A routine you make in a tab runs in that tab: when it is due, its prompt arrives there like a message you sent, after any turn that is already running, and you see the answer in that tab. A routine made outside a tab (by the agent's `routine` tool, or with `empryo --headless --routines`) starts a background `empryo --headless` run in the repository instead. Routines run while Empryo is open on the repository, in the terminal UI or the desktop app, or while `empryo --headless --routines` is running. When phone access runs in the background, it also keeps Empryo running for every recent project that has a routine turned on, so routines fire with the apps closed. Otherwise nothing keeps running after you quit, and nothing is installed on your system. ## Commands | Command | What it does | |---------|--------| | `/schedule` | Open the routines list with each routine's next run | | `/schedule list` | Print the list in the chat | | `/schedule add <5-field cron> <prompt>` | Add a routine with a cron pattern | | `/schedule <prompt> --every 30m` | Add a routine with a plain-word schedule (see below) | | `/schedule run <n or id>` | Run a routine now | | `/schedule stop <n or id>` | Stop the run in progress. The routine stays on and runs again at its next time | | `/schedule remove <n or id>` | Remove a routine by its number in the list or its id. A run in progress stops too. | | `/schedule on <n or id>` / `/schedule off <n or id>` | Turn a routine on or off | `/routine` and `/cron` do the same as `/schedule`. A run in progress shows **Running** in the list. Stop it with **Stop run** in the desktop routines list or on your phone, or with `/schedule stop`. Stopping ends only that run: the routine stays scheduled, and the composer keeps showing when it runs next. To pause a routine, turn it off with `/schedule off`; to delete it, use `/schedule remove`. Removing a routine stops its run as well, wherever you remove it from. Example with a cron pattern (every day at 22:00): ``` /schedule add 0 22 * * * review the day's uncommitted work and summarize risks ``` Empryo checks the pattern when you add it. A pattern that can never run is rejected straight away. ## Plain-word schedules You do not have to write cron. Write the prompt, then add the schedule as a flag at the end: ``` /schedule review repo for new PRs --every 30m /schedule summarize the day --daily 18:00 --yolo /schedule deep audit --on monday 08:00 --model anthropic/claude-opus-4-6 ``` | Flag | When it runs | |------|-------| | `--every 15m` · `--every 2h` · `--hourly` | On that interval | | `--daily` · `--daily 09:30` | Every day (09:00 when you give no time) | | `--weekdays 18:00` | Monday to Friday | | `--on monday 08:00` · `--weekly` | Once a week (`--weekly` means Monday 09:00) | | `--cron "0 18 * * 1-5"` | A raw 5-field cron pattern | Each plain-word schedule is turned into a cron pattern and checked before the routine is saved. Other flags set how the run behaves: `--mode` (the agent mode), `--yolo` (skip every approval, since nobody is there to answer), `--model` (the model to use), `--agent` (a custom agent) and `--name` (a label for the list). Routines saved with `--mode auto` before auto mode was retired run with `--yolo`. ## From your phone The Empryo iPhone app has a **Schedules** screen (`/schedules` in the composer, or the chat menu). Pick Hourly, Daily, Mon–Fri, Weekly, or **Cron** to type a 5-field pattern yourself. Turn routines on and off, run one now, stop a run or delete it from the same list. When a run finishes or fails while the app is closed, the phone gets a notification with the start of the run's summary. Tapping it opens that run as a chat. Routines run on your computer: turn on background phone access there and they run even when Empryo is closed. ## Bare runs A bare routine runs with **no repository and no tools**. It sends one short prompt and gets one answer back. That costs far less per run than a full agent run. Use bare runs for anything that does not need your code: a standup line, a reminder, a summary of text you put in the prompt. Do not use them for work that must read files, search or run commands. To make a routine bare, ask the agent to create it as a bare routine. The agent's `routine` tool has a `bare` option. ## From an agent, and headless The agent can manage routines too, through its `routine` tool. It can `list`, `add`, `remove`, `enable`, `disable`, `run` and `stop` them. A routine that is already running is never started a second time. A routine's prompt can start an orchestration (a saved graph of agents, see [multi-agent workflows](/docs/agents/workflows#nodes-and-edges)): `/orchestrate <graph-id> <input>`. To run routines without the terminal UI or the desktop app open, start the scheduler from a terminal: ```bash empryo --headless --routines # runs this repo's routines until you press Ctrl+C ``` On the desktop, routines and their run history are under **My tools → Routines** ([the workbench](/docs/surfaces/workbench#my-tools)). ## How a run works - When a routine made in a tab is due, its prompt is sent to that tab. If the tab is closed at that moment, nothing runs, and the routine's history says the tab was not open. - A routine made outside a tab starts a separate headless run with your prompt, using the repository as the working folder. - If the previous run of the same routine is still going, the new one is skipped and counted. Two agents working on the same files at once would get in each other's way. - Empryo records the time and exit code of the last run. `/schedule` shows them. ## Where routines live Routines are saved in `.empryo/schedules.json` inside the project, one file per repository. The `/schedule` command edits it for you. Routines are tied to a repository on purpose: a nightly review belongs to the code it reviews. --- ## Sessions Canonical: https://empryo.com/docs/tools/sessions > Empryo saves every conversation as you go. Resume a session by id, export it as markdown or JSON, or move it to another machine with its checkpoints. Every conversation is a session. Empryo saves it as you work, so you can close the app and pick up the same conversation later, export it, or move it to another machine. Sessions are saved per project, in the `.empryo/sessions/` folder of that project. Each session is written to one file that grows as the conversation goes on, so if Empryo quits unexpectedly, you can resume from what was already saved. ## Resume In the terminal UI, press `Ctrl+P` (or run `/session history`) to open the session picker. Type to filter, pick a session and continue where you left off. From the command line: ```bash empryo --headless --session <prefix> "now add tests" ``` You only need the start of a session id: `abc` finds `abc123…`. If more than one session starts with the same letters, Empryo tells you instead of guessing. ## Reopen a closed tab Use `/tab reopen` in the desktop app or terminal UI. It also appears in slash-command autocomplete. It restores the most recently closed tab in the current session; repeat to restore earlier tabs. Both apps keep the last ten recently closed tabs while they are running. On desktop, press `⌘⇧T` on macOS or `Ctrl+Shift+T` on Windows/Linux, or right-click a tab and choose **Reopen closed tab**. In the terminal UI, use `Ctrl+Shift+T` if your terminal forwards that key combination. `/tab reopen` works when the terminal captures the shortcut. ### See and restore every tab in the session In the terminal UI, `/tabs` opens a panel with every tab in the current session: open tabs first, then closed ones, newest first. Type to filter by name. Press Enter on an open tab to switch to it, or on a closed tab to restore it with its conversation, model, mode and settings. Unlike `/tab reopen`, it can bring back any closed tab, not only the last one, and it still works after you quit and resume the session, because closed tabs are kept in the session log (the last 25). When ten tabs are already open, closed rows say so; close a tab first. Closing a tab stops its running turn. Reopening does not restart that turn. Clearing a conversation is different from closing its tab: reopening is not an undo for `/session clear`. To return to an older saved session, use `/session history`. ## Saving Sessions save automatically after every turn. There is no save button. | Command | What it does | |---------|--------| | `/session new` | Start a new session (the current one is kept) | | `/session rename` | Rename the current session | | `/session clear` | Clear the chat history | ## Export ``` /session export markdown /session export json /session export clipboard /session export all full diagnostic dump (prompt + tools) /session export api toggle per-step API request logging ``` Exports are written to the project's `.empryo/exports/` folder. `clipboard` copies the chat as markdown instead. `all` and `api` are for troubleshooting: they include much more detail than a normal export. ## Portable bundles A bundle packs a whole session into one `.empryo-session.tar.gz` file: the conversation and everything saved with it. Copy it to another machine or another checkout of the repository, import it, and you can resume it there like any other session. ``` /session bundle export this session (to .empryo/exports/) /session bundle path/to/out.tar.gz export to an explicit file /session bundle import <file> import a bundle into this project ``` Importing never overwrites an existing session. If the id is already taken, the imported session gets a new id. Files in the archive that do not belong to a session, or that try to write outside the sessions folder, are rejected before anything is written. ## Import from other tools In the desktop app, `/import` brings in past sessions from Claude Code, Codex and OpenCode. ## Checkpoint snapshots Sessions keep their [checkpoints](/docs/tools/checkpoints), which are stored as private git snapshots under `refs/empryo/`, not as tags. When you resume a session, its undo history comes back with it. When you delete a session, its snapshots are deleted too. ## Shortcuts These are for the terminal UI. | Key | Action | |-----|--------| | `Ctrl+P` | Browse sessions | | `Ctrl+B` / `Ctrl+F` | Step back and forward through checkpoints | ## Multiple tabs Each tab in a session has its own messages and its own checkpoint history. Tabs are saved and restored with the session. ## Projects in a session A session holds everything in the window: the projects you opened or added, the subprojects under them when that view is on, and every tab with its own conversation. Restoring a session brings all of that back, with each project tab in its project and its own chat. - The session picker lists sessions, not projects. Each row names the projects the session spans, like `◆ web, other +1`, and its message count includes the project tabs. - Folders you add as projects are saved in the session. A new session starts with the projects you have open now. - A tab inside a project keeps its part of the conversation in that project's `.empryo/sessions` folder. Those parts never show as sessions of their own. - Sessions saved before this release restore their project tabs the way they did before. --- ## Duck, advisor, council and namer Canonical: https://empryo.com/docs/tools/side-agents > Helpers beside the coding agent: a duck to think out loud with, an advisor for a second opinion, a council that debates a decision, and the tab namer. For a guided introduction to graphs, model assignments and review loops, see [multi-agent workflows](/docs/agents/workflows). ## Overview Besides the coding agent, Empryo has six smaller helpers. Each one does a single job. Each can use its own model (set in the task router, `/router`), and each has its own line in your usage costs. | Helper | What it does for you | How to use it | |---------|-----------|---------------| | **Duck** | A chat partner that cannot see your code. Good for thinking a problem through | `/duck [question]`, `--mode duck` | | **Advisor** | A second model gives an opinion on the current conversation. It cannot change anything | `/advise <question>`, the `advisor` tool, `/advice` to see past answers | | **Council** | 2 or more agents (4 by default) with different briefs debate one question and reach a verdict | `/council <topic>`, the `council` tool | | **Orchestrator** | Runs a graph of agents, with loops, review steps and pauses for your answer | `/orchestrate <graph or goal>`, `/runs`, `--mode orchestrate` | | **Routines** | Runs a prompt on a schedule for this repository | `/schedule`, `/routine` | | **Namer** | Gives each tab a short name based on your first prompt | Automatic, or `/tab rename` | ## The namer A tab called TAB-3 tells you nothing. The namer reads your first prompt and gives the tab a name of two or three words. It has no tools and does not see your code. **When it runs.** The first real prompt in a tab names that tab. This works in the terminal UI tab bar, the desktop tab bar, and the title of a saved headless session. It only replaces a placeholder name (`TAB-1`, `new tab`, or a mode name). A name you typed yourself is never replaced. **Renaming later.** When the work in a tab changes, rename it: ``` /tab rename auth refactor rename by hand /tab rename let the namer pick a new name ``` With no name given, the namer reads the prompt that opened the tab and your last few prompts, and names what the tab is doing now. The agent in the tab can also rename it with the `rename_tab` tool when the work changes direction. **Model.** The namer uses the router's `namer` slot. If that is not set, it uses the `duck` slot, then `default`, then the tab's own chat model. A name is a few words, so this is a very cheap call. If the model starts answering your prompt instead of naming it, the tab takes a name made from your prompt's own words. **Switching it off.** Set `tabNaming: false` in your config. Tabs are no longer named automatically, but `/tab rename <name>` and renaming in the tab bar still work. ```json { "tabNaming": true, "taskRouter": { "namer": "subscriptions/claude-haiku-4-5-20251001" } } ``` ## Duck The duck is a "rubber duck": someone to talk a problem through with. `/duck` opens a new tab in duck mode, and `/duck <question>` asks your question straight away. A duck tab cannot see your repository. It can search the web (`web_search`, `fetch_page`), ask the advisor, look up models (`find_model`), and send messages to other tabs (`link`). It has no file reading, search or shell. If you ask it to read a file, it tells you to use a coding tab, and it can pass the work to one for you. ## Advisor `/advise <question>` sends a short, cleaned-up summary of the current conversation to a second model. That model has no tools and no part in the work. It answers your question and does nothing else. The advisor keeps its own thread for each tab, so follow-up questions have context. Add `--fresh` to start over. Every answer is saved, and `/advice` lists them. If the advisor returns an empty answer, Empryo reports the consult as failed instead of pretending it worked. ## Council `/council <topic>` gives 2 or more agents (4 by default) a brief each and puts them in one shared room. With `agentFeatures.subagentTabs` on, each seat is a [child tab](/docs/agents/child-tabs) you can read. Each agent sees what the others say, and they keep going until they agree or you close the room. A final verdict sums up the result. Seats come from a shared pool of resident agents, 4 by default, so one 4-seat council fills it. Set `taskRouter.maxResidentAgents` (1 to 16) to allow bigger councils or several at once: with 8, two 4-seat councils run together. Use a council when a decision has several reasonable answers, for example a design trade-off. Do not use it for routine work: every round costs one model call per seat. ## Orchestrator and routines The orchestrator runs a graph of agents; [multi-agent workflows](/docs/agents/workflows#nodes-and-edges) covers its nodes, edges and views. A routine runs a prompt on a schedule, for example `/schedule add <cron> <prompt>`; see [Routines](/docs/tools/routines). ## Where the models come from Each helper has its own slot in the task router. If you leave a slot empty, it falls back to another slot, so an existing config keeps working: | Slot | Used by | If empty, uses | |------|------|--------------------| | `advisor` | the advisor tool, `/advise` | the model of the tab that asked | | `duck` | duck tabs | `default` | | `council` | council seats | `spark` | | `orchestrate` | the agent in orchestrate mode | `default` | | `node` | agent nodes in an orchestration | the normal routing (`ember` for code work, `spark` otherwise) | | `judge` | judge nodes in an orchestration | `review`, then `goalReview` | | `routine` | scheduled headless runs | `default` | | `namer` | tab names | `duck`, then `default`, then the tab's model | Set them with `/router` in the terminal UI or the desktop app, or in your config: ```json { "taskRouter": { "namer": "subscriptions/claude-haiku-4-5-20251001", "advisor": "anthropic/claude-opus-4-5", "council": "openai/gpt-5.6" } } ``` --- ## Skills Canonical: https://empryo.com/docs/tools/skills > Teach Empryo's agent a framework, workflow or style guide with a SKILL.md file. Browse skills.sh, install per project or everywhere, toggle per session. A skill is a folder with a `SKILL.md` file that teaches the agent something: a framework, a workflow, a style guide or a domain. When a skill is active, its instructions are added to what the agent reads, so it follows them without you repeating them in every prompt. Empryo finds the skills on your machine when it starts. You choose which ones are active in each session. ## Browse and install Press `Ctrl+S` or run `/skills` to open the skills manager. It searches [skills.sh](https://skills.sh), a public catalog of community skills. ``` /skills open the manager Ctrl+S same (terminal UI) ``` The manager has three tabs: - **Search**: search the skills.sh catalog, sorted by how often each skill is installed. - **Installed**: every skill Empryo found on your machine. - **Active**: the skills turned on in the current session. ## Scopes Empryo looks for skills in six folders. Three are global (for every project) and three belong to the current project: ``` ~/.empryo/skills/ global ~/.agents/skills/ global (shared with other tools) ~/.claude/skills/ global (Claude Code compatible) .empryo/skills/ project .agents/skills/ project .claude/skills/ project ``` Project copies win over global copies. Within either scope, Empryo takes `.empryo/skills` first, then `.agents/skills`, then `.claude/skills`. The legacy global `.soulforge/skills` folder sits after `.empryo/skills` and before the shared folders. Each skill appears once. The desktop reader, the terminal Installed tab and the skills tool show the selected path and any lower-priority copies. In the terminal, Page Up and Page Down scroll the sources; Home and End jump to the first and last source. Long paths wrap without truncation. Symlinks to the same file do not add another copy. Loading by name, `--skill`, automatic loading and session restore all use this order. ## Install In the manager, select a skill and press Enter. Empryo installs it with `bunx`, or `npx` if Bun is not available. The skill lands in the scope you chose and shows up in the Installed tab. You can also use the `skills` command line tool yourself: ```bash # Browse popular skills bunx skills list # Add from a catalog bunx skills add <source> --skill <id> -g ``` ## Enable and disable Skills are turned on per session. In the Active tab, turn a skill on and the agent starts following it. Turn it off and it is removed from the agent's context. Your choice is saved with the session. A skill you turn on for a tab arrives in full at that tab's next message. Skills an older session turned on for every tab come back as cards: the skill's name, its description and its section titles, a few hundred characters instead of the whole file. When a task needs one, the agent reads the full text with `skills(action: load)`, and that text stays for the rest of the conversation. The same call brings a skill back after compaction removed its text from the conversation. ## Structure A skill is a folder with `SKILL.md` at its root: ``` my-skill/ ├── SKILL.md required, the frontmatter + instructions ├── references/ optional supporting docs └── templates/ optional templates ``` `SKILL.md` starts with frontmatter that names the skill and says when to use it: ```yaml --- name: my-skill description: When to reach for this skill. --- # My Skill Instructions, conventions, patterns... ``` ## The skill Empryo ships Empryo installs one skill of its own, called `empryo`, at `~/.empryo/skills/empryo/SKILL.md`. It teaches an agent to answer questions about Empryo from the current documentation and to change your Empryo settings safely. It includes a map of the docs, so the agent reads the right page instead of guessing. This skill updates itself between releases. At most once every six hours, when Empryo starts, it checks [the published skill index](https://empryo.com/.well-known/agent-skills/index.json) and installs a newer version if there is one. The download must match the checksum published in the index, and the version in the file must match too. Empryo only replaces a copy you have never edited. If you edit the skill or delete it, your change stays. To stop the update check and keep the version that came with your installed app, set: ```json { "liveSkills": false } ``` ## Remove In the Installed tab, select a skill and delete it. Empryo removes its folder from disk. ## Writing your own Any folder with a `SKILL.md` is a skill. Put one at `.empryo/skills/my-skill/SKILL.md` (this project) or `~/.empryo/skills/my-skill/SKILL.md` (all projects) and it appears in the Installed tab. When the skill is active, the agent reads its whole content, so keep `SKILL.md` short and specific. Give it a `description` and `##` section titles: they are what a card shows. --- ## Floating Terminals Canonical: https://empryo.com/docs/tools/terminals > Open up to 5 terminals inside the Empryo desktop app to run commands, watch logs or use a REPL next to the chat, separate from the agent's own shell. ## Overview The desktop app has a built-in terminal panel. Use it to run commands, watch logs or work in a REPL without leaving Empryo. You can have up to 5 terminals open at once. Your terminals are separate from the agent. When the agent runs commands with its `shell` tool, those do not appear in or interfere with your terminals. Floating terminals are a desktop feature. In the terminal UI, you are already in a terminal. ## Commands | Command | Action | |---------|--------| | `/terminals` | Open the terminal manager | | `/terminals new` | Open a new terminal | | `/terminals close` | Close a terminal | | `/terminals show` | Show the terminal panel | | `/terminals hide` | Hide the terminal panel | | `/terminals rename` | Rename a terminal | ## Shells A new terminal starts your default shell in the current workspace folder. You can open a terminal with a different shell from the new-terminal menu (for example zsh, PowerShell, or a WSL distribution on Windows) and choose which one is the default. Each terminal is named after its shell, and you can rename it. ## Working in a terminal The terminal panel is built on [xterm.js](https://xtermjs.org/), the terminal used by many code editors. It supports: - Colors, including 256-color and true color - Unicode and emoji - Clickable links - Mouse input for programs that use it - Up to 5,000 lines of scrollback - GPU rendering when your system supports WebGL, with an automatic fallback when it does not Useful keys: | Key | Action | |-----|--------| | `Cmd/Ctrl+F` | Search the terminal output | | `Cmd/Ctrl+Shift+A` | Add the selected text to the chat | | `Cmd+C` (macOS) / `Ctrl+Shift+C` (Windows, Linux) | Copy the selection | | `Ctrl+Shift+V` (Windows, Linux) | Paste | On Windows and Linux, `Ctrl+C` copies when text is selected. With nothing selected, it interrupts the running program as usual. ## Limits - You can have **at most 5 terminals** open at once. - Each terminal is its own shell process. - Your terminals keep running when the agent's conversation is compacted or its context is reset. --- ## Themes Canonical: https://empryo.com/docs/tools/themes > Pick from over 40 built-in color themes with a live preview, follow your system's light or dark mode, or write your own JSON theme that reloads as you edit it. ## Quick start Run `/theme`, or press `Ctrl+K` and search for "theme", to open the theme picker. The app changes color as you move through the list, so you can see each theme before you choose it. ## Default: `proxysoul-undertow` Empryo uses the ProxySoul Undertow theme by default, in both the terminal UI and the desktop app. To follow your system's light or dark mode instead, pick `system`. It uses `proxysoul-undertow` when your system is dark and `proxysoul-undertow-light` when it is light. To decide between light and dark, Empryo first checks your terminal's background color. If it cannot tell, it uses your operating system's setting (macOS appearance, the Windows app theme, or the GNOME color scheme). To force one, set `EMPRYO_APPEARANCE=dark` or `EMPRYO_APPEARANCE=light`. Picking any other theme turns off the automatic switching. ## Builtin themes ### Dark | Theme | Description | |-------|-------------| | `proxysoul-undertow` | ProxySoul Undertow: dark blue-grey with sea-glass green and dusty rose (the default) | | `proxysoul-main` | ProxySoul: deep violet with hot pink | | `proxysoul-coffee` | ProxySoul Coffee: warm brown, amber and burnt orange | | `proxysoul-water` | ProxySoul Water: blue-black, cyan and teal | | `proxysoul-crimson` | ProxySoul Crimson: plum-black with crimson | | `proxysoul-empryo` | The Empryo brand theme (the old id `proxy-empryo` still works) | | `solarized-dark` | Ethan Schoonover's classic | | `catppuccin` | Catppuccin Mocha | | `catppuccin-frappe` | Catppuccin Frappe | | `catppuccin-macchiato` | Catppuccin Macchiato | | `gruvbox-dark` | Retro groove | | `tokyo-night` | Tokyo Night | | `tokyonight-storm` | Tokyo Night Storm | | `dracula` | Dracula | | `nord` | Arctic, north-bluish | | `one-dark` | Atom One Dark | | `rose-pine` | All natural pine | | `kanagawa` | Inspired by Katsushika Hokusai | | `github-dark` | GitHub Dark | | `everforest-dark` | Comfortable green | | `ayu-dark` | Ayu Dark | | `nightfox` | Nightfox | | `cyberdream` | Cyberdream | | `oxocarbon` | Oxocarbon | | `sonokai` | Sonokai | | `moonfly` | Moonfly | | `melange` | Melange | | `solarized-osaka` | Solarized Osaka | | `bamboo` | Bamboo | | `nordic` | Nordic | | `synthwave` | Synthwave | | `iceberg` | Iceberg | | `ember` | Ember | | `vesper` | Vesper | ### Light | Theme | Description | |-------|-------------| | `proxysoul-undertow-light` | Undertow Light: slate, sea-glass green and rose (what `system` uses on a light system) | | `proxysoul-main-light` | ProxySoul Light: lilac with violet and pink | | `proxysoul-coffee-light` | Coffee Light: cream, espresso and amber | | `proxysoul-water-light` | Water Light: pale grey-blue with deep teal | | `proxysoul-crimson-light` | Crimson Light: blush with wine red | | `proxysoul-empryo-light` | Empryo Light: white with forest green | | `catppuccin-latte` | Catppuccin Latte | | `one-light` | Atom One Light | | `github-light` | GitHub Light | The old theme ids `dark`, `light`, `pastel-dusk` and `pastel-dawn` still work. They now point to the Undertow themes, so an older config does not break. ## Config Your theme is saved for all projects in `~/.empryo/config.json`: ```json { "theme": { "name": "catppuccin", "transparent": true, "userMessageOpacity": 70, "diffOpacity": 30, "borderStrength": "strong" } } ``` | Field | Description | |-------|-------------| | `name` | The theme id (built-in or your own) | | `transparent` | Make the background transparent, so your terminal's own background shows through | | `userMessageOpacity` | How solid the background of your messages is in transparent mode: `0` (clear), `30` (dim), `70` (subtle), `100` (solid) | | `diffOpacity` | How solid the background of diffs is in transparent mode: `0` (clear), `30` (dim), `70` (subtle), `100` (solid) | | `borderStrength` | How visible borders are: `"default"`, `"strong"` or `"op"` | ### Theme picker controls These keys work in the terminal UI theme picker: | Key | Action | |-----|--------| | `↑` / `↓` | Move through themes (with live preview) | | `Enter` | Apply the selected theme | | `Tab` | Turn transparent mode on or off | | `M` | Change the message background opacity | | `D` | Change the diff background opacity | | `B` | Change the border strength | ## Custom themes To make your own theme, add a JSON file to `~/.empryo/themes/`: ```bash mkdir -p ~/.empryo/themes ``` ### Example `~/.empryo/themes/my-theme.json`: ```json { "_extends": "dark", "_label": "My Theme", "_description": "A custom dark theme", "_variant": "dark", "brand": "#ff6600", "brand-secondary": "#ff0040", "bg-primary": "#1a1a2e", "bg-elevated": "#16213e", "text-primary": "#e0e0e0", "success": "#00ff88", "error": "#ff4444" } ``` The file name without `.json` becomes the theme id. This one is `my-theme`. ### Metadata fields | Field | Description | |-------|-------------| | `_extends` | The built-in theme to start from. You only list the colors you want to change. Default: `dark`, which means `proxysoul-undertow` | | `_label` | The name shown in the theme picker | | `_description` | The description shown in the picker | | `_variant` | `"dark"` or `"light"`, shown as an icon in the picker | ### Token reference Write color names in kebab-case, like `bg-primary`: - **Brand**: `brand`, `brand-secondary`, `brand-dim`, `brand-alt` - **Text**: `text-primary`, `text-secondary`, `text-muted`, `text-dim`, `text-faint`, `text-subtle` - **Backgrounds**: `bg-app`, `bg-primary`, `bg-secondary`, `bg-elevated`, `bg-popup`, `bg-popup-highlight`, `bg-overlay`, `bg-input`, `bg-banner`, `bg-banner-error`, `bg-user` - **Borders**: `border`, `border-focused`, `border-active`, `border-slash` - **Status**: `success`, `error`, `warning`, `info`, `amber` - **Diff**: `diff-added-bg`, `diff-removed-bg`, `diff-added-sign`, `diff-removed-sign` - **Accents**: `accent-user`, `accent-assistant`, `accent-system` ### Legacy format You can also put several themes in one file, `~/.empryo/themes.json`: ```json { "my-theme": { "_extends": "dark", "brand": "#ff6600" }, "another-theme": { "_extends": "light", "brand": "#0066ff" } } ``` ## Hot reload Empryo watches your theme files. When you save a change to a custom theme, the app updates right away. You do not need to restart. --- ## Decision models Canonical: https://empryo.com/docs/tools/typesafe > Small, fast models that make yes/no and pick-one decisions beside the main model: Stem matching, find re-ranking, skill suggestions, error triage and tool picks. How to pick a provider, turn each feature on, what it costs and its limits. A decision model does not write text. You give it some context and a question with named options, and it says which option fits and how sure it is. Empryo uses one for a few small decisions beside the main model, such as matching a request to an earlier Stem fix, reordering `find` results or suggesting a skill you have installed. Every feature is off by default. ## Pick a provider Open the settings with `/decisions` in the terminal UI, or **Settings → Decision models** in the desktop app. The first choice is the provider: - **TypeSafe** uses `jev`, TypeSafe's classifier, built for exactly this. It needs a TypeSafe key, or a key you already use with LLM Gateway or OpenRouter (below). Read [the measurements and method](/typesafe) before you turn any feature on. - **A chat model** uses any model you already have, such as an OpenAI one. Pick it in the same settings (`decisionModels.chatModel`, default `openai/gpt-5-mini`). It answers with structured output and reports its own confidence. Older configs that use `typesafe.*` keep working: Empryo reads them, and writes new changes to `decisionModels.*`. ## Stem matching With the Stem add-on on (`agentFeatures.stem`), **Stem matching** asks the decision model which earlier fix, earlier answer or stopped task a request is about. It finds them when you word things differently or write in another language, where Stem's own word matching misses. In **shadow** mode the picks are only logged in the Stem panel, next to what Stem chose without help. In **apply** mode a pick with at least 60% confidence adds Stem's note for that request. It replaces Stem's small-model answer check while it is on. On Stem's matching test (7 bugs whose fix was undone, each asked 4 ways: reworded, vague, French and Arabic), Stem alone showed the right earlier fix for 21 of 28 requests; with a chat model as the decision model in apply mode it showed 28 of 28. Neither showed a wrong fix, and neither showed a fix for an unrelated request. ## TypeSafe provider ### Get a key Create an API key at [typesafe.ai](https://typesafe.ai). In the terminal UI, run `/decisions` to open the panel. With TypeSafe as the provider, the API key row comes right after it: press Enter on it, paste the key, and press Enter again. The key is saved as the `typesafe-api-key` secret, in your operating system's keychain when one is available. All the switches below are in the same panel. `/websearch` is a different command. It turns the web search tool on or off. In the desktop app, open Settings and pick **Decision models**. Paste the key into the field marked **TYPESAFE_API_KEY** and save. The field is hidden while **TypeSafe key from** is set to LLM Gateway or OpenRouter, because those use the key you already saved for that provider. You can also set an environment variable before you start Empryo: ```bash export TYPESAFE_API_KEY=apikey_... ``` ### Use an LLM Gateway or OpenRouter key instead jev is also served by LLM Gateway and OpenRouter, so a key you already use there works too. The **TypeSafe key from** row (TUI `/decisions`, desktop Decision models settings, or `decisionModels.via` in config) picks which key runs it: - `auto` (default): your TypeSafe key, then your LLM Gateway login or key, then your OpenRouter key. - `typesafe`: only the TypeSafe key. - `llmgateway`: only LLM Gateway, billed to your LLM Gateway account. - `openrouter`: only OpenRouter (`~typesafe/jev-latest`), billed to your OpenRouter account. On the phone or in a chat bridge, `/decisions-via openrouter` sets the same thing. A rejected key pauses only that source, for 30 minutes. In `auto` the same call moves straight on to the next available key, so jev keeps answering; with a fixed source, jev stays off until the key is fixed or you pick another source. ## Turn it on In the terminal UI, `/decisions` lists every switch. Press Enter to flip the one under the cursor: - **Use decision models** is the main switch. When it is off, Empryo never calls a decision model. - **Stem matching** and **Stem matching mode** (see above). - **Search re-rank** reorders the results of the `find` tool. - **Re-rank mode** is `shadow` or `apply` (see below). - **Skill suggestion** picks at most one of your installed skills per turn that fits the request. - **Error triage** takes a second look at a failed model call, once, just before the turn would end. - **Tool pick** works on models that load tools only when needed. It names the tool a request is likely to need and adds that name as a note to the turn. The tool itself is not loaded. This sends your request text to the decision model. `shadow` is the default re-rank mode. Empryo works out the new order and its cost and shows the result in the chat, but the model still gets the original order. This lets you see what re-ranking would do before you trust it. `apply` gives the model the new order. The desktop app uses the same names in its Decision models settings section. Each feature needs three things: its own switch, the main switch, and a working provider (a TypeSafe key, or a chat model you can reach). ## Error triage When a model call fails, Empryo reads the provider's error message and decides what to do: try again, shorten the conversation and resend, or end the turn. It does this by matching known error wordings. Providers word their errors differently and change them over time, so sometimes a message is not recognized. With **Error triage** on, the decision model is asked only at one moment: when the pattern matching has decided the failure is permanent and the turn is about to end. If it says the error is really a context overflow (the conversation is too long) or a temporary fault, and it is at least 70% sure, Empryo recovers instead of ending the turn. It is never asked about authentication errors. Treating a bad API key as "try again" would spend money in a loop and hide the error you need to see. On a set of 24 real failures, the built-in pattern matching handled 23 and TypeSafe's jev handled all 24 with no tuning, at a median of 263 ms. The one the patterns missed was a Codex error, `Input exceeds the maximum length of 1048576 characters`, which contains neither "context" nor "token". jev classified it as an overflow with 96% confidence. Because triage only runs on failures the pattern matching has already given up on, a session without errors makes no decision-model calls at all. ## What a classifier is not for Two other uses were built, measured against the simpler code they would have replaced, and lost. Re-ranking `grep` results: over 220 real searches, the file the agent went on to read was in the top three results 78.6% of the time in the tool's own order, and 74.1% of the time in jev's order. It was removed. The forgotten-file check: when you change some files, git history suggests five files that usually change with them, and jev was asked to pick the one this change actually needs. The top git-history suggestion was right 62.1% of the time. jev's pick was right 52.6% of the time (95 test cases from real commits). So the git-history suggestion ships on its own, with no model call. The pattern across these results, measured with jev: a classifier is better than hand-written patterns at reading **plain-language text** such as error messages. It is worse than simple counting at ranking **code files**. ## What you see and what it costs Each call shows a note in the chat with the decision, the model, the token count and the cost. Each call is also added to the tab's total and to your usage history. With TypeSafe, one call costs about **$0.00005**. Over **290 calls**, the median time was **244 ms** and 90% of calls finished within **283 ms**. jev costs **$0.042 per million input tokens**. Empryo knows this price itself, because jev is not listed in the usual model catalogs. With a chat model, a call costs what that model charges for a short request. Shadow mode still makes a paid call. ## Configuration This config turns on re-ranking in shadow mode and leaves skill suggestion off: ```json { "decisionModels": { "enabled": true, "provider": "typesafe", "rerank": true, "rerankMode": "shadow", "skillSuggestion": false, "model": "jev-latest", "rerankTimeoutMs": 800 } } ``` The other switches are `errorTriage`, `toolPick` and `stem` (with `stemMode`). To use a chat model instead, set `"provider": "model"` and `"chatModel"`. With TypeSafe, `model` defaults to `jev-latest`. Pin a version (for example `jev-1.12`) if you want behavior that does not change. Put this in `~/.empryo/config.json` for all projects, or in `.empryo/config.json` for one project. Keep the API key in the secret field or the environment variable, not in this file. ## How it fails - **No key, or a switch is off:** no call is made. - **Timeout:** re-ranking has 800 ms. After that, the tool's own order is used. - **API error:** the tool's own order is kept. - **Fewer than 3 results:** no call is made. - **The decision model is unsure:** if no option gets at least 15% probability, the order is left alone. - **More than 8 searches in one turn:** the rest of the turn runs without re-ranking. - **The same search twice in one turn:** it is asked once and the answer is reused. ## What it will not do Re-ranking only applies to **`find`**. It changes the order of results that are already there. It cannot find a file that is missing from the results. It does not write code and does not replace the model running your turn. Re-ranking was also tried on `grep` and removed after it did worse on **220 replayed searches**. The right file was in the top three in **78.6%** of searches with the tool's order, and in **74.1%** with jev's order. Re-ranking helped **21 searches** and hurt **31**. A review-verdict feature was also removed, after **2 of 20 confident answers** said **PASS** where the review said **FAIL**. TypeSafe does not decide whether a review passes. See [the measurements and replay method](/typesafe) for how these results were scored. --- ## Troubleshooting Canonical: https://empryo.com/docs/troubleshooting > Fix common Empryo problems: no models, rate limits, missing icons, language servers, Neovim, full context, Copilot tokens, pairing, and Linux desktop issues. Can't find your problem here? Ask in the [Discord](https://discord.gg/fX4H7GYSMJ) or open a [GitHub issue](https://github.com/proxysoul/Empryo/issues). ## No models in the picker Empryo has no model access yet. Sign in with `/login`, or add an API key: ```bash empryo --set-key anthropic sk-ant-... # or set an environment variable and open a new terminal: export ANTHROPIC_API_KEY=sk-ant-... ``` To see which providers are set up: ```bash empryo --list-providers ``` ## No thinking blocks from a custom provider You turned on `/reasoning`, the model can reason, but no thinking appears. This happens with custom providers you configured yourself. Empryo only sends the reasoning settings you declare for a custom provider, so by default it doesn't ask for reasoning at all. You can fix it in either of two ways. The first is to let Empryo decide per model: ```json { "providers": [ { "id": "my-gateway", "baseURL": "https://llm.internal.corp.com/v1", "reasoning": { "auto": true } } ] } ``` With `auto`, Empryo looks up each model in the public models.dev catalog and requests reasoning for models known to support it. See [custom providers](/docs/providers/custom#auto---let-empryo-pick-the-body). The second way is to set `reasoning.effort` yourself if you know which field your backend expects. Both options are off by default and apply per provider, so providers you don't change keep working as before. ## Getting rate-limited (429) Increase the retry settings in `~/.empryo/config.json`: ```json { "retry": { "maxAttempts": 5, "baseDelayMs": 3000 } } ``` The wait doubles after each attempt. With these values, Empryo waits about 3s, 6s, 12s, 24s, and 48s between retries. ## "400 Provider returned error" from a router Routers such as OpenRouter pass on the upstream provider's refusal as `400 Provider returned error`. Empryo shows the provider's own reason after it, for example `Provider returned error · Minimax: invalid params …`. If the router fails now and then, retry those 400s like a rate limit: ```json { "retry": { "retryOnStatus": [400] } } ``` If the same 400 comes back on every retry once the conversation gets long, and only rewinding helps, the provider is counting more input tokens than Empryo estimated. It then rejects a `max_tokens` that fills the context window to the edge. When the 400 says so (`maximum context length`), Empryo already retries once with room to spare. When it gives no reason, turn on: ```json { "retry": { "shrinkOutputOn400": true } } ``` After such a 400, Empryo retries once with room to spare and keeps that room for the model for the rest of the session. It is off by default and changes nothing for a 400 that gives no reason until it is on. ## Icons show as boxes or `??` Your terminal font doesn't include the icons. Install a [Nerd Font](https://www.nerdfonts.com) and select it in your terminal settings, or run `/setup` inside Empryo to check and install it. If you can't install fonts, turn the icons off: ``` /font nerd ``` ## Language server isn't working Empryo installs servers on its own when a session starts. Run `/lsp status`. If the server for your language still isn't running (for example, its toolchain such as `pip3` or `cargo` is missing), install it by hand: ``` /lsp install ``` This lets you pick a server from the Mason registry. Restart Empryo after installing. ## Neovim not found The editor panel needs Neovim 0.11 or later. Run `/setup` to install it, or use your package manager: ```bash brew install neovim # macOS sudo apt install neovim # Debian/Ubuntu sudo pacman -S neovim # Arch ``` If `nvim` isn't on your `PATH`, set `nvimPath` in `~/.empryo/config.json`. ## Editor panel looks garbled Your terminal needs true color support. Most modern terminals have it. If yours doesn't turn it on automatically, add this to your shell profile: ```bash export COLORTERM=truecolor ``` ## Context is full / "too many tokens" Run: ``` /compact ``` This summarizes the conversation so far to free up space. You can also switch to a model with a larger context window (`Ctrl+L`). To compact automatically earlier, lower the threshold in your config: ```json { "compaction": { "triggerThreshold": 0.6 } } ``` ## Copilot: 401 / token expired Your Copilot token changed. The simplest fix is to sign in again: ```bash empryo --login copilot ``` See [Copilot setup](/docs/providers/copilot) for details. ## Agent is slow Switch to a faster model with `Ctrl+L`, or use the [task router](/docs/recipes/task-router) to send simple tasks to a fast model and keep a stronger one for coding. ## Finding an old session Inside Empryo, open `/session history`. From the command line: ```bash empryo --headless --chat ``` Sessions are stored in `~/.empryo/sessions/`. ## Linux desktop: black window / crashes on Wayland Some Chromium versions have a bug in Wayland color management that affects KWin/Plasma and other compositors. The window turns black or invisible, and the log shows `Unable to set image transfer function`. Builds newer than 3.3.0-beta work around this automatically. On an older build, launch with: ```bash ./Empryo-*.AppImage --disable-features=WaylandWpColorManagerV1 ``` If the GPU process keeps crashing (for example with broken drivers), Empryo notices after three crashes, restarts with hardware acceleration off, and remembers that choice in `window-prefs.json`. ## Desktop runs hot / fans spin up The usual cause is the codebase map animating at full speed. Recent builds slow it down automatically when the agent is idle, and speed it back up when something happens. If your machine still runs warm: - **Switch the map to Eco.** Click the GPU pill on the map, or go to **Settings → Window → Maze GPU**. **Fast** uses a dedicated GPU and is the default. **Eco** uses the integrated GPU, which is cooler, quieter, and easier on battery. - **Cap the frame rate.** Go to **Settings → Window → Maze frame rate** and limit the map to 30 fps. Windows that are hidden or out of focus already slow down on their own. On a Mac with the **Blurred** backdrop, the blur stops while another app is in front, which saves power; the window looks flat until you switch back. **Settings → Window → Keep blur in the background** keeps it translucent at the cost of more battery, after a restart. The **Solid** backdrop uses the least power. ## "@something failed: ENOENT" when sending Older desktop builds read every word starting with `@` as a file mention, so a prompt containing a package name like `@scope/package` could not be sent. Current builds send such words as plain text. On an older build, wrap the name in backticks or put a space after the `@`. Without GPU acceleration (virtual machines, remote desktops, `--disable-gpu`), the map turns off its effects and caps itself at 30 fps. If there is no WebGL at all, it shows a "not available" panel. The rest of the app works without it. ## Linux desktop: AppImage won't start on Ubuntu 23.10+ Ubuntu's AppArmor settings block the Chromium sandbox for AppImages, so the app exits before it draws anything. **Use the `.deb` package instead.** It installs an AppArmor profile and sets up the sandbox correctly. If you must use the AppImage: ```bash ./Empryo-*.AppImage --no-sandbox # weakens isolation; prefer the .deb ``` ## Linux desktop: translucency and blur On macOS and Windows, the **Blurred** backdrop uses the operating system's blur. Linux has no such system feature, so on Linux "Blurred" looks the same as "Solid". For real transparency on Linux, go to **Settings → Window → Fine-tune → Behind the window → See-through**. This needs a restart and a compositing window manager. What you get depends on your desktop: | Desktop | What you get | | ------------------------------- | ----------------------------------------------------------------------------------------------------------- | | **KDE Plasma (X11 / XWayland)** | Blurred automatically. Empryo asks KWin for blur behind the window | | **KDE Plasma (Wayland)** | See-through. Install the [forceblur](https://github.com/taj-ny/kwin-effects-forceblur) KWin effect for blur | | **Hyprland** | Blurred if `decoration:blur { enabled = true }` is set | | **GNOME, XFCE, Cinnamon (X11)** | See-through. Run `picom` with `blur-background = true` for blur | | **GNOME (Wayland), Sway, Niri** | See-through, no blur | | **COSMIC** | Transparency is [broken for Electron apps](https://github.com/pop-os/cosmic-comp/issues/1826) upstream | On Wayland, apps can't request blur yet. A standard for it exists, but Chromium and Electron don't support it yet, so blur has to be set up in your compositor. Don't use `--enable-transparent-visuals`, which some old guides recommend. It makes every window semi-transparent and washes out colors. If a see-through window is unusable on your system, turn it off by editing `windowBackdrop` in `~/.config/Empryo/window-prefs.json`: ```json { "windowBackdrop": "solid" } ``` ## Pairing and connecting When pairing or connecting fails, Empryo shows one of these messages. A connection that tries several networks lists each one, for example `Wi-Fi: No answer · Tailscale: No route to it`. | Message | What to do | | ------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `Empryo is not sharing there` | Empryo on the other computer is not listening. Run `/remote` there. To keep it listening after you quit, run `/remote background on` there. | | `No route to it` | The two devices are not on the same Wi-Fi, and Tailscale is not on for both. Join the same network, or start Tailscale on both. | | `No answer` | The other computer is asleep, off, or behind a firewall. Wake it, or see [Windows Firewall blocks devices on the Wi-Fi](#windows-firewall-blocks-devices-on-the-wi-fi) or, on Linux, [ufw blocks devices on the Wi-Fi](#ufw-blocks-devices-on-the-wi-fi). | | `Empryo there is not answering` | The other computer took the connection but Empryo stopped sharing. Remote access stops when the last Empryo window there closes. Run `/remote` there again, or turn on **Keep remote access on** so it keeps running. | | `That code is wrong` | The link was mistyped or cut off. Copy the whole link again. | | `Pairing is closed there` | More than 10 minutes passed since `/remote`, or 5 minutes for a quick link. Run `/remote` on the other device for a fresh link. | | `That code was already used` | Each link pairs one device. Run `/remote` on the other device for a fresh link. | | `Another device tried the same code` | A second device used the link first, so Empryo closed pairing to be safe. Run `/remote` for a fresh link. | | `The other device said no` | Someone clicked **Deny** on the other device. Pair again and click **Allow** there. | | `Nobody allowed it on the other device in time` | The Allow question waits 90 seconds. Pair again and answer it sooner. | | `This pairing link has no address to reach the other device` | `/remote` found neither Wi-Fi nor Tailscale on the other device. Connect it to a network, then run `/remote` there again. | | `The other device does not know this computer any more` | The other device forgot this one. Pair again. | | `The device could not prove it is the one you paired` | The other computer's identity changed, for example after a reinstall that cleared `~/.empryo`. Forget the device, then pair again. If nothing changed on the other computer, another device may be pretending to be it. | | `That device paired this computer as a phone` | An older pairing is in the way. Forget this computer on the other device, then pair again. | | `runs Empryo 3.11.0 and this computer runs 3.10.2` | Two computers need the same Empryo version. Update the older one. | | `wants a pairing link` | The host only trusts some computers without a link. Paste a pairing link, or change the host's [trust setting](/docs/surfaces/devices#skip-the-allow-on-an-agent-box). | ## Windows Firewall blocks devices on the Wi-Fi On Windows, the firewall decides whether phones and computers on the Wi-Fi can reach Empryo. Tailscale is not affected. `/remote` says so when Windows blocks Empryo or has never asked about it, and **Settings › Remote › This computer** shows a **Windows Firewall** row. To let devices in, run `/remote firewall`, or click **Allow on private networks** in that row. Windows asks for an administrator once. The rule lets Empryo in on private and work networks and never on public ones. When the rule is already there, `/remote firewall` only shows the current state. ## ufw blocks devices on the Wi-Fi On Linux with ufw turned on, ufw blocks phones and computers on the Wi-Fi from reaching Empryo. Tailscale is not affected. When remote access starts, Empryo notes that ufw is on and gives you the command. Run it once: ```sh sudo ufw allow 8787:8790/tcp ``` Empryo listens on port 8787. If that port is taken, it uses one of the next three, so the rule covers all four and still works after updates. If you set a different `remotePort`, allow that port and the three after it instead. ## Nothing on the Wi-Fi reaches Empryo in WSL With WSL's default NAT networking, nothing on the Wi-Fi can reach Empryo inside WSL. `/remote` in WSL then offers only the quick link, and Tailscale if Tailscale runs inside WSL, and says why. To let phones and computers on the Wi-Fi reach it, turn on mirrored networking: 1. On Windows, open `%UserProfile%\.wslconfig` and add these lines: ```ini [wsl2] networkingMode=mirrored ``` 2. Run `wsl --shutdown` in PowerShell, then start your distro again. 3. Run `/remote` in WSL again. Mirrored networking needs Windows 11 22H2 or later. ## Reporting a crash Empryo writes crash reports and logs even when it exits early. Attach them to your report: - **Desktop app:** `~/.config/@empryo/desktop/logs/` on Linux, or `~/Library/Logs/@empryo/desktop/` on macOS. Include `main.log` and any `crash-*.txt` files. - **Terminal UI / CLI:** `~/.empryo/logs/crash-tui-*.txt` on macOS/Linux, or `%LOCALAPPDATA%\Empryo\logs\crash-tui-*.txt` on Windows, plus anything printed in the terminal. Start `empryo` from a terminal so you can copy that output. - **Error log:** `errors.jsonl` in the same `logs` folder, on every surface. It has every error Empryo reported, including ones that were shown only briefly. See [Logs, errors and worker effort](/docs/tools/logs). ## Windows: command not found after install The installer updates your `PATH`, but the change doesn't reach terminals that were already open. Open a new PowerShell or Windows Terminal window. If you used the portable ZIP, add the extracted folder to your `PATH` or run `empryo.exe` by its full path. Keep the `deps/` folder next to `empryo.exe`. See [Windows notes](/docs/installation#windows-notes) for what differs on Windows. ## Still stuck? - Run `/diagnose` inside Empryo to check language servers, code parsing, and indexing. - Run `/errors` to see what failed, which model calls ran and how long they took. See [Logs, errors and worker effort](/docs/tools/logs). - Run `/status` for a system status dashboard. - Open a [GitHub issue](https://github.com/proxysoul/Empryo/issues). # Blog --- ## NVIDIA's SoL-Pi pruning cost me 30% more Canonical: https://empryo.com/blog/sol-pi-pruning-on-real-bugs Published: 2026-09-30 · ProxySoul > Ran it on real Hono bugs and every pruning rule lost to one boring habit: don't touch what the model already saw. A coding agent sends the whole conversation on every request. The provider caches the start, so the unchanged part costs a tenth of the price. So one habit beats any clever trimming: **keep the start of the conversation exactly the same.** That's a stable prefix. NVIDIA's [SoL-Pi](https://github.com/NVlabs/SoL-Pi) is four cost-saving add-ons for the Pi coding agent. One, **ObservationPack**, does the opposite: it rewrites the middle of the conversation to shrink it. I ported it into Empryo line for line and fixed three real bugs 36 times to measure it. ```json { "title": "Cost to fix three real Hono bugs", "axis": "Dollars, sum of the three per-bug medians", "unit": "usd", "source": "Shorter bars win. 36 runs, 6 per bug per side, Claude Haiku 4.5 at Anthropic list prices, 28 September 2026.", "rows": [ { "name": "Empryo", "tool": "empryo", "value": 1.1325, "lane": "us", "baseline": true, "detail": "as it ships" }, { "name": "Empryo + ObservationPack", "tool": "empryo", "value": 1.4725, "lane": "them", "detail": "SoL-Pi's rule, ported line for line" } ] } ``` > **Tip:** > - Removing anything from the middle of a conversation makes the provider bill everything after it again. > - On real bugs the agent also went back for what was removed. > - No pruning rule beat leaving the conversation alone. The best one tied. ## How the cache bills you Anthropic bills a cached token at a tenth of the input price, and a token written to the one-hour cache at twenty times that. Everything after the first changed block counts as new and is written again. How far back the removed result sits decides the size of that bill: ```json { "title": "Removals that made the whole conversation be billed again", "axis": "Share of removals, by how far back the result sat", "unit": "percent", "max": 100, "source": "Shorter bars win. 356 removals on a test project. Distance is counted in conversation blocks: one message, tool call or tool result each.", "rows": [ { "name": "0 to 7 blocks back", "value": 0, "lane": "us", "detail": "0 of 233" }, { "name": "8 to 11 blocks back", "value": 16, "lane": "past", "detail": "7 of 44" }, { "name": "12 to 15 blocks back", "value": 30, "lane": "past", "detail": "10 of 33" }, { "name": "16 to 19 blocks back", "value": 36, "lane": "past", "detail": "9 of 25" }, { "name": "20 or more back", "value": 100, "lane": "them", "detail": "21 of 21" } ] } ``` A removal only pays for itself after enough requests: `tokens billed again × 19 ÷ tokens removed`. ```json { "title": "Requests before a removal pays for itself", "axis": "Requests", "unit": "count", "source": "Shorter bars win. Medians from the same test project, at Anthropic's prices for the one-hour cache.", "rows": [ { "name": "Remove a recent result", "value": 19, "lane": "us" }, { "name": "A whole bug fix", "value": 68, "lane": "past", "detail": "for comparison" }, { "name": "Remove an old result", "value": 483, "lane": "them" } ] } ``` One extra request to fetch something back also cancels about 43 requests' worth of savings. ## What ObservationPack does Any tool result over **10 KB**, such as a file the agent read or a test log, stays in full for two requests, then shrinks to a stub. ## The test - **Project:** [Hono](https://github.com/honojs/hono), a web framework with a real test suite. - **Bugs:** three recent fixes, each started from the commit just before the fix: [form data read after text()](https://github.com/honojs/hono/issues/5365), [ETag changes with stream chunks](https://github.com/honojs/hono/pull/5205) and [wildcard routes that match too much](https://github.com/honojs/hono/pull/5252). - **Grading:** the tests from the real fix, added after each run, unseen by the agent. - **Model:** Claude Haiku 4.5 for every run. - **Runs:** 6 per bug per side, side by side, 36 in total. Every number below is a median. 35 of 36 runs fixed their bug. The one miss, an ObservationPack run on the router bug, failed 1 of 644 tests. ## The result: two losses and a tie **Form data** ```json { "title": "Form data after text()", "axis": "Dollars per fix, median of 6 runs", "unit": "usd", "source": "Shorter bars win. The gap is larger than the spread between runs.", "rows": [ { "name": "Empryo", "tool": "empryo", "value": 0.3675, "lane": "us", "baseline": true, "detail": "runs from $0.27 to $0.67" }, { "name": "+ ObservationPack", "tool": "empryo", "value": 0.7605, "lane": "them", "detail": "runs from $0.35 to $1.00" } ] } ``` **ETag** ```json { "title": "ETag changes with stream chunks", "axis": "Dollars per fix, median of 6 runs", "unit": "usd", "source": "Shorter bars win. The gap is larger than the spread between runs.", "rows": [ { "name": "Empryo", "tool": "empryo", "value": 0.1665, "lane": "us", "baseline": true, "detail": "runs from $0.15 to $0.18" }, { "name": "+ ObservationPack", "tool": "empryo", "value": 0.216, "lane": "them", "detail": "runs from $0.16 to $0.25" } ] } ``` **Router** ```json { "title": "Wildcard routes that match too much", "axis": "Dollars per fix, median of 6 runs", "unit": "usd", "source": "Shorter bars win. This gap is inside the normal spread between runs, so it's a tie.", "rows": [ { "name": "Empryo", "tool": "empryo", "value": 0.5985, "lane": "us", "baseline": true, "detail": "runs from $0.36 to $0.76" }, { "name": "+ ObservationPack", "tool": "empryo", "value": 0.496, "lane": "them", "detail": "runs from $0.38 to $0.85" } ] } ``` ## Why it lost On the form data bug, ObservationPack stubbed `src/request.ts`, a 16.8 KB file, two requests after the agent read it. The agent was still editing it, so it read it again in small pieces, over and over 😅 The recall tool didn't help, because it returns the copy from before the agent's edits. ```json { "title": "Times the agent fetched a file again", "axis": "Re-reads plus recalls, sum of the three per-bug medians", "unit": "count", "source": "Fewer is better. A re-read is a read of a file already read in the same run.", "rows": [ { "name": "Empryo", "tool": "empryo", "value": 15, "lane": "us", "baseline": true }, { "name": "+ ObservationPack", "tool": "empryo", "value": 31, "lane": "them" } ] } ``` Each request cost about 1 cent on both sides. ObservationPack made more of them, and every prune rewrote the cache. ```json { "title": "Requests to fix the three bugs", "axis": "Requests, sum of the three per-bug medians", "unit": "count", "source": "Fewer is better. Each request cost about 1 cent on both sides.", "rows": [ { "name": "Empryo", "tool": "empryo", "value": 114, "lane": "us", "baseline": true }, { "name": "+ ObservationPack", "tool": "empryo", "value": 135, "lane": "them", "detail": "18% more" } ] } ``` ## Other pruning rules I tried Before Hono I tried gentler rules on a synthetic project with 19 planted bugs. None beat the stable prefix. ```json { "title": "Every way I tried to trim old tool results", "axis": "Dollars per run, mean", "unit": "usd", "source": "Shorter bars win. Synthetic project with 19 planted bugs, Claude Haiku 4.5, Anthropic list prices, 27 September 2026.", "rows": [ { "name": "Stable prefix", "tool": "empryo", "value": 0.82, "lane": "us", "baseline": true, "detail": "Empryo as it ships, 17 runs" }, { "name": "Only the newest results", "tool": "empryo", "value": 0.78, "lane": "alt", "detail": "9 runs, a tie" }, { "name": "ObservationPack", "tool": "empryo", "value": 0.81, "lane": "them", "detail": "6 runs, it fired once" }, { "name": "Stale results, last 16 blocks", "tool": "empryo", "value": 1.23, "lane": "them", "detail": "3 runs" }, { "name": "Stale results, anywhere", "tool": "empryo", "value": 1.26, "lane": "them", "detail": "6 runs" } ] } ``` The only rule that didn't lose removed results so new the cache hadn't moved past them. Each request got 16% cheaper, the agent made 17% more of them, and the total came out even. Every rule reaching further back cost more. ## Their numbers and mine NVIDIA tested ObservationPack on its own before shipping it ([write-up](https://nvlabs.github.io/SoL-Pi/), [paper](https://arxiv.org/abs/2609.20519)). Same idea, opposite result: | | NVIDIA's test | My test | |---|---|---| | Agent | Pi | Empryo | | Tasks | 11 long EdgeBench tasks | 3 Hono bug fixes | | Big results | Kept in full | Trimmed on arrival | | Stub | 2 KB + 1.5 KB | 512 B + 512 B | | **Bill** | **23.6% lower** | **30% higher** | Across all four add-ons, they report 45 to 49% fewer tokens than plain Pi, about a third lower cost and about 94% of Pi's score. I'm not claiming SoL-Pi is wrong about Pi. The setups differ in three ways: - **Pi keeps large results in full.** Their write-up says a large file "reappeared in every later request" in plain Pi. Empryo trims it the first time, so there is less to save. - **Their tasks are long.** They note savings on shorter tasks "have little time to accumulate". A bug fix here takes 20 to 90 requests. - **Their stub was bigger.** A 3.5 KB stub still hides most of a 16.8 KB file the agent is editing. ## What I do instead - **Trim big output before it goes in.** The cache never sees the full text, so there's nothing to rewrite later. - **Never edit what the model has already seen** while the cache is warm. - **Shrink once, not every turn.** When a conversation must get smaller, summarize it in one step instead of trimming a little on every request. I'm not shipping ObservationPack. SoL-Pi's Action Fusion runs the test command in the same step as the edit and leaves the history alone, so I'll try that next. --- ## Jev makes the small calls so the big model can cook Canonical: https://empryo.com/blog/jev-and-the-harness Published: 2026-09-16 · ProxySoul > Typed answers in milliseconds for a fraction of a cent. Wired into five spots, kept only where it beat frontier models. A coding agent makes dozens of small decisions every turn. Which skill to load? Which search result matters? Is this API error a rate limit worth retrying, or a bad parameter? Does this click need your approval? Agents usually ask a large model and pay in seconds and dollars, or match text patterns and hope they hold. On September 15, TypeSafe AI launched Jev, a model built for a third way. Jev doesn't write text. You give it a state and typed questions, and it returns a choice, a probability per option and a confidence score, usually in 70 to 300 milliseconds, at $0.042 per million input tokens. I wired it into Empryo at five decision points and tested eight jobs on real coding sessions. [Video: Jev reordering search results in 260 milliseconds for $0.00002, placing the relevant billing calculator first.](https://empryo.com/blog/jev-find-rerank.mp4) *Jev reordering search results in 260 milliseconds for $0.00002, placing the relevant billing calculator first.* ## What a decision model does A large language model predicts the next token, which suits prose, explanations and code. Most small steps inside an agent need a decision instead: one option from a list, a yes or a no, or how sure the model is. TypeSafe calls Jev a "System One" model, after the fast, intuitive kind of thinking. You send a state, such as a request, search results or an error payload, plus structured questions, and Jev answers them all at once with calibrated probabilities. A search-ranking request looks like this: ```json request { "state": { "request": "find files calculating token cost" }, "questions": { "target_file": { "type": "choice", "instructions": "Which file should the agent inspect first to find token cost calculations?", "criteria": { "billing/cost-alerts": "export function costAlerts(n)", "billing/cost-calc": "export function costCalc(n)", "ui/cost-panel": "export function CostPanel()" } } } } ``` ```json response { "answers": { "target_file": { "choice": "billing/cost-calc", "confidence": 0.81, "probabilities": { "billing/cost-calc": 0.71, "ui/cost-panel": 0.17, "billing/cost-alerts": 0.12 } } }, "usage": { "input_tokens": 404, "output_tokens": 0 } } ``` That answer took 266 milliseconds and cost $0.000017. **$0.042 / 1M tokens** Input only. Jev returns no text, so output is free. **260 ms median latency** For search re-ranking, Empryo waits at most 800 ms, then keeps its own order. **Many questions per call** Several questions go in one request and are answered together. ## Five places Jev helps inside Empryo ![The five decision points where Jev integrates into an Empryo turn.](https://empryo.com/blog/jev-where.svg) *The five decision points where Jev integrates into an Empryo turn.* | Decision point | What Jev decides | What happens without it | |---|---|---| | Skill suggestion | Which one of your installed skills (reusable instructions) fits the request | Keyword matching | | Search re-ranking | The order of search results, based on what you asked for | Empryo's code-map ranking and word overlap | | Failure triage | Whether a failed model call is temporary and worth retrying | Built-in error patterns | | Approval guard | Whether a click during computer use could have serious consequences | A list of risky words | | UI pilot | The next mouse or keyboard action during computer use, with a confidence score | The main model looks and decides | Each one has its own switch, and all of them are off by default. ### Computer use without paying a frontier model per click Computer use is usually assumed to need a large model on every step: screenshot, reason, stream a reply. Most steps aren't hard reasoning, though. They are picks from on-screen elements: which button to click, which menu to open, which field to focus. Jev picks in a few hundred milliseconds with a confidence score. If confidence drops below your threshold, or a field needs free-form text, the pilot hands control back to your main model. The approval guard sits next to it and checks whether the next click could trigger a payment, a deletion, a send or a security change. It can only add an approval prompt, never remove one, so the worst case is an extra question. ## Failure triage: Jev compared with frontier models When a provider returns an error, the agent either retries or stops the turn. Retrying a rate limit saves the session. Retrying a malformed request burns time and money. I tested Jev and several frontier models on 102 real provider failures from my session logs, graded against the provider's documented error types. | Evaluator | Correct Decisions | Incorrect Retries | Median Latency | Cost per Check | |---|---|---|---|---| | Jev (TypeSafe) | 102 of 102 | 0 | 273 ms | $0.00002 | | GPT-5.6 Terra | 102 of 102 | 1 | 1,387 ms | $0.00250 | | GPT-5.6 Luna | 102 of 102 | 1 | 1,258 ms | $0.00250 | | Claude Haiku 4.5 | 101 of 102 | 0 | 602 ms | $0.00125 | | Minimax M3 (Free tier) | 101 of 102 | 0 | 893 ms | $0.00000 | | Union Alpha (Free tier) | 96 of 97 | 0 | 8,685 ms | $0.00000 | | Empryo Pattern Baseline (Original) | 98 of 102 | 4 | Instant | $0.00000 | ![Seven answerers evaluated across 102 real provider failures. The answer key is the provider's own documented error type.](https://empryo.com/blog/jev-triage-chart.svg) *Seven answerers evaluated across 102 real provider failures. The answer key is the provider's own documented error type.* Jev got all 102 right in a median of 273 milliseconds, matching the best frontier models at about a fifth of their latency and a small fraction of their cost. The test also caught a bug in Empryo's own pattern check. In the four cases Jev won, the pattern for HTTP status `429` also matched the digits inside tool version names such as `text_editor_20250429`. Once it matched `429` only as a whole number, the free built-in check scored 102 of 102 too. So the decision model ended up useful as a reference for testing ordinary code 🫢 ## Where plain code still does better I tried Jev on eight jobs and dropped three after measuring them. ![Eight decisions measured on real sessions. Five wired and available, three discarded where deterministic code won.](https://empryo.com/blog/jev-scoreboard.svg) *Eight decisions measured on real sessions. Five wired and available, three discarded where deterministic code won.* 1. **Ordering individual grep lines.** Letting Jev rank single matching lines dropped top-3 accuracy from 78.6% to 74.1%. One line carries too little meaning, and the match position was a better signal. 2. **Deciding pass or fail in a review loop.** If a model calls a failing report a pass, the loop stops on broken code. Jev agreed with human reviewers on 12 of 20 unclear cases, not good enough for correctness. 3. **Predicting the next tool call.** Counting prompt keywords beat both Jev (26% vs. 15%) and the frontier models. Early on, the prompt usually doesn't say which tools a task needs. That shows only after the agent reads some files. A decision model helps when it must judge what words mean and they don't match exactly. When an index, a graph or a simple rule already has the answer, plain code is faster, cheaper and more reliable. ## How the integration behaves - **Off unless you turn it on.** No key means no TypeSafe calls and no change. - **A bad key stops being called.** If your key is rejected or out of credit (HTTP 401, 402 or 403), Empryo pauses TypeSafe calls for 30 minutes and falls back to its built-in logic. A run of outages pauses it for less. No hangs, no retry loops. - **Every decision is visible.** Each Jev call shows up in the chat with its cost, and in your usage totals under its own model name. ## Turning Jev on Get a TypeSafe API key, then turn on the decisions you want. **Terminal (TUI)** Run `/typesafe` to open the TypeSafe panel, paste your key and switch decisions on or off. ``` /typesafe ``` **Desktop App** Open **Settings**, go to the **TypeSafe** section, paste your API key and turn on the decisions you want. **Terminal (Headless)** Set the key as an environment variable: ```bash export TYPESAFE_API_KEY=apikey_... empryo --headless --events "find where token cost is computed" ``` Jev's decisions and their cost appear in the event stream. **config.json** Or set the switches in `.empryo/config.json`: ```json { "typesafe": { "enabled": true, "rerank": true, "rerankMode": "apply", "skillSuggestion": true, "errorTriage": true, "computerUseGuard": true, "pilot": false } } ``` `rerankMode` takes `shadow` or `apply`. The default, `shadow`, logs Jev's order but leaves the results the model sees alone, so you can measure first. `apply` passes Jev's order through. ## Where I use it now I keep the big model for code and design, Jev for the small calls that need a judgment about meaning, and plain code where a rule already works. --- ## What even is an AI agent harness? Canonical: https://empryo.com/blog/what-is-an-ai-agent-harness Published: 2026-09-15 · ProxySoul > One rename, step by step, and every place the harness changes what you get. You ask an AI coding agent to rename `UserService` to `AccountService`. The model can suggest the new name in one reply. Finishing the job means finding the declaration, telling it apart from unrelated code with the same name, updating every reference, running your checks and reporting what changed. An **AI agent harness** is the software around the model that runs that process. It gives the model context and tools, runs the actions it is allowed to take, records the results and decides when to call the model again. In a coding agent it also connects that loop to your repo and dev environment. I build [Empryo](/), a coding agent. I'll follow one made-up rename to show what to check when any coding agent changes your code. ## The rename ```text src/accounts/user-service.ts exports UserService src/accounts/routes.ts imports UserService src/tests/user-service.test.ts tests UserService src/legacy/user-service.ts exports another UserService ``` A search for `UserService` finds both declarations, but you mean the accounts service. A repo-wide replace would change the legacy one too. The harness decides which tools the model gets for that. Text search returns matching lines, and code navigation tells a declaration from its references. A good agent uses both and reads the source when a tool leaves doubt. ## Context Before each action, the harness assembles the model's input: your request, repo instructions, earlier tool results and a map of the code. Give the agent the scope: which service to change, which behavior to keep and which checks the project uses. Then compare the files it changed with that scope. Dynamic imports, runtime configuration and generated code can hide relationships from search and navigation, so check those by hand. Context also costs money. A large search result stays in the conversation and adds input tokens to every later call. When comparing tools, record total usage, because a short final reply hides the work before it. ## Tools Check that the edits follow the accounts declaration and its references and leave the legacy service alone. A tool that follows the symbol you mean gives the agent a more precise start than a list of matching strings, but it still has to handle references the language tooling can't resolve. In Empryo you can do it from the desktop app or the terminal: state the scope, read the diff, run your checks. Language support varies, and a command called `rename` doesn't guarantee a complete refactor. After the edit, search for leftovers. Some need a human decision, because a public JSON field, a migration or a docs example can share the old name without referring to the symbol. ## Permissions A tool call can change files, run a shell command or contact an outside service, so the harness must check whether each action is allowed before it runs. Editing the accounts files fits this task. Pushing a release or changing production settings needs separate permission. Having the tool available isn't enough. When you compare agents, check where they enforce limits. A prompt asking the model not to run a command is weaker than a harness that refuses to run it. Read the permission docs and test it in a throwaway repository. ## Verification The model's final message proves nothing. Run the type checker and the accounts tests, and read the diff for unrelated edits. For a TypeScript repo with these scripts: ```bash npm run typecheck npm test -- user-service git diff --check git diff ``` Use your project's real commands. A passing test only proves what that test checks, and a rename can compile and still break code that looks things up by name as a string. ## Session state Long tasks can outgrow one context window, the text a model can read at once. The next call needs to know which files changed, which checks ran and what's still open. Anthropic describes a long-running harness that carries work across sessions with a setup step and progress files. Their [engineering write-up](https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents) is worth reading because it covers the failures too: compaction, summarizing the conversation to save space, was not enough on its own to make the agent reliably finish a complex application. Empryo lets you return to saved sessions, but the repo may have changed since. Before continuing a refactor, have the agent check the current diff and rerun the relevant checks. A useful handoff note records the target symbol, the files changed, the exact check results and any callers left to fix. Keep it with the work so the next session can verify it. ## Choosing a harness Give each candidate the same small, well-defined change from a clean checkout. Record the model, version, settings, time limit and allowed tools. To test whether it can solve the problem from symptoms alone, hide your acceptance checks until grading. | Question | Evidence to keep | |---|---| | Did it change the right symbol? | Final diff and remaining references | | Did the application still work? | Type-check and regression-test output | | Did it stay within scope? | Tool log and unrelated file changes | | Could you continue after interruption? | Saved session and handoff notes | | What did it cost? | Usage from all model calls, retries and subagents | For a shortlist, start with [the alternatives guide](/alternatives). For a cost-focused trial, use [this evaluation worksheet](/blog/compare-ai-coding-agents-on-your-repo). To try it in Empryo, follow the [quickstart](/docs/quickstart) and ask for one change in a repository you can restore. --- ## Leaderboards don't know your repo Canonical: https://empryo.com/blog/compare-ai-coding-agents-on-your-repo Published: 2026-09-15 · ProxySoul > How I'd test Claude Code, Codex, Cursor, OpenCode and Empryo on code you actually ship: fixes, the full bill, review time. Two AI coding agents get the same bug report. One finishes in five minutes and leaves a failing test. The other takes nine minutes and hands you a patch you can merge. A speed chart ranks the first one higher. Choosing between Claude Code, Codex, Cursor, OpenCode or Empryo? Run a small trial on code you maintain and measure three things: would you accept the change, how much review did it need, and what did it cost. I build Empryo, so don't trust my verdict 😅 Run this on your own tasks. ## Pick three tasks you can grade Use a bug fix, a refactor and a small feature, each with clear boundaries. For the bug, write a failing regression test first. For the refactor, list the files you expect to change and the behavior that must stay. For the feature, write acceptance criteria before any agent starts. Avoid tasks whose answer is already in the checkout, and strip the fix commits from the history the agent sees. A recent task makes a memorized fix less likely, but a date can't prove it. Keep the grading tests outside the workspace and add them after the run, so the agent can't change them. ## Decide what you are comparing - **A purchase decision.** Use each product with the setup and plan you would actually use at work, and write those differences down. - **A harness comparison.** The harness is everything around the model: the context it gets, its tools and the loop that runs them. Keep the model and provider the same where the products allow it, so the harness is the only difference. Editors, terminal agents and cloud agents fit your day differently, so count setup and review time if that matters. Different models mean the result doesn't prove one harness is better. The [agent harness guide](/blog/what-is-an-ai-agent-harness) covers the parts of that loop worth inspecting. ## Freeze the starting point Write down the baseline commit, lockfile, runtime versions, OS and test commands. Install the dependencies and confirm the baseline fails for the reason you expect, not because of a missing package. Give each attempt its own checkout and the same prompt per task. Set a time or spending limit and a retry rule up front. If you allow a second attempt, the failed first one still counts. ```text Task: Baseline commit: Agent and version: Model and provider: Configuration and permissions: Prompt: Time limit: Retry rule: Acceptance commands: ``` Keep secrets out of the record, and give each product an account with only the access the trial needs. ## Grade the patch before reading the explanation Run the acceptance tests and your usual checks, then read the diff. Did the agent disable a test, bend a fixture to match its answer or leave debug output behind? Then read the agent's explanation. Check claims like "all callers updated" against the code, and note every fix you had to make. | Field | Record | |---|---| | Accepted | Yes or no, with the failed criterion | | Automated checks | Exact commands and results | | Review time | Minutes you spent inspecting and correcting | | Elapsed time | Start to stop, including tool waits | | Cost | Full attempt, including retries and subagents | | Scope | Unrelated edits or permission problems | Repeat the tasks if you can afford it. One run shows a failure but not consistency. Keep every attempt so an average can't hide timeouts. ## Count the whole bill Count input tokens, output tokens, cache charges and subagent models. Compare the tool's meter with the provider's usage where you can. If a run stops before reporting its final usage, mark the cost incomplete until you've checked the bill. Keep API costs apart from subscriptions. A flat monthly plan gives no real dollar price per task, so record the plan, any quota use it reports, and whether a limit cut the run short. For API trials: ```text Cost per accepted fix = total cost of all attempts / accepted fixes ``` If no attempt passes, report zero accepted fixes and the total spent, not a cost per fix of zero. Put your review time next to the token bill, because your time can easily cost more than the model. Empryo meters tokens and cost as it runs. Check those against your bill too, especially with custom providers or subscriptions. ## Use comparison pages to build a shortlist Feature pages build the shortlist. They can't tell you whether an agent follows your conventions or finds your least obvious bug. This site has comparison pages for [Claude Code](/compare/empryo-vs-claude-code), [Cursor](/compare/empryo-vs-cursor) and [OpenCode](/compare/empryo-vs-opencode). Use them to find differences worth testing, and check current features and pricing with each vendor before you buy. Keep the records, failures and sample size included, and let the accepted patches pick the tool. --- ## I got tired of building panels, so I made the app morph Canonical: https://empryo.com/blog/morphs-and-cells Published: 2026-09-03 · ProxySoul > One JSON file, one new panel in the desktop app. You use it, the agent builds it 🙂 You want a notepad, your ticket board or a focus timer next to your agent, because switching windows kills your train of thought. In Empryo's desktop app, type "a notebook" into a fresh tab and a notebook appears seconds later. Your notes stay, and no prompt goes to a model. Type "my tracker as a board I can drag" and your tickets show up in columns. Drag one to Done and the tracker moves it too. Type "a pomodoro that chimes" and you get a timer that counts down, chimes and notifies you from the dock. None of Empryo's code knows what a notebook, a tracker or a pomodoro is 👀 The feature is **experimental** and still growing. ![A notebook cell in its own pane, and nothing else open. A field that stores what you type, a list you edit in place, a focus timer, a toggle, a slider. Zero prompts sent.](https://empryo.com/media/morphs-notes.webp) *A notebook cell in its own pane, and nothing else open. A field that stores what you type, a list you edit in place, a focus timer, a toggle, a slider. Zero prompts sent.* ## Four requests in one week In one week I was asked for a Jira board in the sidebar, notes inside the app, a timer and a release countdown. Each was a panel I'd build for one person and maintain for everyone 😅 After the fourth, I stopped building panels and built the thing that builds them. ## From buttons to controls that act The first version put buttons on a panel that wrote prompts. A "Show my tickets" button that types "show my tickets" into the chat is just slower typing, and it wakes an expensive model to do one HTTP request's job. The version I kept has one rule: **every control acts when you click it.** The panel's author picks what each click does: - **Act right here.** Text fields store what you type. Lists let you rename, delete, reorder and tick items. Toggles, sliders and checkboxes save into the panel's state, and timers count down. A search box stores your query, the feed's URL uses it (`{{state.q}}`) and results appear with no model involved. Dropping a card in a new column sends the change to your tracker's API. - **Ask the agent.** A control can draft a prompt in the chat box or send it right away, for work that needs reasoning. - **Show something.** A control can bring the panel forward or open one of its dialogs. Images work too. If a feed returns image URLs, the app fetches them under the feed's rules and shows them in a gallery, a thumbnail or a full block, so a panel can even be about music. ![Now Playing. A twenty-line script on this Mac serves what Spotify is playing. The cell reads it every three seconds. The cover fills the panel and fades behind the thread, a strip above the prompt dances while the song plays, and the transport buttons post back to the script.](https://empryo.com/media/morphs-spotify.webp) *Now Playing. A twenty-line script on this Mac serves what Spotify is playing. The cell reads it every three seconds. The cover fills the panel and fades behind the thread, a strip above the prompt dances while the song plays, and the transport buttons post back to the script.* That is also why a Morph is more than an `AGENTS.md` file. An instructions file tells a model how to behave. A Morph is part of the running app: a place in the window, state you and the agent both update, feeds refreshed on a schedule, shortcuts, slash commands, and rules the agent gets only when they apply. You describe a small app, Empryo runs it, and no code in it ever executes. [Video: Real capture. A card dragged from Doing to Done. The drop posts the transition to the tracker (a stand-in Jira here), the board refetches, the card lands.](https://empryo.com/media/morphs-kanban.mp4) *Real capture. A card dragged from Doing to Done. The drop posts the transition to the tracker (a stand-in Jira here), the board refetches, the card lands.* ## What a Morph is made of A Morph is one JSON file. The app checks it against a schema and draws it with its own buttons, menus, tabs and dialogs, in the same theme. No plugins, no scripting, so it can't crash the window or read your keychain. The schema is strict but forgiving. Unknown fields are ignored, an invalid block is dropped while the rest still renders, and a file from a newer app version shows its fallback text. Save the file and the change appears within a second. Delete it and the panel is gone. Panels are built from around twenty block types: stats, progress bars, badges, key/value rows, grouped boards, form fields, notes, checkboxes, toggles, sliders, timers, code, galleries, kanban boards, dropdowns, tables, tabs, lists, charts, Markdown, images, links, countdowns, and a sandboxed frame that can host an [MCP App](https://modelcontextprotocol.io/) view. ![The tracker cell. Sprint numbers from one feed, tickets from another mapped into four columns you drag between, a search field that drives the feed. One file.](https://empryo.com/media/morphs-board.webp) *The tracker cell. Sprint numbers from one feed, tickets from another mapped into four columns you drag between, a search field that drives the feed. One file.* ## Cells and what you approve The **Cell** is the other half: what the file tells the agent. That is where a JSON file in a repo becomes a security question. A Cell can give the agent rules that always apply, or only when your request touches matching files, runs in a certain mode, happens on a certain branch or comes from a ticket. Cursor and Copilot match files in a similar way, so I followed them. A Cell can also offer read-only HTTP lookups, add tool guards such as "no recursive deletes in this repo" or "ask before touching `migrations/`", and hold state the agent updates through a `cells` tool. You approve all of that before any of it reaches a model. The approval covers exactly what you reviewed: rules, lookups, guards, the names of any secrets and the hosts they go to. If any of those change, the Cell waits for a new approval while the panel keeps working. So a `git pull` can't quietly turn a harmless board into something that sends your token somewhere new. Adding a secret or a new host makes it a new Cell. Feeds and lookups only use `https` or your own machine, refuse redirects to private network addresses, and only run in repos you marked as trusted. Text from an API is data, so a ticket title can never become an instruction for the agent. ![Search to results with no agent. The field stores q, the feed's URL reads it, the app refetches and the tiles repaint. Click one and the picture lands in the composer as an attachment.](https://empryo.com/media/morphs-search.webp) *Search to results with no agent. The field stores q, the feed's URL reads it, the app refetches and the tiles repaint. Click one and the picture lands in the composer as an attachment.* ## Where Morphs live and whose settings win - `.empryo/morphs/` is yours, in this repo. - `.cells/` is committed, so everyone who clones the repo gets it. - `~/.empryo/morphs/` is yours, in every repo. If two share an id, the most specific location wins. Shared Morphs only became practical once I split the file from your settings, after the agent's state changes started landing in committed team files. **The file is the definition, and your settings sit on top of it.** Your switch, values and live state are stored per project and never touch the committed file or your other repos. So a global Jira Morph can use a different project key per repo, be off in one and on in the rest, and track each sprint separately. Like VS Code, workspace settings override user settings, which override the file. ## Building one You don't write the JSON. Switch a fresh tab to **Morph mode** and describe the panel. The agent there reads the block list, looks at your repo if it needs to, and writes the file. The panel appears next to the conversation as you talk, and shows what the Cell can reach before you approve anything. ![Morph mode. A tab that builds the app instead of the code. The ask was a status chip and a /standup command for the board on the left. The tool calls read as blocks snapping into place while it writes the file.](https://empryo.com/media/morphs-mode.webp) *Morph mode. A tab that builds the app instead of the code. The ask was a status chip and a /standup command for the board on the left. The tool calls read as blocks snapping into place while it writes the file.* ![Morphs & Cells. Every cell in this workspace with its reach, a live preview, a switch per cell, and the approval for anything that touches the agent.](https://empryo.com/media/morphs-showcase.webp) *Morphs & Cells. Every cell in this workspace with its reach, a live preview, a switch per cell, and the approval for anything that touches the agent.* Open the library with `/morphs` in the desktop app. In the terminal, `/cells` lists your project's Cells to approve, revoke or toggle. Morphs travel as files: export one, send it to a teammate, drop it in `.cells/` or install one from the public directory. A Morph can carry an Ed25519 signature, and the app flags official signed ones. New blocks arrive with most releases. Built a Morph? Share it on [Discord](https://discord.gg/fX4H7GYSMJ) or [GitHub](https://github.com/proxysoul/Empryo). [Docs: Cells & Morphs](/docs/tools/morphs) · [Download](/download) --- ## I let agents loose on my own app. They found 84 bugs Canonical: https://empryo.com/blog/the-immune-system Published: 2026-08-19 · ProxySoul > 105 claimed, 84 survived two hostile reviewers. Plus a fixed suite that says the same thing every time. Your tests are green and a user still finds a bug in five minutes. Two like that got past me, and no test I'd have written would catch either. The first was in the installer, on a fresh Debian machine with no Empryo, no Bun and no `TERM`, since nothing sets one in a container shell. ![Downloaded. Checksummed. Signature verified against the pinned RSA-4096 key. Then dead, with nothing installed.](https://empryo.com/media/immunity-installer.svg) *Downloaded. Checksummed. Signature verified against the pinned RSA-4096 key. Then dead, with nothing installed.* The script did everything right until it ran `clear` before its welcome message. `clear` needs `TERM`, so it failed, `set -e` stopped the script, and the verified download was never unpacked. The second was worse: nothing failed. The desktop app shipped with no right-click menu in text fields, so you couldn't paste with the mouse, and no test checked for it. My tests import my code and never run the installer, and a test only repeats a question someone already thought to ask. I built one QA system for both: the Immune system. ## One system, two ways to run it ![The same seeds, the same real machines, the same two reviewers. What changes is who picks the targets.](https://empryo.com/media/immunity-two-modes.svg) *The same seeds, the same real machines, the same two reviewers. What changes is who picks the targets.* **I run it as a fixed suite.** 260 checks across three operating systems and the three ways to use Empryo: desktop, terminal UI and headless. Same answer every time, so it's the half I trust. **An agent runs it to explore.** Same machines and reviewers, but the agent picks what to test, uses the product like a person and writes the check it wishes had existed. It finds new problems, so it's the half I double-check. Neither side can add its own findings to the suite, and the design depends on that. ## What the fixed suite runs ![Each check runs on one platform and one way of using Empryo. A general sweep inspects every result for crashes and garbled output, whatever the check was about.](https://empryo.com/media/immunity-patrol.svg) *Each check runs on one platform and one way of using Empryo. A general sweep inspects every result for crashes and garbled output, whatever the check was about.* Each check, a **seed**, states what to exercise, on which operating systems, in which way of using Empryo, and one sentence naming the bug it guards against. A run executes every seed on every platform it applies to, in parallel. Only the model is faked. A scripted stand-in replaces the provider, so the agent loop, tool calls and network traffic run for real, offline and free, on a real terminal, desktop window, Linux machine and Windows x64 machine. The Windows box has to be real x64 hardware, because an ARM64 Windows VM can't load x64 native modules and a pass there is a pass for a product nobody ships. I only use the VM for smoke tests. What mattered most is a general sweep over every result. It flags stack traces, terminal escape codes printed as text, locked-database errors and processes that had to be killed, and catches most surprises. A check about resuming an unknown session led me to an unrelated crash in the runtime's HTTP client that was killing about 40% of runs. ## How an agent picks what to test Empryo's own code map turned out to be a QA tool. ![Grep ranks by what you already thought to type. The graph ranks by how many callers reach a function and how far a defect there would spread.](https://empryo.com/media/immunity-graph.svg) *Grep ranks by what you already thought to type. The graph ranks by how many callers reach a function and how far a defect there would spread.* With grep, an agent picks whatever it can spell, usually a file whose name sounds like the feature and rarely the one that matters. The Genome shows which files depend on a file, which change with it and how far a change would spread. It finds unused exports and lists every caller that can reach a function, with file and line. Those callers also name the platforms and ways of using Empryo a bug can affect, so the tool that finds the bug fills in half the new check. One rule matters most: **no agent can start another agent.** At every handoff the agent writes down what it found and a person starts the next step. Otherwise the suite would fill up with checks that fail on correct behavior. ## Every check goes through review first ![Two reviewers per claim, both hostile, both defaulting to refuted. One argues the behaviour is documented intent. The other reproduces by hand on the shipped build.](https://empryo.com/media/immunity-selection.svg) *Two reviewers per claim, both hostile, both defaulting to refuted. One argues the behaviour is documented intent. The other reproduces by hand on the shipped build.* Agents that hunt for bugs want to find bugs 😂 So every claim gets two reviewers before it becomes a check. One asks whether the product documents the behavior as intended. The other skips the test setup and reproduces it by hand on the released build, in a throwaway folder, like a user. Both assume the claim is wrong. One run came back with 23 failing checks on Windows. Five were real. Sixteen came from one outdated binary the test machine was stuck on, and two from checks with Unix-only assumptions. Throwing out those eighteen false alarms is the review's most valuable job. A QA report that never rejects anything only shows lenient reviewers. The record only grows and lists rejections next to confirmations: 105 claimed, 84 confirmed, 19 rejected and 2 disputed. ## What it caught Three of them, all fixed, each with a permanent check: | | what a user was losing | |---|---| | `edit_file` wrote through a read-only file | You `chmod 444` a generated file. The agent edited it anyway, was told the edit succeeded, and kept reasoning about a file it should never have touched. | | Editing a file lost its permissions | The edit replaced the file with a new one, so its permissions reset to the default. Every edited script quietly stopped being executable. | | `--resume` on an unreadable session answered with no history | The session file couldn't be read, so the agent started empty, answered confidently, and billed you for a turn that had forgotten the conversation. | None threw an error or a failure code. They looked like success, which is why unit tests missed them. The first-day checks, which install Empryo on a clean machine and watch what a new user sees, found four more: the `clear` failure above, a `tar:` warning printed once per file because macOS had packed extra file attributes into the archive, a warning that Empryo needs Bun when it ships its own, and curl's progress bar spilling into piped logs. A release build also failed its own startup check. The binary was fine, but before answering `--version` it cleaned up leftover language servers, and on a machine with old data that triggered a migration slower than the check allowed. The fix was moving one call. ## What is not covered ![373 capabilities the product exposes. 96 have a check aimed at them. The gap is the honest number, and it is the one that moves.](https://empryo.com/media/immunity-coverage.svg) *373 capabilities the product exposes. 96 have a check aimed at them. The gap is the honest number, and it is the one that moves.* Of Empryo's 373 reachable capabilities, 96 have a check, so a run passes straight over 277. The coverage list is generated from the product, so I can't quietly stop counting the gaps. Of the eight stages from install to uninstall, three are tested end to end on a machine that has never seen Empryo. A stage only counts from a clean machine, because setting things up first hides the bugs a new user meets. ## What I have not built This system doesn't fix itself. Agents find defects and write the checks, and they're good at it. However, every run is a command someone types, every finding goes to a reviewer by hand, and every fix is a person deciding the right behavior. So I don't call it self-healing. What it does is close the loop: a defect is found, challenged by a reviewer that defaults to no, fixed, then guarded by a check written from that exact defect. 84 confirmed defects across three rounds is a good start, and says a lot about what was in there 😅 Next is scheduled runs, so I don't have to remember to test. Then agents that hand off to each other under clear rules instead of through me, and a fix step that proposes a patch and proves it against the failed check. It stops there, and a person makes the final call. ## Trying the idea on your own app None of this is specific to Empryo. Test the build you ship instead of the code you import, pick targets from a map of your code, don't let a claim become a test until a skeptical reviewer fails to knock it down, and publish what's not covered next to what is. In Empryo the code map is built in, so the checker can read the code it checks. Current numbers, gaps included, are at [empryo.com/immunity](/immunity) and update on every deploy. --- ## One search cost $1.14, so I rebuilt the engine Canonical: https://empryo.com/blog/code-has-a-shape Published: 2026-08-16 · ProxySoul > 86,000 tokens from a single search 😂 Rebuilt it and metered every dollar across six models. One search result cost **$1.14**. Not the reasoning, not the fix. One search dumped 86,000 tokens into the conversation when the model needed two lines of it. You pay for tool output once when it arrives, and again on every step until the session ends. ![From the request log: tool output does not disappear after it is read. It is sent again, and billed again, on every later step.](https://empryo.com/media/forge-v2-receipt.svg) *From the request log: tool output does not disappear after it is read. It is sent again, and billed again, on every later step.* That receipt is why I rebuilt Forge, the engine that decides what context and tools Empryo sends the model on each step. Every number below comes from recorded runs: [Round 1](/blog/audit-the-bill), [Round 2](/blog/five-real-bugs) and the new [Round 3 results](/benchmarks/forge-v2). ## The test Four bugs, really reported and fixed in hono and opencode. The tests from each fix's pull request were hidden from both agents, and the git history was removed so the answer could not be looked up. Six models, two providers and 96 metered runs. ![pi in its minimal setup and Empryo in its default setup: what each agent sends the model before any work starts.](https://empryo.com/media/forge-v2-loadout.svg) *pi in its minimal setup and Empryo in its default setup: what each agent sends the model before any work starts.* Partway through, pi's cost meter turned out wrong for GPT models, so I **upgraded pi** before comparing anything. ## What the bill showed Forge v1 gave every model the same context on every step: the whole code map and every tool's full description. The request logs showed most of it was paid for and never used. The new engine changes the delivery by model. ![Forge v2 in one picture: strong models get a short overview, small models get more guidance and a helper to scout the code, and every tool result has a size budget.](https://empryo.com/media/forge-v2-delivery.svg) *Forge v2 in one picture: strong models get a short overview, small models get more guidance and a helper to scout the code, and every tool result has a size budget.* Same bugs, same models, same keys. Switching engines alone cut cost by **56% on Opus** and **46% on GPT-5.6 terra**. GPT-5.6 luna went from fixing half the bugs to fixing all of them. I also wrote some hints tuned to the benchmark, and they worked. 🫢 I deleted them, because an engine tuned to a test scores better and works worse. ## One run that shows the idea ![Two files with the same name and one bug. A text search has to guess which file matters. The code structure tells you.](https://empryo.com/media/forge-v2-two-greps.svg) *Two files with the same name and one bug. A text search has to guess which file matters. The code structure tells you.* A text search has to guess. The code structure does not, because functions call other functions and some files always change together. ## The results ![Round 3 wins. The full results, including every loss, are on the results page.](https://empryo.com/media/forge-v2-board.svg) *Round 3 wins. The full results, including every loss, are on the results page.* Some results did not go my way. On cheap and mid-priced models, pi's small prompt keeps the cost advantage. When a million tokens costs a quarter, a twenty-line prompt is hard to beat. pi's totals are consistent between runs, while mine vary: on Sonnet, $1.20 in one run and $1.47 in another. Making the cost more consistent is the next goal. The stronger the model, the more a code map pays off. Frontier models with a map take fewer and better steps, and at frontier prices that is real money. Small models do better with the map in smaller pieces, so delivery matters as much as the map. The tasks, hidden tests and metering are in the [public benchmark repo](https://github.com/proxysoul/empryo-bench). Current Empryo builds run Forge v2, and in the desktop app the feather icon next to the prompt box shows it is active. --- ## My agent takes notes, and forgets the useless ones Canonical: https://empryo.com/blog/code-memory Published: 2026-08-10 · ProxySoul > Notes pinned to files. Open the file and they come back, ignore them and they archive. No vector database. Last week you told your coding agent to use bun here and not npm. Today, in a fresh session, it runs npm again. 😅 The other common failure is an agent that remembers everything you ever told it and sends all of it with every request. Empryo's own repo shows how hard this gets. One busy file there has 46 memories attached, because every gotcha, every decision and every "never do this here again" eventually mentions it. When the agent edits that file, three of the 46 have to be chosen for the model's limited context. Ranking by use count picks the same three every time. Ranking by text similarity picks whichever ones share words with your prompt. Neither works in real sessions. Empryo's memory is connected to the [Genome](/blog/the-genome), the live map of your files, their imports and their git history that the agent already uses to find its way around. Everything below is the current beta, tested on Empryo's own repo. ## The two common approaches The most common memory in coding agents is a markdown file, such as `CLAUDE.md`, `AGENTS.md` or a project rules file, added in full to the prompt on every turn. That works while the file is ten lines long. Then every rule you ever wrote rides along with every request, whether you are in auth code or a CSS margin. You pay tokens for all of it, and fifty stale rules compete with the task for the model's attention. Nothing expires, and nothing notices that the file a rule mentions was renamed two months ago. The other approach is retrieval, used by memory MCP servers, vector-store plugins and chat assistants. Stored notes are compared with what you just said, and the closest matches go into the prompt. It filters, but only on **what you said**. For a general assistant, that is all there is. A coding agent has a better signal, which is **what it is working on**. When the agent edits `auth/routes.ts`, a memory that names `auth/routes.ts` is relevant by definition. What you said is noisy anyway. You paste a 3 KB stack trace with the real question in the last line, and the paste drowns any similarity search. So Empryo strips code blocks first and looks for the last real question, or the last line that reads like prose. [Video: Left: a rules file sent in full on every turn, stale lines included. Right: Empryo adds three one-line summaries that match the file being edited.](https://empryo.com/media/code-memory-prompt-bloat.mp4) *Left: a rules file sent in full on every turn, stale lines included. Right: Empryo adds three one-line summaries that match the file being edited.* ## Each memory is tied to files You correct the agent once, "always use bun here, not npm", and the agent writes the correction down itself. Each memory has a one-line summary, the reasoning in its details, a category (`pref`, `decision`, `gotcha` or `context`) and, most importantly, the list of files it is about. A week later, in a new session, the agent opens one of those files, and the memory comes back on its own: ``` [gotcha] ba35cc60 — Config paths must be resolved from the repo root · via file, sem 0.59 ↳ has details ``` `via file, sem 0.59` means the memory names the file being edited and its meaning is close to the task. Every recalled memory shows which signals picked it. Mid-session, when the agent is about to edit a file with a known pitfall, the warning lands in the tool result: ``` · gotcha "Always run migrations through the CLI, not by hand" [ad63a294] — review before editing ``` It does not nag. A memory just shown stays quiet for the next 10 turns, each session caps its hints, and hints back off once the agent searches memory by itself. If a memory is too important to leave to the ranking, **pin it**. Pinned memories rank higher, skip the hint limit and are never demoted or archived automatically. ## How memories are ranked Every candidate memory is scored on several signals, in rough order of how much I trust them: 1. **The file itself.** A memory that names a file the agent is editing right now gets a large boost. It should beat a vague text match every time. 2. **How rare the file is.** This fixes the 46-memory pile-up. The only memory naming a particular file ranks above one of the 46 that name the busy file. Rarity only adds to the file boost and never pushes a file match below a plain text match. 3. **Files that change together.** When you edit `auth/routes.ts`, Empryo also considers memories on files that historically changed in the same commits, such as `auth/middleware.ts`. They count for less than a direct match, and only a few neighbors count. The memory shows up before you touch the second file, which similarity search cannot do, since nothing in your prompt mentions it. 4. **How widely a file is used.** Files that many others import give their memories a small boost. A pitfall in a file 60 others depend on matters more. 5. **Text**, through full-text search and a similarity check, as one signal among several. The similarity check is simple on purpose. By default it runs locally, with no model call, no API cost and no network. Because it is rough, weak scores count as noise. `memory.embeddingModel` sets a better embedding model, but the strong signals never depend on it. [Video: Several signals combine into one score: the file being edited, files that change with it, text match and similarity. Three memories appear, each labeled with why.](https://empryo.com/media/code-memory-recall.mp4) *Several signals combine into one score: the file being edited, files that change with it, text match and similarity. Three memories appear, each labeled with why.* A memory's freshness is the last time the agent **acted** on it. Being shown does not count, or a memory could stay on top forever just by being displayed. ## When the repo changes Your repo's own changes tell the system what went stale. Delete or rename a file and its memories lose their file boost right away, because the boost only applies to files that still exist in the Genome. Nobody runs a migration. Memory maintenance also flags memories whose files have all disappeared for the next cleanup. That catches what a rules file cannot: a note about `src/api/client.ts` still being followed two months after the file became `src/api/http.ts`. ## Shown versus acted on Every memory counts how often it was shown and acted on. Shown again and again with no follow-up, it gradually ranks lower. Used, it gets a small boost. Ignored long enough, six showings over at least 45 days with no follow-up, it archives itself at the start of the next session. Archived memories are hidden from recall, never deleted, and can be restored. A line in a markdown file cannot know that it was read 400 times and followed zero times. A new rule can mark an old one as replaced. The old one leaves recall but stays in the history, so you can see what changed and when. Empryo adds very little to the context: the top 3 matches, one-line summaries only. The agent fetches details when it needs them. ## You stay in control `/memory` opens a browser to list, search, pin, delete and restore any memory, with counts of how often each was shown and acted on. When memory has aged enough, Empryo suggests a cleanup, oldest and least-used first. Pinned memories are never on those lists. Memory has two scopes. Project memory belongs to the repo, and global memory follows you across repos for preferences about you rather than the code. Both are searched, duplicates are merged so the same fact cannot take two of the three slots, and project memory wins a tie because it is more specific. ## Nothing is written behind your back By default, memory holds only what was explicitly written, by you or by the agent in front of you, and every write shows up in the conversation. Your chats are not mined into a store you never see. Explicit writes alone miss things. A session solves something hard, nobody says "remember this", and it is lost. So there is an optional auto-distill, off by default and turned on with `memory.autoDistill`. It saves at most 3 memories per session, only in certain categories, skips duplicates, and tags everything `auto-distilled` so you can list or remove them at once. ## Why I built it this way General memory systems match what the conversation sounds like. Code memory should match what the agent is working on, what changes with it in git, and whether the last suggestion was used. It all runs locally, with no vector database, no embedding service and no memory subscription. --- ## The Marionette: a cheap model pulls the strings Canonical: https://empryo.com/blog/the-marionette Published: 2026-08-02 · ProxySoul > When it guessed causes, fixes dropped from 3/3 to 1/3. Now it only points at files: 3/3 and 11% cheaper. You type a vague one-line bug report into your coding agent. Before editing anything, the expensive model spends ten steps working out which files you meant, at frontier prices. I wanted a cheap pre-pass to do that work. The first version made the agent worse: it fixed the bug 3 times out of 3 alone, and once with my pre-pass attached. In one run, the pre-pass wrote a requirement telling the agent to **keep** the bug it was sent to fix, and the agent did exactly that 🫢 The second version scored 3/3 with 11% less spend. All numbers come from my benchmark runs in isolated Anthropic workspaces, and the recorded spend matched Anthropic's billing API to within 0.2%. ## The step I wanted to cut Empryo starts with the [Genome](/docs/concepts/genome), a ranked map of every file, symbol and dependency, with code navigation tools on top. It's in every prompt and a big part of why Empryo tends to be cheaper and faster than agents that grep around from scratch. However, a map of the repo is not a map of your request. Working out which few files your sentence is about is a short walk with the Genome, but it runs on the expensive model, every prompt, and a vague sentence in a big repo can take ten steps. The Marionette gives that walk to a model that costs a fortieth as much, before the expensive one starts. It reads your prompt, explores the same code map, and passes on your exact words with a map of where this request lands. [Video: Real capture: the compile runs, the map assembles under the prompt, the agent starts on it.](https://empryo.com/media/marionette-desktop.mp4) *Real capture: the compile runs, the map assembles under the prompt, the agent starts on it.* ## What the agent receives You type: > when we close the terminal on desktop, if it was open it stays on bottom bar until i click it then it disappears from bottom bar The agent gets it **word for word**, with the map attached: - **Asks:** each separate behavior you described, quoted in your words. That sentence has two. An early version caught one and fixed half the bug. - **Locations:** files, functions and line ranges, such as the terminal panel's close handler, ranked primary or nearby. - **Connections:** how those pieces are wired, for example that closing a tab never clears its minimized state. Each names the tool that found it, so nothing is a guess. - **Memories:** relevant past decisions from your project's memory. - **Not checked:** what the pre-pass didn't reach. ![The map as it lands, expanded, asks, loci with line ranges, strands, memories.](https://empryo.com/media/marionette-map.webp) *The map as it lands, expanded, asks, loci with line ranges, strands, memories.* No suspected cause, no proposed fix and no acceptance criteria. The first version is the reason. ## The first version guessed The first Marionette formed theories, suggested fixes and wrote acceptance criteria. On paper that's more value per run, since you pay for the model anyway. I tested it on one real desktop bug with a top-tier main model, five isolated workspaces and three runs per variant, each from an empty cache. ``` bench pass 2 · same bug, same main model ────────────────────────────────────────── control (no pre-pass) 3/3 fixed · $1.49 diagnosing marionette 1/3 fixed · $1.37 ``` Cheaper, and fewer fixes, because **a cheap model's guesses steer an expensive model's judgment.** The main agent had the tools to find the real cause and didn't look, because it arrived believing it knew. A better prompt doesn't fix that, because the pre-pass did exactly what its output format invited. So I removed every field where a theory could go. What's left is factual: this file, these lines, this caller, this memory, this thing I didn't check. ``` bench pass 3 · locator rewrite ────────────────────────────────────────── control 3/3 fixed · $1.49 · 18 steps locator marionette 3/3 fixed · $1.32 · 14 steps ``` Judged blind on the diffs, the fixes matched the control's. The main agent took four fewer steps and spent 11% less, and the pre-pass cost $0.09 to $0.13 per prompt. It doesn't win everywhere. On a bug the expensive model already solves alone, it only matches it for slightly less money, and you wait longer for the pre-pass. It helps most with vague prompts, large repos, two requests in one sentence, and cheaper main models that can't afford twenty exploration steps. ## Is it just an explore agent? I tested that too. Empryo's explore agent is a read-only helper the main agent can send out mid-turn, so one variant forced it before any edits. It did well: a Sonnet scout fixed 3 of 3 at about $1.30, and a Haiku scout fixed 2 of 3 at $1.13, the cheapest variant in that round. Same idea, different point in the turn: - **It always runs.** The main agent often skips explore on the vague prompts that need it most. - **It runs before the turn.** An explore report lands mid-conversation as tool output and costs steps and context. The map arrives with your prompt. - **It fills a form.** An explore agent writes a report. The Marionette's fixed fields have no room for a theory, and that limit is the difference between 1/3 and 3/3. - **Some modes are faster than any agent.** Two of the four skip the tool loop: index-only answers in about 0.2 seconds, fast in about twenty. - **It uses memory, visibly.** It searches your project memories, and the map shows as an expandable section under your prompt. Explore still fits mid-turn, when the agent needs a closer look. The Marionette handles the cold start. ## The measurement that changed the default I measured four modes on 11 real requests against Empryo's own repo, three trials each. Recall is whether it found the files the actual fix touched, and precision is how much of what it returned was relevant. | lane | gold recall | precision | median latency | tokens in | |---|---|---|---|---| | none (index only) | 83% | 20% | **0.2s** | **0** | | **fast** | **83%** | 45% | ~22s | 7.4k | | assist | 72% | 48% | ~60s | ~20k | | deep (full survey) | – | – | ~2min | ~390k (mostly cached) | **A plain index lookup with no model found the right files as often as the model-driven modes, in 200 milliseconds and for zero tokens.** Symbols, dependencies and change history already hold most of the answer. It only lost on precision, because a raw candidate list is noisy. So the default, `fast`, spends one cheap model call turning candidates into a short brief: index recall with model precision, in about 22 seconds. The full survey mode, with the main agent's tools, still exists but is no longer the default. ## Round two: does the map change what the expensive model does? Finding files is only a stand-in. What matters for your bill is what the expensive model does with the map, so I ran an end-to-end test with Opus 5 as the main agent and diagnosis-only prompts. Four variants: Opus alone, Opus told to send an explore scout first, and Opus with a map from a Haiku or a Sonnet pre-pass. On a request whose wording barely overlapped the code responsible: ``` e2e · opus-5 main · same prompt, four arms ────────────────────────────────────────────── opus alone gold file at step 3 · $0.681 opus + explore scout gold file at step 2 · $0.687 opus + haiku map gold file at step 1 · $0.367 + $0.014 opus + sonnet map gold file at step 1 · $0.504 + $0.082 ``` The $0.014 pre-pass put the right file in Opus's **first tool call** and cut its bill by 46%. The scout still paid full price, because its report arrived mid-turn. On a second task, the Haiku pre-pass left the right file off its map, though the index had it as a candidate. Opus trusted the map with a hole in it and did worse than Opus alone. Sonnet's variant kept the file and was the only one to finish within the step limit. Two changes went on the roadmap. Firstly, the pre-pass should have to argue a file out of the map when the request names it, instead of quietly ranking it low. Secondly, when the index is unsure, a stronger model should review the same candidates instead of searching longer. There's still no field for a fix. ## Using it Experimental and off by default. In the terminal app: ``` /marionette fix the race in tab restore # run the pre-pass on one prompt /marionette on | off | status # run it on every prompt /marionette none | fast | assist | deep # pick the mode /router # pick the model it uses ``` In headless mode, `--marionette` turns it on and `--marionette-mode <none|fast|assist|deep>` picks the mode. By default it uses the lightweight model from your router settings. If the pre-pass fails, your prompt goes through unchanged. In the TUI, the map builds in the transcript, then folds to one line: [Video: The TUI lane. Same compile, same map, drawn in text.](https://empryo.com/media/marionette-tui.mp4) *The TUI lane. Same compile, same map, drawn in text.* ## For anyone building something similar If you build anything that briefs a larger model, let the cheap one tell the expensive one where to look and never what to conclude. Give it an output format with nowhere to put an opinion. If a field for one exists, it gets filled, and the model downstream believes it. Numbers come from benchmark rounds 2 to 5: the isolated-workspace runs, a 143-run file-finding series with two pre-pass models, and the Opus 5 end-to-end test. --- ## My code map thought a formatter was my most important code Canonical: https://empryo.com/blog/the-genome-learns Published: 2026-07-25 · ProxySoul > Static analysis was sure, git history disagreed. Now the Genome learns from how I work, and the formatter fell to #103 😅 You ask your agent to find the code behind a bug, and it keeps pulling the same irrelevant file into context because its map says that file matters. That happened to me. A formatter in a side app ranked as the most important symbol in my whole codebase, above the agent loop and the session store. Lots of code referenced it, so by reference count it looked like a hub. Nobody who had worked in that repo for a week would call it important. Everything below shipped in 3.5.0-beta, measured on Empryo's own repo. ## What a static map misses Empryo keeps a live map of your code called the Genome: every file, its exported symbols and who depends on what, ranked so the important parts come first. Most agents that index a repo parse the files, build a symbol graph, rank it and put the top slice into context. Aider made this popular years ago and deserves the credit. A map built only from code misses three things: - **Files that always change together but never import each other**: a migration and its config, a route and its test fixture, a type and its mock. Changing one without the other breaks the build. - **The file you always open before editing another one.** That dependency only lives in your head. - **Reads that led nowhere.** Static analysis can't know a file the agent opened was useless. ## Three sources of learning All three are cheap and none of them call a model. **Git history, scored properly.** Raw co-change counts don't work, because some files change with everything. A lockfile isn't related to the whole repo. It's just noise. So the Genome uses pointwise mutual information, which asks whether two files change together more often than chance would predict. Real pairs stand out, and a file that changes with everything scores close to zero. The scoring follows renames, so `git mv` keeps what the map learned. It skips housekeeping commits, because a release that bumps 40 version numbers says nothing about how those 40 files relate. I also raised the history window from 300 commits to 2,500, which mattered most. On an active repo, 300 commits missed most of the history. **What the agent actually did.** Every session leaves a trail: which files the agent read, in what order, before which edit. The Genome turns it into patterns: files read together, the file opened before another one, reads that went nowhere. A check at the end of each session marks which patterns helped. The ones that keep helping become permanent and the rest fade, so one lucky session teaches the map nothing lasting. **How the model responds to hints.** I didn't plan this part. If a model keeps ignoring a type of hint, Empryo shows fewer of them, and brings them back when it starts acting on them. Clicking a search result to open a file also counts toward ranking. ## What it did to my repo ``` empryo's own repo · static graph vs learned genome ────────────────────────────────────────────────── co-change coverage 86 → 3,239 file pairs edit-advisory pool 14 → 444 entries side-app formatter #1 → #103 rank ``` The formatter fell from first to 103rd without a single code change. Most of the jump from 86 to 3,239 co-change pairs came from the bigger history window. ## Why it saves money Fixing a bug is two jobs: finding it and changing it. Changing is cheap. Finding is expensive, because every file the agent opens stays in context and is billed again on every later step. In a head-to-head on real bugs from hono, zod and ky, released after the models' training cutoff, an agent with a map used [5.7× fewer input tokens](/benchmarks/pi-round-1) than one without and fixed more bugs: 3 of 5 against 2 of 5 on the cheaper model tier. In my opinion, a lot of what we call model capability is really search budget. ## What I am not sure about This was measured on one repo, mine. That's where I notice ranking mistakes, and that makes me the wrong person to grade it 😅 A learning system can also learn the wrong thing with confidence. That's why patterns must prove themselves to stay. I'd rather it learn slowly than be sure about nonsense. I don't know yet whether the balance holds on a repo with fifteen contributors instead of one. If you try it on a big team repo, tell me what it gets wrong. The map is built on your machine with your keys and costs no model tokens. Empryo is at [empryo.com](https://empryo.com). --- ## Best AI coding agents in 2026, from a guy who builds one Canonical: https://empryo.com/blog/best-ai-coding-agents-2026 Published: 2026-07-17 · ProxySoul > Picked by the job you need done, with sources and dated benchmarks. Yes I'm biased, so check me. Pick a coding agent by where you work, which models you can use and how you check its changes. Start with two tools that fit your setup and give both the same task. I build Empryo. This guide compares documented workflows instead of ranking ten tools from a benchmark I have not run. **Updated 21 October 2026.** The linked experiments keep their original dates and versions. ## Where to start | Your priority | Start with | Check before committing | |---|---|---| | Anthropic’s coding workflow across terminal, desktop and editors | [Claude Code](https://code.claude.com/docs/en/overview) | Account access, permissions and the integrations your team uses | | OpenAI’s terminal workflow and scripted jobs | [Codex CLI](https://learn.chatgpt.com/docs/codex/cli) | Execution permissions, review output and how `codex exec` reports failure | | A repo map, desktop and terminal workflow and remote mobile companions | [Empryo](/features) | Initial scan, language support and the diff on your own project | | An editor-centered workflow with agent and CLI options | [Cursor](https://cursor.com/docs) | Your editor habits, model access and plan limits | | GitHub and editor integration | [GitHub Copilot](https://docs.github.com/en/copilot) | Organization policy and which surfaces your plan includes | | An open-source agent with desktop, terminal and IDE interfaces | [OpenCode](https://opencode.ai/docs/) | The release you install, provider configuration and permissions | | A customizable coding-agent workflow | [Cline](https://docs.cline.bot/) | The interface, approval controls and model configuration you need | | Delegating work in a managed development environment | [Devin](https://docs.devin.ai/) | Repository setup, task boundaries and review responsibilities | | Extending or embedding a coding harness | [pi coding agent](https://github.com/earendil-works/pi/tree/main/packages/coding-agent) | Required extensions, RPC or SDK integration and provider access | | Terminal pair programming with a repository map | [Aider](https://aider.chat/docs/) | Model configuration, edit review and your Git workflow | These are starting points, and several tools fit more than one row. The linked docs have current pricing and supported environments. ## The software around the model A coding agent is a model plus tools, permissions, context and session state. That surrounding software is the [agent harness](/blog/what-is-an-ai-agent-harness), so the same model in two tools still gives you two different workflows. | Stage | What to inspect | Evidence to keep | |---|---|---| | Find the code | Did it locate the relevant files and tell similarly named symbols apart? | Files read and the proposed scope | | Make the change | Did it keep callers, public interfaces and unrelated code intact? | The diff, not the final chat message | | Check the result | Did it run your acceptance checks, and did they cover the failure? | Commands, exit codes and application behavior | | Recover | Can you inspect a failed attempt, undo it and resume? | Checkpoint and session behavior | | Count the cost | Did retries, subagents and cache charges reach the total? | Provider usage, elapsed time and reviewer time | ## Where Empryo fits Empryo builds the [Genome](/docs/concepts/genome), a ranked map of the repo's files, symbols and imports, and the agent gets a compact view of it before it starts searching. [AST tools](/docs/tools/ast-edit) target TypeScript and JavaScript symbols, and language-server tools handle navigation and supported renames. Language tooling cannot resolve every runtime dependency. Around the agent, Empryo is a workspace you can reshape and direct. | Build or direct | What Empryo provides | |---|---| | Your own interface | [Morphs](/docs/tools/morphs): interactive boards, app extensions, composer and chat-frame styling, or a full-workspace canvas | | A changing implementation plan | [Plan workspace](/docs/recipes/plan-mode): steps, files, verification criteria, revision requests and feedback while execution continues | | A team workflow | [Agent graphs](/docs/agents/workflows): role-specific models, parallel reviews, approval gates and bounded retry loops | | Several projects and conversations | [Child tabs](/docs/agents/child-tabs), separate tab histories, worktrees, [messages and handovers](/docs/agents/cross-tab) | | Concurrent file edits | [File claims and Git protections](/docs/agents/cross-tab): ownership warnings and guards against destructive cross-tab operations | | Another perspective | [Duck, advisor and council](/docs/tools/side-agents), plus independent [review](/docs/agents/review) | | Visibility into a running task | [Console and logs](/docs/tools/logs): model calls, costs, errors and compactions, and [workbench](/docs/surfaces/workbench) views for runs and changes | File claims coordinate agents. They are not permanent filesystem locks. A Morph can fill the workspace while the chat engine keeps running underneath. | Work from | What you can do | |---|---| | macOS, Windows or Linux | Use the desktop workspace, terminal UI or [headless CLI](/docs/surfaces/headless) for scripts and CI | | iPhone, iPad, Apple Watch or Android | Use the [beta companions](/docs/surfaces/phone) to steer chats, answer approvals, change projects and send voice prompts | | LAN, Tailscale or internet relay | Reach the engine on your computer without moving the repository to the phone, pair with approval and optionally enable background access | | Multiple model providers | Use [provider accounts, API keys or local models](/docs/providers/overview), with [per-task routing](/docs/recipes/task-router) | | A long-running project | Keep [sessions and checkpoints](/docs/tools/checkpoints), [memory](/docs/tools/memory) and coordinated [parallel tabs](/docs/agents/cross-tab) | Remote work needs the host powered and reachable. Measure the first repo scan separately from a warm run. The [v1 and v2 core and engine code are public](https://github.com/proxysoul/Empryo). Newer v3 features and the desktop and mobile surfaces are developed privately. The public repository keeps its [Business Source License 1.1](https://github.com/proxysoul/Empryo/blob/main/LICENSE) with its existing Apache 2.0 change date, and v3 does not take those rights away. | Compare Empryo with | Read first | |---|---| | Claude Code | [Models, editing and interfaces](/compare/empryo-vs-claude-code) | | Codex CLI | [Repository context, automation and review](/compare/empryo-vs-codex) | | OpenCode | [Code navigation and workflows](/compare/empryo-vs-opencode) | | pi coding agent | [Built-in workflow versus an extensible harness](/compare/empryo-vs-pi) | Need an editor integration? Check the published build before assuming every desktop feature is there. The [ACP guide](/docs/surfaces/acp) says which builds include it and what the editor controls. ## What the published runs show The [benchmark pages](/benchmarks) separate recorded demos from repeated bug-fix tasks. Read the original settings before reusing a result. | Evidence | Scope | What it does not show | |---|---|---| | [Claude Code and OpenCode head-to-head](/benchmarks/head-to-head) | Historical recordings from April and May 2026, with releases, prompts and billing evidence on the page | A current ranking of either product, and one layout run used different model versions | | [pi round one](/benchmarks/pi-round-1) | The tasks, versions and models recorded for that round | Performance on repositories outside that sample | | [pi round two](/benchmarks/pi-round-2) | Real bug fixes with the acceptance checks and billing method described there | A guarantee about today’s pi extensions or models | | [Provider-bill audit](/blog/audit-the-bill) | Comparing reported usage with the provider’s bill | A universal price advantage for one harness | An earlier version of this guide said I had not compared Empryo with Claude Code. That was too broad, since the recordings above include Claude Code. They are not a controlled benchmark of ten agents, so this update drops the numbered ranking they could not support. ## Test two agents on your repository Use the [comparison worksheet](/blog/compare-ai-coding-agents-on-your-repo). Keep the starting commit, task, acceptance checks and time limit fixed, record model and tool versions, and note where settings differ. | Record | Why it matters | |---|---| | Accepted fixes / attempts | A cheap failed run is still a failed run | | Total provider cost | Include retries and auxiliary model calls | | Elapsed and review time | Fast generation can leave slow review | | Unrelated changes | Passing tests do not justify an expanded diff | | Recovery after interruption | Long tasks need a usable way to continue | Pick the tool that finishes your work at an acceptable cost and review effort. Keep the losing runs too. They show where that choice stops working. --- ## Five real bugs, two agents, one bug won Canonical: https://empryo.com/blog/five-real-bugs Published: 2026-07-16 · ProxySoul > Fresh fixes from hono, zod and ky that the models haven't seen. 7/10 vs 6/10 and one 8-minute hang. > "Upgrading from 4.3.6 to 4.4.x causes issues with preprocess + catch. In v4.3.6 and below, the following schema works…" A real zod user, a real regression, no cleanup by a benchmark author. For [round two](/benchmarks/pi-round-2) of Empryo's head-to-head benchmarks, I stopped inventing bugs and collected real ones. I build [Empryo](/) alone, part-time and unfunded, and benchmark it against funded teams. Everything below can be run again from the [public benchmark repo](https://github.com/proxysoul/empryo-bench). ## Why not made-up bugs Made-up bugs have two problems. Firstly, they are small. On a 30-file toy app, plain search keeps up fine, so code structure has nothing to prove. Secondly, the vendor writes them, so the same person writes the exam and takes it. Real bugs fix both but bring contamination. If a bug was fixed in 2024, every frontier model has probably read the patch, and the benchmark tests memory instead of debugging. - **Five real bugs** from hono, zod and ky, active projects between 61 and 580 files with real test suites. - Every fix was merged **after January 2026**, past the models' training cutoffs. - The agent gets **the original issue text, word for word**, with no hints about which files to look at. - Git history is **reduced to a single starting commit**, so `git log` finds nothing. - Grading uses **the tests from the fix's own pull request**, kept outside the workspace and added after the run. - Before any tokens are spent, a validator checks that every task **fails on the bug and passes with the real fix**. ## The result | | Empryo (HEAD) | pi (0.80.7) | |---|---|---| | bugs fixed | **7/10** | 6/10 | | billed cost (console-verified) | **$7.08** | $9.19 | | steps | **274** | 382 | | wall clock | **22m 30s** | 32m 55s | Both agents ran all five bugs on two model tiers, Claude Haiku 4.5 and Opus 4.8. ## The zod bug The hardest bug sat in zod's core parsing code, in a 580-file monorepo. **On Haiku, both agents failed**, differently: ``` zod-preprocess-catch · haiku 4.5 ───────────────────────────────────────── empryo ✗ 40 steps (capped) · $0.28 · 1m 53s pi ✗ 87 steps · $0.75 · 7m 14s ``` Empryo hit its step limit, reported the failure and stopped. pi ran 87 steps and seven minutes to the same wrong result, at 2.7× the price. **On Opus, Empryo fixed it** on the first attempt: 33 steps, $2.10. pi's first attempt hung until the runner killed it at eight minutes. Its retry fixed the bug in 69 steps for $2.42, twice the steps. The difference is the Genome. Empryo starts every task with a live, ranked map of the repo's files and symbols, so finding where a bug lives is a lookup instead of a search. That barely matters on 30 files. On 580 it decides whether the agent goes straight there or wanders. ## The bug nobody fixed In ky, `extend()` drops a numeric retry limit when it merges options. Four attempts across both agents and both tiers produced **zero fixes**. A subtle bug in a small file beat $18 of frontier-model compute. I could have swapped it for a task I win 😅 I kept it, because a benchmark with every row green is an ad. ## Where I lose - pi was cheaper than Empryo on **three of five Opus tasks**. Its harness adds about 2.6k tokens of overhead per model call against Empryo's 21k, and Opus doesn't need Empryo's map to find its way. - On one Haiku task, Empryo **left debug prints in the diff** and failed the hidden tests. The raw results keep the evidence. - Each task ran once per agent and tier. The direction held across tiers and rounds, but don't read much into the decimals, mine included. ## What it means for your budget On the Haiku tier, Empryo **fixed 3 of 5 bugs against pi's 2 of 5, for 19% less money, in half the time.** The cheap model with a code map fixed more real bugs. On Opus both agents fixed 4 of 5, so the expensive model mostly closed the gap. You pay for model intelligence on every token, while the map is built once. ## Run it yourself Everything is in the [benchmark repo](https://github.com/proxysoul/empryo-bench): tasks, validator, runner and raw results, voided runs included. `bun harness-real/validate.ts` checks the tasks for free, no API key needed. Two API keys rerun the whole round. Got different numbers? Publish them and I'll link them on the [benchmarks page](/benchmarks), next to mine. --- ## pi said $6.25. Anthropic billed $9.19 Canonical: https://empryo.com/blog/audit-the-bill Published: 2026-07-16 · ProxySoul > Empryo said $7.06 and got billed $7.08. This is how I check every agent against the real bill. pi said it spent $6.25. Anthropic billed $9.19. Empryo said it spent $7.06. Anthropic billed $7.08. Same benchmark, same bugs, same models, and each agent had its own API key. That last detail is the only reason I know any of this. Every number here is reproducible from the [public benchmark repo](https://github.com/proxysoul/empryo-bench), raw results included. ## Why a separate key per agent Every agent shows a cost figure, and benchmark posts quote it. Almost nobody checks it against the actual bill. With one Anthropic API key per agent, the provider's console becomes an independent judge. It counts what was sent, whatever the agent reports. The first audit, in [round one](/benchmarks/pi-round-1), found this: ``` round 1 · anthropic console vs self-report ───────────────────────────────────────────── empryo said 1,089,262 tokens · $1.13 billed 1,089,262 tokens · $1.13 ✓ exact pi said 1.70M tokens · $1.42 billed 6.21M tokens · $1.58 ✗ −73% input ``` pi's own usage events missed **73% of the input tokens it actually sent**. Not deliberate: its per-message accounting skipped cache reads. Still, any comparison built on pi's self-reported cost back then was off by that much. ## Round two: a different gap pi fixed it. By version 0.80.7, its Haiku numbers in [round two](/benchmarks/pi-round-2) matched the console exactly. Then the audit caught something else. One pi Opus run hung, and the runner killed it after eight minutes, per the rules. pi reported **$0.00**, because the process died before recording usage. The console showed roughly **$3 of Opus tokens** for those eight minutes. 👀 ``` round 2 · anthropic console vs self-report ───────────────────────────────────────────── empryo said $7.06 · billed $7.08 ✓ within rounding pi said $6.25 · billed $9.19 ✗ −32% ``` Round one was undercounting. Round two was spend lost in a crash. The cause keeps changing, which is why I keep checking. > **Note:** > Empryo's figure has matched the console in every audit so far: to the cent in round one, within two cents in round two. By design, the status bar cost comes from the same token counts the provider bills on. ## Where I lose A benchmark where the vendor wins every row is an ad. These went against me: - **pi's harness is about 8× lighter.** Its fixed overhead per model call is about 2.6k tokens. Empryo sends about 21k, because the code map is not free. Opus finds its way around a repo without that map, so on Opus pi was cheaper on three of five tasks. - **My agent made mistakes too.** On one Haiku task, Empryo left debug prints in the diff and failed the hidden tests. It is in the raw results, unedited. 😅 - **One run per task.** Runs vary between attempts, so read the results as a trend. Per-task numbers are in the JSON. With those caveats, Empryo fixed more bugs across both rounds (15/19 vs 13/19), was **23% cheaper on the actual bill** and 38% faster. ## My opinion I treat any agent's self-reported cost as unconfirmed until someone checks it with a separate key. People quote pass rates to two decimals while the dollar figures next to them can be off by 32 to 73%. ## Try to prove me wrong The runner, tasks, hidden acceptance tests and every raw result file are in [one repo](https://github.com/proxysoul/empryo-bench). Two API keys and one command rerun all of it. If your results disagree, publish them and I will put your numbers next to mine on the [benchmarks page](/benchmarks). --- ## ast_edit: no more search and replace roulette Canonical: https://empryo.com/blog/ast-editor-for-ai Published: 2025-06-01 · ProxySoul > Edits by symbol name, so there's no search string to miss. Started as my Master's thesis. You ask an AI agent to change one line. It asks the editor to find a string and replace it. The file uses a tab where the model typed two spaces, so the search finds nothing. The agent re-reads the file, rebuilds the string and tries again. Three tool calls and a few thousand tokens for a one-line change. 😅 The model understood the code. It just had to reproduce the exact bytes of the file, and language models are bad at that. I build Empryo alone and unfunded. The idea behind this tool is older than the product. ## What a string edit asks of the model - **The exact bytes.** Tabs or spaces, Windows or Unix line endings, a trailing space the model never saw. One mismatch and the search comes back empty. - **A unique match.** `return null;` can appear five times in a file. The model has to add surrounding lines until the search string is unique, and every extra line is another chance for a typo. - **Valid syntax afterwards.** The replacement can land in the middle of an expression or drop a brace, and nobody notices until the typechecker runs. ## Naming the symbol instead Empryo's `ast_edit` has no search string. In TypeScript and JavaScript files, the agent names the symbol by kind and name, and the tool changes the parsed syntax tree: ```ts ast_edit({ path: "src/auth.ts", action: "set_body", target: "function", name: "validateToken", newCode: "return verify(token, key);", }) ``` No whitespace to copy and no line number to go stale. The tool finds `validateToken` however the file was reformatted. The [Genome](/blog/the-genome), Empryo's live index of the project, already knows each symbol's kind and location, so the agent skips the extra read to find the target. Changing a return type is one operation: ```ts ast_edit({ path: "src/api.ts", action: "set_return_type", target: "function", name: "fetchUser", value: "Promise<User>", }) ``` Multi-step changes run as one batch. Here the function becomes async, gets a parameter and imports `User`. If any step fails, none apply, so the file is never half-edited: ```ts ast_edit({ path: "src/api.ts", operations: [ { action: "set_async", target: "function", name: "fetchUser", value: "true" }, { action: "add_parameter", target: "function", name: "fetchUser", value: "cache: boolean" }, { action: "add_named_import", value: "./types", newCode: "User" }, ], }) ``` The errors are written for a model to act on. Ask for a symbol that does not exist and the error lists every symbol of that kind in the file, so the retry is a lookup instead of another guess. ## Late in a session The more the agent changes a file, the less its memory of that file matches the disk, and the more string searches miss. Names don't drift. `validateToken` is still `validateToken` after forty edits, a reformat and a reshuffle of the imports. An agent that trusts its edits also stops re-reading files to check them. That is where most of the savings come from. ## It started as a thesis The approach comes from my Master's thesis, [Typed vs Untyped Programming Languages](https://www.diva-portal.org/smash/record.jsf?pid=diva2%3A1690910&dswid=-6127), written with Artur Matusiak at Axis Communications in 2022. We wanted to migrate JavaScript projects to TypeScript automatically. Regular expressions and then `eval()` broke on real code, and `eval()` was a security risk too. Reading the file as one long string failed because a function body spans many lines. What worked was parsing the code into an abstract syntax tree, reading each variable's type with ts-morph, writing the type into the tree and printing it back as TypeScript. No string manipulation anywhere. `ast_edit` gives that idea to an agent. --- ## The Genome: my agent knows your repo before you type Canonical: https://empryo.com/blog/the-genome Published: 2025-05-20 · ProxySoul > Every symbol, who calls it and what depends on it, ranked and in context from the first message. You drop a coding agent into your repo and ask for a small change. Before editing anything, it spends a dozen tool calls grepping for definitions and usages, and you pay for each one. Empryo's agent starts with a map instead. A slice of what it sees before you type (the file and names are an example): ``` src/lib/cwd.ts: (→92) +function getCwd(): string :17 [createModel, handleCommand, +110↑] +function setCwd(dir: string): string :31 ``` From three lines the agent knows `getCwd` is defined on line 17, more than 110 places call it, and 92 files depend on this file. Zero tool calls so far 🙂 That map is the Genome: your whole codebase parsed into a ranked summary of files, symbols and dependencies, in context from the first message. I build Empryo alone and unfunded, and most other features are built on it. ## What I needed from a map Finding its way around is most of an agent's work in unfamiliar code, and every structural question costs a tool call, seconds and context. I wanted the map to answer them up front: - Where is a symbol defined? The file and line are on the map. - What does a file export? Listed under the file, with signatures. - What depends on a file? The `(→N)` count, plus the callers next to each symbol. - It has to stay correct while the agent edits. - It has to fit a real repo, not only a toy one. ## Ranked so it fits A 2,000-file repo doesn't fit in a prompt, so the map is ranked by usage. When it gets shortened, the files that matter stay and one-off scripts drop off the bottom. What's left is roughly what an engineer with a year in the repo would call essential. ## Updated after every edit A map the agent can't trust is worse than no map, because the agent acts on stale facts. So the Genome updates after every edit. Rename a symbol or move a function, and the next thing the agent sees already reflects it, dependencies included. ## The impact count The `(→N)` number is how many files depend on a file, directly or indirectly. Before changing something 40 other files rely on, the agent checks what usually changes with it and updates its dependents. The build that would have broken three files away doesn't. ## Why search is not enough Search tells you where a string appears. The map tells you what the code is: its symbols, their signatures, how they connect and which ones matter most. With [symbol-level editing](/blog/ast-editor-for-ai), the agent stops piping `grep` into `sed` and works like an engineer who has already read the codebase. This is the static map, built by parsing your code. Letting it learn from git history and agent behavior is [a separate post](/blog/the-genome-learns). In my own repo that moved a formatter from #1 to #103 and grew the co-changing file pairs the map knows about 37 times.