agent-receipts
Append-only local receipts for AI agent actions: capture commands, outputs, and handoff evidence, then expose them to agents over MCP.
๐ฏ Why?
Trending agent projects increasingly mention evidence logs, verifiable handoffs, and agent observability, but most solutions are large frameworks or platform-specific hubs. Developers using Claude Code, Codex, OpenCode, or custom agents need a tiny local-first tool that simply records what happened and proves it was not edited. agent-receipts fills that gap with a zero-depend CLI plus a minimal MCP adapter.
Target audience: Developers running AI coding agents, agent-framework authors, and platform/security engineers who need lightweight local audit trails, reproducible handoffs, and evidence that an agent really ran a command or completed a step.
โจ Features
- โจ Capture command executions with stdout/stderr tails, exit codes, duration, cwd, agent, session, and tags
- โจ Append-only hash-chained JSONL receipts with tamper detection via verify
- โจ Manual evidence notes for handoffs, plus search/export and a minimal MCP stdio server
๐ Quick Start
# Install
pip install agent-receipts
# Run
agent-receipts --help
๐ฆ Installation
From Source
git clone https://github.com/YOUR_USERNAME/agent-receipts.git
cd agent-receipts
# Create virtual environment
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
# Install in development mode
pip install -e ".[dev]"
# Run tests
pytest -v
๐ฌ Demo
The GIF above was recorded using Charm VHS:
vhs < demo.tape
๐ Usage
# Show help
agent-receipts --help
# Common usage examples
agent-receipts --example
๐๏ธ Architecture
graph LR
A[Input] --> B[Core Engine]
B --> C[Output]
B --> D[Plugins]
D --> E[Extensions]
๐ค Contributing
Contributions are welcome! Please:
- Fork the repo
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
๐ License
MIT ยฉ 2026 โ See LICENSE for details.
If this project helped you, please โญ star it!