Claude Code's source just leaked — I extracted its multi-agent orchestration system into an open-source framework that works with any LLM

Reddit r/LocalLLaMA / 4/1/2026

💬 OpinionDeveloper Stack & InfrastructureSignals & Early TrendsTools & Practical Usage

Key Points

  • The post claims Claude Code’s full TypeScript source was exposed via source maps and describes extracting the multi-agent orchestration components from that leaked architecture.
  • It introduces an open-source re-implementation named “open-multi-agent” that implements goal decomposition via a coordinator, multi-agent teamwork via a MessageBus/SharedMemory approach, and dependency-aware task scheduling.
  • The framework is described as model-agnostic, intended to run with Claude and OpenAI within the same multi-agent team rather than being tied to one vendor.
  • It runs entirely in-process (unlike approaches that spawn separate CLI processes per agent) and supports common deployment targets such as serverless, Docker, and CI/CD.
  • The project is published as MIT-licensed TypeScript code (~8,000 lines) on GitHub, offering a standardized tool definition flow with Zod schema validation and an agent loop for model↔tool turns.

By now you've probably seen the news: Claude Code's full source code was exposed via source maps. 500K+ lines of TypeScript — the query engine, tool system, coordinator mode, team management, all of it.

I studied the architecture, focused on the multi-agent orchestration layer — the coordinator that breaks goals into tasks, the team system, the message bus, the task scheduler with dependency resolution — and re-implemented these patterns from scratch as a standalone open-source framework.

The result is open-multi-agent. No code was copied — it's a clean re-implementation of the design patterns. Model-agnostic — works with Claude and OpenAI in the same team.

What the architecture reveals → what open-multi-agent implements:

  • Coordinator pattern → auto-decompose a goal into tasks and assign to agents
  • Team / sub-agent pattern → MessageBus + SharedMemory for inter-agent communication
  • Task scheduling → TaskQueue with topological dependency resolution
  • Conversation loop → AgentRunner (the model → tool → model turn cycle)
  • Tool definition → defineTool() with Zod schema validation

Unlike claude-agent-sdk which spawns a CLI process per agent, this runs entirely in-process. Deploy anywhere — serverless, Docker, CI/CD.

MIT licensed, TypeScript, ~8000 lines.

GitHub: https://github.com/JackChen-me/open-multi-agent

submitted by /u/JackChen02
[link] [comments]