Agent in Production
ObservabilityLong read

Live Tool Call Feeds and Diff Streams as the Real-Time Control Plane for Agentic Coding Teams

A live feed of tool calls and diffs lets teams halt agents mid-run.

· 8 min read
Cover illustration for “Live Tool Call Feeds and Diff Streams as the Real-Time Control Plane for Agentic Coding Teams”
Observability · November 25, 2026 · 8 min read · 1,909 words

Full observability for AI coding agent sessions requires a live feed linking tool calls, file diffs, and token usage to the session, agent, and originating user. That feed becomes a real-time control plane when teams can use it to stop execution, require approval, and enforce budgets before actions have consequences.

Why the live feed of tool calls and diffs is not a log — it is the control surface

Teams commonly treat logs as retrospective evidence for debugging, audits, and compliance. A live feed serves a different purpose. It is the real-time window into an agent’s actions, including actions that change external state before anyone reviews the finished code. A tool call is an invocation through which an agent reads files, edits code, runs tests, calls an API, or initiates a schema migration. Unlike a suggestion in a chat window, that invocation can have immediate consequences.

The diff stream adds evidence by showing how those invocations change files. Together, tool calls and diffs connect intent to action and resulting state, making the sequence reconstructable and giving teams opportunities to interrupt further execution. Humans are Missing from AI Coding Agent Research argues that increasing autonomy shifts the practical bottleneck from task-solving capability toward how people communicate with, supervise, and trust agents. A feed designed only for later inspection leaves that bottleneck intact, even if its records are comprehensive.

What agents actually do between instruction and output, and why that gap requires a new supervision model

An autonomous coding session can span planning, codebase inspection, edits across directories, test execution, corrections, and a pull request. The plan-build-test-ship loop compresses work that previously required coordinated human handoffs across hours or days. Yet the final patch omits much of that sequence. It does not, by itself, show which project memory files, architecture decision records, or planning instructions informed each action.

Specifying and Maintaining Agentic Workflows: An Empirical Study of GitHub Agentic Workflows documents how workflow files couple natural-language instructions with execution triggers. Those instructions delegate interpretation. The agent decides which tools to invoke, and neither the trigger nor the final output reveals that interpretation in full. When tools invoke further tools across agent boundaries, the originating user’s identity can also disappear from the delegation chain. An after-the-fact record cannot show who authorized an action if that information was never kept.

Patch size compounds this supervision gap. The position paper reports that, across high-performing models on a software engineering benchmark, the patches agents produce are consistently longer than ideal patches. Reviewers face more code with less explanatory context. This makes verifiability a structural problem rather than one that disappears with a more capable model. Correcting a misunderstood plan early is cheaper than unwinding a large multi-file change, so supervision needs an intervention point between the initial instruction and the pull request.

How do teams get complete visibility into every tool call and file diff?

Diagram: The Trace Hierarchy: Session to File Change. Visualizes: Show a four-level trace hierarchy as a vertical stepped flow: Session → Model Call → Tool Call → File Change.

Each tool call needs its own structured entry. The minimum record includes a run ID, user ID, agent identity, model, token usage, latency, full tool invocation record, and status. These fields make filtering and programmatic action possible. The useful trace hierarchy is session, model call, tool call, and file change, with the relationships preserved so a reviewer can connect a change to the invocation that produced it. Token attribution also needs to remain connected to the model call and session.

A trace that explains behavior needs more than execution metadata. Where decision traces are required, they need to capture the options considered, a confidence signal, the context window state, and the selected tool with its recorded rationale. Identity must survive delegation as well. If downstream calls omit the originating user, the trace cannot show who authorized an action after the request has passed through several agents. A detailed execution record can still be an incomplete accountability record.

OpenTelemetry GenAI semantic conventions cover model names, token counts, latency, and request and response metadata. They also define tool invocations through execute_tool spans and multi-agent handoffs through invoke_agent nesting, but do not yet cover memory operations or decision traces. General observability platforms offer LLM and agent monitoring within existing incident workflows, while AI-native tools emphasize deeper trace inspection. Neither category label establishes complete diff support, and tool invocation coverage should not be confused with linked file-change evidence. Any missing relationship becomes a blind spot when someone needs to act during a run.

How teams use the live feed to direct agents during a run, not just review them afterward

The position paper identifies four dimensions of human-agent interaction, namely task alignment, verifiability, steerability, and adaptability. Applied to a live feed, these describe whether people can judge the agent’s understanding, confirm its work, redirect it, and provide feedback that improves later sessions. Visibility alone does not provide these capabilities. A control surface also needs mechanisms that block, warn, or require human approval before an action executes.

Steerability becomes concrete when a tool call reveals that an agent has misread the specification. The team can interrupt the run, clarify the instruction, and resume without discarding the work already completed. Timing changes the cost of correction. Senior judgment still matters when reviewing the plan and the merge, but the live feed lets people step in during execution when a proposed action goes against the intended architecture or scope. The resulting diff then lets the reviewer assess whether the redirected work produced the intended change.

