← Open Source
Danau5tin

multi-agent-coding-system

Reached #13 on Stanford's Terminal Bench leaderboard. Orchestrator, explorer & coder agents working together with intelligent context sharing.

ApplicationsCodingPython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
1.47k
Stars
189
Forks
+4
This week
1
Contributors
Created 2025-08-30 · Updated 2026-10-14 · #10247 today
Top developers
Danau5tin

Danau5tin/multi-agent-coding-system is ranked 10,247 with 1,466 stars.

Same-category comparison

Danau5tin/multi-agent-coding-system is ranked 10,247 among these 8 peers; fictionco/fiction is ranked 10,245.

Same-category comparison
NameRankMetrics
Nanjiren01/AIChatWeb10,232
Language:
TypeScript
Stars:
1,472
Forks:
382
RUC-NLPIR/WebThinker10,234
Language:
Python
Stars:
1,472
Forks:
140
Description:
[NeurIPS 2025] 🌐 WebThinker: Empowering Large Reasoning Models with Deep Research Capability.
HexmosTech/git-lrc10,238
Language:
Go
Stars:
1,469
Forks:
191
Description:
Free, Micro AI Code Reviews That Run on Git Commit.
fictionco/fiction10,245
Language:
TypeScript
Stars:
1,467
Forks:
113
Description:
Agentic Digital Self Platform.
Rachnog/Deep-Trading10,255
Language:
OpenEdge ABL
Stars:
1,463
Forks:
682
Description:
Algorithmic trading with deep learning experiments.
qupath/qupath10,256
Language:
Java
Stars:
1,463
Forks:
363
Description:
QuPath - Open-source bioimage analysis for research.
SmartSchoolAI/ai-to-pptx10,260
Language:
TypeScript
Stars:
1,462
Forks:
187
gabotechs/MusicGPT10,261
Language:
Rust
Stars:
1,462
Forks:
170
Description:
Generate music based on natural language prompts using LLMs running locally.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryApplications
SubcategoryCoding
Stars1,466
Forks189
Contributors1
Created date2025-08-30
Updated date2026-10-14
Stars in 1 day0
Stars in 7 days4
Rank10,247
Previous rank5,670
Rank change-4,577
7-day stars rank6,155
Previous 7-day stars rank5,581
7-day stars rank change-574
Total stars rank8,232
Previous total stars rank8,221
Total stars rank change-11
CountryUK
README summary

🤓 Orchestrator: A multi-agent AI coder. Reached #13 on Stanford's TerminalBench. TL;DR: Over the weekend, quite unexpectedly, I made a multi-agent AI system that places slightly higher than Claude Code on Stanford's TerminalBench leaderboard (13th place). This AI system consists of an orchestration agent that dispatches multiple explorer and coder agents to do all the work. The orchestrator explicitly defines what knowledge artifacts subagents must return, then reuses and synthesises these artifacts across future tasks - creating compound intelligence

where each action builds meaningfully on previous discoveries. 📰 Releases (4th Nov 25) 🌊 Orca-Agent-v0. 1 (separate repo here) (2nd Nov 25) New system & agent abilities: Orchestrator & Subagent can be different models App now fully async App now a package so other projects can depend on it Agents receive a snapshot of the environment on startup Agent can reference task id's as context refs to inject all of that task's contexts into a subagent New Single/Distributed Node Docker Manager

(used in tests, but mostly by RL) Bug fixes (2nd Sept 25) 🤓 Orchestrator - multi-agent-coder Agentic AI system placing #12 on Stanford's Terminal Bench (not for very long, so screenshot above shows #13 😅) This placed higher than Claude Code All orchestration code open sourced How the System Works The orchestrator acts as the brain of the operation - it receives the user's task but never touches code directly. **Analyses** the task and breaks it into focused subtasks 2. **Dispatches** explorer

