Skip to content

v0.2.0

Choose a tag to compare

@flyersworder flyersworder released this 27 Mar 14:18
· 105 commits to main since this release
cb61608

v0.2.0 — Claude Agent SDK Integration

Highlights

  • Claude Agent SDK integration — govern Claude agents with hook-based enforcement
    • ContractedClaudeAgent wraps query() with contract constraints
    • PreToolUse hooks block tool calls exceeding per-tool limits, web search limits, or temporal constraints
    • PostToolUse hooks record audit trail with enforcement events
    • Exact token tracking from AssistantMessage.usage
    • SDK-native limit mapping: iterationsmax_turns, cost_usdmax_budget_usd
    • Dual API: async aexecute() and sync execute()
    • 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

See CHANGELOG.md for full details.