brainrc
brainrc installs one set of AI coding-agent config (rules, skills, agents, guard hooks and MCP servers) into Claude Code, Codex CLI, OpenCode, Antigravity CLI and Cursor (what reaches each tool, the words these docs use).
You write your config once, as plain files in a git repo (a pack), and brainrc apply puts each
piece where each tool looks for it. It never overwrites a file it didn't write. Full docs:
brainrc.github.io/brainrc.
Quickstart
Needs uv and git. uv fetches a Python if you have none.
uvx brainrc status # preview: lists what apply would write, writes nothing
uv tool install brainrc # or: pipx install brainrc
brainrc apply # write it
brainrc status # check: prints "Everything in sync."
$ uvx brainrc status
FETCH gatework https://github.com/brainrc/gatework.git (v0.8.0)
CREATE claude ~/.claude/CLAUDE.md
MERGE claude ~/.claude/settings.json (hooks)
...
Dry run. Run `apply` to write.
$ brainrc apply
...
$ brainrc status
Everything in sync.
Next: getting started walks through what landed and how to add your own rules and skills.
Install
The brainrc command above covers all five tools, your own packs and the rules. Other ways in
(Homebrew, npx, a clone): install.
Only use Claude Code? It also installs as two plugins, without the rules or your own packs:
/plugin marketplace add brainrc/brainrc
/plugin install brainrc@brainrc
That one carries the guard hooks. Gatework is the second, gatework@gatework (plugins).
Gatework
brainrc's default pack, Gatework, takes a ticket to a reviewed pull request: spec, plan, implement, verify, document, deliver. Small agents do the work and you approve three times: the spec, the plan, and the push.
/brainrc-work gh:42 # a GitHub issue; also local:tickets/7.md or a sentence
It works best in Claude Code, where each role gets a fresh context and the guard hooks are enforced. Elsewhere it is best effort (details). Don't want it? Turn it off and brainrc installs only its rules and guard hooks (packs).
Why not …
| Its own docs say | brainrc | |
|---|---|---|
| chezmoi | manages your dotfiles across multiple machines, securely | not a dotfile manager; it targets AI-tool config and their formats |
| GNU Stow | a dotfile organizer that symlinks separate directories into your home directory | links skills the same way, but also renders rules and merges hooks and MCP servers per tool |
| Harness plugins | a Claude Code plugin is a directory of skills, agents, hooks, and MCP servers installed as one unit | ships as one too; brainrc covers the other four tools |
| rulesync | a Node.js CLI that generates config files for many AI tools from unified rule files | adds guard hooks, a lockfile and Gatework; a Python tool |
| brainrc's limits | best on Claude Code; Codex, Antigravity and Cursor are best effort; needs uv (or Python 3.11+) outside Claude Code |
Contributing
See CONTRIBUTING.md, GOVERNANCE.md, the code of conduct, and AGENTS.md. Before committing, run python3 scripts/brainrc.py validate and python3 -m unittest discover -s tests.
Security
Treat this repo as public. Don't commit secrets, tokens, internal hostnames, or absolute home-directory paths. Gitleaks runs in pre-commit and CI. To report a vulnerability, see SECURITY.md.
Privacy
brainrc sends no usage data and has no telemetry. Its own code makes no network calls. The only external commands it runs are git, to fetch packs you name by URL, and ccusage, only if you pass --ccusage to the retro script. The eval scripts run only the model command you configure.
Metadata
Release files for brainrc 0.8.28
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| brainrc-0.8.28.tar.gz | 175.3 kB | With provenance | Details for brainrc-0.8.28.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| brainrc-0.8.28-py3-none-any.whl | Python 3 | none | any | Details for brainrc-0.8.28-py3-none-any.whl |
Total release size: 390.6 kB
Release files / brainrc-0.8.28.tar.gz
| Download URL | brainrc-0.8.28.tar.gz |
|---|---|
| Size | 175.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
608a15fc43c2736609a8612378c058584b09c42df8c36e875d8ea5136c74b8bc
|
|
BLAKE2b-256 checksum How to use checksums |
e5fd60cccb475fb478b4671525e0d6519d4c34eeb608b1d01907408f1a40babd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logRelease files / brainrc-0.8.28-py3-none-any.whl
| Download URL | brainrc-0.8.28-py3-none-any.whl |
|---|---|
| Size | 215.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
27cca93ca1773cd6e930adf15823a0885ddeb7ce18e9aac65be32b8c7068c696
|
|
BLAKE2b-256 checksum How to use checksums |
56768a23338f4d8dcd6b7b43b3041cf80bff46c2e5eb90d47ff3a2724ef21e95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logSecurity for brainrc 0.8.28
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for brainrc-0.8.28.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.