Pre-launch — word of mouth only, please. No top-level forum posts.

Compatible agents

Dormouse runs CLI agents in ordinary terminal panes. For the agents below, it can also save the conversation's resume command during an orderly shutdown and reopen that conversation on the next start.

Supported agents

Install and sign in to the agent separately, then launch it from a Dormouse terminal. <id> below is the conversation identifier printed by the agent when it exits.

AgentCommandResume command
Claude Codeclaudeclaude --resume <id>
Codexcodexcodex resume <id>
Pipipi --session <id>
GitHub Copilotcopilotcopilot --resume <id>
Antigravityagyagy --conversation <id>
Warpwarpwarp --resume <id>
Cursoragentagent --resume <id>
Cursorcursor-agentcursor-agent --resume <id>
Musemusemuse resume <id>

Hints printed with =, such as copilot --resume=<id>, are recognized too. Claude's older claude --continue hint is also recognized; every other integration requires an explicit ID, so conversations that share a directory restore separately. Warp's integration uses the warp agent CLI.

How recovery and status work

Conversation recovery

During an orderly app shutdown or VS Code window reload, Dormouse interrupts running programs and looks for the resume commands they print. On the next cold start, it restores each pane's working directory and automatically runs its captured command once the shell is ready.

The agent restores its saved conversation. This does not automatically resubmit a prompt or restart the interrupted task. The agent must remain installed and its conversation must still be available. Its own authentication or permission prompts may appear.

Recovery requires a fresh exit hint followed by a separator, such as a newline. An empty conversation may produce none. Muse produces none when shutdown catches a turn before its first output, because its exit then takes more ^C presses than capture sends. A crash or force-quit can prevent capture, and a conversation you already exited before Dormouse shuts down is not recovered from old terminal output. In these cases, use the agent's own conversation history. Standalone window reloads keep the live terminal processes, so those conversations keep running without this recovery step.

Agent status

An agent that reports its own state over OSC 7501, the Program Status Protocol, is read directly. Dormouse answers the protocol's probe, shows a spinner beside the pane title while the agent reports it is working and a blocked mark while it waits on a permission, a question, or a sign-in, and rings when it reports that it is blocked, finished, or failed. While an agent reports, its other terminal notifications raise nothing, so one event never rings twice.

An agent in the table above that does not report gets only a busy spinner, inferred from its terminal output, which never rings. It rings when it sends its own terminal notification (BEL, OSC 9, OSC 99, or OSC 777) or when its command exits, as any other program does. The inferred spinner requires shell integration that reports the running command; nothing needs configuring.

Adding an agent

Add a registry entry, exit fixture, and table row. Both hosts share recovery.

Add the definition and fixture

  1. Edit the coding agent registry. For example, Copilot's definition is:

    {
      name: 'GitHub Copilot',
      commands: ['copilot'],
      resume: '--resume',
    }
  2. Declare the installed executable names and resume option or subcommand, and id: 'opaque' only if its ids are not UUIDs. Detection owns parsing and ID rules. If the agent cannot identify the exact conversation on exit, discuss its capture mechanism in an issue first; never substitute a “latest conversation” command.

  3. Add a sanitized exit excerpt to the fixtures, with the expected rebuilt command, agent version, and operating system. Replace personal paths, account information, and session IDs; preserve relevant wording and terminal escapes. Record real exit output rather than reconstructing a hint from documentation.

  4. Add the agent and its command forms to the supported-agents table. Registry tests pin fixture coverage; website tests pin the table.

Verify the integration

Install dependencies with pnpm install, then run the focused tests from the repository root:

pnpm --filter dormouse-lib exec vitest run src/lib/coding-agents.test.ts src/lib/resume-patterns.test.ts src/host/recovery-capture.test.ts
pnpm --filter dormouse-website test
pnpm lint:public-docs
pnpm lint:specs

These tests use fixtures and require no installed agents or credentials. Before submitting, also run pnpm test and verify the real agent in disposable conversations:

  • Interrupt it while idle, mid-response, and while its input contains unsent text. Record which gestures produce its resume hint and how long that takes.

  • Check that an orderly Dormouse shutdown captures the conversation and that a cold start restores the same one, including when two panes use the same working directory.

  • Check its status during a response, after completion, at a permission prompt, and while idle. An agent that reports over OSC 7501 should show the blocked mark at the prompt and ring once when it finishes; one that does not should stop its busy spinner whenever it waits on you.

  • Record the agent version, operating system, Dormouse host tested, and any limitations. Do not claim a platform or scenario you have not tested.

Open a draft pull request with the entry, fixture, documentation, and verification results. Changes to shared behavior also update its owning spec: recovery and shutdown capture, or program status.