Async Coding Agents: What Changes When Nobody Watches the Terminal
An interactive coding agent has a person beside it. When it asks something, the person reads the question in the terminal and types an answer. When it wants to run a command, the person presses a key. Async coding agents remove that person. They run in a cloud sandbox, a CI job or a terminal in another window, and someone looks at the result later.
Everything else about the agent can stay the same: the model, the tools, the repository. What changes is everything that used to go through the person. This guide looks at the three questions every async setup has to answer, how some vendors answer them, and how Forkit does.
The move to async
Several vendors wrote about this shift in 2026.
LangChain's "Agents Are Going Async" (5 November 2026) splits an agent into an orchestrator that stays with the user and subagents that run in the background. A subagent that needs approval shows as waiting, and the user can "answer on the subagent's own thread without interrupting the orchestrator". The post's argument for the design is capacity: the "amount of work the agent can take on then grows with the number of background workers."
Capy took the opposite route for questions. Its post "Captain vs Build" (9 February 2026) splits the agent in two: Captain plans, asks questions and writes a spec, and Build executes it in a VM. The post states the cost plainly: "The trade-off is that Build never asks you clarifying questions mid-task."
Both are reasonable. They also show that "async" is not one decision. It is a set of answers to what happens at each point where an agent used to need a person.
Question 1: Where does the agent's question go?
An interactive agent asks in its terminal. An async agent's terminal is a log file, a sandbox nobody is attached to, or a CI job that finished an hour ago. A question written there reaches nobody.
There are three common answers:
- Never ask. Front-load all questions into a planning step, as Capy's Build does. This works when the spec is good. When it is not, the agent guesses.
- Ask on the agent's own thread. As in LangChain's design, the question appears somewhere a person can find it, with a way to answer.
- Ask, and stop. The agent ends its run with the question as its last message, and someone picks it up later. This only works if something notices the question.
Forkit takes the second answer for every agent connected through its hooks. Each agent session is one thread. When a Claude Code turn ends with a question (the last sentence of the last line ends in ?), the thread goes to waiting with that question as its note, so it reaches the team's list of what needs a person and its notifications. The hook then waits for a reply, 90 seconds by default (FORKIT_REPLY_WAIT). If a person answers in that time, the reply goes straight back to the agent and it carries on.
If the answer comes later, it is handed to the agent on its next prompt or session start, once. Agents without hooks can call the wait_for_reply tool.
Questions between agents get the same treatment. When one agent asks another and nobody answers within 2 minutes, the notification sweep hands the question to a person: the asking agent's thread goes to blocked with the question as its note.
Question 2: What happens to the question when the session ends?
This is the case that interactive tools never had to think about. A one-shot run (claude -p "…", codex exec) does its work and exits. If its last message is a question, the process is gone before anyone reads it.
Forkit got this wrong at first. Until 17 November 2026, the end of a session moved its thread to idle, so a one-shot run's question never reached anyone. Now a session that ends while its thread is waiting on the agent's own question leaves the thread waiting, with a note that the session has ended. The question stays in front of a person. When someone answers and the work is started again on that thread, the next prompt clears the note.
There is one exception, and it is on purpose. A thread held by a pending permission request still goes idle when its session ends, because nobody is left to run the command a person might allow.
The general rule for any async setup: a question must belong to something that outlives the process that asked it. A thread, an issue, a ticket. Not a terminal.
Question 3: What happens when nobody answers?
An interactive agent that asks permission to run a command waits as long as the person takes. An async agent cannot. Its sandbox has a time limit, its CI job has a timeout, and the agent is burning time either way.
So every async setup needs a rule for silence. The choices are allow, deny or ask somewhere else. Allowing on silence is how unattended agents end up running commands nobody approved, so it should not be the default.
Forkit's permission requests go through four layers in order: command rules, then an orchestrator agent an owner picks, then a person, then a timeout. Production, secrets and money always reach a person. The timeout is where async agents differ:
- An agent with a terminal (a person's own Claude Code session): after the wait (
FORKIT_PERMISSION_WAIT, 90 seconds by default), the hook withdraws the request and prints nothing, so Claude Code asks in its own terminal as it would without Forkit. - An agent without a terminal (any agent of a fan-out, which is how Forkit names a group of agents started together in sandboxes or CI): the unanswered request is recorded as denied. Asking "in its own terminal" would mean asking nobody.
- Any other agent can choose the same with
FORKIT_ON_TIMEOUT=deny.
The agent then gets a plain answer, works around the refusal or stops, and the request stays on record for a person to see.
The case nobody designs for: the agent that vanished
Silence has a second form. The agent asks, starts waiting, and then its sandbox is torn down, its network drops or its process is killed. Only the asking agent could turn its own silence into a denial, and this agent never will. The request sits there as pending, telling people that an agent is waiting when none is.
Forkit's once-a-minute sweep handles this (denyAbandoned). A pending request from a fan-out's agent that is a minute old, with nobody waiting on it for a minute, is denied as if the agent had withdrawn it. If Forkit lost its record of who was waiting (a restart), it checks twice, 15 seconds apart, before denying. Agents that poll with short waits instead of one long one tell Forkit they are still there.
We checked this once on staging, with the minute cron turned on for the check: an agent that asked and vanished had its request denied after 89 seconds, while one that kept waiting stayed pending. Requests from ordinary agents, which have a terminal to ask in, are left alone.
What else changes
Three smaller things follow from nobody watching.
Stopping has to reach agents you cannot see. You cannot press Ctrl-C on forty sandboxes. Forkit's fan-outs can be stopped by the agent that started them, by its person or by an owner, when their time is up, when they reach a tool-call limit, or at a dollar budget. A stopped agent's next request is answered with a stop, and the hook tells Claude Code not to continue. See how to stop a runaway agent.
Notifications need thresholds. A person cannot be pinged for every event of fifty agents. Forkit's sweep tells people about a permission request after 20 seconds, and about a question, a review or a blocked thread after 2 minutes, once per need.
The record replaces the terminal. If nobody watched, the only account of what happened is what was written down while it happened: the commands, the changed files, the questions and who answered them. The agent's own summary at the end is not that record.
What Forkit does not do yet
- Nothing wakes a fully idle session. A reply reaches an agent that is running, waiting in its Stop hook, or starting its next prompt. An agent that has finished and exited gets the reply when someone starts it again on that thread.
- Codex connected only through
notifycannot receive replies. Codex through its hooks can. - Codex in a sandbox is not covered by the unattended setup, because its hooks need
/hooksin a terminal once.
A checklist for any async agent
Whatever tools you use, ask these before running agents nobody watches:
- Where does a question go, and who is told?
- Does the question survive the end of the process that asked it?
- What does silence mean for a permission request: allow, deny or ask elsewhere?
- What happens to a request whose agent has vanished?
- Can you stop all of them at once?
- Is there a record of what each one did that the agent did not write about itself?
Related: background agents in CI, cloud agents vs local agents, approving Claude Code remotely and the Claude Code PermissionRequest hook.
Where Forkit fits
Forkit is the coordination system for agent teams: plans, handoffs, file claims and decisions, shared by every agent and the people behind them. It does not run agents. Your agents run where they already do, and Forkit gives their questions and requests somewhere to go. It is free to try at forkit-mcp.com.
Sources
- LangChain, "Agents Are Going Async", Sydney Runkle and Thushanth Bengre, 5 November 2026: https://www.langchain.com/blog/agents-are-going-async
- Capy, "Captain vs Build: Why We Split the AI Agent in Two", 9 February 2026: https://capy.ai/blog/captain-vs-build
- Forkit engineering notes: questions that outlive their session (17 November 2026), permission requests and timeouts, and the abandoned-request sweep (staging check, one run).