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

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

Same agent SDK. Same model. Different discipline.

Project Structure

my-project/
├── GOVERNANCE.md              # 15 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

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.2.0.tar.gz (15.5 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.2.0-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: covenant_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 15.5 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.2.0.tar.gz
Algorithm Hash digest
SHA256 a357bb29b844fd6b7a06ffffed18429856541eb9728de48411f372e1d2904049
MD5 0bff0e370d7e8cf0f5a693f884fd0a50
BLAKE2b-256 598fe506efba0574bd6204ce395d8ef2f2ced1d3cde05f55edb8c68bfd61f3d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: covenant_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 25.9 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1dfb25896b57ab36066905ea19dfab4463c278b8bd042d4642c9c3d5bf2d0e01
MD5 ccaf80fe9a25c50b24195fdef2fea731
BLAKE2b-256 79c9f4c0f85275760f63a03d91d4d548f7b1cf567d750fde206bde21c771f785

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