AI Team OS
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AI Team OS check the task wall and assign the top priority task to an agent"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AI Team OS
Your AI coding tool stops when you stop prompting. Ours doesn't.
⚡ v1.11.2 — A data-integrity patch: every delete path now asks "can this be rebuilt?" first. The container-team reaper refuses to touch rows carrying token ledgers or unharvested transcripts — and the 325M tokens of attribution one purge did destroy were restored byte-exact from backup + journal, behind a clock-regime gate that caught a wall-clock backup masquerading as UTC. Dispatch identity is pinned to the CC agent id (same-name dispatches can no longer overwrite each other's ledgers), roster tools shrank back under the MCP result cap (67k → 2k chars on a 51-member team), commits landing on another agent's active branch are blocked at the hook, and template-name validation warns without ever silently swapping your agent type.
Full version history: CHANGELOG.md
113 MCP tools · 208 REST endpoints · 23 dashboard pages · 2,307 tests · 26 agent templates · 42 ecosystem research tools · 14 machine-checked invariants
AI Team OS turns Claude Code into a self-driving AI company. You're the Chairman. AI is the CEO. Set the vision — the system executes, learns, and evolves autonomously.
The Problem With Every Other AI Tool
Every AI coding assistant works the same way: you prompt, it responds, it stops. The moment you step away, work stops. You come back to a blank prompt.
AI Team OS works differently.
You walk away at night. The next morning you open your laptop and find:
The CEO checked the task wall, picked up the next highest-priority item, and shipped it
When it hit a blocker that needed your approval, it parked that thread and switched to a parallel workstream
R&D agents scanned three competitor frameworks and found a technique worth adopting
A brainstorming meeting was organized, 5 agents debated 4 proposals, and the best one was put on the task wall
You didn't prompt any of that. The system just ran.
Related MCP server: ClaudeArmy
How It Works
You're the Chairman. The AI Leader is the CEO.
The CEO doesn't wait for instructions. It checks the task wall, picks the highest-priority item, assigns the right specialist Agent, and drives execution. When blocked, it switches workstreams. When all planned work is done, R&D agents activate — scanning for new technologies, organizing brainstorming meetings, and feeding improvements back into the system.
Every interaction makes the system understand you better. Memory System v2 distills your preferences and corrections into a team direction layer that every dispatched Agent inherits at birth — you never say the same thing twice, and no next Agent repeats a pit an earlier one already fell into.
Core Capabilities
1. Cross-Session Orchestration (new in v1.10.0)
A single CC session can now observe and drive its sibling sessions for one operational turn, instead of only being able to spawn brand-new ones:
Wake system v2: the
/api/wake/actionablesingle-source predicate feeds both the event watcher and the turn-end guard; SessionStart moves from a fixed 30-minute cron to dynamic/loopintervals; a Stop-hook turn-end guard always letsdecision:blockand user-stop keywords pass through; a session-scoped event watcher carries a 1-hour hard timeout. No resident daemons.Fleet downlink primitive: headless
claude -p --resume <session_id>drives a target sibling session for one turn, reusing the existing wake machinery (semaphore, fuse, allowlist, per-session dedupe, full audit trail).agent_reuse_recommendMCP tool: a three-way reuse decision (reuse / slim-then-reuse / spawn-new) scored by domain match, reachability (live / resumable / cross-session / expired), and context watermark.Context watermark ledger: exact token usage read from the transcript tail (cheap-checks-first), surfaced as a three-color watermark bar on agent views and on the new fleet / worktree observability cards.
Compaction checkpoint (v1.11.0):
PreCompactfreezes the OS-side operating picture — agents in flight, open tasks, decisions queued for you — andSessionStart(source=compact)hands it straight back. CC's own summary body is deliberately not stored: after compaction it is already in the model's context; what a compacted Leader loses is the OS-side state it no longer knows to ask about.CC session registry as a second liveness track (v1.11.0):
~/.claude/sessions/<pid>.jsoncarries a real pid and CC's own idle/busy state, which distinguishes "process gone" from "process alive but quiet" — a distinction transcript freshness cannot make. It runs alongside the existing verdict and only records where the two disagree; the verdict itself is unchanged until the divergence data says otherwise.Background daemon sessions are visible (v1.11.0):
GET /api/hooks/background-jobsreads CC's own job state, so a--bgsession that outlives its foreground window no longer looks like "nobody is working".
Usage guidance:
A new session's SessionStart briefing already points you at running
/looponce - follow it instead of guessing at intervals.Check the project detail page for the fleet card (per-session CEO / model / in-flight tasks / watermark) and the worktree card (branch ownership + unlanded-work status) before you act.
Call
agent_reuse_recommendbefore dispatching a follow-up agent - reusing a live or resumable sibling session beats spawning a fresh one.The S4 worktree teardown guard and per-template
isolation: worktreedefaults apply automatically; no configuration is needed.
2. Memory System v2 — two-layer memory, every Agent inherits at birth (new in v1.9.0)
The OS's signature differentiator: your team's preferences, corrections, and hard-won lessons flow automatically to every Agent it dispatches.
Direction layer (user preferences / corrections / design intent, 4 kinds): resident injection via both the SessionStart and SubagentStart hooks — every sub-Agent inherits the team's values and red lines the moment it's born, so you don't repeat yourself. The size guardrail is a single axis: storage cap = injection budget (per-bucket character quotas, global 1200 + 1500 per project + user 300 = 3000 chars, <=400 chars per entry), so whatever fits is what actually ships; a full bucket hands back its complete contents and demands a cleanup before the retry.
supersedesswap to prevent bloat, invalidate-never-delete for auditability. Writes are scanned for invisible Unicode, instruction-override phrasing, and credential shapes — the direction layer lands in every Agent's system prompt, which makes it an injection amplifier.Episodic layer (
task_memosledger): task-level execution memos promoted to a dedicated table (row IDs / invalidation axis / quality score / scope_path), recalled on demand via pure-Python BM25 Chinese retrieval; 123 legacy memos backfilled with zero loss.On-demand reconcile (
memory_reconcile): zero-LLM BM25 candidate clustering, then merge / invalidate / score / distill on agent confirmation — "the agent computes, the tool persists", with no background resident process introduced.
Surfaces: MCP memory_add / memory_list / memory_invalidate / memory_search / memory_reconcile_candidates / memory_reconcile_apply.
3. Progressive Tool-Loading Governance (new in v1.9.0)
Treats the resident context budget as the scarce resource it is — however many tools exist, they never drown your Agent.
alwaysLoad dynamic rotation: at session start a single SQL recomputes the hot-tool whitelist by 7-day real call frequency (>=2-day span gate against bursty spikes + 20% hysteresis, hard cap <=5), and CC skips ToolSearch for them. Not additive, not hand-tuned; any stats failure silently degrades to all-defer, and every whitelist is logged for audit.
AITEAM_TOOLSETSgroup switch: 16 capability-domain toolsets; a startup env var decides which modules register.defaultcore profile = task/team/memory/infra/reports (29 tools, hard cap <=50), with incrementaldefault,ecosystem— fits non-CC clients that cap tool counts.AITEAM_READONLYread-only profile: an orthogonal overlay that strips every write tool by explicit allowlist and keeps only read tools — ideal for audit / observer sessions.5 templates on least privilege: meeting-facilitator / debate advocate & critic / technical-writer / project-manager carry
disallowedToolsstructural denials; engineering / testing templates untouched.
4. Workflow / ultracode Persistent Observability (v1.7.0)
The OS does not intercept CC's built-in ultracode/Workflow — it becomes its persistent governance layer. Every Workflow run is automatically tracked into the OS, with no manual team setup:
Auto-tracking: a hook turns each Workflow run into an OS "team" (
workflow-<wf_id>) the moment it startsDashboard
/workflows: a live feed of run cards, a phase swimlane timeline, and per-agent telemetry — tokens / duration / status / tool-call counts, advancing live via incremental journal tailing while a run executesCalibrated stall detection: the stall threshold was calibrated on 3,378 real agent intervals (p99 = 77.6s, longest healthy silence 173.8s) and set at 5.2× the worst healthy case — it flags late rather than crying wolf
Project-detail integration: workflow team rows carry an inline run summary (status / agent count / duration / finish time) plus a "view swimlane" deep link; members display semantic phase labels (e.g.
audit:sourceA) instead of idsLeader auto-detection: a project's Leader session / model / liveness is probed directly from the
~/.claude/projects/file truth by the backend — zero registration dependency,/modelswitches surface in real timeMCP tools:
workflow_list(browse runs),workflow_get(full archive + per-agent rows),workflow_reconcile(repair from on-disk snapshots after the OS was offline)Self-healing ingestion: hook receipt anchors + on-disk snapshot reconciliation + a reaper backstop close offline gaps automatically — finished runs on disk are ingested idempotently; cross-project attribution matches the on-disk path slug against registered projects
5. Ecosystem Research Platform — 42 tools
A project-isolated knowledge base that accumulates research findings over time. Each repo progresses through 4 stages (a progressive funnel, since v1.5.0), with token-efficient triggers and append-only history:
Stage 0 — Auto shallow-summary on archive: newly-archived repos automatically get a 200-400 char
ai-engineersummary (core function / positioning / advantages). 8-class failure handling with self-learning hooks (3+ same-class fails surface throughself_learning_pending; the queue exposes recorder/searcher injection points you can wire to your own lesson store)Stage 1 — On-demand architecture analysis: user picks research direction ("memory_system") → batch-dispatch
backend-architectagents to read architecture key filesStage 2 — Multi-perspective debate: triggers existing
debate_start(NOT a built-in debate engine — reuses meeting system)Stage 3 — Reference / Integrate marking:
mark_as_referenceadds tag for future quick recall;start_integrationtriggers existingtask_createfor actual implementationActive vs Full dual-view: data is append-only forever. Stars-falling repos kept (just
is_active=False); stars climbing back auto-promotes + re-queues Stage 0Dashboard
/ecosystem: list with stage badges + research timeline + project filter dropdown + candidate-filter page (/ecosystem/research) + per-project settings tab — the single largest tool family in the OS
6. Knowledge Layer — Reference Graph + Unified Search (v1.8.0)
Everything the OS records — task memos, reports, tasks — becomes recallable knowledge:
Reference graph (P1a): a zero-LLM regex extractor mines OS-native ID references (wf_id / commit hash / task uuid /
[[memory]]) out of memos and reports into an append-onlyknowledge_linkstable — the graph is a derived view, rebuildable from source text at any timeUnified search (P1b):
/api/searchfuses three arms via RRF — BM25 full-text (Chinese bigram native), knowledge-graph fanout (an ID query pulls in everything linked to it), and exact ID-prefix / title matchGlobal search box in the Dashboard header, plus MCP tools
unified_search/link_query/link_trace— recall past work by natural language ("how was the attribution fix done"), awf_id, or a commit hash
Why zero-LLM? The graph is a derived view: plain regexes extract the IDs, the whole graph can be rebuilt from source text at any time, and both extraction and retrieval cost zero tokens. Your recall pipeline never touches your model budget.
7. Task Wall · Meetings · 22-Page Dashboard
Governance ledger and panoramic visualization — everything leaves a trace:
Task wall: a live board of pending / in-progress / done, event-driven + intelligent Agent matching + deadlock detection
8 structured meeting templates (keyword auto-select, built on Six Thinking Hats / DACI / Design Sprint) — every meeting must produce an actionable conclusion; "we discussed but didn't decide" is not an outcome
22-page React 19 Dashboard: Command Center /
/workflowsswimlane / decision timeline / meeting room / Ecosystem suite / Model Governance Settings
8. Autonomous Operation
The CEO never idles. It continuously advances work based on task wall priorities:
Checks the task wall for the next highest-priority item when a task completes
When blocked on something requiring your approval, parks that thread and switches to parallel workstreams
Batches all strategic questions and reports them when you return — no interruptions for tactical decisions
Deadlock detection: if the loop stalls, it surfaces the blocker rather than spinning
And it doesn't just execute — it evolves:
R&D cycle: research agents scan competitors, new frameworks, and community tools; findings go to brainstorming meetings where agents challenge each other; conclusions become implementation plans on the task wall
9. File Truth as Source of Truth
Most multi-agent stacks trust agents to register themselves and self-report their status. AI Team OS treats self-reports as claims and files as facts — three subsystems already run on this philosophy:
Leader probing: a project's Leader session, model, and liveness are read straight from
~/.claude/projects/— transcript mtime is liveness, the model name in the transcript tail is the model. We don't ask an agent which model it runs — what's read out of the transcript is what's true.Model discovery: "available models" = every model that has actually appeared in your CC transcripts. Zero API dependency, zero hardcoded list — a hardcoded list will never contain your third-party gateway model; a transcript scan can't miss it.
Workflow telemetry: on-disk run files are the full telemetry truth; the OS's projection tables are rebuildable caches of immutable files. Attribution iron law: a run belongs to a project only when its on-disk path slug exactly matches the registered project root — never guessed.
10. Model Governance (v1.8.1)
Know which models you can actually launch — and control what your sessions start on:
Auto-discovery of genuinely available models: scans every CC transcript on your machine in about a second (60s cache) — including third-party gateway models that no hardcoded list would ever ship
One-click global default startup model: written to
~/.claude/settings.jsonunder triple write protection — touches only themodelkey, keeps a.bak-aiteambackup, writes atomically, refuses corrupted filesZero coercion: soft reminders only, never a block — and CC Workflow runs are fully exempt
Surfaces: REST /api/models/{available,default} · MCP model_config_get / model_config_set · the Model Governance card in Dashboard Settings.
11. Team Collaboration
Not a single Agent. A structured organization:
26 professional Agent templates (24 base + 2 debate roles) with recommendation engine — Engineering, Testing, Research, Management — ready out of the box
Department grouping — Engineering / QA / Research with cross-team coordination
Channel communication:
team:/project:/globalchannels with@mentionsupportDebate mode: 4-round structured debate (Advocate→Critic→Response→Judge) via
debate_start/debate_code_reviewCross-agent lessons:
failure_analysiswrites root-cause antibodies into project memory, and every dispatched sub-Agent inherits them through the direction layer
12. Full Transparency
Nothing is a black box:
Decision Cockpit: event stream + decision timeline + intent inspection — every decision has a traceable record
Activity Tracking: real-time status of every Agent and what it's working on
What-If Analyzer: compare multiple approaches before committing, with path simulation and recommendations
13. Safety & Behavioral Enforcement
Built-in guardrails so the system can run unsupervised without surprises:
Guardrails L1: 7 dangerous pattern detections + PII warnings +
InputGuardrailMiddlewareLocal agent blocking: all non-readonly agents must declare
team_name/name— prevents rogue background agentsS1 safety rules: regex-based scan catches destructive commands (rm -rf, force push, hardcoded secrets) including uppercase flags and heredoc patterns
4-layer defense rule system: 48+ rules covering workflow, delegation, session, and safety layers
Concurrent-edit warnings: hooks flag a file two agents touched in quick succession, read straight from recent edit events (the cooperative file-lock tools were retired in v1.10.3 — the lock file was empty in every real run)
Agent Watchdog: on-demand
POST /api/teams/{id}/watchdog/checkplus the background patrol — flags BUSY-timeout agents, long-pending tasks and unblockable dependenciesSelf-patrol: watchdog lease patrol + reaper reconciliation backstop + identity verification before any kill — the OS keeps eyes on itself, not just on your agents
Completion verification:
verify_completionchecks task status + memo existence — prevents hallucinated "done" reportsEcosystem integration recipes: 4 preset recipes (GitHub / Slack / Linear / Full-stack team) under
find_skill(level=2, category="integration")find_skill3-layer progressive discovery: quick recommend → category browse → full detail, reducing tool-call overhead
14. Zero Extra Cost
Runs entirely within your existing Claude Code subscription:
No external API calls, no extra token spend
MCP tools, hooks, and Agent templates are all local
The memory system and knowledge layer are zero-LLM by design — direction-layer injection, graph extraction, search, and reconcile coarse-pass all cost zero tokens
100% utilization of your CC plan
More Capabilities (legacy & secondary — still running, queryable on demand)
Failure Alchemy:
failure_analysisstill runs as part of the loop subsystem — every failed task extracts root cause and produces Antibody (stored in team memory to prevent repeats) / Vaccine (high-frequency failures become pre-task warnings) / Catalyst (analysis injected into future Agent system prompts). No longer the headline, but defensive rules keep accruing.AWARE loop memory ·
find_skill3-layer discovery (skills + integration recipes) · Prompt Registry: see the full tool table below. The scheduler and the loop state machine were retired in favour of CC-nativeCron*and on-demand tools (CC-is-not-always-on principle); thewake_agentschedule kind survives for the fleet wake subsystem.
It Built Itself
AI Team OS manages its own development — and since v1.7.0, it can prove it with its own telemetry:
Every feature line from v1.7.0 to v1.9.0 — the observability layer, the knowledge layer, model governance, Memory System v2, tool-loading governance — shipped through CC Workflow runs that the OS tracked itself. Open
/workflowsand replay how the system built its own features, swimlane by swimlane.Competitive research across CrewAI, AutoGen, LangGraph, and Devin feeds the roadmap through multi-agent brainstorming meetings — the minutes live in the OS's own report store.
It learns from its own incidents, too: every machine-checked invariant in
scripts/check_invariants.shwas distilled from a real accident in this repo's history.
The system that builds your projects... built itself. With receipts.
How It Compares
Dimension | AI Team OS | CrewAI | AutoGen | LangGraph | Devin |
Category | CC Enhancement OS | Standalone Framework | Standalone Framework | Workflow Engine | Standalone AI Engineer |
Integration | MCP Protocol into CC | Independent Python | Independent Python | Independent Python | SaaS Product |
Memory System | Two-layer: direction layer inherited at birth + episodic BM25 ledger + on-demand reconcile | Short-term context | Short-term context | Checkpoint state | In-session |
Tool-Loading Governance | alwaysLoad rotation + group switch + read-only profile + template least-privilege | None | None | None | None |
Autonomous Operation | Continuous loop, never idles | Task-by-task | Task-by-task | Workflow-driven | Limited |
Meeting System | 8 structured templates with auto-select | None | Limited | None | None |
Failure Learning | Failure Alchemy (Antibody/Vaccine/Catalyst) | None | None | None | Limited |
Decision Transparency | Decision Cockpit + Timeline | None | Limited | Limited | Black box |
Workflow Observability | Swimlane timeline + per-agent telemetry + offline reconcile over CC Workflow | None | None | Graph state only | None |
State Source | File truth — transcripts / journals read directly | Agent self-report | Agent self-report | In-process state | Black box |
Rule System | 4-layer defense (48+ rules) + behavioral enforcement | Limited | Limited | None | Limited |
Agent Templates | 26 ready-to-use + recommendation engine | Built-in roles | Built-in roles | None | None |
Dashboard | React 19 visualization | Commercial tier | None | None | Yes |
Open Source | MIT | Apache 2.0 | MIT | MIT | No |
Claude Code Native | Yes, deep integration | No | No | No | No |
Extra Cost | $0 (CC subscription only) | API costs | API costs | API costs | $500+/mo |
Architecture
┌─────────────────────────────────────────────────────────────────┐
│ User (Chairman) │
│ │ │
│ ▼ │
│ Leader (CEO) │
│ ┌────────────┼────────────┐ │
│ ▼ ▼ ▼ │
│ Agent Templates Task Wall Meeting System │
│ (26 roles) auto-assign (8 templates) │
│ │ │ │ │
│ └────────────┼────────────┘ │
│ ▼ │
│ ┌──────────────────────┐ │
│ │ OS Enhancement Layer│ │
│ │ ┌──────────────┐ │ │
│ │ │ MCP Server │ │ │
│ │ │ (113 tools) │ │ │
│ │ └──────┬───────┘ │ │
│ │ │ │ │
│ │ ┌──────▼───────┐ │ │
│ │ │ FastAPI │ │ │
│ │ │ REST API │ │ │
│ │ └──────┬───────┘ │ │
│ │ │ │ │
│ │ ┌──────▼───────┐ │ │
│ │ │ Dashboard │ │ │
│ │ │ (React 19) │ │ │
│ │ └──────────────┘ │ │
│ └──────────────────────┘ │
│ │ │
│ ┌──────────▼──────────┐ │
│ │ Storage (SQLite) │ │
│ │ + WAL journaling │ │
│ │ + Memory System │ │
│ └─────────────────────┘ │
└─────────────────────────────────────────────────────────────────┘Five-Layer Technical Architecture
Layer 5: Web Dashboard — React 19 + TypeScript + Shadcn UI (23 pages)
Layer 4: CLI + REST API — Typer + FastAPI
Layer 3: Team Orchestrator — LangGraph StateGraph (optional extra — CLI graph execution only)
Layer 2: Memory Manager — SQLite-backed store + pure-Python BM25 retrieval
Layer 1: Storage — SQLite (WAL journaling) · PostgreSQL support on the roadmapHook System (11 scripts across 15 Lifecycle Events — The Bridge Between CC and OS)
SessionStart → auto_install.py, session_bootstrap.py, send_event.py
— Auto-install deps + inject Leader briefing / core rules / team state
SubagentStart → inject_subagent_context.py, send_event.py — Inject sub-Agent OS rules (2-Action etc.)
SubagentStop → send_event.py — Record sub-Agent lifecycle event
PreToolUse → workflow_reminder.py, send_event.py
— Workflow tracking reminders + event forwarding
PostToolUse → workflow_reminder.py, deep_review_link.py,
meeting_ecosystem_writeback.py, send_event.py
TaskCompleted → cc_task_bridge.py — Mirror finished CC tasks onto the OS wall (owned or dependency-linked ones only)
TeammateIdle → send_event.py — CC's own teammate-idle signal, recorded alongside the OS liveness track (observation only, changes no status)
UserPromptSubmit → context_tracker.py — Track context usage
SessionEnd → send_event.py — Record session end event
Stop → send_event.py — Record stop event
PermissionDenied → permission_denied_recovery.py — Permission-denied self-recovery
PreCompact → pre_compact_save.py — Freeze the OS-side battle state (in-flight agents / open tasks / pending decisions) into a checkpoint
PostCompact → send_event.py — Confirm the compaction actually happened (a triggered compaction can still be cancelled)
WorktreeRemove → send_event.py — An isolated worktree is goneQuick Install (AI-Assisted)
Tell Claude Code:
"Read https://github.com/CronusL-1141/AI-company/blob/master/INSTALL.md and follow the instructions to install AI Team OS"
Claude Code will read the install guide and walk you through the setup automatically.
Important: Install AI Team OS to your system Python, not inside a project virtual environment. If installed in a venv, AI Team OS will only work in that specific project. Run
deactivatefirst if a venv is currently active, then install.
Quick Start
Prerequisites
Python >= 3.11
uv (
pip install uv)Claude Code (MCP support required)
Node.js >= 20 (Dashboard frontend, optional)
Option A: Plugin Install (Recommended — for most users)
# Install uv (Python package runner, required for MCP server)
pip install uv
# Add marketplace + install plugin
claude plugin marketplace add CronusL-1141/AI-company
claude plugin install ai-team-os
# Restart Claude Code — first launch takes ~30s to set up dependencies
# Subsequent launches are instant
# Update to latest version anytime
claude plugin update ai-team-os@ai-team-osNote: First launch after install takes ~30 seconds while dependencies are automatically configured. This only happens once — subsequent sessions start instantly with 113 MCP tools ready.
Option B: Source Install (for developers — editable, tracks latest source)
# Step 1: Clone the repository
git clone https://github.com/CronusL-1141/AI-company.git
cd AI-company
# Step 2: Run the installer (auto-configures MCP + Hooks + Agent templates + API)
python3 install.py
# Step 3: Restart Claude Code — everything activates automatically
# API server starts automatically when MCP loads. No manual startup needed.
# Verify: run /mcp in CC and check that ai-team-os tools are mountedDependencies:
greenlet(needed by SQLAlchemy async on Apple Silicon) is bundled by default.LangGraphis an optional extra — only the CLI graph-execution path needs it:pip install 'ai-team-os[langgraph]'.
Verify Installation
# Check OS health (API must be running — port may vary, check api_port.txt)
curl http://localhost:8000/api/health
# Expected: {"status": "ok"}
# Create your first team via CC
# Type in Claude Code:
# "Create a web development team with a frontend dev, backend dev, and QA engineer"Tool Loading Configuration (optional)
By default the MCP server registers all 113 tools. Two startup environment variables let you trim the surface for leaner sessions or non-CC clients with tool-count limits (e.g. Cursor only forwards the first 40 tools). Both are read once at server startup - no runtime state, no restart-on-change.
AITEAM_TOOLSETS - pick which capability-domain groups register:
unset or
all- full 113 (backward compatible)default- core groups only (task,team,memory,infra,reports= 29 tools, hard-capped at <=50)a comma list of group names, mixable with
defaultfor incremental loading, e.g.AITEAM_TOOLSETS=default,ecosystemunknown names are warned on stderr and ignored (a config typo never blocks server start)
AITEAM_READONLY=1 - orthogonal overlay that strips every write tool (create/update/delete/apply/send/... plus os_restart_api) after registration, keeping only read tools. Handy for audit/observer sessions.
The 16 groups (default groups marked *):
Group | Tools | Group | Tools | Group | Tools |
task * | 8 | project | 6 | links | 3 |
team * | 5 | agent | 7 | channels | 3 |
memory * | 6 | meeting | 10 | task_analysis | 2 |
infra * | 7 | briefing | 4 | watchdog | 1 |
reports * | 3 | analytics | 2 | workflows | 3 |
ecosystem | 42 |
# Example: lean core + ecosystem, read-only
AITEAM_TOOLSETS=default,ecosystem AITEAM_READONLY=1 <launch CC / MCP server>Uninstall
# Plugin install:
claude plugin uninstall ai-team-os
# Then manually remove residual data:
# Windows: rmdir /s %USERPROFILE%\.claude\plugins\data\ai-team-os-ai-team-os
# Unix: rm -rf ~/.claude/plugins/data/ai-team-os-*
# Restart Claude Code to stop active hooks.
# Source install — full cleanup:
python scripts/uninstall.py
# Preview first:
python scripts/uninstall.py --dry-runStart the Dashboard (optional)
cd dashboard
npm install
npm run dev
# Visit http://localhost:5173Standalone Mode (No Claude Code)
The API, dashboard, task wall and task execution also run without Claude Code: execution calls a direct LLM API through a provider factory, and a built-in company team — CEO (Leader) + COO + CTO + engineers + QA — is created on first run.
pip install 'ai-team-os[langgraph]'
aiteam standalone org # show the company org chart
aiteam standalone run --task "Draft a launch plan" --provider fake # offline smoke run
export ANTHROPIC_API_KEY=sk-ant-...
aiteam standalone run --task "Draft a launch plan" --provider anthropicSee docs/standalone-mode.md for providers
(anthropic / openai / fake), the org mapping, and which features remain
Claude Code-only by design (hooks, CC session fleet, CC workflow ingest).
Dashboard Screenshots
Command Center

