Skip to content

Latest commit

ย 

History

83 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

AiCodingAgentTeam

๐ŸŒ Languages / ่ฏญ่จ€

English ยท ็ฎ€ไฝ“ไธญๆ–‡ ยท ๆ—ฅๆœฌ่ชž ยท ํ•œ๊ตญ์–ด ยท Franรงais ยท Deutsch ยท ะ ัƒััะบะธะน ยท Espaรฑol ยท Italiano

A Golang-based AI coding orchestration platform. It owns no LLM itself; instead it dispatches external AI coding CLIs (Codex & OpenCode as real drivers; Claude-Code & DeepSeek-DSH as stubs), simulates a 9-role software-development team that collaborates over the A2A protocol, enforces a deterministic quality gate with governance auditing, ships in containers, and exposes four protocols externally โ€” gRPC, MCP, ACP, and A2A โ€” alongside a TypeScript TUI client.

CI Go License Docs

Core Features

  • Orchestration vs execution separation โ€” The Coordinator only orchestrates and never writes code; host CLIs only execute and never decide.
  • Container-as-role โ€” 9 team roles (PM, Architect, Frontend, Backend, QA, Security, DevOps, โ€ฆ), each in its own container, independently scalable and replaceable.
  • A2A protocol collaboration โ€” Structured inter-agent communication, supporting InProc (development) and Redis Pub/Sub (containerized).
  • Deterministic quality gate โ€” Hard-executed by golangci-lint + go vet + go test; never relies on model self-evaluation.
  • RAG knowledge base + project memory โ€” BM25 retrieval injected into context; the memory store accumulates failure lessons and historical solutions.
  • Four external protocols โ€” gRPC (TUI communication), MCP (external tool integration), ACP (standard Agent client), A2A (cross-instance mesh).
  • Local-first โ€” Code never leaves the container; no API keys are held; all auth is delegated to the underlying host CLI.

Architecture Overview

User โ†’ TypeScript TUI (Ink) โ†’ gRPC โ†’ Coordinator
                                       โ”œโ”€โ”€ Router (intent routing)
                                       โ”œโ”€โ”€ Planner (DAG plan)
                                       โ”œโ”€โ”€ Scheduler (role dispatch)
                                       โ”‚    โ”œโ”€โ”€ A2A Bus โ†’ Reviewer Agents (parallel)
                                       โ”‚    โ””โ”€โ”€ Single-Writer Lock โ†’ Writer Agents (serial)
                                       โ”œโ”€โ”€ Knowledge (BM25 RAG retrieval)
                                       โ”œโ”€โ”€ Memory (facts/pitfalls/lessons)
                                       โ””โ”€โ”€ Quality Gate (deterministic checks)
                                            โ†“
Host CLIs: Codex (real) | OpenCode (real) | Claude (stub) | DSH (stub)

See docs/04-็ณป็ปŸๆžถๆž„ๅ›พ.md for the full architecture diagrams.

Quick Start

Single-binary mode

# Build
go build -o bin/aicodingagentteam ./cmd/aicodingagentteam

# Initialize a project
./bin/aicodingagentteam init

# Run a full pipeline
./bin/aicodingagentteam run "Build a REST API" --backend codex

# Quick edit
./bin/aicodingagentteam quick "Fix the login button style"

# Quality verification
./bin/aicodingagentteam verify

# RAG knowledge base demo
./bin/aicodingagentteam knowledge demo

# Start the coordinator service (gRPC + A2A HTTP)
./bin/aicodingagentteam serve

TUI client

cd tui && npm install && npm run build

# Start the coordinator
cd .. && go run ./cmd/aicodingagentteam serve

# Launch the TUI (in another terminal)
cd tui && node dist/cli.js
# Demo mode (no coordinator required)
node dist/cli.js --demo

Containerized deployment

docker compose -f deploy/compose/docker-compose.yml up -d

Command Reference

Command Description
init Initialize project configuration
run "requirement" Run the full pipeline
quick "description" Lightweight quick edit
verify Execute quality verification
govern [--ci] [path] Governance scan
report Emit compliance report
serve Start coordinator (gRPC + A2A)
knowledge index [dir] Index a directory into the knowledge base
knowledge search "query" Retrieve top-5 knowledge chunks
knowledge demo End-to-end RAG + memory demo
version Print version

Project Structure

agent_team/
โ”œโ”€โ”€ cmd/aicodingagentteam/     # Go binary entry
โ”œโ”€โ”€ internal/
โ”‚   โ”œโ”€โ”€ a2a/                   # A2A protocol (InProc + Redis)
โ”‚   โ”œโ”€โ”€ acp/                   # Agent Client Protocol
โ”‚   โ”œโ”€โ”€ agent/                 # 9-role registry
โ”‚   โ”œโ”€โ”€ audit/                 # Audit log
โ”‚   โ”œโ”€โ”€ config/                # Configuration loader
โ”‚   โ”œโ”€โ”€ coordinator/           # Orchestration core (5-layer flow)
โ”‚   โ”œโ”€โ”€ governance/            # Governance rules (113+ rules)
โ”‚   โ”œโ”€โ”€ host/                  # Host drivers (codex/opencode/claude/dsh)
โ”‚   โ”œโ”€โ”€ knowledge/             # RAG retrieval engine (BM25)
โ”‚   โ”œโ”€โ”€ mcp/                   # Model Context Protocol
โ”‚   โ”œโ”€โ”€ memory/                # Project memory (facts/pitfalls/lessons)
โ”‚   โ”œโ”€โ”€ planner/               # DAG plan builder
โ”‚   โ”œโ”€โ”€ qualitygate/           # Quality-gate engine
โ”‚   โ”œโ”€โ”€ router/                # Intent router
โ”‚   โ”œโ”€โ”€ scheduler/             # Role scheduler + single-writer lock
โ”‚   โ””โ”€โ”€ types/                 # Shared types
โ”œโ”€โ”€ pkg/
โ”‚   โ”œโ”€โ”€ api/                   # gRPC proto + server
โ”‚   โ”œโ”€โ”€ contracts/             # Front/back-end contracts
โ”‚   โ””โ”€โ”€ runtime/               # Host driver trait
โ”œโ”€โ”€ tui/                       # TypeScript TUI client
โ”œโ”€โ”€ deploy/                    # Containerized deployment
โ”œโ”€โ”€ proto/                     # gRPC proto definitions
โ””โ”€โ”€ docs/                      # Documentation (requirements/architecture/plans/ADR/spec/plan)

Quality Baseline

Dimension Threshold Actual
Go test coverage โ‰ฅ 80% (core โ‰ฅ 90%) router 100% ยท scheduler 96% ยท governance 96% ยท codex 94.9%
Lint 0 new warnings golangci-lint + eslint
Build โ‰ค 5 minutes CI full flow ~3 minutes
Security 0 high-severity CVEs govulncheck + npm audit

Development

make all      # lint + vet + test + build
make test     # Full test suite
make lint     # golangci-lint
make run      # build + serve

Documentation

License

MIT