claude: multi-agent orchestration policy, MAO agents and session defaults
Root CLAUDE.md scopes the orchestration rules to the main session (decompose, delegate, track attempts, escalate after 3 failures, review chain with fresh Sonnet and Opus reviewers, Gitea instead of GitHub). .claude/agents/ defines mao-designer (opus/max), mao-implementer (sonnet/xhigh), mao-sonnet-reviewer (sonnet/xhigh), mao-opus-reviewer (opus/max) and mao-helper (haiku). .claude/settings.json sets the session default model (fable) and effort (xhigh: this build's settings schema has no "max" for effortLevel; the agents that need max carry it in their frontmatter). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
5ca22fbe66
commit
011044d9d0
7 files changed
+321
No files matched your search
@@ -0,0 +1,94 @@
|
||||
# Voelin — working agreements for Claude Code
|
||||
|
||||
Voelin is a Rust voice/chat client that is becoming a complete alternative to
|
||||
TeamSpeak 6 and Discord. The project is being split into four repositories
|
||||
(VoelinClient, VoelinProtocol, VoelinServer, VoelinGateWay) under the Gitea
|
||||
org `Voelin`; the current plan lives in the approved plan file referenced in
|
||||
`docs/` once committed. Keep the Rust toolchain in `rust-toolchain.toml`,
|
||||
`cargo fmt` (hard tabs, `rustfmt.toml`) and `cargo clippy -D warnings` on the
|
||||
project's own crates (`scripts/own-crates.sh`) green.
|
||||
|
||||
## Hosting: Gitea, not GitHub
|
||||
|
||||
- The source of truth is **https://git.faumaray.com** (Gitea). Pull requests,
|
||||
issues, releases, labels and repository creation go through the **Gitea MCP
|
||||
connector** (`mcp__claude_ai_gitea__*`). Do not use `gh`, the GitHub API or
|
||||
GitHub Actions assumptions; `.github/workflows` are kept only as reference.
|
||||
- Git remotes are `gitea@git.faumaray.com:<owner>/<repo>.git`. CI runs on
|
||||
Gitea Actions (`.gitea/workflows`).
|
||||
- Report when the connector is unavailable instead of silently falling back
|
||||
to another host or to raw `curl`.
|
||||
|
||||
## Multi-agent orchestration (MAO) policy
|
||||
|
||||
**Scope: these orchestration rules apply only to the MAIN SESSION.** A
|
||||
subagent that reads this file performs its assigned role (design, implement,
|
||||
review, help) and does not delegate it again or spawn further orchestration.
|
||||
|
||||
### Roles
|
||||
|
||||
| Agent | Model / effort | Job |
|
||||
|---|---|---|
|
||||
| main session | (settings) | **Orchestrator**: decomposes work, delegates, tracks progress and attempt counts, resolves escalations, reports results. Delegates implementation, investigation, testing and review rather than doing them inline. |
|
||||
| `mao-designer` | opus / max | Designs, acceptance criteria, escalation handling |
|
||||
| `mao-implementer` | sonnet / xhigh | Implements, runs checks, self-reviews; escalates after 3 failed attempts |
|
||||
| `mao-sonnet-reviewer` | sonnet / xhigh | Fresh, independent implementation review |
|
||||
| `mao-opus-reviewer` | opus / max | Fresh, final independent review of substantive code changes (correctness, architecture, unresolved risks) |
|
||||
| `mao-helper` | haiku | Focused file searches, summaries, routine git operations within the user's authorization |
|
||||
|
||||
### Before delegating
|
||||
|
||||
Define, in the delegation prompt: the **objective**, the **scope** (what is
|
||||
in and out, which files), the **acceptance criteria** (checks that must pass,
|
||||
behaviour that must hold), the **relevant files** and the **expected report**.
|
||||
Use named agents (`name:` in the Agent call) so collaborators can address
|
||||
each other.
|
||||
|
||||
### Parallelism
|
||||
|
||||
Parallelize **independent** work only. Never give two agents the same files
|
||||
to edit at the same time; split by crate, module or file set, or serialize.
|
||||
|
||||
### Implementation and review chain
|
||||
|
||||
1. `mao-implementer` implements, runs the relevant checks (`cargo fmt
|
||||
--check`, `cargo clippy -D warnings` on the touched crates, the crate's
|
||||
tests, and the integration/smoke scenarios named in the task) and
|
||||
self-reviews before reporting.
|
||||
2. A **fresh** `mao-sonnet-reviewer` reviews the implementation independently.
|
||||
3. For substantive code changes, a **fresh** `mao-opus-reviewer` performs the
|
||||
final independent review. Do not reuse the design agent's conversation
|
||||
for this review; start a new agent.
|
||||
4. The orchestrator decides: accept, send back with the findings, or escalate.
|
||||
|
||||
### Attempts and escalation
|
||||
|
||||
- Track failed attempts **per task**. An *attempt* is a proposed solution
|
||||
checked against the acceptance criteria, not an individual tool call.
|
||||
- After **3 unsuccessful implementation attempts**, stop Sonnet retries and
|
||||
escalate to `mao-designer` (Opus) with the evidence: what was tried, the
|
||||
failing check output, the diff.
|
||||
- After **3 unsuccessful design/correction attempts by Opus**, escalate to
|
||||
the main orchestrator.
|
||||
- The orchestrator must then **change the approach, narrow the task, or ask
|
||||
the user for the missing input**. Do not reset counters and repeat the
|
||||
same loop.
|
||||
|
||||
### Communication
|
||||
|
||||
- Use `SendMessage` for direct agent-to-agent or agent-to-orchestrator
|
||||
messages when it is available. Use `ListAgents` only if it is actually
|
||||
exposed; otherwise address agents by their known names, or relay through
|
||||
the orchestrator.
|
||||
- Reports (every agent, every task) must include: **result**, **changed
|
||||
files**, **checks actually run** (with their outcome), **unresolved
|
||||
issues**, and the **attempt count**.
|
||||
- Report unavailable agents, models or tools explicitly, together with the
|
||||
fallback that was used (for example "mao-opus-reviewer unavailable, review
|
||||
done by mao-sonnet-reviewer").
|
||||
|
||||
### Models and effort
|
||||
|
||||
Model and effort live in `.claude/settings.json` (session default) and in
|
||||
each agent's frontmatter (per role). Do not set `CLAUDE_CODE_EFFORT_LEVEL`
|
||||
globally: the roles need different effort levels.
|
||||
Reference in new issue
Block a user