AgentTeam is a research and design workspace for building a hierarchical multi-agent framework that can turn ambiguous complex tasks into structured artifacts, validated plans, and bounded implementation work.
The core idea is simple:
Do not build a virtual company meeting.
Build an artifact workflow with validators, bounded agents, change requests, traces, and empirical probes.
.
├── design/ # Current framework architecture, workflow SOPs, and archived design history
├── research/ # Multi-agent literature, tool mechanics, and design guidance
└── srccode/ # Local reference source code and architecture notes
-
design/README.md- Entry point for the current design docs.
- Defines the reading order and authority map.
-
design/architecture.md- Current high-level architecture.
- Defines AgentTeam positioning, layered system structure, agent hierarchy, validation philosophy, model allocation, implementation-pack boundary, risks, and success criteria.
-
design/artifact_workflow_sop.md- Current execution SOP for AgentTeam semantic-design runs.
- Defines the
output/current/artifact structure, canonical registry, CR queue, integration pass, lint gates, semantic/adversarial review, trace requirements, and implementation handoff. - Owns concrete schemas and gates such as versioning, content hashes,
INDEX.jsonrouting, CR baseline metadata, conflict detection, and domain check schema.
-
design/artifact_migration_guide.md- Current guide for migrating older AgentTeam artifacts into the current model.
- Defines authority-class classification, old-to-new artifact mapping, backlog/event reconstruction, and validation checks.
-
design/autonomous_implementation_loop_sop.md- Current execution SOP for long-running implementation control after semantic design.
- Defines optional implementation roadmap, backlog generation, autonomous task slicing, compact M0/M1 layout, event log, map freshness, agent role specs, resume behavior, and semantic feedback routing.
- Maps the current Codex runtime to one main supervisor session plus ephemeral subagents launched from role specs and dispatch packets.
-
design/implementation_workflow_sop.md- Current execution SOP for executing bounded implementation tasks.
- Defines repo grounding, language packs, localization, context packs, task cards, workspace sandbox policy, verification, integration, and failure routing.
- Treats repo indexes as navigation layers, not full project understanding.
-
design/archive/- Historical design notes, including the early problem definition, original system blueprint, and experiment revision document.
- These explain how the current architecture evolved but are no longer current execution authority.
-
research/multi_agent_field_work.md- Surveys related work such as MetaGPT, ChatDev, AgentVerse, AutoGen, AgentEval, DyLAN, GPTSwarm, FrugalGPT, and MasRouter.
- Keeps both directly useful mechanisms and longer-term background context.
-
research/codex_vs_claude_agent_mechanics.md- Compares Codex and Claude Code style subagent mechanics.
- Concludes that both need an upper-layer structured protocol because natural-language subagent reports are not reliable execution facts.
-
research/design_guidance_insights.md- Distills research and experiments into direct design guidance.
- Emphasizes artifact-first workflow, validator gates, CR/trace governance, bounded subagent tasks, and implementation packs.
srccode/ contains local reference repositories used for studying existing agent systems:
-
srccode/codex/- OpenAI Codex source.
- Main reference for thread/session based multi-agent control, agent paths, mailbox delivery, wait semantics, and parent-child agent lifecycle.
-
srccode/claude/claude-code/- Official Anthropic Claude Code public repository.
- Useful for plugins, commands, hooks, and agent prompts.
- It is not the full core Claude Code CLI source.
-
srccode/claude/claude-agent-sdk-python/- Official Python Agent SDK reference.
- Useful for subagent definitions, lifecycle hooks, transcript storage, and session store concepts.
-
srccode/claude/claude-agent-sdk-typescript/- Official TypeScript Agent SDK reference and examples.
-
srccode/claude/claude-code-action/- GitHub Action integration for Claude Code.
-
srccode/claude/claude-code-base-action/- Lower-level Claude Code Action implementation.
-
srccode/claude/claw-code/- Public Rust implementation of a Claude-style agent harness.
- Useful as a lightweight reference for agent tools, task registries, worker state machines, and file-backed agent output.
-
srccode/codex-vs-clawcode-architecture.md- Local architecture comparison between Codex and Claw Code.
The intended framework should use these units as first-class artifacts:
task_brief: task goal, success definition, and non-goalsconstraints: hard constraints, preferences, assumptions, and budgetacceptance_contract: objective criteria for completionregistry: stable IDs, paths, owners, versions, and dependenciesauthority_class: semantic contract, implementation authority, derived observation, or evidence note classification for each artifactvalidation_plan: mechanical checks, semantic reviews, and empirical probeschange_request: the only entry point for design changestrace: replayable record of inputs, steps, outputs, validation, and evidenceimplementation_pack: source layout, build contract, test harness, prerequisites, milestone outline, first task-card seed, task-card generation policy, and progress schemaroadmap: optional implementation-stage medium/long-term route across phases and milestonesbacklog: implementation objectives, milestones, task status, dependencies, and blockersevents: append-only durable implementation log for dispatches, results, risk, verification, integration, map invalidation, and progress deltasagent_dispatch: structured subagent invocation packet with scope, tools, schema, budget, and stop conditionsagent_result: structured subagent return packet with status, evidence, changed files or findings, and next actiondesign_finding: implementation evidence that requests controlled design escalation without granting write authority to the workerrisk_assessment: orchestrator-owned classification that chooses the evidence level for an implementation resultrepo_index: derived tool-generated navigation facts with provenance, confidence, and stale conditionscontext_pack: task-local source context selected from the repo index and real files
The framework should combine:
- Program validators for mechanical invariants.
- Agent reviewers for semantic risks and hidden gaps.
- CR and trace for cross-document synchronization.
- Empirical probes for early runtime falsification.
- Bounded worker task cards for implementation.
- Repo grounding and context packs for large-codebase implementation.
- Prefer artifacts over chat history.
- Prefer structured input and output over natural-language reports.
- Let validators check mechanical consistency before agent review.
- Let reviewers produce classified findings, not direct edits to authority documents.
- Keep central artifacts under serial integration.
- Give subagents explicit read scope, write scope, output schema, validation commands, and escalation conditions.
- Invoke subagents through recorded dispatch packets and accept only structured result packets.
- Do not treat a subagent
donemessage as proof of correctness. - Generate an implementation pack before assigning code work.
- Start implementation with a minimal empirical probe before scaling parallel work.
- Treat repository indexes as navigation aids, not source-of-truth understanding.
- Let implementation workers report design gaps, but route authority changes through orchestrator-gated CR integration.
- Separate semantic architecture from implementation structure documents with explicit
authority_class. - Default implementation evidence to L1 and escalate only when the Risk Classifier Gate requires L2/L3.
- Keep long-running state in durable artifacts, not in hidden subagent context.
- Give workers task-local context packs instead of whole repositories.
- Use trace and event data for future model routing, agent replacement, and workflow optimization.
The current documents point to one concrete next step: build the minimum autonomous implementation loop for the framework itself.
That minimum workflow should define:
- repo inventory, with project detection starting at M1 or when needed
- backlog and progress state
- compact M0/M1 event log
- verification contract
- source layout contract
- build contract
- test harness contract
- environment prerequisites
- M0 empirical probe
- task context pack format
- first milestone task card
- implementation progress schema and map freshness policy
Only after that should implementation be delegated to worker agents, starting with a single bounded M0 slice in the current workspace or an isolated worktree, then letting the orchestrator continue from durable events and backlog state.