DEV Community

Bargan Constantin
Bargan Constantin

Posted on Fully Autonomous

I Built a Flight Recorder for Coding Agents. Then I Had to Give It a Keyboard.

Research checked: November 26, 2026. This is an engineering case study based on published ccdeck releases, code and guides, not a benchmark or a claim that I reproduced every scenario described here. I build ccdeck; that connection is part of this story.

On November 17, I published a piece about building a flight recorder for coding agents. The argument was straightforward: once several Claude Code and Codex sessions are running, the hard question is often which one needs me?

The next day, ccdeck 4.0.0 shipped terminals inside the dashboard.

By November 21, Chat could answer Claude Code's questions and handle its permission prompts. On November 22, the board also began observing opencode and GitHub Copilot CLI. And by November 25, Workspace had tabs for several sessions within a pane.

That changed the design question. It's easy to draw a button labelled Reply. It's harder to know where that reply goes, whether the agent received it, and what should happen when the original terminal is gone.

A dashboard answers a different question from a workspace

Suppose two agents are editing separate worktrees. One is still running tests. The other has stopped at a permission prompt. A dashboard can show their states without owning either process.

The moment you try to answer the prompt from that dashboard, observation isn't enough. You need an interactive connection to that exact session.

Those paths need different contracts:

Path What it can do What can go wrong
Observation Read hooks, rollout logs and session state Missing or stale events; a state you cannot infer reliably
Interaction Deliver keyboard input to a running terminal Wrong session, dead transport, duplicate send, stale approval

For Claude Code, ccdeck reads an event stream through hooks; for Codex it also reads the CLI's rollout records. A hook that reports a tool call is not itself a channel for approving or rewriting that call. Interactive Chat in Workspace sends its input through the session's terminal. Those two facts matter more than whether the UI uses cards, tabs or a graph.

Lesson 1: "I sent it" is not the same as "the agent took it"

This sounds trivial until a UI has a Send button.

Imagine writing "Run the integration tests again" in the dashboard, immediately switching panes, and assuming work has resumed. The terminal connection may have ended. The CLI may be busy, waiting in another mode, or no longer attached to the pane.

If the interface displays your text as a completed instruction before the session accepts it, you now have two conflicting histories: what you thought you asked and what the agent actually processed.

In ccdeck's current Workspace Chat, a message goes through the session's terminal, which must be open in the pane. The UI says Sending… while delivery is uncertain. If the session hasn't taken the message, it offers Show Term rather than claiming the instruction was accepted.

I like that distinction because it survives a change of model or agent vendor. A useful interactive agent UI needs to expose uncertainty, not hide it behind a spinner.

The following is a design sketch, not a ccdeck API or a copy of its source:

type Delivery =
  | { kind: "pending"; sessionId: string }
  | { kind: "accepted"; sessionId: string }
  | { kind: "unconfirmed"; sessionId: string; reason: string };

// A socket write is evidence that bytes were queued.
// It is not, by itself, evidence that the CLI processed a turn.
Enter fullscreen mode Exit fullscreen mode

The useful question in a code review is not "does the send call resolve?" It's "what event makes us say the session accepted this message?"

Lesson 2: approval buttons must mean exactly what the CLI means

Permission requests are even more sensitive than ordinary chat. A green Approve button may look reassuring, but the decision belongs to the CLI's own permission system.

ccdeck 4.1.0 added cards in Workspace Chat for Claude Code questions, command approvals, edit approvals and plans. Before an answer is sent, the deck checks that Term still shows the same request. Choices that change the session's permission rules, such as don't ask again, remain in Term.

That is narrower, and safer, than claiming the dashboard can overrule the agent's security model. It cannot. Nor should it.

Three things should remain separate:

  1. What the tool wants to do. Display the command, edit or plan in enough context to make a decision.
  2. What the current terminal is actually asking. Re-check the prompt at the moment of action; a captured card can become stale.
  3. What the human authorized. Send only that choice, and show whether the session took it.

None of this means a coding agent is safe to run on untrusted code. Sandbox restrictions, repository trust, and human review still matter independently of an attractive Chat UI.