agents to understand the system 3. **Delegates** implementation work to coder agents with precise instructions 4. **Verifies** all changes through additional explorer agents 5. **Maintains** the context store with all discovered knowledge The orchestrator's lack of direct code access forces proper delegation and verification patterns, leading to more strategic solutions. For a full breakdown of this project's code structure, see here Example model output The model uses xml tags to define an action, and YAML to define the parameters of

an action if they exist. Below shows the model thinking and then dispatching a coder agent. 📈 Evaluation Results Performance on TerminalBench Terminal bench is a brilliant benchmark created by Stanford and Laude Institute to quantify agents' ability to complete complex tasks in the terminal. My Orchestrator system achieved **13th place** on the leaderboard, demonstrating competitive performance against leading AI coding assistants. I ran the Orchestrator evaluations with both Claude-4-Sonnet and also Qwen3-Coder-480B-A35B: This image shows

Qwen-3-Coder performance on the benchmark. The screenshot towards the top of this README shows Sonnet-4 performance. Cost & Efficiency One of the most striking results is the amount of tokens used by Sonnet-4 as opposed to Qwen3-Coder. The below table shows the total tokens (input and output included) processed across the TerminalBench evaluation run (5 attempts at 80 tasks = 400 trajectories). 7M tokens | *Claude Sonnet-4 costs reflect heavy caching usage, reducing actual API costs 🤖 The

Agents While all agents use the same underlying LLM, each operates with its own context window, specialised system message, and

Frequently asked questions

How many stars and forks are recorded?

Danau5tin/multi-agent-coding-system has 1,466 stars and 189 forks.

What is the repository rank?

Danau5tin/multi-agent-coding-system is ranked 10,247.

What language and category are recorded?

Danau5tin/multi-agent-coding-system has 1,466 stars, uses Python and belongs to Applications.

Which repository is closest in rank?

Danau5tin/multi-agent-coding-system is compared with fictionco/fiction, ranked 10,245 with 1,467 stars.

README

🤓 Orchestrator: A multi-agent AI coder. Reached #13 on Stanford's TerminalBench. Open sourced!

TL;DR:

  • Over the weekend, quite unexpectedly, I made a multi-agent AI system that places slightly higher than Claude Code on Stanford's TerminalBench leaderboard (13th place).
  • This AI system consists of an orchestration agent that dispatches multiple explorer and coder agents to do all the work.
  • The orchestrator explicitly defines what knowledge artifacts subagents must return, then reuses and synthesises these artifacts across future tasks - creating compound intelligence where each action builds meaningfully on previous discoveries.

📰 Releases

(4th Nov 25) 🌊 Orca-Agent-v0.1

  • RL trained 14B Orca-Agent-v0.1 (separate repo here)
    • Qwen3-14B achieved a 160.71% relative increase on Stanford's TerminalBench after training using this multi-agent framework.
    • I scaled multi-agent RL training to 32x Nvidia H100s, rolling out 256 concurrent Docker environments simultaneously.
    • Full training code, model weights, datasets, and documentation are open source in this repo.

(2nd Nov 25)

  • New system & agent abilities:
    • Orchestrator & Subagent can be different models
    • App now fully async
    • App now a package so other projects can depend on it
    • Agents receive a snapshot of the environment on startup
    • Agent can reference task id's as context refs to inject all of that task's contexts into a subagent
    • New Single/Distributed Node Docker Manager (used in tests, but mostly by RL)
    • Bug fixes

(2nd Sept 25) 🤓 Orchestrator - multi-agent-coder

  • Agentic AI system placing #12 on Stanford's Terminal Bench (not for very long, so screenshot above shows #13 😅)
  • This placed higher than Claude Code
  • All orchestration code open sourced

How the System Works

The orchestrator acts as the brain of the operation - it receives the user's task but never touches code directly. Instead, it:

  1. Analyses the task and breaks it into focused subtasks
  2. Dispatches explorer agents to understand the system
  3. Delegates implementation work to coder agents with precise instructions
  4. Verifies all changes through additional explorer agents
  5. Maintains the context store with all discovered knowledge

