Skip to main content

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, Cursor, GitHub Copilot, Devin Local (Windsurf), Kiro, Amp and Junie (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.9.1)
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).

For your stacks, the official packs live as folders of brainrc/packs: Python, Node and TypeScript, Rust, Go, Terraform and AWS, Kubernetes, review, a starter and a security baseline (list, enable one).

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

Also see ruler and dotagents.

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.38

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for brainrc 0.8.38
File Size Uploaded Provenance Actions
brainrc-0.8.38.tar.gz 240.5 kB With provenance Details for brainrc-0.8.38.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for brainrc 0.8.38
File Interpreter ABI Platform Actions
brainrc-0.8.38-py3-none-any.whl Python 3 none any Details for brainrc-0.8.38-py3-none-any.whl

Total release size: 544.0 kB

Release files / brainrc-0.8.38.tar.gz

Download URL brainrc-0.8.38.tar.gz
Size 240.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f6136e70878a813f569bd65bc6215444cf33af95e7e69c7bbafa51b3e6595dda
BLAKE2b-256 checksum
How to use checksums
d15dbd64b199fd7f0322ae1221807e0bb156560c37d642693b8dc22e9d3f590f
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 28, 2026.

Transparency log

Release files / brainrc-0.8.38-py3-none-any.whl

Download URL brainrc-0.8.38-py3-none-any.whl
Size 303.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e5419cbb8cb13108288bc283c1160680edf2e155ae6d7cae8b9c907834762bea
BLAKE2b-256 checksum
How to use checksums
1936fa96b23816f5d6012fb020ef10bd5a7c1b5b6f9af4292754a484584c605d
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 28, 2026.

Transparency log

Security for brainrc 0.8.38

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.

Select from 2 files

Attestation for brainrc-0.8.38.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 28, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.8.38 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page