Security-sensitive changes and production-irreversible actions make the need for pre-execution approval especially clear. A gate triggered by a tool call pattern can require judgment before the action occurs, rather than ask for review after its consequences exist. The execution environment must support that control. Isolated sandboxes and per-session credentials give interruption a clear boundary, whereas credentials shared with other sessions or processes make stopping one agent safely harder. The feed, approval mechanism, and sandbox therefore need to operate as parts of the same system.

Why cost and identity accountability both collapse without per-tool-call attribution

Diagram: Per-Session Budget Enforcement: Three Thresholds. Visualizes: Illustrate a single linear scale representing token/cost consumption within a session, marked with three graduated control thresholds: Warning (soft alert while work is in…

Agents running in CI/CD pipelines can use tokens so fast that monthly reports do too little to keep spending in check. To keep costs in check, teams need to enforce per-session, per-developer, and per-team budgets in the request path. The gateway is the enforcement point. Hierarchical budgets set limits for each cost center, so requests can be rejected when a team has used up its budget even if the organization still has budget left. The budget is enforced before the call fires and before a dashboard records the charge.

Per-session warning, soft-cap, and hard-rejection thresholds provide graduated control without making every overage a manual decision. The live feed exposes the approach to those limits while work is still in progress. This gives people time to intervene. A hard cap prevents further spending, but an earlier warning can turn an abrupt stop into a managed checkpoint. Token totals without session and ownership attribution cannot support that distinction because they do not connect consumption to the work and budget being governed.

Identity attribution addresses a separate failure mode. User and agent IDs on every tool call let an audit trace a financial-database read back through a multi-agent chain to its authorization. Session credentials provide the execution boundary. Credentials minted for each session and revoked on completion tie calls to that session, while the audit trail connects the credential to the person or trigger that started it. Budget attribution identifies who is spending, and identity attribution establishes who authorized the action. Together, they let teams expand concurrent agent work without losing control of either resource use or responsibility.

What governance requirements the live feed must satisfy as agent deployments move from experiment to production

Production governance requires six verifiable properties, including unique agent identity, task-scoped authorization, runtime policy enforcement, human accountability, immutable audit trails, and scope isolation across multi-agent workflows. Static IAM, prompt rules, and retrospective logs do not, by themselves, establish all six during execution. Authorization must follow the action. An agent instructed to prepare a quarterly report may traverse a CRM, financial databases, and external APIs, with each traversal requiring its own authorization, record, and attribution.

The structured records used to step in during a run also need to be kept as audit evidence. That means preserving them in a form that supports applicable retention and audit requirements, including those of regulated industries. Governance begins before execution, however. The workflow study establishes that Markdown files combining instructions and configuration are operational artifacts requiring maintenance, versioning, and review. Treating those files as throwaway prompts would leave the rules for how agents behave outside the engineering controls used for application code.

Storing agent configuration as YAML committed to the repository brings change history, pull-request approval, CI/CD deployment, and rollback into that specification process. This is an engineering practice with governance consequences. CI/CD gates can block merges that add agent configurations without security policies, so some rules are enforced at the pull request. The 2026 workflow study found that only 9.4% of labeled workflows spell out how they address prompt-injection defense. That finding underscores why security policy needs review before the configuration begins producing tool calls.

The practical test is whether the feed alone can establish who triggered each call, what authorization was in scope, what state change resulted, and whether a human approved or could have approved it before execution. Each answer needs evidence. A feed that identifies the agent but omits the originating user fails the accountability test. A feed that shows a completed change but cannot show whether a human had a chance to approve it fails the control test.

What teams need to build a live feed that functions as a control plane in practice

Structured instrumentation supplies the evidence, isolated execution gives each session a controllable boundary, and request-path enforcement applies policy before actions occur. Attribution joins those parts together. The session, model call, tool call, and file-change relationships must remain intact when execution crosses agent boundaries, so the record does not fragment precisely where delegation increases complexity. Decision traces extend that record where teams need to understand the basis for a selected action.

For teams building this system, the implementation priority is to connect the feed to the controls established above rather than deploy each as a separate reporting feature. Approval gates need to see the proposed tool call before it runs, and budget enforcement needs that same request linked to its session and cost center. Sandboxes need session-scoped credentials that are revoked on completion. These dependencies shape the execution environment itself. They are not properties that a retrospective collector can supply after an agent has already run with shared credentials and unbounded access.

The interface also needs to reach engineers where they work. Terminal, Slack, GitHub, and API access let teams guide agents and check their work without having to rely only on a dedicated observability console. A managed cloud platform running Claude Code or Codex can provide the execution, attribution, and enforcement infrastructure together, provided those properties are built in. A laptop or bare CI VM leaves that integration to the team.

Building from scratch requires treating those controls as foundational before deployment. The decisive distinction is whether a senior engineer can move from a live event to an authorized intervention without reconstructing the session elsewhere. That is the production test. When the feed supplies enough structured signal and the runtime can act on it, a small number of senior engineers can govern many concurrent agent sessions without a corresponding increase in supervision headcount.

Sources

  1. Specifying and Maintaining Agentic Workflows: An Empirical Study of GitHub Agentic Workflows
  2. Humans are Missing from AI Coding Agent Research
Filed underObservability

More in Observability