The orchestrator's lack of direct code access forces proper delegation and verification patterns, leading to more strategic solutions.

For a full breakdown of this project's code structure, see here

Example model output

The model uses xml tags to define an action, and YAML to define the parameters of an action if they exist. Below shows the model thinking and then dispatching a coder agent.


Okay, now with task_003 identifying a backup, the next step would be to attempt recovery using this identified file.



agent_type: 'coder'
title: 'Attempt recovery using the identified backup file'
description: |
  Execute the following steps to recover using the backup identified in task_003:
  1. Move the identified backup file (/tmp/terraform_work/.terraform.tfstate.tmp) to the target location (/infrastructure/recovered_state.json).
  2. Verify the operation by checking:
     - The existence of the new file at the target location
     - The size matches the original backup file
     - The file permissions are set appropriately (rw-r--r--)
max_turns: 10
context_bootstrap:
  - path: '/tmp/terraform_work/.terraform.tfstate.tmp'
    reason: 'The backup file identified in task_003'
context_refs:
  - 'task_003'

📈 Evaluation Results

Performance on TerminalBench

Terminal bench is a brilliant benchmark created by Stanford and Laude Institute to quantify agents' ability to complete complex tasks in the terminal. My Orchestrator system achieved 13th place on the leaderboard, demonstrating competitive performance against leading AI coding assistants.

I ran the Orchestrator evaluations with both Claude-4-Sonnet and also Qwen3-Coder-480B-A35B:

This image shows Qwen-3-Coder performance on the benchmark. The screenshot towards the top of this README shows Sonnet-4 performance.

Cost & Efficiency

One of the most striking results is the amount of tokens used by Sonnet-4 as opposed to Qwen3-Coder.

The below table shows the total tokens (input and output included) processed across the TerminalBench evaluation run (5 attempts at 80 tasks = 400 trajectories).

Model Success Rate Total Evaluation Cost Token Usage
Claude Sonnet-4 37.0% $263.56* 93.2M tokens
Qwen-3-Coder 19.7% $217.83 14.7M tokens

*Claude Sonnet-4 costs reflect heavy caching usage, reducing actual API costs

🤖 The Agents

While all agents use the same underlying LLM, each operates with its own context window, specialised system message, and distinct toolset. This creates functionally different agents optimised for their specific roles.

🎯 Orchestrator Agent

System message Role: Strategic coordinator and persistent intelligence layer
Capabilities: Task decomposition, context management, subagent delegation
Tools: Task creation, subagent launching, context store management
Restrictions: Cannot read or modify code directly - operates purely at architectural level

The orchestrator maintains the complete picture across all tasks, tracking discoveries and progress. It crafts precise task descriptions that explicitly specify what contexts subagents should return, ensuring focused and valuable information gathering.

Trust Calibration Strategy:
The orchestrator employs adaptive delegation based on task complexity:

  • Low Complexity Tasks: Grants extremely high autonomy to the coder agent for simple modifications and bug fixes
  • Medium/Large Tasks: Maintains strong trust but uses iterative decomposition - breaking complex problems into atomic, verifiable steps
  • Verification Philosophy: Uses explorer agents liberally to verify progress, especially when tasks involve critical functionality

🔍 Explorer Agent

System message Role: Read-only investigation and verification specialist
Capabilities: System exploration, code analysis, test execution, verification
Tools: File reading, search operations (grep/glob), bash commands, temporary script creation
Restrictions: Cannot modify existing files - strictly read-only operations

Explorers gather intelligence about the codebase, verify implementations, and discover system behaviors. They create knowledge artifacts that eliminate redundant exploration for future agents.

💻 Coder Agent

System message Role: Implementation specialist with write access
Capabilities: Code creation/modification, refactoring, bug fixes, system changes
Tools: Full file operations (read/write/edit), bash commands, search operations
Restrictions: None - full system access for implementation tasks

Coders transform architectural vision into working code. They receive focused tasks with relevant contexts and implement solutions while maintaining code quality and conventions.

