Executable constitutional governance for AI-assisted software development.
Current Release: v3.3.0 — see CHANGELOG.md.
CORE audits a codebase against declared rules in .intent/, records every
violation, proposes fixes, and logs the chain from finding to commit. AI
assistants and CORE's own loop can propose changes; only the human governor
approves them. What it is for, in plain words: What CORE does.
The pip install below gives you the offline audit, CORE's audit on every pull
request (GitHub Action) and, for your AI assistant, the rules and a verdict on
its change before it commits. Recording findings, proposing fixes, CORE's own
loop and changes submitted for your approval need the full local runtime (last
block of this section).
You need Python 3.12 or later and git. On Debian and Ubuntu, python3 -m venv
also needs the python3-venv package (sudo apt install python3-venv git).
python3 -m venv .venv && . .venv/bin/activate
pip install core-runtimeCurrent Ubuntu and Debian refuse a bare pip install outside a virtual
environment ("externally-managed-environment"); the first line creates one
(pipx install core-runtime works too). This gives you the core-admin CLI. In a repository that already has a
.intent/ constitution, audit it with no services running:
core-admin code audit --offlineTo bring CORE into an existing repository, no services are needed either:
cd your-repo
core-admin project init . --write --yes
core-admin project adopt-pack core/starter-python --write
git add .intent .github && git commit -m "Adopt CORE"
core-admin code audit --offlineproject init --write asks for confirmation at a terminal; --yes skips the
question, and without a terminal (CI, scripts, AI agents) it stops at once
unless --yes is given.
The audit judges the law committed at HEAD, so commit .intent/ first;
uncommitted law reads DEGRADED, never PASS. project init also writes CORE's
GitHub Action (.github/workflows/core-audit.yml); commit it with the law. The
audit lists blocking and high findings; reporting and advisory ones are only
counted. Add --severity info to list them too.
Connect your AI assistant (Claude Code shown; any MCP client works) so it asks CORE about your project's rules and checks its change before committing; see Connect your AI assistant:
claude mcp add --scope project core -- core-admin mcp runClaude Code starts core-admin itself, so it must be on PATH in the shell
you start claude from: activate the virtual environment first, or install
with pipx install core-runtime (then pipx ensurepath) so it is on PATH in
every shell; get pipx first with sudo apt install pipx on Debian/Ubuntu. Everyone who uses the committed .mcp.json needs the same.
A new project:
core-admin project new myproject --write
cd myproject
git init
core-admin project adopt-pack core/starter-python --write
git add -A && git commit -m "Adopt core/starter-python"
core-admin code audit --offlineTo run the full local runtime (Postgres + Qdrant) from a clone (it also needs Docker with Compose v2 and Poetry; every prerequisite is in Run the full runtime):
git clone https://github.com/DariuszNewecki/CORE.git
cd CORE
./install-core.sh- Decisions: .specs/DECISIONS.md
- Documentation: docs/, published at dariusznewecki.github.io/CORE
MIT — see LICENSE.