agent-auditor: Agent for Claude Code

.claude/agents/agent-sdk-verifier.md

agent-sdk-verifier is an agent for Claude Code from basher83/agent-auditor. It costs 53 tokens per session (1,259 once invoked), scanned A, a copy of agent-sdk-verifier, MIT.

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

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions Claude Code.

This is basher83/agent-auditor's own configuration. It tells Claude Code how to work on agent-auditor itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agent-auditor configures →

Reuse

Borrowing it

Nothing to install: this file belongs to basher83/agent-auditor. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/basher83/agent-auditor/main/.claude/agents/agent-sdk-verifier.md
Clone the repo
git clone --depth 1 https://github.com/basher83/agent-auditor

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent-sdk-verifier

README.md
[![agentmods](https://agentmods.dev/badge/agents/basher83/agent-auditor/agent-sdk-verifier/github.svg)](https://agentmods.dev/agents/basher83/agent-auditor/agent-sdk-verifier)
Your own site
<a href="https://agentmods.dev/agents/basher83/agent-auditor/agent-sdk-verifier"><img src="https://agentmods.dev/badge/agents/basher83/agent-auditor/agent-sdk-verifier/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agent-sdk-verifier

Your own site · 80×15
<a href="https://agentmods.dev/agents/basher83/agent-auditor/agent-sdk-verifier"><img src="https://agentmods.dev/badge/agents/basher83/agent-auditor/agent-sdk-verifier.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00053 $0.01259
Opus 5.5 $0.00021 $0.00504
Sonnet 5.5 $0.00011 $0.00252
Haiku 4.5 $0.00005 $0.00126

Measured 1mo ago against content hash cf5ce03ee811, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 7mo ago), licensed MIT. It adds 53 tokens to every session and 1,259 once invoked, about $0.0002 per session on Opus 5.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.

Related

Other agents, from other repositories

cpp-reviewer

Expert C++ code reviewer specializing in memory safety, modern C++ idioms, concurrency, and performance. Use for all C++ code changes. MUST BE USED for C++ projects.

affaan-m/ECC · 41 tokens

thermo-nuclear-code-quality-review-subagent

Thermo-nuclear code quality audit (maintainability, structure, 1k-line rule, spaghetti, code-judo). Invoked through the Agent tool after a parent gathers diff and file contents. Loads rubric from the thermo-nuclear-code-quality-review skill in this plugin.

michael-denyer/pstack-claude · 68 tokens

review-obsidian-guidelines

Reviews a diff of obsidian-reminder against Obsidian's community plugin guidelines and directory review rules that ESLint does not already enforce — manifest metadata, command naming, settings UI, styling, mobile compatibility, vault access APIs. Used by the pr-review workflow; read-only.

uphy/obsidian-reminder · 63 tokens

karimo-implementer

Executes coding tasks (complexity 1-4) from KARIMO PRDs. Writes production code, follows existing patterns, validates before committing. Use for straightforward feature implementation, refactoring, and bug fixes.

opensesh/KARIMO · 49 tokens

reviewer

Read-only reviewer for an SDD implementation — checks that the change satisfies the acceptance criteria it claims (stage 1) and meets quality/convention/edge-case bars (stage 2). Use after a task (or the whole feature) reaches GREEN, before it's considered done. It reads the diff and the upstream artifacts and reports…

genkovich/sdd · 81 tokens

atomic-auditor

Final gate for a finished implementation. Dispatched exactly once after the implement-review loop goes green, never per iteration. Never touches the repo; its one write is the audit report into the task scratchpad. Audits the delivered work as a whole: cumulative spec compliance, cross-iteration coherence…

damusix/atomic-claude · 169 tokens