Knowing when to stop an AI agent run is a core development skill.
Claude Code and Codex can inspect files, edit code, run commands, and continue across multiple turns. That is useful only if the work stays pointed at the task. When a run drifts, the best fix is usually early intervention: stop it, steer it, or restart with a cleaner prompt before the diff becomes expensive to review.
Junction is built for that moment. The daemon runs on your machine, the agent executes where your code already lives, and the browser or phone gives you a control surface for live output, approvals, stopping, steering, notifications, and Git review.
This is not about micromanaging every line. It is about recognizing when the evidence has changed.
Stop, Steer, or Continue
There are three basic decisions during a live run.
| Decision | Use it when |
|---|---|
| Continue | The agent is on task, commands are relevant, and the diff is still scoped. |
| Steer | The agent has useful context but needs a sharper instruction. |
| Stop | The agent is in the wrong repo, wrong files, risky command path, or repeated loop. |
The distinction matters. Stopping every imperfect step wastes the agent's ability to recover. Continuing every wrong step wastes your review time. Steering is the middle path when the session still has useful context.
Claude Code's best-practices documentation explicitly calls out stopping mid-action with Esc and using rewind when a session needs to recover from a bad path. The local terminal shortcut is provider-specific, but the workflow lesson is broader: interruption is part of agent supervision.
Signs You Should Continue
Let the agent keep working when the signals line up:
- It read the files named in the prompt.
- It is running the focused verification command.
- Approval requests match the task.
- File edits are inside the expected scope.
- The final summary is moving toward a reviewable diff.
- Cost and time are proportional to the task.
For example, if Codex is fixing a failing test and the terminal shows it running that focused test after a small patch, continuing is reasonable. If Claude Code is exploring an unfamiliar module and summarizing findings before edits, continuing may also be the right call.
Do not interrupt just because the agent takes a different route than you would. Interrupt when the route creates real risk.
Signs You Should Steer
Steering is useful when the agent has found relevant context but is starting to broaden the task.
Good steering messages are short and specific:
Stay inside the settings form and its focused tests.
Do not edit billing or provider setup.
Run the focused test before making another code change.Or:
Pause implementation.
Summarize the two possible fixes and recommend the smaller one before editing.Steering works best when you send it before the branch becomes messy. Junction's live output stream and session controls are designed to surface that window: you can see the transcript, commands, approvals, and file changes while the run is still active.
Signs You Should Stop
Stop the run when the risk is no longer theoretical.
Examples:
- The agent is in the wrong repository or daemon.
- The branch is wrong.
- It is editing files outside the agreed scope.
- It asks to run a destructive or broad command without enough reason.
- It repeats the same failing command without a new hypothesis.
- It starts a refactor after a narrow bug-fix prompt.
- It makes claims that do not match the terminal output or diff.
Stopping is not failure. It is containment.
A stopped run can still produce useful evidence: files inspected, failing commands, partial diagnosis, or a better prompt for the next attempt. The mistake is letting a bad direction keep accumulating changes because stopping feels disruptive.
A Practical Drift Checklist
When you are monitoring from a phone, use a small checklist:
- Scope: are the files still related to the prompt?
- Command: does the shell output match the verification plan?
- Approval: is this action safe for the task?
- Branch: would the current diff make sense as a pull request?
- Progress: is the agent narrowing the problem or looping?
If four or five answers are healthy, continue. If two or three are uncertain, steer. If one answer exposes serious risk, stop.
This keeps mobile supervision realistic. You are not performing a full review on a small screen. You are deciding whether the run should keep spending time and changing files.
Example: Steering Before a Bad Diff
Prompt:
Fix the failing notification settings test.
Scope: notification settings component and focused test only.
Verification: run the focused test before summarizing.The run starts well. The agent reads the test and component. Then the transcript shows it opening billing settings and account auth files because those share a settings layout.
That is not automatically wrong, but it is a warning. A good steering message would be:
Do not edit billing or auth settings.
If the shared layout is involved, explain the evidence before changing it.
Stay focused on notification settings and the focused test.If the agent acknowledges and returns to the scoped files, continue. If it starts editing unrelated settings anyway, stop.
Where Junction Fits
Junction combines the signals that make this decision possible:
- real-time output streaming,
- tool and shell output,
- approvals,
- stop controls,
- steering while the run is active,
- push notifications,
- Git state and diff review,
- mobile access through the browser/app.
That is different from waiting for a completion notification and inspecting a large diff later. The point is to intervene while the mistake is still cheap.
For the streaming side of this workflow, read Use Live Output Streaming to Catch Agent Problems Early. For approval decisions, read How to Approve AI Agent Actions Safely.
Tradeoffs
Stopping too often can slow useful work. Steering too often can clutter the session. Continuing too long can create a cleanup problem.
The best rule is evidence-based:
- Continue when the evidence supports the direction.
- Steer when the session is useful but drifting.
- Stop when the next action can damage the branch, waste time, or hide risk.
If a session has already been steered several times and still misses the target, start fresh. A shorter prompt on a clean branch is often better than a long transcript full of corrections.
The Habit To Build
Before you step away from your desk, give the agent a stop condition. While you are away, use Junction to watch for that condition.
Start with the Junction setup guide to pair one daemon. If you need more open chats, more daemons, or Switchboard automation, compare the current plans on pricing.