Case study · Open-Source AI Tooling
Muster
One canonical configuration in a Git repository you control, rendered into the native files of Claude Code, Codex, OpenCode, Antigravity, Pi, Cursor and GitHub Copilot. Secrets live in an age vault with a key per machine. No accounts and no third-party servers.
- Role
- Author & Systems Engineer
- Period
- 2026
- License
- Open-source · Apache-2.0
- Runtime
- Single Rust binary, Git as the only dependency
- Local-firstGit is the transport; no hosted service is required.
- LosslessOnly the keys and blocks Muster manages are rewritten.
- Per-machine keysEach machine decrypts secrets with its own age identity.
- VerifiedTeam revocation is specified in TLA+ and model-checked.
Run Muster in your browser
Real code compiled to WebAssemblyThis is Muster's real Rust code compiled to WebAssembly, not a mock-up: the same engine, adapters, age vault and team revocation the CLI ships. Git and the disk live in memory and nothing leaves your browser. Add machines, change AGENTS.md on one, sync another and see what each agent gets; store a secret, revoke a machine and watch it lose access.
Problem
People who use several AI coding agents on several machines end up copying instructions, MCP servers, skills and API keys by hand. Each agent has its own file format, the copies drift, and secrets end up in plain-text dotfiles.
System
A Rust CLI renders one canonical configuration (AGENTS.md, muster.toml, skills, subagents) into each agent's native files, merging only the keys it manages. A Git repository carries the configuration between machines; an age vault encrypts each secret group to the machines allowed to read it. Team mode adds admin and member roles, signed approvals and revocation that re-encrypts every group without the revoked key.
Key decisions
- Used Git as the only transport, so a fleet works with any remote and without an account.
- Encrypted secrets with age to per-machine recipients, plus an offline recovery key.
- Rewrote only managed blocks and keys, so hand edits in agent configs survive every apply.
- Wrote the team revocation protocol as a TLA+ model and checked it with TLC.
Reliability
- Unsupported features are skipped with a warning per agent, never silently dropped.
- Revoking a machine removes its key from the manifest and re-encrypts every secret group without it.
- Every ordinary command answers --format json with a stable envelope for scripts and agents.
- The browser build is checked against the native CLI: identical adapter files byte for byte, vaults that decrypt across both builds, and a revocation trace TLC accepts.
Evidence
Public repository github.com/oliveralerubio/muster (Apache-2.0) with its test suite, fuzz targets, insta snapshots and the formal model in formal/team_revocation.tla. The demo above runs the WebAssembly build of that code; tests/wasm/run.sh in the repo reproduces the fidelity checks.
- Rust
- WebAssembly
- Git
- age encryption
- MCP
- TLA+ / TLC
- Local-First