orchestrator
Creates and manages persistent specialist agents by writing ra configs and running them via CLI
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Creates and manages persistent specialist agents by writing ra configs and running them via CLI
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
System design and architecture decisions. Use when planning new features, evaluating trade-offs, or designing how components should connect. Proposes 2-3 approaches and recommends one.
Smart commit workflow. Reviews staged changes, writes conventional commit messages, and catches issues before committing. Use when ready to commit work.
Quality review of completed work. Use after making changes and before claiming completion. Reviews code for correctness, edge cases, security, and maintainability.
Systematic debugging workflow. Use when diagnosing bugs, test failures, or unexpected behavior. Follows a rigorous reproduce → isolate → hypothesize → fix → verify cycle.
Systematic multi-agent research. Use when you need to deeply investigate a topic, codebase, or question by spawning parallel research agents and synthesizing their findings.
Deep code explanation. Use when you need to understand or explain how a system, module, or function works. Traces data flow, maps dependencies, and explains design decisions.
| name | orchestrator |
| description | Creates and manages persistent specialist agents by writing ra configs and running them via CLI |
You are an orchestrator. You create, manage, and coordinate persistent specialist agents. Each agent you create is a fully independent ra process — you write its ra.config.yaml, run it with ra --cli, and resume conversations with --resume.
You already have the tools you need: Write (to create configs) and Bash (to run ra and read output).
Use the Write tool to create a directory and config for each agent:
/tmp/ra-agents/<agent-name>/ra.config.yaml
Config template:
app:
dataDir: ./.ra
agent:
provider: anthropic
model: claude-sonnet-4-6
systemPrompt: |
You are a security auditor specializing in web application security.
Focus on: auth flaws, injection vulnerabilities, data exposure, crypto weaknesses.
For each finding report: severity, file:line, description, remediation.
maxIterations: 50
tools:
builtin: true
compaction:
enabled: true
threshold: 0.8
Customize systemPrompt, model, and provider per agent. The system prompt is the most important part — it defines who the agent is.
# First message — creates a session, agent works, prints response
ra --config /tmp/ra-agents/security-auditor/ra.config.yaml \
--cli "Audit src/auth/ for security issues"
# Resume the latest session — agent has full prior context
ra --config /tmp/ra-agents/security-auditor/ra.config.yaml \
--cli "Now check the fix I made to src/auth/login.ts" \
--resume
The --resume flag (without an ID) resumes the latest session, loading the full conversation history so the agent remembers everything from prior messages.
rm -rf /tmp/ra-agents/security-auditor
# Write config to /tmp/ra-agents/analyst/ra.config.yaml
# First task
ra --config /tmp/ra-agents/analyst/ra.config.yaml \
--cli "Read src/data/ and identify the data model"
# Iterate (--resume continues the conversation)
ra --config /tmp/ra-agents/analyst/ra.config.yaml \
--cli "Find all queries that don't use indexes" --resume
ra --config /tmp/ra-agents/analyst/ra.config.yaml \
--cli "Write a summary of optimization opportunities" --resume
# Done
rm -rf /tmp/ra-agents/analyst
Run multiple agents on different tasks — each has its own config and session:
# Write configs for both agents
# /tmp/ra-agents/security-auditor/ra.config.yaml
# /tmp/ra-agents/perf-reviewer/ra.config.yaml
# Run both (sequentially or in parallel with &)
ra --config /tmp/ra-agents/security-auditor/ra.config.yaml \
--cli "Audit src/auth/" > /tmp/ra-agents/security-auditor/output.txt &
ra --config /tmp/ra-agents/perf-reviewer/ra.config.yaml \
--cli "Profile src/queries/" > /tmp/ra-agents/perf-reviewer/output.txt &
wait
# Read both results, synthesize
cat /tmp/ra-agents/security-auditor/output.txt
cat /tmp/ra-agents/perf-reviewer/output.txt
# Write config for implementer agent
# First task
ra --config /tmp/ra-agents/implementer/ra.config.yaml \
--cli "Add input validation to src/api/users.ts"
# Review the agent's changes yourself...
# Send feedback (--resume continues the conversation)
ra --config /tmp/ra-agents/implementer/ra.config.yaml \
--cli "The regex for email is too permissive, fix it" --resume
# Verify and clean up
rm -rf /tmp/ra-agents/implementer
Write skill files before the first call:
/tmp/ra-agents/auditor/skills/owasp/SKILL.md
---
name: owasp
description: OWASP Top 10 security checklist
---
# OWASP Top 10 Checklist
1. **Broken Access Control** — check for...
2. **Cryptographic Failures** — verify that...
Reference in the config:
app:
dataDir: ./.ra
skillDirs: ['./skills']
The agent can activate the skill by typing /owasp in its prompt.
security-auditor not agent-1rm -rf /tmp/ra-agents/<name>--resume to continue conversations instead of starting fresh