Skip to main content

covenant-cli

PyPI Python 3.10+ License: Covenant Public License

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
covenant doctor Validate project environment: Python, SDK, API keys, registry, governance

User Journeys

Four documented paths through the tool:

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.5.0

  • covenant doctor -- validate project environment health: Python version, SDK, API keys, registry integrity, governance, memory directories, IDE rules, and service scaffolding

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 archiving
  • covenant 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

covenant_cli-0.5.0.tar.gz (36.0 kB view details)

Uploaded Source

Built Distribution

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

covenant_cli-0.5.0-py3-none-any.whl (53.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for covenant_cli-0.5.0.tar.gz
Algorithm Hash digest
SHA256 8f1bdb070ce6536b6cd461c1724d6c870e9b803216c7f06168c8bae04cbb8d46
MD5 51d1643f7698f785420efd2523dd8688
BLAKE2b-256 54d255d78f1923a873e4a423443216d4591d93d4bef732d31c1d0b98e4b3f64c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for covenant_cli-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0bd1f500f9ed4997b7ebc09f8ec58bdf0a37dd0fc3ec826962fea83f5f2354f
MD5 3c9485688d319b6cabde7d920349c40f
BLAKE2b-256 71b927b183c88eca9188be32af89944caf996202873c427a6b1e2d7969ca16fd

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 Sentry Error logging StatusPage Status page