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.
npx agentmods add agents/basher83/agent-auditor/agent-sdk-verifiergit clone --depth 1 https://github.com/basher83/agent-auditorWhat 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.
| Model | Per session | Once 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 |
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.
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.
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:
-
SDK Installation and Configuration:
- Verify
claude-agent-sdkis installed:- For pyproject.toml: check dependencies section
- For uv scripts: check for
# /// scriptheader withclaude-agent-sdkdependency - 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
- Verify
-
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
-
SDK Usage and Patterns:
- Verify correct imports from
claude_agent_sdk(e.g.,ClaudeSDKClient,ClaudeAgentOptions,AgentDefinition) - Check proper choice between
query()(simple tasks) andClaudeSDKClient(conversations) - Validate async runtime usage (anyio.run() or asyncio.run())
- For orchestrators: verify
system_prompt="claude_code"is used - For orchestrators: ensure
"Task"is inallowed_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)
- Verify correct imports from
-
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
-
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
-
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
-
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
-
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
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.
- 2d ago First seen · 149 lines · 53 tokens per session scan A cf5ce03ee811
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.
Other agents, from other repositories
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
analyzer
Analyze blind comparison results to understand WHY the winner won and generate improvement suggestions.
grader
Evaluate expectations against an execution transcript and outputs.
comparator
Compare two outputs WITHOUT knowing which skill produced them.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.