covenant-cli
Scaffold governed agent services. Exit reports, typed I/O, memory inheritance -- from the first line of code.
Why Covenant CLI?
Every AI agent framework gives you tools to build agents. None give you tools to govern them.
Covenant CLI scaffolds projects where governance is structural, not aspirational:
- Exit reports -- every service run writes what worked, what failed, and what the next run should know
- Typed I/O -- Pydantic models for every agent input and output, no
Dict[str, Any] - Memory inheritance -- agents read prior learnings before acting, not after failing
- Registry tracking -- every service and agent registered before it runs
- Convention rules -- IDE-native governance rules for Cursor and Claude Code
The difference between an agent that works once and an agent you can trust is governance.
Quick Start
pip install covenant-cli
# Create a governed project
covenant init my-project
cd my-project
# Add a governed service
covenant add-service research-agent
# Check project health
covenant status
Commands
| Command | Description |
|---|---|
covenant init <name> |
Create a new governed project with GOVERNANCE.md, registry, memory, and convention rules |
covenant add-service <name> |
Add a governed service with manager, agents, typed schemas, and exit reports |
covenant status |
Show project health: services, recent exit reports, warnings |
covenant remember [query] |
Search exit reports, memos, and consolidated summaries by keyword |
covenant memo send/list/read |
Cross-service communication via structured memos |
covenant consolidate |
Distill exit reports into summaries, optionally archive |
User Journeys
Four documented paths through the tool:
- First-Time Setup -- scaffold a governed project from scratch
- Iterative Development -- the learning loop across runs
- Debugging a Failing Agent -- trace failures through exit reports
- Team Onboarding -- orient a new team member in minutes
The Governance Delta
Without covenant-cli, your agents:
- Run without purpose documentation
- Pass untyped data between steps
- Fail silently and repeat mistakes
- Have no memory of prior runs
With covenant-cli, your agents:
- Declare their mandate before acting
- Use Pydantic models for all I/O
- Write exit reports on every run
- Read inheritance before starting
- Track token usage and cost per run
- Coordinate through structured memos
Same agent SDK. Same model. Different discipline.
Project Structure
my-project/
├── GOVERNANCE.md # 18 governance rules
├── registry/agents.json # Service and agent registry
├── memory/
│ ├── inheritance/ # Exit reports from prior runs
│ └── memos/ # Cross-service communication
├── .cursor/rules/ # Cursor IDE governance rules
├── .claude/rules/ # Claude Code governance rules
└── services/
└── my-service/
├── manager.py # Orchestrator with exit reports
├── agents/ # One agent per file
├── schemas/types.py # Pydantic models
└── tools.py # Shared tools
What's New in v0.4.0
- Usage tracking -- token consumption and cost per service run, visible in
covenant status covenant memo-- cross-service communication via structured memos (send/list/read)covenant consolidate-- distill exit reports into summaries with optional archivingcovenant remember-- now searches memos and consolidated summaries (compiled-truth boost)- Status dashboard -- unread memo count, last consolidation date, token totals per service
- 3 new governance rules -- track usage, communicate via memos, consolidate regularly
Credits
Inspired by mutta by Alejandro Garcia Polo.
License
Covenant Public License v1.0 -- free for individuals and teams under $1M revenue. Contact the author for commercial licensing.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file covenant_cli-0.4.0.tar.gz.
File metadata
- Download URL: covenant_cli-0.4.0.tar.gz
- Upload date:
- Size: 31.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f3357380a41466b074da2fbae8981af8d40ad76c018665f31083dc2e1a337e8
|
|
| MD5 |
39ef7c717655ea9a8241a0bb37d5863b
|
|
| BLAKE2b-256 |
51a29c8a7c5ebd25ec4f287962514e35978b8a61174368458157ca060c599969
|
File details
Details for the file covenant_cli-0.4.0-py3-none-any.whl.
File metadata
- Download URL: covenant_cli-0.4.0-py3-none-any.whl
- Upload date:
- Size: 41.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5bbe3b18328fa1dc9bc51edf61a96b90389ec0a392cbf59975008f9fa1dd575a
|
|
| MD5 |
eb99518382c97aa0561146aa730aff95
|
|
| BLAKE2b-256 |
55ae0ca081f3befe42e4b9d454d0fbfc29279d78e6b3c2b83ae4a5637e61486a
|