brainrc: sync skills, agents, rules, and guard hooks into AI coding harnesses
pip install brainrc==0.8.21 Copy PIP instructions
brainrc installs one set of AI coding-agent config into Claude Code, Codex CLI, OpenCode, Antigravity CLI, and Cursor.
Skills reach all five tools; rules, agents, commands, hooks and MCP servers only some (harness support). New here? Concepts explains pack, harness, profile and lockfile.
Needs uv and git; uv fetches a Python if you have none.
uvx brainrc status uv tool install brainrc # or: pipx install brainrc brainrc apply brainrc status The first status previews what apply would write and writes nothing. It worked when the last status prints Everything in sync.
$ uvx brainrc status CREATE claude ~/.claude/skills/brainrc-aws ... (about 160 lines, one per file) MERGE cursor ~/.cursor/hooks.json (hooks) Dry run. Run `apply` to write. $ brainrc apply CREATE claude ~/.claude/skills/brainrc-aws ... MERGE cursor ~/.cursor/hooks.json (hooks) $ brainrc status Everything in sync. Install In Claude Code, the quickest path:
/plugin marketplace add brainrc/brainrc /plugin install brainrc@brainrc It carries the guard hooks; Gatework (spec-agent) is its own plugin, gatework@gatework. Plugins cover Claude Code only. For the other tools, rules and private packs, use the brainrc command above. All install paths, platform notes, and pinning: docs/install.md.
spec-agent, from the default pack Gatework, takes a ticket to a reviewed pull request: spec → plan → implement → verify → document → deliver, run by small agents, for application code and infrastructure.
/brainrc-work gh:42 # or: /brainrc-work local:tickets/7.md · /brainrc-work add a --dry-run flag to the sync CLI You approve the spec, the plan, and delivery (push, PR, ticket update). Everything between runs on its own, with evidence at every step. Details: docs/spec-agent.md.
Harness support is not equal. Each role gets a fresh context, and the guard hooks are enforced, only in Claude Code. OpenCode also runs roles as real subagents, but every role uses the same model and its hooks block instead of asking. In Codex, Antigravity CLI, and Cursor, spec-agent switches roles inside one session, so its reviewers are not independent of the implementer. Treat those three as best effort (details).
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.
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.
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.
Both files in this release have provenance metadata.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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 verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Both files in this release have been uploaded with provenance metadata.
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.