Key System Components

🧠 Smart Context Sharing

How Context Sharing Works

I introduced a novel approach to multi-agent coordination through the Context Store - a persistent knowledge layer that transforms isolated agent actions into coherent problem-solving. Unlike traditional multi-agent systems where agents operate in isolation, my architecture enables sophisticated knowledge accumulation and sharing.

The Context Store Pattern:

  1. Orchestrator-Directed Discovery: The orchestrator explicitly specifies what contexts it needs from each subagent, ensuring focused and relevant information gathering and implementation reporting
  2. Knowledge Artifacts: Subagents create discrete, reusable context items based on the orchestrator's requirements
  3. Persistent Memory: Contexts persist across agent interactions, building a comprehensive system understanding
  4. Selective Injection: The orchestrator precisely injects relevant contexts into new tasks, eliminating redundant discovery and providing all the information a subagent needs to complete it's respective task
  5. Compound Intelligence: Each action builds meaningfully on previous discoveries, creating exponential problem-solving capability

Key Benefits:

  • Eliminates Redundant Work: Subagents never need to rediscover the same information twice
  • Reduces Context Window Load: Agents receive only the specific contexts they need
  • Enables Complex Solutions: Multi-step problems that no single agent could solve become tractable
  • Maintains Focus: Each subagent operates with a clean, focused context window

This architecture ensures that every piece of discovered information becomes a permanent building block for future tasks, creating a system that genuinely learns and adapts throughout the problem-solving process.

📋 Task Management

The orchestrator maintains a comprehensive task management system that tracks all subagent activities:

Core Functions:

  • Progress Tracking: Monitors task status (pending, completed, failed) across potentially hundreds of coordinated actions
  • Failure Recovery: Captures failure reasons to enable strategic adaptation and intelligent retries
  • Workflow Orchestration: Maintains clear audit trails of what's been attempted, preventing redundant work
  • Strategic Planning: Enables systematic decomposition of complex problems into verifiable subtasks

The task manager serves as the orchestrator's operational memory - while the context store holds discovered knowledge, the task manager tracks the journey of discovery itself. This dual-layer system ensures the orchestrator always knows both what it has learned AND how it learned it, enabling sophisticated multi-step solutions that build intelligently on previous attempts.

⏱️ Time-Conscious Orchestration

One thing I noticed during early evaluations was that whilst the system was on track to complete extremely complex tasks, it would use lots of subagents to get there, and therefore the task would time out.

Therefore the orchestrator now employs a philosophy for time-efficient execution, recognising that wasted time often stems from poor task specification rather than slow execution:

Prevention Principles:

  • Front-Loading Precision: The orchestrator spends time crafting exact task descriptions rather than iterating on vague ones
  • Context Completeness: Always over-provides context rather than under-providing, preventing subagents from rediscovering known information
  • Explicit Expectations: Every task specifies exactly what contexts should be returned, eliminating unfocused exploration
  • Tight Scoping: Defines clear boundaries - what to do AND what not to do, preventing scope creep

Getting started

For dev:

uv sync

To run evals:

./run_terminal_bench_eval.sh

To quickly test various models: See /tests

Notes

  • When I originally ran the evaluations, I saw my result would place me in 12th. By the time of submission (24 hours later), my agent placed 13th. Just 48 hours after this, my agent dropped to 15th! Such is the fascinating rate of progress in AI.

Acknowledgements

  • Thank you to Taras for supporting the compute costs of my experiments
  • Thank you to all the amazing teams at Anthropic that enabled me to leverage Claude-4-Sonnet, which is such an incredible model
  • Likewise to the Qwen team for releasing Qwen3-Coder to the world, completely open source
  • Thank you to the Claude Code team for inspiring my agentic tool use implementation and philosophy
  • Thank you to the Litellm team for such an simple to use package, allowing me to switch providers with ease
  • Thank you to OpenRouter for such a great routing service, allowing me to switch models with ease
Nearby in the ranking
Similar items