Skip to main content

Repository-native AI Chief of Staff orchestration

Project description

Brichan

Brichan coordinating a team of AI workers

Brichan is an AI Chief of Staff for Codex and Claude Code. Give it a project goal; it keeps the necessary context, coordinates independent workers through Herdr, checks their evidence, and records useful project state outside chat. Its existing runtime package and console commands remain brida and brida-* for compatibility.

Current dogfood scope

The primary one-user dogfood path is now an installed Python package running inside an existing top-level Git repository. Installed-project mode currently supports Codex on POSIX-compatible systems with Python 3.10+. Herdr is needed only when Brida coordinates independent worker sessions.

Brida is not published to a package registry yet; the planned PyPI distribution name is brichan (pip install brichan), while the importable package stays brida and every console command keeps its existing name. Until it is published, build the wheel locally from this repository with the installer. It can be invoked from any directory and does not activate or modify the target project's virtual environment:

/absolute/path/to/brida/scripts/install-brida

By default, the script creates a dedicated environment at $HOME/.local/share/brida/venv and command symlinks in $HOME/.local/bin. It automatically selects an available Python 3.10+ interpreter with pip, setuptools, venv, and wheel, builds from a temporary source snapshot, and installs all Brida console commands. No virtualenv activation is required. If the command directory is not on PATH, the installer prints the exact export to add to the shell profile.

Initialize a project

Preview the complete footprint before writing:

brida init --project /absolute/path/to/repository
brida init --apply --project /absolute/path/to/repository

init defaults to dry-run and performs zero writes. --apply creates only a versioned .brida/ directory containing managed policy, model routing, Herdr skill resources, and mutable project memory. Repeating it against healthy state is idempotent.

Diagnose and launch from any directory with an explicit target:

brida status --project /absolute/path/to/repository
brida doctor --project /absolute/path/to/repository
brida run --project /absolute/path/to/repository -- <codex arguments>

From inside a healthy initialized repository, bare brida also launches Codex. The installed entrypoint:

  • leaves AGENTS.md, CLAUDE.md, .codex/, and provider configuration untouched;
  • launches external codex directly at the target root and never executes target-owned bin/brida-* wrappers;
  • injects package-owned Brida policy and Herdr skill discovery;
  • rejects native delegation, permission bypasses, cwd/scope widening, profiles, remote execution, and arbitrary Codex configuration before --;
  • treats option-looking text after -- as literal prompt content.

State diagnostics reject malformed, dangling, symlinked, inaccessible, or incompatible .brida/ state without silently repairing it. Schema v1 has no automatic migration: package-version changes require deliberate backup and reinitialization. See the installed Codex dogfood guide for the exact footprint, exit codes, safeguards, and compatibility boundary.

Checkout compatibility and development

The original checkout workflow remains available for development and for Claude Code:

bin/brida
bin/brida --runtime claude

Checkout mode uses package-owned bin/brida-* wrappers. Installed-project mode does not. Coordinator defaults and worker routes are settings-driven, so the coordinator and implementation, review, planning, or scan workers may use different runtimes. See the model-routing guide to change defaults, select a named route, or use a one-off override.

The brida-codex and brida-claude console commands installed by brichan remain checkout-oriented: brida-codex resolves coordinator routing from a Brida source checkout (or BRIDA_ROOT) or from an already-initialized project's .brida/ state, while brida-claude resolves only from a checkout or BRIDA_ROOT. Both are for development and checkout use, not standalone installed-project launches. --help/--version work from any directory; the installed Codex dogfood guide has the exact boundary.

How it works

  1. You describe the outcome and constraints.
  2. Brida reads only the project context needed for that work.
  3. Brida gives bounded tasks to independent workers through Herdr.
  4. Brida verifies results, records decisions and status, then reports back.

Herdr is the worker control plane. Native runtime delegation stays disabled so worker ownership, evidence, and cleanup remain visible.

Project context lives in projects/<project-slug>/ as a small set of Markdown files for overview, current state, tasks, decisions, and references. Read the project memory policy for the contract.

Development

Run the complete local validation suite before sharing a change:

make check

You can also run individual layers while iterating:

make test-unit
make test-contract
make test-integration
make package-check

The importable implementation is in src/brida/; stable command wrappers are in bin/ and scripts/. See CONTRIBUTING.md for the change workflow and the repository layout for module boundaries.

Learn more

License

Brida 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.5.0.tar.gz (32.6 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.5.0-py3-none-any.whl (43.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: brichan-0.5.0.tar.gz
  • Upload date:
  • Size: 32.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for brichan-0.5.0.tar.gz
Algorithm Hash digest
SHA256 76e90d431c22fa65c72df37e7c48c81579114a0b781b3beef2c0bda77228f554
MD5 ce328befc3da839369e29bced2087bc4
BLAKE2b-256 0f1b66dd8a911214cb420aea7c7813c6b95071a5247f124e507b599113f45655

See more details on using hashes here.

File details

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

File metadata

  • Download URL: brichan-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 43.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for brichan-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5910fa311cd75c19ec3b23d94d1386d2ebf0643d644b8a621468f4efde4fb49f
MD5 60835875175ad996fb0767a61d073652
BLAKE2b-256 3adbf0a3ad7bd9e91b5fc61f1a490c0e1f9fcd1f7e6b5c1790efc9c15e7c41ff

See more details on using hashes here.

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