easycrews Documentation

v1.1.1 · Single-machine lightweight collaboration bus for Claude Code, Codex, Antigravity (agy), and Gemini CLI.

1. 60-Second Quickstart

Requirements: Node.js ≥ 22.13.0 on macOS (arm64/x64) or Linux (arm64/x64), plus at least one authenticated coding agent.

# 1. Install globally (prebuilt Go ec-hook binary selected automatically)
npm install -g easycrews

# 2. Initialize inside your project directory
cd /path/to/your-repo
ec init

# 3. Verify all 4 vendors & daemon health
ec doctor
ec scan

ec init idempotently merges project-local .mcp.json, .claude/settings.local.json hooks, and auto-generates .agents/skills/easycrews/SKILL.md + .claude/skills/easycrews/SKILL.md so agents immediately understand the collaboration protocol without manual prompting.

2. Zero-Standby Desktop App & IDE Flow

When Codex Desktop App, Antigravity IDE, or any CLI session calls ask_lead, easycrews holds a lightweight long-poll inside the local daemon (default 50s) and ignores any older unread messages. As soon as your Lead calls reply_worker, the fresh reply is returned directly inside the same ask_lead call — zero manual ec wait and zero desktop writer lock.

# Lead session (Claude Code) runs zero-idle-token background listener:
ec wait lead

# Worker (Codex Desktop App / Antigravity / Gemini) simply calls ask_lead:
# -> Lead wakes instantly, replies via reply_worker
# -> Worker receives the reply directly in ~4s without leaving its native app

3. 4-Vendor Setup Notes

  • Claude Code: Primary Lead entry. Supports 2.6 ms Go SessionStart rehydration on compact/resume, ec wait lead zero-idle-token standby, and turn-based background wake (claude -p --resume).
  • Codex (Desktop App & CLI): Open Desktop App threads stay lock-free via ask_lead direct replies; closed threads or headless workers wake automatically via codex exec resume with 60m default turn budget.
  • Antigravity (agy): Native AgyAdapter supports agy --resume with live model, effort, and mode (plan | accept-edits | auto) switching, plus automatic session discovery in ec scan.
  • Gemini CLI: Supports ACP background workers (--acp) and interactive MCP ask_lead / wait_for_message with 60m default turn timeout.

4. CLI Command Reference

ec daemon start|stop|status     # Manage ~/.easycrews/daemon.sock (0600)
ec init [--cwd dir] [--dry-run] # Write .mcp.json, hooks, and project SKILL.md
ec doctor                       # Probe claude / codex / agy / gemini health
ec scan [projectRoot]           # Discover existing native sessions across all 4 vendors
ec adopt --vendor <v> --name <n> [--role lead|worker] [--session <id>]
ec status [projectRoot]         # Inspect commitments, DAG tasks, and live workers
ec wait <workerId|lead>         # Zero-idle-token event-driven wakeup listener
ec attach <workerId>            # Jump into a worker's native interactive terminal
ec gc [--dry-run]               # Safe two-tier disk cleanup (never touches external caches)
ec license                      # View local Free / Pro tier and limits
ec activate <EC1_KEY>           # Activate an offline Ed25519 Pro license key
ec deactivate                   # Remove ~/.easycrews/license.key

5. Safe Disk GC & Privacy Boundaries

  • Class A (Auto-cleaned): Only easycrews' own ~/.easycrews/cache, rotated logs, SQLite WAL truncation, and archived completed messages. Active commitments and open tasks are never deleted.
  • Class B (Read-only advisory): ~/.claude, ~/.codex, ~/.gemini caches and dirty git worktrees are strictly never auto-deleted (neverDeleted: true).
  • Global configs untouched: easycrews never modifies your global ~/.claude, ~/.codex, or ~/.gemini settings.

6. Offline Ed25519 License Activation

After purchasing Pro via Stripe on easycrews.com, you receive an offline-signed EC1.<payload>.<sig> key. Activate it locally with zero network requests:

ec activate "EC1.<your-signed-key>"
ec license

7. Troubleshooting

macOS Keychain tip: Always run ec daemon start from a local macOS GUI terminal (not over SSH), otherwise macOS blocks Keychain access for background agy sessions.
  • Long tasks timing out? Override the default 60-minute limit via EASYCREWS_TURN_TIMEOUT_MS (set 0 for unlimited).
  • Need a clean restart? Run ec daemon stop && ec daemon start — your SQLite ledger and worker handles re-hydrate automatically.