aide.sh

Your commander of agents.

aide turns any Claude Code project into an agent with one file. Multiple agents? One HQ to command them all.

Why aide?

The token problem: A frontier Claude Code session has a finite context window. Every subtask handled inline eats tokens. With 5 agents doing 50k tokens each, you burn 250k of context — most of it irrelevant to the next task.

aide's answer: Process isolation. aide dispatch runs work in separate claude -p processes. The frontier only sees a bounded summary. 50k tokens of work → ~500 tokens of output.

Quick taste

# Install
cargo install aide-sh

# Turn any project into an agent
cd ~/projects/code-reviewer
aide init
# ✓ Created Aidefile

# Run a task
aide run . "Review PR #42 and leave comments"
# ✓ Task completed (23,847 tokens used)

# Team mode: coordinate multiple agents
aide init --team
# ✓ Created crossmem-hq/

aide dispatch crossmem-rs "fix parser bug"
aide dispatch crossmem-web "update dashboard"
aide wait crossmem-rs#42
# ✓ Done (18,293 tokens)

What's an Aidefile?

[persona]
name = "Senior Reviewer"
style = "direct, cares about edge cases"

[budget]
tokens = "100k"
max_retries = 3

[trigger]
on = "issue"

[vault]
keys = ["GITHUB_TOKEN"]

[skills]
include = ["code-review"]

Drop this into any project. That's it — it's an agent now.

What aide handles

ConcernSingle agentTeam (HQ)
BudgetToken limits, auto-retryPer-agent budgets
VaultEncrypted secrets → env varsHQ controls who gets what
MemoryPer-agent compactionCentralized at HQ, agents stateless
SkillsInjected at spawnPolicy controls injection
RoutingPolicy rules or frontier fallback
TelemetryToken usage, success rate, events

What aide does NOT do

aide doesn't replace Claude Code. Claude Code does all the thinking, coding, and reasoning. aide manages the lifecycle — who works on what, with what context, under what budget.

Aidefile is to Claude Code what Dockerfile is to Linux.

aide vs Claude Code native

FeatureClaude Code (native)aide (adds)
Run a taskclaude -p "task"aide run agent "task" — with budget + vault
Subagents.claude/agents/*.mdaide dispatch — token-isolated processes
Memory~/.claude/projects/*/memory/HQ/memory/ — centralized SSOT
Secretsenv vars, manualVault — encrypted, gated by HQ
Routingyou decidePolicy — deterministic rules

Next steps