aide run
Execute a task in an agent's directory.
Usage
aide run <agent> <task>
- agent — registered name or path to directory with Aidefile
- task — natural language task description
Examples
# By registered name
aide run reviewer "Review PR #42"
# By path
aide run ./my-agent "Summarize recent changes"
aide run ~/projects/ops "Check server health"
What happens
- Resolve agent name → directory path
- Load and parse Aidefile
- Decrypt vault secrets (if configured)
- Run
on_spawnhooks - Loop: invoke
claude -pwith the task- Track token usage after each invocation
- Stop if budget exhausted or task complete
- Run
on_completehooks - Check memory compaction threshold
Output
▸ Running task in ~/projects/code-reviewer
agent: Senior Reviewer
budget: 100000 tokens
✓ Task completed (23,847 tokens used)
Or on budget exhaustion:
✗ Task incomplete (100000 tokens used, budget exhausted)