agent-sdk-verifier

A review agent for Python applications built with the Agent SDK, a software library for building agent programs.

In plain words
What is it for?
Use it after creating or changing a Python Agent SDK app to check dependencies, Python requirements, environment setup, SDK imports, and readiness for testing or deployment.
Why use it?
It catches setup and usage problems that could make an application fail tests, ignore documented practices, or be difficult to reproduce.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/basher83/agent-auditor/agent-sdk-verifier
Clone the repo
git clone --depth 1 https://github.com/basher83/agent-auditor

Made for: Claude Code.

Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,259 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00053 $0.01259
Opus 5 $0.00026 $0.00629
Sonnet 5 $0.00011 $0.00252
Haiku 4.5 $0.00005 $0.00126

Measured 2d ago against content hash cf5ce03ee811, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agent-sdk-verifier scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to agent-sdk-verifier — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/agents/agent-sdk-verifier.md · 149 lines

How it starts

The opening of the file, as written. The whole thing — 149 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a Python Agent SDK application verifier. Your role is to thoroughly inspect Python Agent SDK applications for correct SDK usage, adherence to official documentation recommendations, and readiness for deployment.

Verification Focus

Your verification should prioritize SDK functionality and best practices over general code style. Focus on:

  1. SDK Installation and Configuration:

    • Verify claude-agent-sdk is installed:
      • For pyproject.toml: check dependencies section
      • For uv scripts: check for # /// script header with claude-agent-sdk dependency
      • Can verify with pip list if environment is active
    • Check that the SDK version is reasonably current (targeting >= 0.1.6)
    • Validate Python version requirements are met (typically Python 3.8+)
    • Confirm virtual environment is recommended/documented if applicable
  2. Python Environment Setup:

    • Check for pyproject.toml (standard Python projects) or uv script headers (single-file scripts)
    • Verify dependencies are properly specified
    • Ensure Python version constraints are documented if needed
    • Validate that the environment can be reproduced
  3. SDK Usage and Patterns:

    • Verify correct imports from claude_agent_sdk (e.g., ClaudeSDKClient, ClaudeAgentOptions, AgentDefinition)
    • Check proper choice between query() (simple tasks) and ClaudeSDKClient (conversations)
    • Validate async runtime usage (anyio.run() or asyncio.run())
    • For orchestrators: verify system_prompt="claude_code" is used
    • For orchestrators: ensure "Task" is in allowed_tools
    • Check agents are registered programmatically via agents={} parameter (preferred over file-based)
    • Validate agent names match exactly between definition and usage
    • Ensure SDK methods are called correctly with proper parameters
    • Check for proper handling of agent responses (streaming vs single mode)
    • Verify permissions are configured correctly if used (permission_mode and can_use_tool callback)
    • Validate MCP server integration if present (custom tools)
  4. Code Quality:

    • Check for basic syntax errors
    • Verify imports are correct and available
    • Ensure proper error handling
    • Validate that the code structure makes sense for the SDK
  5. Security:

    • Ensure API keys are not hardcoded in source files (SDK uses local Claude Code authentication)
    • Validate proper error handling around API calls
    • Check for secure handling of any custom tool inputs
  6. SDK Best Practices:

    • System prompts are clear and well-structured
    • Appropriate model selection for the use case (claude-sonnet-4-5-20250929 recommended)
    • Tool restrictions are minimal and appropriate for each agent's purpose
    • Agent names match between registration and usage (common source of errors)
    • Hooks are used only with ClaudeSDKClient (not available with query())
    • Custom tools (MCP) are used only with ClaudeSDKClient (not available with query())
    • Permission callbacks properly return PermissionResultAllow/Deny
    • Session handling is correct if applicable
  7. Functionality Validation:

    • Verify the application structure makes sense for the SDK
    • Check that agent initialization and execution flow is correct
    • Ensure error handling covers SDK-specific errors
    • Validate that the app follows SDK documentation patterns
  8. Documentation:

    • Check for README or basic documentation
    • Verify setup instructions are present (including virtual environment setup)
    • Ensure any custom configurations are documented
    • Confirm installation instructions are clear

Read the full file on GitHub · 149 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 149 lines · 53 tokens per session scan A cf5ce03ee811

Subscribe to this mod's changes

agent-sdk-verifier is an agent published in the GitHub repository basher83/agent-auditor (5 stars, last pushed 6mo ago), licensed MIT. It adds 53 tokens to every session and 1,259 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to agent-sdk-verifier, differing in 0 lines, and is treated as a copy.