Skip to main content

Repository-native AI Chief of Staff orchestration

Project description

Brichan

PyPI version Python versions License

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

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.

Adding --init-agents also exports the Herdr orchestration skill to .agents/skills/, so a codex session started directly in the repository (without brichan run) discovers it too.

Existing files are never modified, 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.

License

Brichan is available under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

brichan-0.10.0.tar.gz (79.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brichan-0.10.0-py3-none-any.whl (91.6 kB view details)

Uploaded Python 3

File details

Details for the file brichan-0.10.0.tar.gz.

File metadata

  • Download URL: brichan-0.10.0.tar.gz
  • Upload date:
  • Size: 79.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for brichan-0.10.0.tar.gz
Algorithm Hash digest
SHA256 864622fed2a1c17d74f0d05643fad3b56867abf183e37a721218c319f4a2a7ae
MD5 77bbd58c9d9a9e6e2e7b6de6abd501b9
BLAKE2b-256 86622c19b5667cb8324a11a0bf00924df556032198b6ffd2b5f0f4df0347a7e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for brichan-0.10.0.tar.gz:

Publisher: publish.yml on minhtran3124/Brichan

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file brichan-0.10.0-py3-none-any.whl.

File metadata

  • Download URL: brichan-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 91.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for brichan-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e708f1c330defc4a6c9b348cb554f90b0b18af9c883102b19c8333af03a1841f
MD5 102af3132478999b4bb9f2e3879dfe3e
BLAKE2b-256 a1dbc2d49555220424bc936e8c217d324809511ae027278484fe33fcbd632c4a

See more details on using hashes here.

Provenance

The following attestation bundles were made for brichan-0.10.0-py3-none-any.whl:

Publisher: publish.yml on minhtran3124/Brichan

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page