agentleFS
yuanchuanyuanchuan/aivo/CLAUDE.md

aivo

CLAUDE.md194 starsChanged 3 months agoMITView on GitHub

aivo is a Rust CLI providing unified access to multiple AI coding assistants (Claude, Codex, Gemini, OpenCode, Pi) with local API key management. Supports OpenAI-compatible providers, GitHub Copilot, OpenRouter, Ollama, native APIs, and OAuth accounts. src/main.rs → src/commands/* (one module per subcommand: run, start, code, keys, serve, …) → src/services/* (key/session/stats stores, process launching, provider routers, wire-format bridges Anthropic ⇄ OpenAI ⇄ Gemini, OAuth flows). Keys are AES-256-GCM encrypted in config.json under $AIVO_CONFIG_DIR (default ~/.config/aivo). Sentinel base_url values "copilot"/"ollama" mark…

  • Installs packages

The file

We split this CLAUDE.md into the rules it gives an agent

4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    After code changes, cargo build && cargo install --path .

    line 13
  2. Very specific:

    No hardcoded provider/model data — derive from /v1/models or the models.dev sync.

    line 37
  3. Very specific:

    Never terminal.clear() in the code TUI.

    line 38
  4. Very specific:

    Never modify a launched coding agent's own config files — aivo injects env vars and override dirs instead.

    line 41

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

CLAUDE.md

aivo is a Rust CLI providing unified access to multiple AI coding assistants (Claude, Codex, Gemini, OpenCode, Pi) with local API key management. Supports OpenAI-compatible providers, GitHub Copilot, OpenRouter, Ollama, native APIs, and OAuth accounts.

Build & Test

cargo build                                        # Debug build
cargo test --features __internal_test_fast_crypto  # All tests (reduced PBKDF2 iterations)
cargo clippy && cargo fmt                          # Required clean before committing
  • After code changes, cargo build && cargo install --path . --debug before testing the binary — never test a stale build.
  • Tests are hermetic: a pre-main sandbox (tests/support/mod.rs) points $HOME at target/.aivo-test-home/<pid>, so tests can never touch the real config.

Git & Release

  • Squash merge to main; never commit unless asked.
  • Release: bump version in Cargo.toml, fmt/clippy/test, stage only Cargo.toml + Cargo.lock + CHANGELOG.md (never git add -A), commit chore: release vX.Y.Z, push main, wait for CI green on all three runners (#[cfg(windows)] code is invisible to Linux/macOS clippy), then tag. Never tag before CI is green — a failed release can't be re-cut on the same tag.

Architecture

src/main.rs → src/commands/* (one module per subcommand: run, start, code, keys, serve, …) → src/services/* (key/session/stats stores, process launching, provider routers, wire-format bridges Anthropic ⇄ OpenAI ⇄ Gemini, OAuth flows).

Keys are AES-256-GCM encrypted in config.json under $AIVO_CONFIG_DIR (default ~/.config/aivo). Sentinel base_url values "copilot"/"ollama" mark special provider types. Exit codes: 0 success, 1 user error, 2 network, 3 auth.

Conventions

  • Match existing CLI help text formatting exactly; verify interactive-UI edge cases (keyboard handling, empty input, single item, long strings).
  • Comments: concise, why-only. Don't comment obvious code.
  • Restate the question in fully concrete terms, making every implicit detail explicit. Then answer.

Anti-goals

Settled constraints — don't re-add or work around. Greppable ones are enforced by tests/contracts.rs; extend its lists when adding here.

  • No hardcoded provider/model data — derive from /v1/models or the models.dev sync.
  • Never terminal.clear() in the code TUI; no progress bars or emoji in TUI output.
  • /review, /vision, and /detach commands are removed, as is review mode (the per-edit diff-approval gate); no OSC 11 theme auto-detection (default dark).
  • The agent memory feature (remember/memory_search tools, /memory, dream consolidation) is removed — durable project facts belong in AGENTS.md. If memory ever returns, design it from scratch against real usage.
  • Never modify a launched coding agent's own config files — aivo injects env vars and override dirs instead.
  • Help stays hand-rolled (print_help*), never clap-generated.
  • One agent engine serves the code TUI and oneshot — no second execution path for the same feature.
  • Releases ship via R2 + Homebrew; no GitHub Releases (gh release list is empty by design).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.