When an AI agent works on a change for half an hour, your workflow comes apart. You write the request in one place and check on the agent in another. When something fails, you dig through logs in a third. When it’s done, you copy a branch name into a browser. Each step is small, but together they cost a lot of switching, and every switch is a chance to lose track of work that is still running.
Terminal dashboards are having a comeback, and AI agents are a big part of the reason. We’ve seen this firsthand with Chunk-CLI, an open-source command-line tool I work on. It hands a coding task to an agent, then checks the result with tests and automated reviews, repeating until the checks pass or it runs out of attempts.
We originally built its dashboard to monitor the remote machines where the tool runs its checks (Chunk sidecars). Watching a single run in the terminal was straightforward, but keeping track of several running simultaneously was much harder. That is the context-switching cost described above, and it is why we rebuilt the dashboard around runs rather than machines. Over the next few months, the controls we added for those runs kept ending up in the dashboard. Today I’ll be sharing what we think that means about where the controls for long-running agent work belong.
TL;DR: Three lessons for managing long-running AI agents
Our dashboard ended up with a bigger job than we planned for it, and the reasons point to a few lessons for anyone building tools around long-running agents:
We built a dashboard to monitor agent work. It became the place to start, steer, and finish runs.
Controls arrived as commands first, then the dashboard pulled them in, because it was the one place that saw every run. The run controls are now also in the CircleCI app.
The most useful change was a deletion: cutting what wasn’t about the work.
TUIs are having a moment, and agents are accelerating that shift, even if they’re not the only reason behind it.
Hypothesis: A background daemon turns an agent dashboard into the place to manage runs
A Terminal User Interface (TUI) is a full-screen, interactive program that runs inside a terminal window instead of printing lines of text. Tools like lazygit and k9s are well-known examples.
As I mentioned earlier, we originally built our dashboard to monitor sidecars. It showed machine status, CPU, memory, disk and logs. Then we started running several agents at once and couldn’t tell which one was which, so we rebuilt the dashboard around runs instead of machines.
A daemon is a background process that owns each agent run, instead of your terminal window. Without one, every command had to start up from scratch, which added to startup time. With a daemon, you can close the dashboard and the run carries on, and every client, whether a command or the dashboard, asks the same process what’s happening instead of starting from scratch. Runs can take a while, so tying them to an open terminal window wasn’t an option.
Our hypothesis was that once the daemon owned every run and the dashboard provided a view of all of them, controls for managing those runs would naturally move into the dashboard, too.
If those controls remained command-only, our hypothesis wouldn’t hold. We decided to measure it by listing every control added to the run workflow since the daemon owned runs, and checking whether and when each reached the dashboard. Here in the results, I’m also including the controls that didn’t reach the dashboard so you can see where the pattern holds and where it doesn’t.
Setup: Tracking agent controls through git history
To test the hypothesis, I read the project’s history from the first commit of the dashboard, using git commits, merged pull requests and release tags. For each stage, I looked at what the dashboard was for, then listed the controls that were added and where each one first appeared. I counted a control as having “reached the dashboard” on the date of the merged commit that first gave it a key in the dashboard, and I measured the gap between a control’s first appearance as a command or flag and that date.
Results: Which agent controls reached the dashboard, and how quickly
The dashboard shifted from monitoring machines to watching runs, then to controlling them. Most controls showed up as a command first and reached the dashboard afterward.
Phase 1: Watching machines. The first commit describes “live sidecar activity.” For eleven weeks it grew around infrastructure: snapshot names, remote versus local, CPU, memory and disk per machine, and a pane for sidecar logs. It was a monitor.
Phase 2: Watching the work. In this phase, the team stopped treating the dashboard as a monitor for machines and rebuilt it around the agent’s work.
A gap in the old design meant that the session view “did not draw a factory run’s rounds at all,” so you couldn’t see what the agent was doing round by round. As a result, we reorganized the dashboard around runs. Next, we deleted the sidecar section, because the dashboard “is for watching factory runs, not the infrastructure they borrow.” Eleven weeks of machine-monitoring features went away because they weren’t answering the question developers actually had: What is each agent doing?
The same refocusing showed up elsewhere in the tool. On October 20, the same day we deleted the sidecar section, running chunk with no arguments stopped opening with a flat list of about twenty commands. It now leads with the agent workflow: handing a task to an agent and checking the result.
From monitoring to managing. As the dashboard became the place to watch agent runs, it also started becoming the place to manage them. Three controls reached the dashboard, two of which first appeared as commands:
Continue a failed run: Introduced as a command, then added to the dashboard.
Open the pull request: Introduced as a flag, then added as a dashboard control.
Plan a change with an agent: Shipped as a command with its own screen, with dashboard access added in the same release.
The controls that stayed command-only were those for setting up or relocating work: bootstrap, remote hosts, and pull.
The results support a more specific version of our hypothesis. Controls for managing agent runs (continue, open PR, plan) moved into the dashboard within two weeks, while controls for setting up or relocating work stayed commands.
Three things explain why.
First, the dashboard had the context. Once a daemon owned the runs, the dashboard became the one place that saw all of them, so a control that acts on a run belongs there. “Continue this failed run” belongs on the failed run’s screen, not in a command you have to retype.
Second, a live screen exposes what commands hide. The dashboard updates every five seconds, so we hit bugs that a one-shot command never could. New rounds collapsed the older ones, which shifted the selection, so pressing Enter opened the wrong row. A summary said a run was “ready for you to look at” when the agent had changed nothing. A turn could run for thirty minutes while the screen said only “implementing”, which looks the same as a hang. Each fix made the screen more trustworthy, and a screen you trust is one you work from.
Third, the dashboard is where developers already work. The controls follow the person, not the surface. Developers who live in the terminal still have the TUI, with nothing to add to their setup. The run controls are now also in the CircleCI app, so developers can steer runs there too, where the rest of their work lives (pipelines, workflows, CI results, etc.). Run state now lives in the factory’s hosted API rather than in any one machine’s daemon, so the terminal and CircleCI app are two clients of the same source.
Limits and open questions
It needs a real terminal. It won’t run in automated scripts or pipes, and starting new work from it isn’t available when the daemon is on another machine. The app doesn’t change that: it shows and steers runs wherever they are. But planning and building still happen on the machine that has your code.
The daemon is a cost. It’s another process to start, find and keep in step with the version of the dashboard.
We’re not done. This work is evolving by the day, so even capturing our progress in a static article like this one presents the challenge of keeping it up to date.
The lesson isn’t really about terminals. Long-running agent work needs one place that sees every run… whether the surface is the terminal, the CircleCI app or both.