Lesson 3: closing a pane isn't ending a process

Terminal apps make this distinction painfully obvious once you add a browser view around them.

In ccdeck, closing a Workspace pane leaves the underlying session running. An ended session can offer Reopen here, resuming the same conversation in a new terminal. But an agent still running outside ccdeck may hold that conversation open. In that case, the pane explains where it is still open and offers to reopen when the other session lets go; it doesn't silently start a duplicate conversation.

Current release notes also describe explicit recovery for moved or disconnected project folders and for a reopen that cannot finish. These are not glamorous changelog entries. They are where interactive developer tools either earn or lose trust.

The governing rule is simple: a view is not a process, and a process is not just a conversation ID.

Four CLI names on the board do not mean four identical integrations

This is the part worth stating before anyone tries the product:

CLI Board monitoring Workspace terminal + Chat Notes
Claude Code Yes Yes Waiting queue, subagents, question and approval cards
Codex CLI Yes Yes Rollout-derived visibility; no equivalent Claude-style waiting queue from rollout logs
opencode Yes Not offered as the same managed Chat/Term integration Working/waiting/done and tool activity on the board
GitHub Copilot CLI Yes Not offered as the same managed Chat/Term integration Working/waiting/done and tool activity on the board

The latter two arrived in 4.3.0. Their Chat and spend figures are not at parity with Claude Code and Codex. Treating "supported" as a yes/no flag would be misleading.

A UI that combines several agents should make its blind spots obvious. Otherwise a missing signal will be mistaken for a healthy state.

Try the interaction boundary, not a benchmark

Here is a small, reproducible walkthrough for Claude Code or Codex. It doesn't require running untrusted code or turning off approvals.

Start with Node.js 18+ and a locally installed supported CLI. Then run:

npx ccdeck
Enter fullscreen mode Exit fullscreen mode

Open its local page, normally http://127.0.0.1:4317, and start a harmless session from Workspace (for example, ask it to explain a file in a test repository). Click that session's card on the Board to open its terminal pane. Switch Term → Chat, send a question, and check the visible delivery state. If you want a second pane, select another session using Shift+Enter; Workspace supports up to four panes. Recent releases also let you keep several sessions as tabs within a pane.

On Linux and macOS, the terminal guide lists tmux 3.2+ as a prerequisite; Windows uses a different terminal engine path. Check the guide if your pane cannot attach. A session started in an external terminal may be observable without being immediately controllable from Workspace.

Official ccdeck Workspace demonstration, with generated sessions and sample content, not a screenshot from my test

Official documentation image, using demo data. The example is illustrative, not measured usage or my personal test result.

A useful manual checklist: did the correct session open? Did the instruction actually arrive? Does closing its pane leave it running? Does a pending approval still match the terminal when you act on it? Can you tell the difference between "waiting" and "not observable"?

Those checks tell you more about the reliability of an AI workspace than a screenshot with four colorful panes.

The awkward product decision

A monitoring tool can be valuable precisely because it cannot change what it observes. Giving it a keyboard adds convenience, but it also adds a responsibility: the interface must never blur observation into authorization.

For me, the interesting change from ccdeck 3.x to 4.x is not that it gained tabs or another command palette. It's that the dashboard can now take you from "which session needs attention?" to "am I answering the correct prompt in the correct terminal?" without pretending those are the same question.

If you build interfaces around coding agents, what would you insist on before putting Approve outside the agent's native terminal: a live prompt match, delivery confirmation, a record of the choice, or something else?

Top comments (1)

Collapse
 
kami_butt_69b922ade8de012 profile image
Agentic Affairs •

The pending/accepted/unconfirmed delivery states are the sharpest idea here — 'I sent it' is not 'the agent took it', and a UI that shows sent text as a completed instruction creates two conflicting histories. The Show Term fallback instead of claiming acceptance is exactly the right kind of honesty. One pushback: re-checking that Term shows the same request before answering a permission prompt still leaves a race — what happens if the prompt changes between that check and the send?