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.1.0.tar.gz (14.7 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.1.0-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: covenant_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 14.7 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.1.0.tar.gz
Algorithm Hash digest
SHA256 b087217cd5a7ca091de40e697550cb8f3ffc555b71553fc96faf92f54a7d85e1
MD5 ce78bdbd7891cdc6e9df4081a83ef019
BLAKE2b-256 fd414ce8281b457b8862d6d4600625d395a93baa986e8546b094a4972183d6a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: covenant_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 24.6 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 205a8e2bc847b2ee45805641b168d7b074fe0415399d789706bc80253fd3823b
MD5 31bc8e4c103a40137d4e75debc338177
BLAKE2b-256 700774b74a8d6a12042ffddf7ac9d5af1e9e6300c4c2d073f824c8310ec7506c

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