AIAny
AI Agent2025
Icon for item

Claude Agent SDK for Python

Run Claude as a programmatic agent in Python: one-shot query() calls or a stateful ClaudeSDKClient for multi-turn loops. Define in-process tools, lifecycle hooks, and per-tool permissions; it bundles the Claude Code CLI and exposes its full toolset.

Introduction

When Anthropic renamed "Claude Code SDK" to the Claude Agent SDK, it signaled where the value really lives: not in the chat loop, but in turning Claude Code's agent harness — its tool execution, permission gating, and session management — into a library you call from your own code. You don't reimplement an agent; you drive the same one Claude Code runs, with deterministic hooks where it matters.

What Sets It Apart
  • Two interaction shapes, one engine. query() is a stateless async generator for fire-and-forget tasks; ClaudeSDKClient keeps a bidirectional session for interactive, multi-turn work with mid-stream control.
  • In-process MCP tools. Decorate a Python function with @tool and it becomes a callable tool with no separate process or transport — closing the latency and ops gap that external MCP servers impose.
  • Hooks make behavior deterministic. PreToolUse/PostToolUse callbacks let you inspect, rewrite, or block actions (e.g., veto a Bash command) instead of relying on the model to behave.
  • Real permission surface. allowed_tools allowlists, permission_mode, and a can_use_tool callback give code-level control over what the agent can touch.
Who It's For

Great fit if you want production agents that reuse Claude Code's battle-tested file/Bash/edit tools and need guardrails enforced in code rather than prompts. Look elsewhere if you only need plain text completions — the SDK bundles and manages the Claude Code CLI under the hood, which is overhead you don't need for a simple chat call. Note it targets Python 3.10+ and the agent runs through that bundled CLI.

More Items

Hugging Face
AI Model2026

Open-weights LLM fine-tuned for phone-based voice agents that prioritizes low latency and reliable tool/function calling. Based on NVIDIA Nemotron 3 Nano (30B total, 3.5B active), supports very long contexts (262,144 tokens) and recommends temperature=0 with thinking disabled for deployment.

GitHub
AI Agent2026

A curated collection of production-ready Agent Skills that turn tasks—presentation production, image generation, local KB retrieval, article assembly, and web-design—into agent-loadable skill folders. Uses a SKILL.md contract, supports multiple agent runtimes (Claude Code, Cursor, Codex), and offers modular install paths with pinned release zips.

GitHub
AI Agent2026

Provides a ruleset and skills that make AI coding agents prefer the simplest correct implementation: reuse existing code, prefer stdlib/native features, and only write minimal new code. Cuts generated LOC, tokens, cost and time while preserving validation and safety.