Files
faumarayandClaude Sonnet 5.5 8f234e0051 voelin-gpui: the GPUI front end's crate on gpui-kit 0.8.1, a window titled Voelin that opens and closes
The second front end of plan section 6 step 3: crates/voelin-gpui with
the binary voelin-gpui, in the workspace's members and default-members next
to voelin-ui (two binaries until parity; voelin-ui stays the app).
gpui-kit is a workspace dependency pinned `=0.8.1` (the version the three
spikes were rebuilt on in the commit before). The crate asks for gpui-kit
and the app's name and id from voelin-platform (APP_NAME as the window's
title, APP_ID as its app id); `run()` opens one window whose
`on_window_should_close` ends the app, and returns the error when the
window cannot be opened (no display).

Checked on Xvfb :97 (headless.sh: openbox, a private bus, lavapipe through
wgpu's Vulkan backend, state under .scratch): the debug binary opens a
window named "Voelin" (xdotool search) in 0.3 s and ends with exit code 0
when openbox sends the close request (Alt+F4).

Cargo.lock: 279 more package entries (208 new names; no existing version
moved, other versions of 61 names were added beside theirs): GPUI's
gpui-pre family, wgpu 30, gpui-component with its Markdown, HTML, chart and
table support, cosmic-text, the Linux platform crates. The root workspace
already carried Slint's and the codecs' dependencies, so this is 195 new
packages on Linux, not the ~1,000 of the spikes' lock (which has the root's
packages too). deny.toml and about.toml name the two licences no crate of
the tree had: 0BSD (enum-iterator and enum-iterator-derive, under
gpui-component) and CC0-1.0 (notify 8, the file watcher of gpui-component,
and tiny-keccak, under the X input method client of gpui-pre-linux); no
other licence, no advisory, no ban and no source is new (`cargo deny
--locked --workspace check`: advisories, bans, licenses and sources ok).
THIRD_PARTY_NOTICES.md is regenerated (scripts/notices.sh, cargo-about
0.9.2, no warning; `--check` clean). There is no new clarification: cargo-about
finds every text.

Docs: CHANGELOG, docs/ui.md (the structure tree names the crate and the
intro the second front end), docs/building.md (the dependency list: Vulkan
or OpenGL at run time, what GPUI loads by name, a window manager on X11; no
new development package), README (the crate list and the run command) and
CLAUDE.md, which had no crate sentence (it only says "own crates"): it now
says there are two front ends on one engine and what they share.

Checked on Rust 1.95.0: cargo fmt and cargo clippy -D warnings --no-deps
over the own crates (all targets); cargo deny; scripts/notices.sh --check.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 06:46:59 +03:00

101 lines
5.1 KiB
Markdown

# 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:<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 / 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.