BitssyBytes logoAgent Safety Score

Directory / Claude Agent SDK

B

Claude Agent SDK

Agent framework · Anthropic · 6/7 verified · Last checked 2026-10-16

Shares Claude Code's permission system. canUseTool handles approvals for calls not already allowed, and PreToolUse hooks run on every call.

Overall: B (2.33 avg, 6/7 controls verified)

Lock this down first

Put must-hold checks in a PreToolUse hook, not in canUseTool, which skips pre-approved calls.

Scorecard

CriterionRatingNotes
Permission granularity2/3Allow, deny and ask rules plus canUseTool. We found no SDK doc proving admins can lock them, so 2.
Human approval gates3/3canUseTool callback asks your code to approve calls that aren't pre-approved.
Sandboxing2/3Same Bash sandbox as Claude Code, set programmatically.
Secrets handlingUnverifiedNot confirmed in the docs we checked.
Audit logs2/3OpenTelemetry metrics and events, opt-in.
Kill switch / interrupt3/3AbortController cancels a query; interrupt() in streaming mode.
Network egress control2/3Sandbox network allowlist, including strict mode.

Unverified: Secrets handling. That means we could not confirm it in public docs, not that it is missing.

Sources

Vendor? Request a correction. We review corrections within 7 days.