v0.2.0
v0.2.0 — Claude Agent SDK Integration
Highlights
- Claude Agent SDK integration — govern Claude agents with hook-based enforcement
ContractedClaudeAgentwrapsquery()with contract constraintsPreToolUsehooks block tool calls exceeding per-tool limits, web search limits, or temporal constraintsPostToolUsehooks record audit trail with enforcement events- Exact token tracking from
AssistantMessage.usage - SDK-native limit mapping:
iterations→max_turns,cost_usd→max_budget_usd - Dual API: async
aexecute()and syncexecute() - Full passthrough of all SDK features (tools, MCP servers, subagents, skills, permissions)
- 33 new tests
Install
pip install ai-agent-contracts[claude-agent-sdk]Links
- Paper: https://arxiv.org/abs/2601.08815 (accepted at COINE @ AAMAS 2026)
- v0.1.0 release: https://github.com/flyersworder/agent-contracts/releases/tag/v0.1.0
See CHANGELOG.md for full details.