Who it is forA developer who prefers the terminal and wants to check on or redirect an agent that is already working on a device.
The problemClosing a terminal normally loses the working context, and the agent should not stop when the client does.
The outcomeA terminal view of the agent where you can send, steer, queue or interrupt work, and where the agent keeps running after you exit.
What you need first
- Node.js 24
- just
- zsh
- An OpenRouter API key for OPENROUTER_API_KEY in .env
- For remote devices: passwordless ssh, and an exe.dev account for exe.dev VMs
Steps
- Make sure the device server is running with
just backend run. - Run
just tui attach localto open the local device. - Press Enter to send or steer, Alt+Enter to queue a follow-up, and Esc to interrupt.
- Press Ctrl+C on an empty prompt to exit, then run
just tui attachagain to reattach.
Prompt for your agent
In the Durable Pi repo at <repo path>, run `just tui attach local` against a running device server. Report the session and agent names shown. Verify that after Ctrl+C the agent is still running by reattaching and seeing its latest transcript.
Caveat. The terminal client needs a registered device, so complete the local setup first with `just net up local`.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for disler/durable-pi and "Attach a terminal to a running agent and steer it"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer