CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-claude-agent-sdk

Python SDK for programmatically interacting with Claude Code, enabling AI-powered automation workflows with support for bidirectional conversations, custom in-process tools, hooks, and fine-grained permission control

Quality

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

The risk profile of this skill

This plugin was archived by the owner on Jun 3, 2026

Reason: Retiring all tiles created prior to the transition to plugin support

Overview
Eval results
Files

COMPLETION_SUMMARY.md

Knowledge Tile Documentation - Completion Summary

Overview

Successfully created 10 comprehensive knowledge tile sub-documentation files for the claude-agent-sdk package, following the Python Knowledge Tile format.

Files Created

All files are located in /job-run/artifacts/k-tile-repo/docs/:

  1. options.md (17KB)

    • Documents ClaudeAgentOptions dataclass
    • All 20+ configuration fields with detailed descriptions
    • 15+ usage examples covering all scenarios
  2. custom-tools.md (20KB)

    • Documents @tool decorator
    • Documents create_sdk_mcp_server() function
    • Documents SdkMcpTool dataclass
    • 10+ examples from simple to complex tools
  3. hooks.md (18KB)

    • Documents HookCallback, HookMatcher, HookContext, HookJSONOutput
    • All 6 hook event types
    • 12+ examples covering all hook patterns
  4. messages.md (19KB)

    • Documents all 5 message types: UserMessage, AssistantMessage, SystemMessage, ResultMessage, StreamEvent
    • Complete field documentation
    • 15+ usage examples
  5. content-blocks.md (17KB)

    • Documents TextBlock, ThinkingBlock, ToolUseBlock, ToolResultBlock
    • Detailed field documentation
    • 12+ examples for working with content
  6. permissions.md (22KB)

    • Documents permission control types
    • CanUseTool callback pattern
    • PermissionResult types and updates
    • 12+ examples from simple to advanced
  7. mcp-config.md (15KB)

    • Documents all 4 MCP server configuration types
    • McpStdioServerConfig, McpSSEServerConfig, McpHttpServerConfig, McpSdkServerConfig
    • 15+ configuration examples
  8. errors.md (17KB)

    • Documents all 6 error types with inheritance hierarchy
    • Complete constructor and field documentation
    • 12+ error handling examples
  9. agents.md (17KB)

    • Documents AgentDefinition dataclass
    • SystemPromptPreset configuration
    • SettingSource types
    • 12+ agent configuration examples
  10. transport.md (19KB)

    • Documents Transport abstract class
    • All 6 abstract methods with signatures
    • 10+ custom transport examples

Format Compliance

All files follow the Python Knowledge Tile format:

  • ✅ Descriptive introductions
  • ✅ "Capabilities" sections with subsections
  • ✅ API signatures marked with ```python { .api }
  • ✅ Complete docstrings in API blocks
  • ✅ Detailed parameter documentation
  • ✅ "Usage Examples" sections with 10-15 examples each
  • ✅ Real, runnable code examples
  • ✅ Progressive complexity in examples

API Coverage

Total API signatures documented: 60+ across all files

  • Type definitions: 30+
  • Functions: 3
  • Classes: 15+
  • Dataclasses: 12+

Example Coverage

Total usage examples: 140+

  • Each file contains 10-15 comprehensive examples
  • Examples range from basic to advanced
  • All examples are runnable and practical
  • Examples cover common use cases and edge cases

Documentation Quality

  • ✅ Complete API coverage for all public members
  • ✅ Accurate information from source code
  • ✅ Clear, concise descriptions
  • ✅ Consistent formatting across all files
  • ✅ Cross-references where appropriate
  • ✅ No emojis (professional tone)
  • ✅ Proper Python syntax highlighting

Source Verification

All documentation was created by:

  1. Reading source code from /job-run/artifacts/original-repo/src/claude_agent_sdk/
  2. Following API reference notes from /job-run/artifacts/api-reference-notes.md
  3. Using Python Knowledge Tile format from /job-run/docs/k-tile-examples/python.md
  4. Ensuring accuracy and completeness

Total Documentation Size

Combined size: ~194KB of comprehensive documentation Average file size: ~19KB per file

COMPLETION_SUMMARY.md

tile.json