# Multi-Agent Lead Workflow (Claude Code, Codex & AGY)

> Plan and verify in Claude Code or Antigravity (agy), and delegate implementation to Codex (via paseo) or agy workers with automatic 429 recovery, per-task workdirs, and a compaction-resilient disk ledger.

Multi-Agent Lead Workflow (Claude Code, Codex & AGY) is a paid AI agent skill on Agensi by roomlab, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $8 (one-time purchase)
- Creator: [roomlab](https://www.agensi.io/creators/roomlab)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-11-30
- Security: scan passed (2026-11-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/multi-agent-lead-workflow-claude-code-codex-agy
- Tags: ai-agents, code-review, automation, codex, claude-code, multi-agent, antigravity, agy

## About this skill

A production-tested, model-agnostic multi-agent Lead/Worker orchestration workflow for Claude Code, Codex (via paseo), and Google Antigravity (agy).

How it works:
- Lead (Claude Code or Antigravity agy) handles requirements, codebase research, planning, clarifying questions, task decomposition, and independent git-diff & test verification — never editing application code directly.
- Workers execute all implementation, edits, tests, and rework via either:
  1. paseo backend: Codex or Claude Code workers (configurable tiers via LEAD_WORKER_FAST / LEAD_WORKER_STRONG, explicit provider/model, or any paseo --profile) plus an optional lightweight supervisor (--supervised).
  2. agy backend: Google Antigravity CLI (agy --print / --resume) working standalone without paseo, preserving conversation context across rate-limit retries and rework.

Included engineering safeguards:
- Automatic 429 rate-limit exponential backoff & resume + hung-stream interruption (scripts/watch.sh)
- Isolated per-task working directories (.tmp/.agent-lead/<slug>/) with TASK.md logs and merge protection (scripts/workdir.sh)
- Compaction-resilient disk ledger (.agent-lead/ledger.md) — zero Claude Code hooks or settings.json changes required
- Capped rework escalation ladder (diagnoses root cause & escalates to strong tier after 2 failed rounds)
- Paseo Claude Code session-trap protection & JSONL branch recovery (scripts/check-session.sh, scripts/session_branches.py)
- Evidence-led research & comparison loop (references/research.md)

Attribution: Workflow methodology inspired by how-to-be-a-chamberlain (ssyram/prompts), substantially engineered with dual-backend (paseo + agy) CLI orchestration scripts, watcher automation, and session-isolation diagnostics.

## Requires

- jq
- Perl
- Git
- Python 3
- Bash
- paseo or agy CLI
- Optional: paseo supervisor model (for --supervised mode)

## Known limitations

Supervised dispatch (--supervised) and Claude Code session-isolation audit scripts apply to the paseo backend; standalone agy mode runs direct dispatch and background watching without needing paseo.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Multi-Agent Lead Workflow (Claude Code, Codex & AGY) skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What specific problems does this skill solve for complex coding projects?

This skill addresses the issues of context exhaustion, rate limits, and verification drift that occur when managing complex coding tasks across multiple files. It does this by decoupling high level planning from background implementation through a structured Lead and Worker orchestration.

### What software or external tools are required to use this skill?

To use this skill, you need the paseo or agy CLI installed and authenticated in your environment. It also relies on standard Unix tools including bash, python3, and git for workspace isolation and tracking.

### What specific files and outputs are created when this skill is active?

The skill generates a .agent-lead workspace folder containing a task ledger and a plan.md file for requirements. It also produces git diffs and test results that are audited by the Lead agent before work is accepted.

### Are there any restrictions on what the Lead agent can do or specific environment limitations?

The Lead agent is strictly prohibited from editing application code directly to maintain boundaries. Additionally, the skill requires a compatible backend like paseo or agy to be available in the environment to dispatch background workers.

### How do I instruct my agent to begin using this skill?

You can ask your agent to initialize the environment using the provided activation script to scaffold the workspace. From there, you can instruct it to plan the architecture, dispatch background workers for specific tasks, and monitor progress until verification.

### How does the skill ensure that progress is not lost during long tasks?

This skill maintains a compaction resilient disk ledger and per task working directories. This structure ensures that high level planning is not polluted by implementation details and that state persists even during long running builds or across multiple sessions.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
