DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to attach a terminal to a running agent and steer it with Durable Pi

Reconnect from the terminal to an agent on a device and send it follow-ups or interrupts.

Short answer: Make sure the device server is running with just backend run; then run just tui attach local to open the local device; Press Enter to send or steer, Alt+Enter to queue a follow-up, and Esc to interrupt. All steps.

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

  1. Make sure the device server is running with just backend run.
  2. Run just tui attach local to open the local device.
  3. Press Enter to send or steer, Alt+Enter to queue a follow-up, and Esc to interrupt.
  4. Press Ctrl+C on an empty prompt to exit, then run just tui attach again 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer