# 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. Two front ends run on one engine until the second reaches parity: `crates/voelin-ui` (Slint, the `voelin` binary, the app today) and `crates/voelin-gpui` (GPUI on an exactly pinned `gpui-kit`, the `voelin-gpui` binary, under construction); `crates/voelin-ui-vm` holds what they share, the view models and the state, with no UI toolkit (`docs/ui.md`). ## 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:/.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 / xhigh | 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 / xhigh | 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.