Team Working — Live Activity Tracking

Task Board

Workflows — CC ultracode Run Observability
Persistent governance layer for CC ultracode Workflow runs — every run is auto-tracked as a team, surfacing stage progress plus per-agent token and tool-call telemetry.

Workflow Detail — Phase Swim Lane & Per-Agent Telemetry
Drill into a single run: a phase swim lane aligns every stage against one timeline, and a per-agent telemetry table breaks down tokens, tool calls, duration and state per stage — with a failed contract check surfaced in red.

Project Detail — Decision Timeline

Project Detail — Leader Context & Worktrees
Per-project roll-up of every attached Leader session with live context watermarks, alongside the Git worktrees in play — flagging any that carry uncommitted changes.

Agent Board — Live Agent Lanes
Real-time roster of every agent across teams — busy / waiting / offline tallies up top, each card showing its current task, context watermark and last-active time, blending workflow agents with named specialists and their historical trails.

Meeting Room

Ecosystem Research Platform
The ecosystem archive's initial listing — the full set of tracked open-source repositories with stars, primary language and topic tags, ready to open into per-repo research and integration.

Activity Analytics

Event Log

Auto-Wake System — Autonomous Task Advancement

Auto-Wake System
The Leader supports scheduled auto-wake to autonomously advance tasks without supervision:
Automatically checks context usage and pending tasks every 10 minutes
When tasks are available, autonomously creates teams and assigns work
When user decisions are needed, records them asynchronously via the Briefing system
When context exceeds 80%, auto-saves progress and prompts to open a new session
Ecosystem Integration Recipes
AI Team OS is designed as a meta-plugin — it orchestrates other MCP servers rather than reimplementing their capabilities. Pre-built recipes let you integrate popular tools in minutes:
Recipe | Integrates With | What You Get |
GitHub |
| Auto PR creation, issue tracking, code review coordination |
Slack |
| Team notifications, decision escalation, status broadcasts |
Linear |
| Task sync, sprint tracking, bug triage automation |
Full-Stack Team | GitHub + Slack + Linear | Complete development workflow with cross-tool orchestration |
Use find_skill(level=2, category="integration") to discover recipes, or see the full guide: docs/ecosystem-recipes.md
CC-First Design Principles
AI Team OS is built specifically for Claude Code, not as a standalone framework:
MCP Protocol native: all 113 MCP tools are registered natively — no custom client, no API wrapper
Hook-driven lifecycle: 15 CC lifecycle events (SessionStart → WorktreeRemove) provide deep integration without modifying CC internals
Agent templates as
.mdfiles: Installed to~/.claude/agents/(global) or.claude/agents/(project-level) — CC's native agent system, not a custom abstractionZero external dependencies at runtime: No external API calls, no cloud services — runs entirely within your CC subscription
Context-aware: Session bootstrap injects only 5 core rules (down from 23) to minimize context budget impact, with subagent context capped at 60 lines
MCP Tools
The tables below are a curated selection — the full inventory lives in
src/aiteam/mcp/tools/and is machine-counted byscripts/check_readme_numbers.sh.
Team Management
Tool | Description |
| Get team details and member status |
| List all teams |
| Get a full team panorama in one call (members + events + meetings + todos) |
Agent Management
Tool | Description |
| Update Agent status (idle/busy/error) |
| List team members |
| Get available Agent template list |
| Recommend the best Agent template based on task description |
Task Management
Tool | Description |
| Execute a task with full execution recording |
| Query task execution status |
| Create a new task ( |
| Partial update of task fields with auto timestamps |
| Add an execution memo to a task |
| Read task history memos |
| List all tasks under a project |
Meeting System
Tool | Description |
| Create a structured meeting (8 templates, keyword auto-select) |
| Send a meeting message |
| Read meeting records |
| Summarize meeting conclusions |
| Get available meeting template list |
| List all meetings |
| Update meeting metadata |
Channel Communication
Tool | Description |
| Send a message to a channel (team:/project:/global) with @mention support |
| Read messages from a channel |
| Get unread @mentions for an agent |
Debate System
Tool | Description |
| Start a structured 4-round debate (Advocate→Critic→Response→Judge) |
| Start a code review debate session |
Intelligence & Analysis
Tool | Description |
| Failure Alchemy — analyze root causes, generate antibody/vaccine/catalyst |
| Log a decision to the cockpit timeline |
| Resolve current context and retrieve relevant background information |
Memory System
Tool | Description |
| Search team memory — recency-window recall within scope + pure-Python BM25 rerank (Chinese bigram, no embeddings) |
| Write a direction-layer memory (preference/correction/design intent, 4 kinds; bucket quotas 1200/1500/300 chars, <=400 chars per entry, supersedes swap) |
| Explicitly invalidate a direction-layer memory (by id or unique substring; invalidate, never delete — auditable) |
| List valid direction-layer entries (kind filter; data source for both injection hooks) |
| On-demand reconcile coarse pass (zero-LLM): BM25-paired candidate groups + direction-layer inventory + promotion material + operation guide |
| Apply agent-confirmed reconcile operations (merge / invalidate / score / promote); idempotent, size guardrails enforced on promote |
Knowledge Layer (v1.8.0)
Tool | Description |
| Three-arm RRF search across memos / reports / tasks — BM25 full-text + knowledge-graph fanout + exact ID match |
| Query the cross-domain reference graph by node (what references this / what does this reference) |
| Trace a reference chain from any OS ID (wf_id / commit / task uuid) with evidence snippets |
Model Governance (v1.8.1)
Tool | Description |
| Read discovered available models (transcript-scanned) + the current default startup model |
| Set the global default startup model (triple write protection on |
Trust & Reliability
Tool | Description |
| Verify task completion (status + memo check, anti-hallucination) |
Analytics
Tool | Description |
| Get unified execution timeline for a task |
| Auto-diagnose why a task failed |
Briefing System
Tool | Description |
| Add a decision item for user review |
| List pending briefing items |
| Resolve a briefing item with a decision |
| Dismiss a briefing item |
Reports (Database-backed)
Tool | Description |
| Save a report to database with project isolation (research/design/analysis/meeting-minutes) |
| List reports with filtering by project, type, author, topic |
| Read a report by ID |
Ecosystem Research (42 tools)
The single largest tool family — the full research funnel from scan to integration:
Tool | Description |
| GitHub scan by project profile (stars / topics), one-off or periodic |
| Search the archived research knowledge base |
| Dispatch architecture deep-review agents, single or batched |
| Tag rule engine + LLM-assisted tagging |
| Weekly digests, top-N and knowledge-base health reports |
| Period-over-period diffs + index reconciliation |
| Stage-3 marking: keep as reference, or kick off an integration task |
… | Full family of 42 tools: see |
Prompt Registry
Tool | Description |
| View template effectiveness metrics |
Project Management
Tool | Description |
| Create a project |
| List all projects |
| Update project settings |
| Delete a project |
| Get a quick project status summary |
System Operations
Tool | Description |
| OS health check |
| Restart the OS API server (with safety checks) |
| View the system event stream |
| Query agent activity history and statistics |
| 3-layer progressive skill discovery (quick recommend / category browse / full detail) |
| Close a team and cascade-close its active meetings |
| Delete a team |
Agent Template Library
26 ready-to-use professional Agent templates with recommendation engine, covering a complete software engineering team. Templates are installed to plugin/agents/ (project-level) and ~/.claude/agents/ (global, available across all projects).
Engineering (13 templates)
Template | Role | Use Case |
| Software Architect | System design, architecture review |
| Backend Architect | API design, service architecture |
| Frontend Developer | UI implementation, interaction development |
| AI Engineer | Model integration, LLM applications |
| MCP Builder | MCP tool development |
| Code Reviewer | Code quality review, PR review |
| Database Optimizer | Query optimization, schema design |
| DevOps Automation Engineer | CI/CD, infrastructure |
| Site Reliability Engineer | Observability, incident response |
| Security Engineer | Security review, vulnerability analysis |
| Rapid Prototyper | MVP validation, fast iteration |
| Mobile Developer | iOS/Android development |
| Git Workflow Master | Branch strategy, code collaboration |
Testing (4 templates)
Template | Role | Use Case |
| QA Engineer | Test strategy, quality assurance |
| API Test Specialist | Interface testing, contract testing |
| Bug Fix Specialist | Defect analysis, root cause investigation |
| Performance Benchmarker | Performance analysis, load testing |
Research & Support (3 templates)
Template | Role | Use Case |
| Workflow Architect | Process design, automation orchestration |
| Technical Writer | API docs, user guides |
| Meeting Facilitator | Structured discussion, decision facilitation |
Management (3 templates)
Template | Role | Use Case |
| Chief Operating Officer (COO) | Operations, cross-team coordination, delivery tracking |
| Tech Lead | Technical decisions, team coordination |
| Project Manager | Schedule management, risk tracking |
Debate Roles (2 templates)
Template | Role | Use Case |
| Debate Advocate | Propose and defend solutions in structured debates |
| Debate Critic | Challenge proposals and find weaknesses |
Utility (1 template)
Template | Role | Use Case |
| Generic Team Member | Default role for general-purpose tasks |
Roadmap
Completed
Core Task Wall + Watchdog + Review (the loop state machine was retired in v1.10.x; scoring and the wall live on in
loop/task_wall_engine.py)Failure Alchemy (Antibody + Vaccine + Catalyst)
Decision Cockpit (Event stream + Timeline + Intent inspection)
Event-driven Task Wall 2.0 (Real-time push + Intelligent matching)
Living Team Memory (Knowledge query + Experience sharing)
What-If Analyzer (Multi-option comparison)
8 structured meeting templates with keyword auto-select
26 professional Agent templates (24 base + 2 debate roles) with recommendation engine
4-layer defense rule system (48+ rules) + behavioral enforcement
Dashboard Command Center (React 19) — 23 pages including the
/workflowsswimlane, Workflow detail, the Ecosystem suite,/usagetoken attribution, and Settings with model governance113 MCP tools across 16 modules
CC Workflow observability layer (auto-tracking + /workflows dashboard + workflow_list / workflow_get / workflow_reconcile)
Knowledge layer — zero-LLM reference graph + unified 3-arm RRF search (v1.8.0)
Model governance — transcript-based model discovery + global default startup model (v1.8.1)
Machine-checked red-line invariants + one-command preflight (
scripts/preflight.sh)AWARE loop memory system
find_skill 3-layer progressive discovery
task_update API for programmatic task management
Workflow pipeline orchestration (7 templates + auto phase progression) — fully removed in v1.10.x, superseded by CC Workflow observability (
pipeline_stage_historystays readable)2,307 automated tests, CI green
Prompt Registry (version tracking retired in v1.10.3 — nothing ever called
/track, so every version column rendered "-"; effectiveness metrics live on, sourced from real agent activity)BM25 as the main memory-retrieval chain (pure-Python Okapi BM25, Chinese bigram, recency-window recall + rerank)
Event log enhancement (entity_id / entity_type / state_snapshot fields)
CC Plugin Marketplace submission
File lock / workspace isolation (acquire/release/check/list + TTL=300s) — retired in v1.10.3; the lock file was empty in every real run, and hook-side edit-conflict warnings replaced it
Channel communication system (team:/project:/global + @mention)
Execution pattern memory (success/failure recording + BM25 retrieval) — retired in v1.10.3; the store never held a row, so the injected section was permanently blank
Guardrails L1 (7 dangerous patterns + PII warnings)
Alembic database migration system
Debate mode (4-round structured debate + code review)
Agent trust scoring system (auto-adjust on task success/failure) — scoring chain retired in v1.10.3 (no caller ever existed); the
trust_scorecolumn stays andauto_assignstill weights itTool tier draft (informational CORE/ADVANCED grouping — groundwork for context budgeting)
Agent Watchdog patrol (BUSY-timeout / stuck-task detection; the file-based heartbeat was retired in v1.10.x — CC subagents are one-shot and never polled)
SRE error budget model (GREEN/YELLOW/ORANGE/RED 4-level response) — retired in v1.10.3; its data directory sat empty for its entire lifetime
Completion verification protocol (anti-hallucination completion check)
Ecosystem integration recipes (GitHub/Slack/Linear/Full-stack presets, served by
find_skill)Session bootstrap rule compression (23 → 5 core rules, 60% context reduction)
Atomic API startup lock (multi-session port conflict prevention)
Auto port discovery (API finds available port, writes to
api_port.txt)MCP HTTP Streamable endpoint (
/mcp/on FastAPI)PyPI release — frozen at 1.2.0 and deprecated (install via plugin or source instead)
INSTALL.md CC-assisted installation guide
In Progress / Planned
Multi-tenant isolation
Production validation and performance optimization
Claude Code Plugin Marketplace listing
Full integration test suite
Documentation site (Docusaurus)
Video tutorial series
Project Structure
ai-team-os/
├── src/aiteam/
│ ├── api/ — FastAPI REST endpoints (208 routes)
│ ├── mcp/
│ │ ├── server.py — MCP server entry point
│ │ └── tools/ — 16 tool modules (113 MCP tools)
│ │ ├── agent.py, analytics.py, briefing.py, channels.py,
│ │ ├── ecosystem.py, infra.py, links.py, meeting.py,
│ │ ├── memory.py, project.py, reports.py, task.py,
│ │ ├── task_analysis.py, team.py, watchdog.py, workflows.py
│ │ └── __init__.py — Toolset registration entry
│ ├── loop/ — Task wall engine + watchdog + failure alchemy
│ ├── meeting/ — Meeting system
│ ├── memory/ — Team memory
│ ├── orchestrator/ — Team orchestrator
│ ├── storage/ — Storage layer (SQLite, WAL journaling)
│ ├── templates/ — Agent template base classes
│ ├── hooks/ — CC Hook scripts (15 lifecycle events)
│ └── types.py — Shared type definitions
├── plugin/
│ ├── agents/ — 26 Agent templates (.md)
│ └── .claude-plugin/ — Plugin manifest
├── dashboard/ — React 19 frontend (23 pages)
├── scripts/ — preflight + machine-checked invariants (incl. README number check)
├── docs/ — Design documents + ecosystem recipes
├── tests/ — Test suite (2,307 tests)
├── install.py — One-click install script
└── pyproject.tomlContributing
Contributions are welcome! We especially appreciate:
New Agent templates: If you have prompt designs for specialized roles, PRs are welcome
Meeting template extensions: New structured discussion patterns
Bug fixes: Open an Issue or submit a PR directly
Documentation improvements: Found a discrepancy between docs and code? Please correct it
# Set up the development environment
git clone https://github.com/CronusL-1141/AI-company.git
cd AI-company
python3 install.py
# One command = every gate CI runs (ruff + eslint + unit tests + machine-checked invariants)
bash scripts/preflight.shBefore submitting a PR, make sure bash scripts/preflight.sh passes — it runs the exact gates CI enforces: ruff, eslint, the unit test suite, and the red-line invariant checks in scripts/check_invariants.sh. Every one of those invariants (hook copy sync, version lockstep, dist consistency, venv ban, README number drift) was distilled from a real incident in this repo's history — please keep them green.
License
MIT License — see LICENSE
AI Team OS — The AI company that runs while you sleep.
Built with Claude Code · Powered by MCP Protocol
Docs · Issues · Discussions
Available Tools
113 toolsagent_activity_queryA
Query Agent activity records for a team.
Returns recent activity log entries sorted by timestamp descending, including tool name, duration_ms, and an I/O summary.
Default response is a COMPACT projection (view="compact" + hint - trimmed, NOT missing fields): input/output summaries are excerpted because the raw output_summary often holds a whole command transcript (a 60-row window measured 43.9k chars, right at the MCP result ceiling). Full records via fields="all". The compact window is capped at 50 rows - narrow with agent_id rather than widening limit.
Inputs: limit, fields, team_id, agent_id. Returns: object
agent_listA
List a team's members - live roster first, offline history on request.
Default response is a COMPACT projection (view="compact" + hint - it is a trimmed view, NOT missing fields). Each member row keeps id / name / role / status / an 80-char current_task excerpt / last_active_at; system_prompt, config, the context watermark and the token ledger are omitted and come back with fields="all".
Offline members are folded into a count plus a short most-recent digest. An offline agent is a terminated process - it cannot be messaged and cannot be assigned work - and on the real 51-member session team those rows were 96.4% of the payload, which is what made this tool exceed the MCP result ceiling and fail outright. Nothing is deleted: the count is always reported and include_offline=True returns the full history.
Inputs: team_id (required), limit, fields, offset, +2 more. Returns: object
agent_reuse_recommendA
Recommend whether to reuse an existing sub-agent for a follow-up task.
For follow-up work (bug re-fix, deeper research, same-domain iteration), resuming a prior sub-agent preserves its accumulated context. This tool ranks prior sub-agents by same-domain match, reads their P1 context watermark, infers reachability, and recommends one of three actions: reuse (SendMessage resumes it) / slim_then_reuse (self-summarize then spawn fresh with the summary) / spawn_new. It only recommends; the Leader decides.
Availability tiers: live (same session, reachable now) / resumable (same
session, offline but transcript fresh) / cross-session (another session,
needs claude --resume) / expired (past retention). Address candidates by
NAME — SendMessage(to=...) takes a teammate name and keeps working after
the agent completes; each candidate's resume_hint is a ready-to-run call
(with the required summary). The raw agentId is the documented fallback
for nameless rows or when a newer agent took the name.
Default response is a COMPACT projection (view="compact" + hint — trimmed, NOT missing fields): decision signals and call keys kept, full rationale and watermark detail via fields="all".
Inputs: limit, query, fields, keywords, +2 more. Returns: object
agent_template_listA
List every Agent template CC can actually resolve.
Scans all three template sources with CC's own precedence — project-level
<project>/.claude/agents/ > user-level ~/.claude/agents/ > the shipped
plugin/agents/ — and de-duplicates by frontmatter name (the identity CC
resolves), so the count matches what subagent_type will really accept.
Each entry carries a source field.
Default response is a COMPACT projection (view="compact" + hint - trimmed,
NOT missing fields): the full listing measured 32,480 chars, half of it
because grouped repeats every row of templates verbatim. Compact keeps
one projected row per template and reduces grouped to a name index.
Inputs: fields. Returns: object
agent_template_recommendA
Recommend Agent templates — and, for a known project type, a team shape.
Two layers in one answer:
recommendations— live template match against the installed template dirs (project > user > plugin), ranked by relevance.team_composition— when task_type names a project type (web-app / api-service / data-pipeline / library / refactor / bugfix), a suggested role lineup with counts and the template to use for each. This is a static seed, not a live probe; it only suggests a shape.
Inputs: keywords, task_type. Returns: object
agent_update_statusB
Update an Agent's running status.
Inputs: status (required), agent_id (required). Returns: object
briefing_addA
Add a decision item to Leader Briefing for user review.
Use when Leader encounters decisions that require user input: project direction, architecture choices, budget/resource allocation.
Anything a sub-agent's completion report leaves "for the user to decide" belongs here — a decision parked in report prose is a decision the user never actually received.
Inputs: title (required), tags, options, urgency, +2 more. Returns: object
briefing_dismissB
Dismiss a Leader Briefing item (no action needed).
Inputs: briefing_id (required). Returns: object
briefing_listA
List Leader Briefing items. Default shows pending items for user review.
Each item carries project_id and tags, so a long decision queue can be narrowed to one project and/or one topic.
Inputs: tag, status, project_id. Returns: object
briefing_resolveB
Resolve a Leader Briefing item with user's decision.
Inputs: resolution (required), briefing_id (required). Returns: object
channel_mentionsA
Get channel messages that @mention a specific agent.
Inputs: limit, agent_name. Returns: object
channel_readA
Read messages from a channel.
Supports incremental pull via 'since' parameter to fetch only new messages.
Inputs: channel (required), limit, since. Returns: object
channel_sendA
Send a message to a channel.
Supports cross-team broadcasting and @mention semantics.
Channel formats:
"team:" — send to a specific team channel
"project:" — send to a project-wide channel
"global" — broadcast to all teams
Inputs: channel (required), message (required), sender, mentions. Returns: object
context_resolveA
Get the current active OS context — active project, active teams, member list.
This is the infrastructure for all simplified operations. A single call returns the complete context of the current working environment, allowing Leader or other tools to auto-fill parameters like project_id, team_id, etc.
teams lists EVERY active team of the current project (a project routinely
has several at once: the session container team plus one per Workflow run).
team keeps the singular shape for backwards compatibility and holds the
primary team picked by the same 3-tier priority as team_id auto-resolution
(session container > plain project team > newest).
Returns: Context dict containing project / team / teams / agents
Inputs: no named parameters. Returns: object
debate_code_reviewA
Start a debate-style code review for a specific file or change.
Creates a structured 4-round debate where:
Advocate defends the current implementation
Critic challenges the implementation and proposes improvements
Judge synthesizes findings into consensus conclusions and action items
Inputs: file_path (required), change_description (required), judge, critic, +2 more. Returns: object
debate_startA
Start a structured 4-round debate meeting between an Advocate and a Critic.
Debate structure:
Round 1 (Advocate): Present proposal/position with evidence
Round 2 (Critic): Challenge risks, flaws, and propose alternatives
Round 3 (Advocate): Respond to challenges, revise proposal if needed
Round 4 (Judge): Render verdict with action items
Inputs: topic (required), critic (required), advocate (required), judge, +1 more. Returns: object
decision_logB
Query team decision log — task assignments, approach selections, Agent scheduling decisions.
Inputs: limit, team_id, event_type. Returns: object
diagnose_task_failureA
Auto-diagnose why a task failed and suggest fixes.
Reads the task's execution trace (memos) to identify the failure point, compares with similar successful tasks in the same team, and returns actionable fix suggestions.
Use this when a task fails or gets stuck to quickly understand root cause without manually reading through all memo records.
Inputs: task_id (required). Returns: object
dismiss_project_registrationA
Mark current cwd as dismissed for project registration — won't ask again.
Inputs: cwd. Returns: object
ecosystem_apply_architecture_mdA
Stage 1 writeback — submit architecture_md OR report failure.
Success path (default): pass non-empty architecture_md (800-1500 words
Chinese markdown). The OS persists it, advances stage_status -> architecture_done, and marks the deep_review row completed.
Failure path: leave architecture_md empty and pass error_message;
the OS advances stage_status -> architecture_failed so manual
retry surfaces in the UI.
Inputs: deep_review_id (required), agent_id, error_message, architecture_md. Returns: object
ecosystem_apply_debate_resultA
Stage 2 writeback — submit debate conclusion to advance to debated.
At least one of risks_md / learnings_md / integration_md must be
non-empty. integration_recommendation is a short enum:
integrate / reference / learn / skip.
Inputs: deep_review_id (required), agent_id, risks_md, learnings_md, +2 more. Returns: object
ecosystem_apply_quality_reviewA
Submit quality review result and release the claim lock.
Writes quality_score / quality_notes / reviewed_by / reviewed_at, clears claimed_by so other workers can pick up the next row.
Inputs: dr_id (required), quality_score (required), quality_notes, recommendation. Returns: object
ecosystem_apply_shallow_summaryA
Stage 0 worker callback: write back a shallow summary OR report a failure.
Success path (default): pass shallow_summary (200-400 char Chinese
markdown) and deep_review_id; the OS will persist the summary,
advance stage_status -> shallow_done, and mark the deep_review
row as completed.
Failure path: leave shallow_summary empty and pass error_kind,
which routes the failure through the §3.1 classifier so the OS
can decide whether to immediate-retry, mark deleted/private, or
feed the self-learning loop. Valid error_kind values:
http / agent_read / agent_timeout / json_parse /
fetch_style.
Inputs: repo_id (required), error_kind, http_status, error_message, +3 more. Returns: object
ecosystem_claim_reviewA
Claim the next shallow_done repo for quality review.
Finds stage_status='shallow_done' rows with no quality_score and no active claim. Returns the repo's shallow_summary so the reviewer can evaluate quality.
Inputs: worker_id (required), min_stars. Returns: object
ecosystem_claim_shallowA
Claim the next queued repo for shallow scanning (stage_status='queued').
Atomic: only one worker gets each row; others get {"claimed": false}. v1.7.0: also returns repo_full_name, topics, description, owner, stars, last_commit_at so workers can skip a separate ecosystem_repo_get call.
Inputs: worker_id (required). Returns: object
ecosystem_deep_review_cancelA
Cancel an in-flight (stage_status='queued') deep-review.
Advances the row's stage_status to shallow_failed (the
legacy status column derives to failed) with a
cancellation note. The sub-agent is expected to observe the row
state and shut down on its own.
Inputs: deep_review_id (required). Returns: object
ecosystem_deep_review_listA
List deep-reviews newest-first, optionally filtered by status.
Inputs: limit, status. Returns: object
ecosystem_deep_review_requestA
Queue a deep-review for a repo and return the dispatch prompt.
Creates an EcosystemDeepReview row queued on the funnel
(stage_status='queued'; the legacy status column is a
derived read-only view and returns 'queued' — no more
'running'), and embeds a sub-agent prompt (5-section template
repo metadata) in the row's
dispatch_promptfield. A background watchdog advancesstage_statustoshallow_failed(status derives tofailed) aftertimeout_minutesif no report has been linked. The Leader is responsible for actually spawning the sub-agent (via the CC Agent tool; the session's implicit team is used automatically).
Inputs: repo_id (required), agent_id, priority, timeout_minutes. Returns: object
ecosystem_deep_review_request_batchA
Stage 1 — Queue architecture-analysis dispatches for tag-filtered candidates.
Pulls active+shallow_done profiles whose tag set covers tags (AND
semantics), creates an EcosystemDeepReview row per candidate, and
returns a list of DispatchIntent payloads for backend-architect
sub-agents. Leader is responsible for actually spawning each agent
via the Agent tool. Each agent eventually calls
ecosystem_apply_architecture_md to write back.
Inputs: tags, limit, min_stars, research_goal. Returns: object
ecosystem_deep_review_statusC
Look up the most recent deep-review for repo_id.
Inputs: repo_id (required). Returns: object
ecosystem_diff_periodA
Return a time-period diff computed dynamically from the event log (v1.6.0 event sourcing).
Groups events by type to produce summary counts: new repos discovered, topics changed, stars jumped, status changed. This replaces the legacy index_diff snapshot approach.
Inputs: to_date (required), from_date (required). Returns: object
ecosystem_index_diff_latestA
Fetch the latest IndexDiff snapshot for the current project.
Maps to GET /api/ecosystem/index_diffs/latest. Returns the most
recent diff row produced by a real ecosystem_index_update
(dry_run=False) run. Dry-run previews are not persisted and therefore
never appear here.
Returns:
Diff available: {success: True, diff: {id, diff_type, new_count, reactivated_count, deactivated_count, stale_count, archived_count, markdown_summary, alerted, generated_at}}.
No diffs yet (fresh project): {success: True, diff: None, message: 'No index diffs found yet.'}.
Legacy/unbuilt API: {success: False, error: 'P0.4 will implement', detail} (returned when the endpoint
answers 404).
Other failure: {success: False, error, detail}.
success semantics: True = call completed (diff may be None
when the project has never run a non-dry index_update);
False = API/endpoint error. The API field is diff — older
internal references to index_diff are obsolete.
Inputs: no named parameters. Returns: object
ecosystem_index_updateA
Trigger ecosystem index update — runs scanner + computes diff.
Maps to POST /api/ecosystem/index_update. Scan config comes from the
project's ecosystem settings (min_stars gate, focus_topics
queries — empty falls back to the built-in Claude-ecosystem query set,
alert_max_new_per_scan threshold), then runs the full pipeline:
gh search → classify active status → diff against DB → alert threshold
check → (if dry_run=False) persist index_diff + status_changes. When
dry_run=True, no writes touch ecosystem_repo_profiles /
ecosystem_index_diffs / ecosystem_status_changes (BUG #6/#8 fix
verified in test_dry_run_does_not_write_profile_table).
Inputs: dry_run. Returns: object
ecosystem_link_debate_meetingA
Stage 2 helper — link debate_start meeting id back to review rows.
Called immediately after debate_start succeeds. Writes
debate_meeting_id onto every review in review_ids so the
meeting-conclude hook (meeting_ecosystem_writeback.py) can
match concluded meetings to their ecosystem reviews.
Inputs: meeting_id (required), review_ids (required). Returns: object
ecosystem_link_integration_taskC
Stage 3 helper — link integration task id back to review row.
Inputs: task_id (required), deep_review_id (required). Returns: object
ecosystem_mark_as_referenceA
Stage 3 reference path — add lifecycle:reference tag + advance to referenced.
Use when the debate concludes that the repo is worth keeping as an architectural reference but not integrated. The repo will appear highlighted in future searches as "already researched" so the team avoids re-deep-scanning it.
Inputs: deep_review_id (required), agent_id, confidence. Returns: object
ecosystem_quick_setupA
One-shot ecosystem setup wizard — create data sources + scan profile in one call.
Use this when bootstrapping a fresh project to ecosystem indexing. Maps to
POST /api/ecosystem/quick_setup which creates one DataSource per entry
in sources (each enabled by default) and persists either the default
ScanProfile or the merged custom_profile override.
Inputs: queries, sources, use_defaults, custom_profile. Returns: object
ecosystem_rebuild_queries_from_reposA
Return a recap of all search queries that have discovered repos in this project.
Scans discovered_via_queries across all stored profiles and aggregates counts per query. Useful to audit which queries are most productive and which repos are multi-query hits.
Inputs: project_id. Returns: object
ecosystem_refreshA
On-demand incremental refresh of the project's active ecosystem set.
Replaces the retired weekly cron (2026-07-10 decision: CC is not always-on, so long-running timers are pointless — refresh happens when the user asks for it). For each active-set repo (top_n by stars) this probes GitHub once, writes a status snapshot, and re-queues a Stage 0 shallow summary only when the repo has new pushes; 404/403 mark the profile deleted/private.
The response's hint field (present when repos were re-queued)
reminds you to run the actual shallow scans via ultracode/Workflow
and write results back with ecosystem_apply_shallow_summary.
Inputs: notes. Returns: object
ecosystem_release_claimA
Release a worker claim without submitting a quality review.
Use when a worker abandons a task (timeout, error). Clears claimed_by so another worker can pick up the row. Records reason in quality_notes.
Inputs: dr_id (required), reason. Returns: object
ecosystem_repo_eventsB
Return event history for a single ecosystem repo (v1.6.0 event sourcing).
Each event captures a discrete operation: discovered, rescanned, topics_changed, stars_jumped, status_changed, archived, manual_pinned, manual_unpinned, removed_from_query.
Inputs: repo_id (required), limit. Returns: object
ecosystem_repo_getC
Get holistic detail of an ecosystem repo (profile + tags + deep_reviews + relations + scan_run).
Inputs: repo_id, repo_full_name, relations_limit, deep_reviews_limit. Returns: object
ecosystem_repo_manual_statusA
Set (or clear) the human override on a repo's active status.
One entry point for every manual verdict — the four historical tools (pin_active / unpin / mark_no_value / clear_manual_status) all posted the identical payload to the identical endpoint and differed only by this argument.
Inputs: repo_id (required), reason, status, project_id. Returns: object
ecosystem_repo_tagsA
List all tags currently associated with a single ecosystem repo.
Returns each association with its confidence, source layer (github_topic / auto_rule / auto_llm / manual), and tag metadata.
Inputs: repo_id (required). Returns: object
ecosystem_scanA
Scan popular Claude ecosystem repos (>=min_stars) and update ecosystem_repo_profiles.
Runs 8-10 gh search queries covering:
topic:claude-code / topic:mcp / topic:mcp-server / topic:claude-agent
topic:agent-framework + "claude" / topic:ai-agents + "claude"
"claude code plugin" / "anthropic agent"
anthropics org public repos
Deduplicates + filters >=min_stars + excludes known repos (CronusL-1141/AI-company etc.) Sets needs_deep_review=True for stars < 15000. relevance_category is auto-classified heuristically (based on topics + description keywords).
Inputs: dry_run, min_stars. Returns: object
ecosystem_scan_historyA
List recent scan runs ordered by started_at descending.
Inputs: limit, strategy. Returns: object
ecosystem_scan_periodicA
Run an incremental or full ecosystem scan via the scanner service.
Compared to ecosystem_scan, this tool:
skips repos last_scanned_at < 7 days (incremental strategy only)
applies secondary owner / keyword filters
marks repos pushed > 365 days ago as is_archived=True
records every run as an EcosystemScanRun for audit
Inputs: notes, strategy, min_stars, triggered_by. Returns: object
ecosystem_scan_statusB
Fetch a single EcosystemScanRun by id.
Inputs: run_id (required). Returns: object
ecosystem_searchA
Query ecosystem_repo_profiles archive (Stage E enhanced).
Default response is a COMPACT projection (marked by view="compact" + hint — it is a trimmed view, NOT missing fields): each profile row keeps repo/stars/lang/status + summary. Full profile of a single repo: ecosystem_repo_get(repo_full_name); full rows here: fields="all".
Inputs: sort, tags, limit, topic, +13 more. Returns: object
ecosystem_search_by_capabilityA
Search ecosystem repos by capability tags (reverse lookup from tag → repo).
Inputs: sort, tags, limit, offset, +3 more. Returns: object
ecosystem_shallow_queue_statusA
Show Stage 0 shallow-scan queue status for the active project.
Returns counts for active profiles, pending shallow scans,
in-flight dispatches, terminal failures (shallow_failed), and
deleted/private-flagged repos. The self_learning_pending map
shows how many distinct repos have hit each failure class so far
(a class becomes eligible for a recorded lesson once the count reaches 3).
Returns:
{project_id, active_total, pending_shallow, in_flight, shallow_failed, deleted, private_now, concurrency, self_learning_pending}.
Inputs: no named parameters. Returns: object
ecosystem_start_integrationA
Stage 3 integrate path — build a task_create payload + tag the repo.
Adds lifecycle:integrated tag, advances stage_status, and
returns a task payload (title / description / priority / horizon /
tags) ready to POST to /api/projects/{project_id}/tasks.
After the task is created, call ecosystem_link_integration_task
to write integration_task_id back onto the review.
The ecosystem does not take over implementation — task ownership is taken over by the existing task/team system.
Inputs: deep_review_id (required), title, horizon, priority, +2 more. Returns: object
ecosystem_summary_by_tagA
List every repo carrying tag as a markdown table.
Each row contains stars / language / one-line summary plus a deep-
review id when one exists. Rows are sorted by stars desc.
Archived repos are excluded unless include_archived=True.
Inputs: tag (required), limit, author, save_report, +1 more. Returns: object
ecosystem_summary_healthC
Platform self-check markdown: profile / scan / tag coverage / archive ratio.
Inputs: author, save_report. Returns: object
ecosystem_summary_top_nB
Top-N markdown table of ecosystem repos.
Inputs: n, sort, author, category, +1 more. Returns: object
ecosystem_summary_weeklyA
Generate the past-N-days ecosystem briefing as markdown.
Aggregates new / updated profiles, completed deep-reviews, archive
counters and top star movers over the configured window. When
save_report=True (default) the markdown is persisted via
report_save with report_type='ecosystem-weekly'.
Inputs: author, save_report, window_days, top_movers_limit. Returns: object
ecosystem_tag_apply_batchA
Apply Layer 1 + Layer 2 auto-tagging to a batch of ecosystem repos.
Layer 1 matches GitHub topics directly (confidence=0.95, source=github_topic). Layer 2 matches keyword rules against name+description+topics+owner (confidence=0.7, source=auto_rule).
Repos with fewer than 2 matched tags are flagged via needs_llm=True; callers should pass those into ecosystem_tag_dispatch_llm to spawn Layer 3 sub-agents.
If both repo_ids and repo_full_names are empty, the first repos in the database are processed.
Inputs: limit, agent_id, repo_ids, replace_auto, +1 more. Returns: object
ecosystem_tag_apply_llm_resultB
Submit Layer 3 LLM tagging result from a sub-agent.
Inputs: tags (required), repo_id (required), agent_id. Returns: object
ecosystem_tag_dispatch_llmA
Build a Layer 3 sub-agent dispatch plan for repos that need LLM fallback.
Returns a dispatch plan; the Leader is expected to spawn each sub-agent via the Agent tool using launch_call.params. Each sub-agent analyzes the repo and submits results via ecosystem_tag_apply_llm_result.
Concurrency is capped at max_concurrency (default 20) to limit token spend. Excess repos are returned in skipped_due_to_limit.
Inputs: repo_ids (required), agent_template, max_concurrency. Returns: object
ecosystem_tag_listA
List ecosystem tag dictionary entries.
Three layers of tagging are supported:
GitHub topics direct mapping (Layer 1)
Keyword/regex rules (Layer 2)
LLM sub-agent fallback (Layer 3)
This tool only returns the canonical tag dictionary (21 default tags). Use ecosystem_tag_apply_batch to actually apply tags to repos.
Inputs: limit, category. Returns: object
ecosystem_trigger_debateA
Stage 2 — Build debate dispatch payload (Leader still calls debate_start).
Validates that each repo_id has at least one
architecture_done review, then returns a payload (suggested
topic + roles + linked review_ids) so the caller can invoke the
existing debate_start MCP tool. After debate_start returns
a meeting id, call ecosystem_link_debate_meeting to write
debate_meeting_id back onto each review row.
Inputs: repo_ids, research_goal, suggested_judge, suggested_critic, +1 more. Returns: object
event_listA
List recent events in the system, optionally filtered.
All four filters were already implemented server-side; the tool just never exposed them, so every call had to pull the global firehose and eyeball it (fixed 2026-07-27).
Default response is a COMPACT projection (marked by view="compact" + hint — it is a trimmed view, NOT missing fields): each row keeps id/type/source/ts plus a one-line summary derived from the event payload. Use fields="all" for full payloads.
Inputs: type, limit, fields, source, +2 more. Returns: object
failure_analysisA
Analyze failed tasks, distill defense rules + training cases + improvement proposals (failure alchemy).
When a task permanently fails (exceeds retry limit), call this tool for deep failure analysis. Automatically generates three learning artifacts saved to team memory:
Antibody: Defensive rule suggestions to prevent similar failures
Vaccine: Structured failure case for new Agents to reference and learn from
Catalyst: System improvement proposals to drive process optimization
Inputs: task_id (required), team_id (required). Returns: object
find_skillA
Find ecosystem skills/plugins using a 3-layer progressive loading system.
Layer 1 (quick recommend): Describe your task and get top 3-5 matching skills with one-line descriptions and install commands. Layer 2 (category browse): Browse all skills grouped by category (memory / code-quality / frontend / security / dev-workflow / integration / etc.). Layer 3 (full detail): Get complete documentation for a single skill including features, OS complement relationship, and variants.
The integration category holds the ecosystem integration recipes
(GitHub / Slack / Linear / fullstack team) that used to live in their own
ecosystem_recipes tool — each one says which external MCP server to
install and which OS tools it pairs with.
Inputs: level, category, skill_id, task_description. Returns: object
fleet_dispatchA
Dispatch an operational instruction to another ship (CC session) in the fleet.
The fleet down-channel drives an EXISTING idle session to run one turn via
headless claude -p --resume (fleet-layer design §4). Use it to nudge an idle
ship to advance a task or report its status - NOT to make strategic decisions on
the user's behalf (the dispatched turn is constrained to operational work).
Safety gate (enforced server-side, no subprocess spawns until it passes):
The target must be RESUMABLE: its transcript file still exists.
The target must NOT be user-live: its file must be idle beyond a conservative guard (FLEET_DISPATCH_MIN_IDLE_SECONDS, > the 15min live window) so a dispatch never competes with someone typing in that session. A too-fresh target is refused with availability="live".
Dispatches are deduped per-session, share the global wake concurrency limit and circuit breaker, and every one is ledgered in wake_sessions.
Get target_session_id from the fleet view / project summary (each ship's session_id). This tool RECOMMENDS nothing and DECIDES nothing strategic; it only relays an operational instruction to an idle ship.
Inputs: instruction (required), target_session_id (required), max_turns, project_id, +1 more. Returns: object
link_queryA
Query cross-domain reference edges for an object (who references it / what it references).
Edges are extracted automatically (zero-LLM regex) from task memos and reports: wf_ runs, commit hashes, task UUIDs, [[memory]] links.
Inputs: id (required), kind (required), limit, direction. Returns: object
link_traceA
Trace the reference neighborhood of an object (undirected fanout, depth <= 2).
Answers questions like "which tasks/reports touched commit 9d8f020" or "what work is connected to run wf_cbad7348".
Inputs: id (required), kind (required), depth, limit. Returns: object
meeting_attendance_checkA
Check which expected participants have spoken in the current round.
Use this after spawning all Agents via dispatch_plan to verify attendance before advancing to the next round or concluding the meeting.
Inputs: meeting_id (required). Returns: object
meeting_concludeA
Conclude a meeting, marking it as completed.
By default checks that all expected participants have spoken before concluding. Set force=True to override, but this will be recorded in the event log.
Inputs: meeting_id (required), force, summary, validate_attendance. Returns: object
meeting_createA
Create a team meeting and return a ready-to-use dispatch_plan for spawning participant Agents.
Supports two participant formats:
Legacy (strings): participants=["arch-lead", "backend-arch"] Returns dispatch_plan with empty launch_call + deprecation warning.
Structured (dicts): participants=[{"name": "arch-lead", "agent_template": "software-architect", "role": "Responsible for evaluating architecture proposals", "context_files": ["docs/arch.md"], "expected_output": "three-paragraph form"}] Returns dispatch_plan with fully populated launch_call.params ready to paste into Agent tool.
Inputs: topic (required), rounds, team_id, template, +3 more. Returns: object
meeting_listA
List meetings for a team, optionally filtered by status.
Inputs: status, team_id. Returns: object
meeting_read_messagesB
Read all discussion messages in a meeting.
Inputs: meeting_id (required), limit. Returns: object
meeting_send_messageA
Send a discussion message in a meeting.
Discussion rules:
Round 1: Each participant presents their views
Round 2+: Must read previous speakers' messages first, cite and respond to specific points
Final round: Summarize consensus and disagreements
SECURITY: Set caller_agent_id to the actual agent making this call. If it differs from agent_id, the message is flagged as impersonation in the audit log. Leader sending on behalf of others should set caller_agent_id='team-lead'.
Inputs: content (required), agent_id (required), agent_name (required), meeting_id (required), +2 more. Returns: object
meeting_template_listA
List available meeting templates and their round structures.
Returns: templates: All available templates with round structure details
Inputs: no named parameters. Returns: object
meeting_updateA
Update meeting fields (topic, participants, notes).
Use this to add conclusions/notes to a meeting or update its topic. To formally conclude a meeting (mark as concluded), use meeting_conclude instead.
Inputs: meeting_id (required), notes, topic, participants. Returns: object
memory_addA
Add a direction-layer memory — the team's shared, cross-task standing preferences.
The direction layer = low-frequency, high value-density, cross-task long-lived preferences/corrections/constraints/design intent. Every dispatched agent is injected with the direction layer at birth, so preferences like "everything in Chinese" and "report as soon as done" no longer need to be hand-copied into prompts.
Write test (soft threshold): how many future tasks can this entry affect? One that affects only a single task → goes to task_memo_add (the episodic layer); do not write it here.
The volume red line is a single axis: storage cap = injection budget. The direction layer counts character quotas per bucket — global 1200 characters + each project 1500 characters + user 300 characters; one session actually inherits 3000 characters; a single entry is still ≤ 400 characters. Whatever fits in storage is guaranteed to be delivered, and what cannot be written truly has no room: when over the limit, this tool returns that bucket's full set of valid entries (id / kind / character count / full text) + the usage gap, requiring you to first, in the same round, memory_invalidate (locatable via a content_match substring) or memory_reconcile_apply to free space, then retry this write. Rewrite over-long content into a pointer entry of the form "trigger condition + pointer to the authoritative file" (e.g. "When production/clusters/DB are involved, follow the read-only iron rule; see ~/.claude/CLAUDE.md"), with the body externalized.
Write-side safety scan: direction-layer entries enter every dispatched agent's system prompt, so invisible Unicode, prompt-injection phrasings (overriding existing instructions / extracting the system prompt / forging conversation roles), and credential shapes are uniformly refused storage.
The four kinds (which determine the injection truncation priority constraint>design>directive>preference):
constraint (prohibitions/guardrails): one sentence, machine-checkable, valid for life. E.g. "All output in Chinese", "Never automatically add an agent signature to git commits".
design (value ordering/design intent): the basis for trade-offs when no explicit instruction exists. E.g. "Technical decisions favor quality/simplicity/robustness/long-term maintainability, with little weight on development cost".
directive (methodology/working style): answers "how to do it". E.g. "On completion, report by problem → root cause → solution → verification; do not batch things up".
preference (format preferences): optional, e.g. "One sentence per line for easy diffing".
Inputs: content (required), kind, scope, supersedes, +1 more. Returns: object
memory_invalidateA
Invalidate a direction-layer memory — mark it invalid without deleting.
Explicitly invalidate a direction-layer preference when it is outdated/overturned (Zep invalidation semantics: set invalid_at without deleting, preserving an auditable trail). After invalidation it no longer enters injection and by default does not appear in memory_list.
Two locating methods, choose one: precise location by memory_id, or location by content_match substring (saving an id lookup when you only have the original text — exactly the situation when a quota bounce hands it back to you). The substring must uniquely hit a valid entry in the current context: on 0 or multiple hits, the data is not touched at all; on multiple hits, candidates are returned so you can give a more precise substring.
Inputs: memory_id, content_match. Returns: object
memory_listA
List direction-layer memories — valid entries by default, grouped by kind.
Return the current context's direction-layer entries: global + user global entries + the current project's project- level entries, ordered by kind priority (constraint>design>directive>preference) + time descending. This is the same data source as the dual hooks' resident injection; use it to review "what dispatched agents will inherit".
Inputs: kind, include_invalidated. Returns: object
memory_reconcile_applyA
On-demand organization · apply: batch-execute the operations confirmed by the LLM fine judgment (deterministic, idempotent).
Each operation is a dict, dispatched by its op field (an unknown/missing field returns an error for that entry without blocking the rest):
merge: {op:"merge", content: the new merged content, memo_ids: [the entries being merged], memo_type?:"summary", scope_path?} — creates a new memo and sets each merged entry invalid, with invalidated_by pointing at the new entry (Zep invalidation semantics, no deletion).
invalidate: {op:"invalidate", memo_ids:[...]} — invalidates entry by entry (contradicted/overturned).
score: {op:"score", memo_id, quality_score:1-10, reason} — adds a quality score, with reason going into meta.
promote: {op:"promote", content, kind:constraint/design/directive/preference, scope?:"project"/global/user, source_refs?:[source memo ids]} — distills and promotes into a direction-layer entry; the red lines apply as usual (a single entry ≤400 characters + bucket character quotas global 1200 / project 1500 / user 300; over the limit, that entry returns an error with usage; the safety scan likewise applies).
keep / noop: no action (may be omitted).
Idempotent: repeating invalidate/merge on an already-invalidated entry returns noop without error. After applying, it automatically refreshes the project's last_reconcile_at (the baseline for the volume-threshold soft hint).
Inputs: operations (required). Returns: object
memory_reconcile_candidatesA
On-demand organization · coarse screening: returns episodic-layer candidate groups + the direction-layer inventory + distillation material + operating instructions.
Memory organization = an explicit on-demand in-session action (CC is not resident; there is no background organization process). This tool performs only deterministic coarse screening (zero LLM) — the OS has no independent LLM credentials, so the judgment is made by you (the in-session agent calling the tool); the tool is responsible only for candidate coarse screening and operation application ("the agent computes, the tool stores").
Returns four blocks (project_id is automatically resolved from the current context):
candidate_groups: valid task_memos clustered by scope_path/task, with in-cluster BM25 pairwise similarity above the threshold paired into candidate groups (including each entry's full text + id). Make an LLM fine judgment per group: KEEP (keep all) / MERGE / INVALIDATE (contradiction invalidation) / NOOP (no action).
direction_inventory: the full text of all valid direction-layer entries — perform a staleness check on each (a referenced feature retired / version outdated / the world changed → propose invalidate).
promotion_candidates: high-frequency clusters recurring across tasks — material for distilling into direction-layer entries (the promote operation; source_refs point back to the source memos).
operation_guide: the four operations' semantics + the three reconcile rules (keep only the high-frequency and useful / point to the authoritative source rather than restating / prefer concise rewrites) + the hint to open ultracode when the volume is large.
After judging, hand the confirmed operations to memory_reconcile_apply for batch application.
Inputs: threshold, scope_path. Returns: object
memory_searchB
Search the memory store in AI Team OS.
Inputs: limit, query, scope, scope_id. Returns: object
model_config_getA
Get model governance state: available models (auto-discovered from local CC transcripts — the models you actually used), the current default startup model (~/.claude/settings.json "model" key), and per-model workflow agent usage over the last N days (orchestration charter observability: how much fable vs opus the fleet burned).
Inputs: usage_days. Returns: object
model_config_setA
Set the default startup model for new CC sessions (writes the "model" key in ~/.claude/settings.json; empty string removes the key, restoring CC's own default). Takes effect on NEW sessions.
Inputs: model (required). Returns: object
os_health_checkA
Check the health status of the AI Team OS API service.
Verifies the API service is running normally by accessing the team list endpoint, and reports one line of token-attribution coverage alongside it.
Returns: Health status info including API reachability, team count, and a usage-coverage summary (measured / dispatched per path, plus the narrowest link in the attribution chain)
Inputs: no named parameters. Returns: object
os_restart_apiA
Restart the AI Team OS FastAPI process safely (standardized restart flow).
Use this after backend code changes to pick up the new version without manually killing processes. The flow has three safety guards:
Busy-agent guard — refuses to restart while any agent is working (status=busy) unless force=True.
Port-pin guard — only ever restarts on the ORIGINAL port (default 8000, read from api_port.txt). If that port is held by an unrelated process it aborts rather than drifting to a random port.
Dead-before-spawn guard — waits until the old process has fully exited and released the port before spawning the new one; never spawns on a timeout.
If the API is already down, steps 2-4 are skipped and this becomes a plain "start" of the API on its configured port.
Inputs: force. Returns: object
project_createA
Create a new project with a default Phase automatically created.
⚠️ IMPORTANT: Projects are automatically registered by the OS when a CC session starts. You should NOT manually create projects unless the auto-registered project is missing. The root_path MUST match the current CC session's working directory — do NOT create projects pointing to other directories.
Inputs: name (required), root_path, description. Returns: object
project_deleteC
Delete a project.
Inputs: project_id (required). Returns: object
project_listA
List all projects in the system.
Returns: projects: List of all projects with id, name, description, root_path, etc.
Inputs: no named parameters. Returns: object
project_summaryB
Get a quick project summary: status (active/inactive), teams, top tasks.
Inputs: project_id. Returns: object
project_updateB
Update a project's name, description, or root_path.
Inputs: project_id (required), name, root_path, description. Returns: object
prompt_effectivenessA
Return effectiveness statistics for Agent templates.
Aggregates activity records to compute success rate, average duration, and top failure reasons per template. Also shows how many failure alchemy lessons are associated with each template.
Use this to identify which Agent templates perform well and which need prompt improvement.
Inputs: template_name. Returns: object
report_listA
List saved reports, optionally filtered by author, topic, or type.
Returns reports for the current project context, sorted newest-first.
Inputs: limit, topic, author, report_type. Returns: object
report_readB
Read the full content of a saved report by ID.
Inputs: report_id (required). Returns: object
report_saveA
Save a research/analysis report to the database.
Reports are stored in the database with project isolation — no filesystem permission needed. Reports appear on the Dashboard reports page automatically.
Inputs: topic (required), author (required), content (required), task_id, +2 more. Returns: object
task_createA
Create a new task in a project (not bound to a team).
Project-level tasks are attached directly to the project and visible on the project task wall. Suitable for planning-phase tasks not yet assigned to a team.
Inputs: title (required), tags, horizon, priority, +4 more. Returns: object
task_execution_traceA
Get a task's execution timeline — plain, or with checkpoints + stats.
The separate task_replay tool was folded in here 2026-07-27: both
answered "how did this task actually go", differing only in whether the
answer carried the derived summary. include_stats=True is the old
replay view.
Inputs: task_id (required), include_stats. Returns: object
task_list_projectA
Get the task wall — project-scoped by default, team-scoped on request.
This is the single task-wall entry point (the team-only taskwall_view
was folded in here 2026-07-27): pass team_id to narrow the wall to one
team, leave it empty to get every team under the project plus the
project-level tasks that belong to no team.
Default response is a COMPACT projection (marked by view="compact" + hint — it is a trimmed view, NOT missing fields): each task row keeps id/title/priority/status/score/assigned_to/tags + 80-char desc excerpt (plus result/depends_on/subtask_count when present). Full details of a single task: task_status(task_id) / task_memo_read(task_id).
Inputs: limit, fields, offset, status, +5 more. Returns: object
task_memo_addB
Add a memo record to a task — for tracking progress, recording decisions, marking issues.
Inputs: content (required), task_id (required), author, memo_type, +1 more. Returns: object
task_memo_readA
Read all memo records for a task — read before picking up a task to understand historical progress.
Inputs: task_id (required). Returns: object
task_runA
Put a task on a team's wall. Nothing executes it — an Agent has to pick it up.
The name is historical: there was once a worker pool that would "run" the task. That pool is retired; this tool only creates the row. Dispatch is yours to do (Agent(...) / SendMessage), and the sub-agent then writes progress back with task_memo_add.
Priority and horizon drive the task wall's ordering, so set them here — the old docstring told callers to "set priority and horizon" while the signature had no such parameters, and any value passed was silently dropped (fixed 2026-07-27).
Inputs: team_id (required), description (required), tags, model, +5 more. Returns: object
task_statusA
Query the current status of a task.
Inputs: task_id (required). Returns: object
task_updateB
Update a task's fields (partial update — only provided fields are changed).
Inputs: task_id (required), tags, title, result, +4 more. Returns: object
team_briefingA
Get a team panoramic briefing — understand full team status in one call.
Returns team info, member status, recent events, recent meetings, pending tasks, and action suggestions.
Default response is a COMPACT projection (view="compact" + hint - trimmed, NOT missing fields): the roster follows the same live-first / offline-digest split as agent_list, event payloads collapse to a one-line derived summary, and pending tasks use the task-wall row projection. Measured 20,521 chars on a 173-member workflow team before projection.
Inputs: team_id (required), limit, fields, include_offline, +1 more. Returns: object
team_closeA
Close (complete) a team — sets team status to completed and marks all busy agents as offline.
Use this when the team's mission is fully done. Members are not deleted, but their status is set to offline automatically.
team_id is REQUIRED — closing a team is not reversible from the tool side, so it never falls back to auto-resolving "the active team".
Inputs: team_id. Returns: object
team_deleteA
Delete a team. team_id is REQUIRED — never auto-resolved.
Inputs: team_id (required). Returns: object
team_listA
List teams — active ones by default, newest first.
Default response is a COMPACT projection (view="compact" + hint - trimmed, NOT missing fields): each row keeps id / name / status / kind / project_id / created_at. The unfiltered full-row list measured 148,173 chars across 316 teams on the real install, past the MCP result ceiling; teams accumulate one row per Workflow run and per CC session, so the list only ever grows.
Inputs: limit, fields, offset, status. Returns: object
team_statusA
Get a team's status summary — team info + members + active tasks.
Hits /status (not the bare team row): the plain team endpoint carries no member or task fields, so callers asking "what is this team doing" got a row with nothing actionable in it.
Default response is a COMPACT projection (view="compact" + hint - trimmed, NOT missing fields). The upstream summary embeds the entire roster and every active task as full rows, which measured 170,331 chars on a real 173-member workflow team and 69,660 on a 51-member session team - both past the MCP result ceiling, i.e. the tool simply did not work on the teams that most needed it. Members and tasks are projected here, offline members fold into a count plus digest, and the API route and Dashboard JSON are untouched.
Inputs: team_id (required), limit, fields, include_offline, +1 more. Returns: object
unified_searchA
Search across all OS knowledge: task memos, reports, and tasks.
Three-arm RRF fusion (k=60): BM25 full-text (Chinese bigram native), knowledge-graph fanout (queries containing wf_/commit/uuid IDs pull in everything linked to them), and exact ID-prefix / title match.
Use this to recall past work: "how was the ownership iron rule fixed", "wf_d01f207f", "stderr blind spot", commit hashes, etc.
Inputs: query (required), limit, project_id. Returns: object
usage_attributionA
Report token usage together with how much of it can actually be accounted for.
Read-only. Every token number comes back alongside its denominator (dispatches_total) and its metric label, because a token count without those two is meaningless: this repo carries two orthogonal metrics that measure 5-25x apart, and sub-agent usage coverage is currently far below 100%. There is deliberately no total field — 95.6% of the four layers is cache_read, so a lone total is just a cache-read count in disguise.
Inputs: days, scope, scope_id, population. Returns: object
verify_completionA
Verify whether a task is truly complete.
Checks:
Task status == completed
At least one memo record exists (task_memo_add was called)
A summary-type memo exists (task_memo_add type='summary' was called)
Use this after an agent reports completion to ensure all artifacts are present.
Inputs: task_id (required). Returns: object
workflow_getA
Get a Workflow run's archive (totals + summary/result + per-agent telemetry).
Default response is a COMPACT projection (view="compact" + hint - trimmed, NOT missing fields). A big run's full archive does not fit: a real 166-agent run measured 268,753 chars, of which prompt_preview and result_preview alone were 53%. Compact keeps every scalar on the run, excerpts its result/summary, and projects the agent rows down to identity / phase / cost / state plus the os_agent_id drill-down key.
Inputs: wf_id (required), limit, fields, include_agents. Returns: object
workflow_listB
List CC ultracode/Workflow runs tracked by the OS observability layer.
Inputs: limit, status, project_id. Returns: object
workflow_reconcileA
Reconcile finished Workflow runs from disk into the OS (repair after OS was offline).
Scans ~/.claude/projects/<slug>/*/workflows/wf_*.json and ingests each run's
full telemetry (tokens/duration/per-agent). Idempotent — safe to re-run.
Inputs: session_id, project_dir. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 113 tools
Many tool families are clearly separable (team_, task_, meeting_, memory_, briefing_, workflow_), but there are dense overlap clusters where an agent must read long docstrings to choose. In particular ecosystem_scan / ecosystem_scan_periodic / ecosystem_index_update / ecosystem_refresh / ecosystem_rebuild_queries / ecosystem_diff_period vs ecosystem_index_diff_latest all answer 'refresh or diff the repo index', and team_status vs team_briefing vs context_resolve all answer 'what is this team doing'. Search is also split across unified_search, memory_search, link_query, and link_trace in ways that are only resolvable from prose.
The set is overwhelmingly snake_case with strong, predictable domain prefixes (team_, agent_, task_, meeting_, ecosystem_, memory_, report_, briefing_, workflow_) and mostly verb_noun ordering. A few outliers break the verb_noun shape (decision_log, prompt_effectiveness, usage_attribution, os_health_check, fleet_dispatch, verify_completion), but they remain readable and domain-locatable. The conventions are consistent enough that tool families are recognizable at a glance.
113 tools is far past the practical ceiling, and the ecosystem family alone accounts for roughly 40 of them, including sub-agent worker plumbing (ecosystem_claim_shallow, ecosystem_release_claim, ecosystem_apply_quality_review, ecosystem_link_debate_meeting, ecosystem_link_integration_task) that a normal agent session never calls. The domain is genuinely broad (projects, teams, tasks, meetings, memory, workflows, ecosystem), which keeps this from being a pure 1, but many tools clearly do not earn their place on the default surface.
Lifecycle coverage is unusually thorough: full CRUD on projects, create/update/status/list/memo/trace on tasks, meetings with messages and attendance, memory with add/invalidate/list/reconcile, reports, briefings, and a staged ecosystem pipeline from scan to deep review to integration. Gaps are minor: no task_delete, no meeting_delete, no report_update/delete, and no direct memory_update (only invalidate/reconcile), all of which agents can work around.
Related MCP Connectors
Shared memory and mail for your AI agents. Verified with Claude Code; other MCP clients in testing.
One MCP endpoint for Claude, GPT & Gemini: 100+ tools + no-code connectors + agent workers.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Persistent AI memory shared across Claude, ChatGPT, coding agents, and compatible MCP clients.
Related MCP Servers
- AlicenseAqualityDmaintenanceWraps Claude Code as tools for MCP clients, enabling autonomous coding tasks via a 4-tool lifecycle with session management, async polling, and permission controls.479 npm21MIT
- AlicenseAqualityDmaintenanceAn MCP server that enables Claude to orchestrate multiple autonomous Claude Code agents working in parallel across different projects, with tools to dispatch, monitor, and manage their progress.659 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables multi-agent AI collaboration by connecting Claude Code, OpenAI Codex, and Google Antigravity, providing cross-model code reviews, independent second opinions, and autonomous validation through MCP tools.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables Claude Code to design and run a hierarchical company of role-specific agents with persistent memory, vetted GitHub skills, enforced reviews, and auditable multi-agent orchestration over MCP.2MIT