AXONN Vantis logo
AXONN VantisAgentic eXperience, Open Neural Network,Complete Governance
EN
← Blog

Autonomous Coding Agents: An Always-On Multi-Agent Design

As coding agents built on large language models (LLMs) move beyond writing a single function or patching a simple script and start taking on large-scale work that manipulates an entire project's codebase, the real bottleneck in the system is shifting away from the model's coding ability and toward the developer's cognitive limits (the cognitive bottleneck).

Conventional conversational coding agents are still built around a 1:1 session in which the developer and the model take turns. That is intuitive for a single task, but its limits show as soon as you try to handle several bug fixes or feature implementations in parallel. The developer has to hop between terminal windows and chat sessions, check on the progress of each task by hand, and keep track of every approval request, so the overhead of managing orchestration climbs sharply.

The next generation of coding agents, the kind that settles into a development team's infrastructure and delivers real value, will not be tools that passively wait for commands. It calls for an architecture that lives inside version control and collaboration tools and detects work items on its own and carries them through to completion.


1. Structural Limits of the Single-Session Conversational Model

Putting the existing 1:1 conversational interface straight into always-on, team-wide monitoring in a development team produces the following technical conflicts.

  • Context pollution: Discussions between developers, small talk, thousands of lines of compiler logs, and file diffs all end up mixed together in a single context window. This not only wastes tokens but also disrupts the model's attention mechanism and lowers the accuracy of the code it generates.
  • Wasted cost during idle monitoring: If a heavy reasoning model is invoked every time just to watch everyday chatter in the team messenger or routine repository webhook events, tokens are consumed and API costs pile up even in idle periods when no real code work is happening.
  • Loss of control from blocking I/O: When an agent session is stuck waiting while a long build or test command runs, it is hard for a developer to issue an urgent cancel from outside or change the direction of the work.

The core design patterns proposed to solve these problems are the two-tier orchestrator-worker structure and a deterministic permission control model.


2. A Dual-Layer Orchestrator-Worker Design

This architecture draws a clear line between an "input source layer," which first filters and accepts the various stimuli flowing into the system (events and developers' direct instructions), and an "execution layer," which carries out the actual work on that basis in a safe, isolated environment.

Orchestrator-worker architecture diagram

Orchestrator: The Low-Cost, Always-On Layer

The orchestrator is the front-end point of contact that continuously watches infrastructure events and developer messages. Using a relatively light, fast model, it determines whether an incoming message is something that actually requires engineering work, assigns priorities, and coordinates the status of the workers' tasks. The orchestrator has no direct access to file-editing tools or terminal execution; it focuses solely on accepting and delegating work.

Worker: The Isolated, High-Performance Execution Layer

A worker is a one-off session spawned dynamically for an individual work item (ticket) issued by the orchestrator. It uses a high-performance model capable of complex reasoning and code generation, and makes full use of the Bash shell and Git tooling. Workers do not talk to developers directly; they communicate only with the orchestrator, using structured data, which keeps their execution context clean.


3. Autonomous Execution Control and the Permission Model

Deterministic permission management is essential to prevent the risks that arise when an always-on monitoring agent modifies code on its own.

Separating Explicit Requests from Autonomously Detected Work

  • Explicit requests: These are cases where a developer conveys a clear intent, by mentioning the agent directly (@bot), using a slash command (/fix, /review), opening a dedicated work thread, and so on. Only requests from developers on a predefined allowed list or with project permissions are authorized and executed.
  • Autonomously detected work: These are work items the agent identifies on its own from the event stream, such as a failed CI build or a newly filed bug report. They are registered as execution candidates only after passing evaluation rules the team has written in code ahead of time. Events generated by external bots are prevented from issuing new work items.

Staged Approval Control Based on Organizational Maturity

How much the agent intervenes in autonomously detected work can be configured flexibly according to the organization's level of trust and automation maturity.

  • Monitoring and simulation mode: In the early stages of adoption, even work items that pass the rules do not modify code directly. The agent only writes a log of simulated acceptances, so that the false positive rate and the soundness of its judgments can be validated first.
  • Rule-based autonomous execution mode: Once trust in the system is established, the agent is granted autonomy to start a worker automatically, create a branch, and begin work, limited to tasks that pass the pre-agreed rules.

4. Concurrency Control and Workspace Isolation

Handling many work items reliably in parallel requires isolating both the runtime environment and process control.

Physical Workspace Isolation with git worktree

To prevent source code overwrites and Git index lock conflicts that can occur when multiple workers run at once, the system uses the git worktree mechanism. As soon as a worker is created, it is assigned its own branch, such as agent/<ticket-id>, and a separate working directory in which it runs builds and tests. When the work is finished and a PR is created, or the work is canceled, that working directory is cleaned up immediately.

Guaranteeing Interrupts by Moving the Shell to Asynchronous Execution

Builds and tests for large projects take a considerable amount of time. If the agent simply waits for a command to finish, it becomes impossible to interrupt, so a shell command running in the foreground is automatically moved to a background session once it exceeds a set time. This keeps the worker's input channel open at all times, so it can receive a developer's cancel signal or additional instructions in real time even while a build is in progress.

Subscription-Based Context Tracking

When a reviewer leaves a comment on a PR the agent created, the orchestrator does not create a new task. An internal subscription table identifies the existing worker task linked to that PR number and routes the event directly to the responsible worker's queue. This lets developers keep revising code with the context intact, without having to specify a separate session identifier each time.


5. Conclusions and Insights

The orchestrator-worker coding agent architecture examined so far leaves two important technical takeaways.

  • Automating the "workflow," not the interface: It shows that the value of AI agents is shifting from a simple "code generator" to an "autonomous collaboration partner." The heart of this architecture goes beyond turning a person's commands into code: it weaves together the entire process of continuously watching and assessing events across the development process, carrying out work in an isolated, safe space, and feeding the results back.
  • Controllable autonomy: Before an agent is given full autonomy, control mechanisms that define detection rules and require it to pass through a simulation stage and a manual approval stage are an essential gateway for adopting agents in real-world production environments. Only when security isolation (git worktree, sandboxes), cost control, and permission control provide solid support can an agent finally serve as a true collaborator that does not burden the organization.

Ultimately, in the development environment of the future, developers will no longer be session managers taking down code line by line. They will act as "architects of a collaborative system," designing orchestration rules and permission boundaries and supervising many isolated workers.

← Blog