Skip to main content

Brichan

PyPI version Python versions License

Brichan coordinating a team of AI workers

Coding agents are very good at the work in front of them and very bad at remembering why it was asked for. Context lives in a chat window, so it is lost when the window closes; decisions are re-litigated, status is reconstructed from memory, and the record of what was actually verified never outlives the session.

Brichan is an AI Chief of Staff that sits above the coding agent rather than inside it. You give it a project goal; it keeps only the context that goal needs, hands bounded tasks to independent workers, checks the evidence they return, and records decisions and status as files in your repository — outside chat, where they survive the session.

Requirements

  • Linux or macOS with Python 3.10 or newer. No runtime Python dependencies.
  • An existing top-level Git repository to operate on.
  • The codex CLI on PATH — the coordinator runtime Brichan launches.
  • Herdr, the worker control plane — required as soon as Brichan hands bounded tasks to workers (a single coordinator session runs without it):
$ curl -fsSL https://herdr.dev/install.sh | sh
$ herdr integration install codex

Installation

$ pip install brichan

Basic commands

$ brichan init --project <repo>            # preview the footprint (dry run)
$ brichan init --apply --project <repo>    # create it
$ brichan status --project <repo>          # one-line state verdict
$ brichan doctor --project <repo>          # health summary (--json for CI)
$ brichan run --project <repo> -- <args>   # launch the coordinator
$ brichan techstacks resolve --project-root <repo> --input-json <path>
$ brichan techstacks verify --project-root <repo> --snapshot-json <path> --as-of <date>

Usage

Initialization defaults to a dry run with zero writes, so you can preview the complete footprint before anything is created. --apply then creates:

  • a versioned .brichan/ directory holding managed policy, model routing, Herdr skill resources, and mutable project memory;
  • root AGENTS.md and CLAUDE.md pointers, when the repository does not already have them;
  • the Herdr orchestration skill under .agents/skills/herdr-orchestration/, so a codex session started directly in the repository (without brichan run) discovers it too.

Existing files and skills are never modified. An existing .agents/skills/ tree is preserved while the missing Brichan skill is added, and repeating init against healthy state is idempotent.

From inside a healthy initialized repository, bare brichan launches the coordinator directly:

$ brichan

Arguments after -- are forwarded to the runtime. Option-looking text after -- is treated as literal prompt content, so a prompt beginning with a dash cannot silently become a flag:

$ brichan run --project <repo> -- --review the auth module

Feature notes

  • Coordinator over workers. You describe the outcome; Brichan reads only the project context that work needs, gives bounded tasks to independent workers through Herdr, verifies the results, and records decisions and status back into the repository.
  • Settings-driven model routing. Coordinator defaults and worker routes come from .brichan/config/model-routing.json, so planning, implementation, review, and scan work may each use a different model.
  • Guarded launches. Brichan rejects native delegation, permission bypasses, cwd/scope widening, profiles, remote execution, and arbitrary runtime configuration before launching.
  • Strict state diagnostics. Malformed, dangling, symlinked, inaccessible, or incompatible .brichan/ state is reported, never silently repaired. Schema v1 has no automatic migration: a package-version change requires deliberate backup and reinitialization.
  • Machine-readable health. brichan doctor --json emits one JSON document covering repository, Git, policy, routing, memory, and dependency checks for scripts and CI. The report is schema 2 and adds a managed-versus-exported skill comparison; the .brichan/ state schema stays 1.
  • Project-owned techstack rules. A repository opts in with a techstacks/README.md at its top-level Git root. brichan techstacks resolve answers which rules apply and can freeze the answer as an immutable Snapshot; brichan techstacks verify re-checks it before work starts. Both are read-only: Brichan never creates, edits, removes, or repairs techstacks/**, and workers receive pointers and a digest rather than copies of the rules.

License

Brichan is available under the MIT License.

Metadata

Release files for brichan 0.13.0

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

Source distribution (sdist)

Source distribution for brichan 0.13.0
File Size Uploaded Provenance Actions
brichan-0.13.0.tar.gz 165.9 kB With provenance Details for brichan-0.13.0.tar.gz

Built distribution (wheel)

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

Total release size: 350.8 kB

Release files / brichan-0.13.0.tar.gz

Download URL brichan-0.13.0.tar.gz
Size 165.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8ff822f15f29abdf4491e195087bc1adf2111f9f5b966e43c61bf7e886befa65
BLAKE2b-256 checksum
How to use checksums
b404f453397466a40c2ef0f44e239b426a3cca8a3ddfa36372de133d652cd936
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 28, 2026.

Transparency log

Release files / brichan-0.13.0-py3-none-any.whl

Download URL brichan-0.13.0-py3-none-any.whl
Size 184.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c88fe55640bb7edbba3c3c225e348d17652b3148cfe893ad920fd7f26b9aa7d
BLAKE2b-256 checksum
How to use checksums
507333271733b66c2087a9b953676c1e0ec934074777bbf129658611b4fe601d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 28, 2026.

Transparency log

Security for brichan 0.13.0

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 brichan-0.13.0.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 Aug 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.

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