# yaml-language-server: $schema=./.github/registry_schema.json - title: Build a data analyst agent with Claude Managed Agents description: Build an analyst that turns a CSV into a narrative HTML report with interactive charts, using a sandboxed environment and file mounting. path: managed_agents/data_analyst_agent.ipynb authors: - charmaine - jyan-anthropic date: '2026-04-08' categories: - Claude Managed Agents - Tools - title: Build a Slack data analyst bot with Claude Managed Agents description: Mention the bot with a CSV to get an analysis report in-thread, with multi-turn follow-ups on the same session. path: managed_agents/slack_data_bot.ipynb authors: - charmaine date: '2026-04-08' categories: - Claude Managed Agents - Integrations - title: 'Managed Agents tutorial: iterate on a failing test suite' description: Entry-point tutorial for the Claude Managed Agents API. Walks through agent / environment / session creation, file mounts, and the streaming event loop by getting an agent to fix three planted bugs in a calc.py package. path: managed_agents/CMA_iterate_fix_failing_tests.ipynb authors: - pauly-ant date: '2026-04-08' categories: - Claude Managed Agents - Tools - title: 'Managed Agents tutorial: production setup' description: End-to-end production story for Managed Agents — vault-backed MCP credentials, the session.status_idled webhook pattern for human-in-the-loop without long-lived connections, and the resource lifecycle CRUD verbs. path: managed_agents/CMA_operate_in_production.ipynb authors: - pauly-ant date: '2026-04-08' categories: - Claude Managed Agents - Integrations - title: Build an SRE incident response agent with Claude Managed Agents description: 'Wire Claude into your on-call flow: when an alert fires, the agent reads logs and runbooks, pinpoints the root cause, opens a fix PR, and waits for your approval before merging.' path: managed_agents/sre_incident_responder.ipynb authors: - gaganb-ant date: '2026-04-10' categories: - Claude Managed Agents - Observability - title: 'Managed Agents tutorial: prompt versioning and rollback' description: Server-side prompt versioning — create v1, evaluate against a labelled test set, ship v2, detect a regression, roll back by pinning sessions to version 1. Covers agents.update, version pinning on sessions.create, and where the review gate moves when prompts are not code. path: managed_agents/CMA_prompt_versioning_and_rollback.ipynb authors: - markn-ant date: '2026-04-07' categories: - Claude Managed Agents - Evals - title: Threat intelligence enrichment agent description: Build an agent that autonomously investigates IOCs by querying multiple threat intel sources, cross-referencing findings, mapping to MITRE ATT&CK, and producing structured reports for SIEM and SOAR integration. path: tool_use/threat_intel_enrichment_agent.ipynb authors: - jannet-park date: '2026-04-07' categories: - Tools - Agent Patterns - Cybersecurity - title: Knowledge graph construction with Claude description: Build knowledge graphs from unstructured text using Claude for entity extraction, relation mining, deduplication, and multi-hop graph querying. path: capabilities/knowledge_graph/guide.ipynb authors: - Anthropic date: '2026-03-23' categories: - RAG & Retrieval - Tools - title: Giving Claude a crop tool for better image analysis description: Give Claude a crop tool to zoom into image regions for detailed analysis of charts, documents, and diagrams. path: multimodal/crop_tool.ipynb authors: - nadine-anthropic date: '2025-11-22' categories: - Multimodal - Tools - title: Programmatic tool calling (PTC) description: Reduce latency and token consumption by letting Claude write code that calls tools programmatically in the code execution environment. path: tool_use/programmatic_tool_calling_ptc.ipynb authors: - PedramNavid date: '2025-11-24' categories: - Tools - title: Tool search with embeddings description: Scale Claude applications to thousands of tools using semantic embeddings for dynamic tool discovery. path: tool_use/tool_search_with_embeddings.ipynb authors: - henrykeetay date: '2025-11-24' categories: - Tools - RAG & Retrieval - title: Automatic context compaction description: Manage context limits in long-running agentic workflows by automatically compressing conversation history. path: tool_use/automatic-context-compaction.ipynb authors: - PedramNavid date: '2025-11-24' categories: - Tools - Agent Patterns - title: 'Context engineering: memory, compaction, and tool clearing' description: Compare context engineering strategies for long-running agents and learn when each applies, what it costs, and how they compose. path: tool_use/context_engineering/context_engineering_tools.ipynb authors: - isabella-anthropic date: '2026-03-20' categories: - Tools - Agent Patterns - title: Low latency voice assistant with ElevenLabs description: Build a low-latency voice assistant using ElevenLabs for speech-to-text and text-to-speech combined with Claude. path: third_party/ElevenLabs/low_latency_stt_claude_tts.ipynb authors: - Adriaan-ANT date: '2025-11-24' categories: - Integrations - title: Prompting for frontend aesthetics description: Guide to prompting Claude for distinctive, polished frontend designs avoiding generic aesthetics. path: coding/prompting_for_frontend_aesthetics.ipynb authors: - rgb-prithvi date: '2025-10-21' categories: - Responses - Skills - title: Classification with Claude description: Build classification systems with Claude using RAG and chain-of-thought for insurance tickets. path: capabilities/classification/guide.ipynb authors: - GarvanD date: '2024-05-19' categories: - RAG & Retrieval - title: Enhancing RAG with contextual retrieval description: Improve RAG accuracy by adding context to chunks before embedding with prompt caching. path: capabilities/contextual-embeddings/guide.ipynb authors: - Anthropic date: '2024-09-13' categories: - RAG & Retrieval - title: Retrieval augmented generation description: Build and optimize RAG systems with Claude using summary indexing and reranking techniques. path: capabilities/retrieval_augmented_generation/guide.ipynb authors: - Anthropic date: '2024-07-02' categories: - RAG & Retrieval - title: Summarization with Claude description: Comprehensive guide to summarizing legal documents with evaluation and advanced techniques. path: capabilities/summarization/guide.ipynb authors: - Briiick date: '2024-08-07' categories: - RAG & Retrieval - Responses - title: Text to SQL with Claude description: Convert natural language queries to SQL using RAG, chain-of-thought, and self-improvement techniques. path: capabilities/text_to_sql/guide.ipynb authors: - maheshmurag date: '2024-09-23' categories: - RAG & Retrieval - title: The one-liner research agent description: Build a research agent using Claude Code SDK with WebSearch for autonomous research. path: claude_agent_sdk/00_The_one_liner_research_agent.ipynb authors: - rodrigo-olivares - JiriDeJonghe date: '2025-09-12' categories: - Claude Agent SDK - Agent Patterns - title: The chief of staff agent description: Build multi-agent systems with subagents, hooks, output styles, and plan mode features. path: claude_agent_sdk/01_The_chief_of_staff_agent.ipynb authors: - rodrigo-olivares - JiriDeJonghe date: '2025-09-12' categories: - Claude Agent SDK - Agent Patterns - title: The observability agent description: Connect agents to external systems via MCP servers for GitHub monitoring and CI workflows. path: claude_agent_sdk/02_The_observability_agent.ipynb authors: - rodrigo-olivares - JiriDeJonghe date: '2025-09-12' categories: - Claude Agent SDK - Agent Patterns - title: The site reliability agent description: Build an incident response agent with read-write MCP tools for autonomous diagnosis, remediation, and post-mortem documentation. path: claude_agent_sdk/03_The_site_reliability_agent.ipynb authors: - benlehrburger-ant - isabella-anthropic date: '2026-02-16' categories: - Claude Agent SDK - Agent Patterns - title: Migrating from the OpenAI Agents SDK description: Port an OpenAI Agents SDK app to the Claude Agent SDK, mapping each primitive (tools, guardrails, sessions, handoffs) through a single expense-approval agent example. path: claude_agent_sdk/04_migrating_from_openai_agents_sdk.ipynb authors: - preston-tuggle date: '2026-03-09' categories: - Claude Agent SDK - Agent Patterns - title: Building a session browser description: List, read, rename, tag, and fork Agent SDK sessions on disk to build a conversation history sidebar without writing a transcript parser. path: claude_agent_sdk/05_Building_a_session_browser.ipynb authors: - qing-ant date: '2026-03-30' categories: - Claude Agent SDK - Agent Patterns - title: Hosting your agent description: Deploy the research agent from notebook 00 through three tiers of operational maturity (Docker, Modal, Kubernetes) with the same container image and HTTP interface at every tier. path: claude_agent_sdk/07_Hosting_the_agent.ipynb authors: - kevintang513 - anav-ant date: '2026-05-22' categories: - Claude Agent SDK - title: Extended thinking description: Use Claude's extended thinking for transparent step-by-step reasoning with budget management. path: extended_thinking/extended_thinking.ipynb authors: - alexalbertt date: '2025-02-24' categories: - Thinking - title: Extended thinking with tool use description: Combine extended thinking with tools for transparent reasoning during multi-step workflows. path: extended_thinking/extended_thinking_with_tool_use.ipynb authors: - alexalbertt date: '2025-02-24' categories: - Thinking - Tools - title: Finetuning Claude 3 Haiku on Bedrock description: Step-by-step guide to finetuning Claude 3 Haiku on Amazon Bedrock for custom tasks. path: finetuning/finetuning_on_bedrock.ipynb authors: - davidhershey date: '2024-08-19' categories: - Fine-Tuning - title: Batch processing with Message Batches API description: Process large volumes of Claude requests asynchronously with 50% cost reduction using batches. path: misc/batch_processing.ipynb authors: - alexalbertt date: '2024-10-08' categories: - Responses - title: Building evals description: Build robust evaluation systems to measure and improve Claude's performance on key metrics. path: misc/building_evals.ipynb authors: - alexalbertt date: '2024-03-03' categories: - Evals - title: Building a moderation filter with Claude description: Build customizable content moderation filters by defining rules and categories in prompts. path: misc/building_moderation_filter.ipynb authors: - alexalbertt date: '2024-03-03' categories: - Responses - title: Generate synthetic test data for your prompt template description: Generate synthetic test cases to evaluate and improve your Claude prompt templates effectively. path: misc/generate_test_cases.ipynb authors: - Anthropic date: '2024-08-16' categories: - Evals - title: Prompting Claude for "JSON mode" description: Get reliable JSON output from Claude using effective prompting techniques without constrained sampling. path: misc/how_to_enable_json_mode.ipynb authors: - alexalbertt date: '2024-03-03' categories: - Responses - title: How to make SQL queries with Claude description: Generate SQL queries from natural language questions using Claude with database schema context. path: misc/how_to_make_sql_queries.ipynb authors: - alexalbertt date: '2024-03-03' categories: - RAG & Retrieval - title: Metaprompt description: Prompt engineering tool that generates starting prompts for your tasks to solve blank-page problem. path: misc/metaprompt.ipynb authors: - Anthropic date: '2024-03-18' categories: - Responses - title: '"Uploading" PDFs to Claude via the API' description: Process and summarize PDF documents using Claude API with text extraction and encoding. path: misc/pdf_upload_summarization.ipynb authors: - Anthropic date: '2023-08-15' categories: - RAG & Retrieval - title: Prompt caching through the Claude API description: Cache and reuse prompt context for cost savings and faster responses with detailed instructions. path: misc/prompt_caching.ipynb authors: - alexalbertt date: '2024-08-14' categories: - Responses - title: Session memory compaction description: Manage long-running Claude conversations with instant session memory compaction using background threading and prompt caching. path: misc/session_memory_compaction.ipynb authors: - jsham042 date: '2026-01-16' categories: - Agent Patterns - Responses - title: Summarizing web page content with Claude 3 Haiku description: Fetch and summarize web page content using Claude 3 Haiku via URL extraction. path: misc/read_web_pages_with_haiku.ipynb authors: - alexalbertt date: '2024-03-13' categories: - RAG & Retrieval - title: Sampling responses from Claude beyond the max tokens limit description: Generate longer responses beyond max_tokens limit using prefill technique with message continuation. path: misc/sampling_past_max_tokens.ipynb authors: - Anthropic date: '2024-05-08' categories: - Responses - title: Speculative prompt caching description: Reduce time-to-first-token by warming cache speculatively while users formulate their queries. path: misc/speculative_prompt_caching.ipynb authors: - Anthropic date: '2025-05-15' categories: - Responses - title: Citations description: Enable Claude to provide detailed source citations when answering document-based questions for verification. path: misc/using_citations.ipynb authors: - Anthropic date: '2024-03-14' categories: - Responses - RAG & Retrieval - title: Best practices for using vision with Claude description: Tips and techniques for optimal image processing performance with Claude's vision capabilities. path: multimodal/best_practices_for_vision.ipynb authors: - alexalbertt date: '2024-05-08' categories: - Multimodal - title: Getting started - how to pass images into Claude description: Tutorial on passing images to Claude 3 API for vision-based text analysis. path: multimodal/getting_started_with_vision.ipynb authors: - alexalbertt date: '2024-03-03' categories: - Multimodal - title: How to transcribe documents with Claude description: Extract and structure unstructured text from images and PDFs using Claude 3's vision. path: multimodal/how_to_transcribe_text.ipynb authors: - alexalbertt date: '2024-03-03' categories: - Multimodal - title: Working with charts, graphs, and slide decks description: Extract insights from charts, graphs, and presentations using Claude's vision analysis capabilities. path: multimodal/reading_charts_graphs_powerpoints.ipynb authors: - alexalbertt date: '2024-03-03' categories: - Multimodal - title: Using Haiku as a sub-agent description: Analyze financial reports using Haiku sub-agents for extraction and Opus for synthesis. path: multimodal/using_sub_agents.ipynb authors: - alexalbertt date: '2024-03-13' categories: - Agent Patterns - title: Usage & cost Admin API cookbook description: Programmatically access and analyze your Claude API usage and cost data via Admin API. path: observability/usage_cost_api.ipynb authors: - Anthropic date: '2025-08-18' categories: - Observability - title: Basic workflows description: Three simple multi-LLM workflow patterns trading cost or latency for improved performance. path: patterns/agents/basic_workflows.ipynb authors: - Anthropic date: '2024-12-19' categories: - Agent Patterns - title: Evaluator optimizer description: Workflow pattern using one LLM for generation and another for evaluation feedback loop. path: patterns/agents/evaluator_optimizer.ipynb authors: - Anthropic date: '2024-12-19' categories: - Agent Patterns - Evals - title: Orchestrator workers description: Central LLM dynamically delegates tasks to worker LLMs and synthesizes their combined results. path: patterns/agents/orchestrator_workers.ipynb authors: - Anthropic date: '2024-12-19' categories: - Agent Patterns - title: Async multi-agent orchestration description: Two async multi-agent patterns — a fixed N-agent team with peer messaging through a shared hub, and dynamically spawned async subagents — reduced to their bare messaging and lifecycle mechanics. path: patterns/agents/async_multi_agent_orchestration.ipynb authors: - paulchen-go date: '2026-06-08' categories: - Agent Patterns - title: Introduction to Claude Skills description: Create documents, analyze data, automate workflows with Claude's Excel, PowerPoint, PDF skills. path: skills/notebooks/01_skills_introduction.ipynb authors: - zealoushacker date: '2025-10-14' categories: - Skills - title: Claude Skills for financial applications description: Build financial dashboards and portfolio analytics using Claude's Excel, PowerPoint, PDF skills. path: skills/notebooks/02_skills_financial_applications.ipynb authors: - zealoushacker date: '2025-10-15' categories: - Skills - title: Building custom Skills for Claude description: Create, deploy, and manage custom skills extending Claude with specialized organizational workflows. path: skills/notebooks/03_skills_custom_development.ipynb authors: - zealoushacker date: '2025-10-15' categories: - Skills - title: Transcribe an audio file with Deepgram & use Anthropic to prepare interview questions! description: Transcribe audio with Deepgram and generate interview questions using Claude for preparation. path: third_party/Deepgram/prerecorded_audio.ipynb authors: - jpvajda date: '2024-04-10' categories: - Integrations - Multimodal - title: RAG pipeline with LlamaIndex description: Build basic RAG pipeline with LlamaIndex for document retrieval and question answering. path: third_party/LlamaIndex/Basic_RAG_With_LlamaIndex.ipynb authors: - ravi03071991 date: '2024-03-01' categories: - Integrations - RAG & Retrieval - title: Multi-document agents description: Build RAG for large document collections using DocumentAgents with ReAct Agent pattern. path: third_party/LlamaIndex/Multi_Document_Agents.ipynb authors: - ravi03071991 date: '2024-03-02' categories: - Integrations - RAG & Retrieval - Agent Patterns - title: Multi-modal description: Use LlamaIndex's Anthropic MultiModal LLM abstraction for image understanding and reasoning. path: third_party/LlamaIndex/Multi_Modal.ipynb authors: - ravi03071991 date: '2024-03-08' categories: - Integrations - Multimodal - title: ReAct agent description: Create ReAct agents with LlamaIndex for tool-based reasoning and action workflows. path: third_party/LlamaIndex/ReAct_Agent.ipynb authors: - ravi03071991 date: '2024-03-02' categories: - Integrations - Agent Patterns - Tools - title: RouterQuery engine description: Route queries to different indices using LlamaIndex RouterQueryEngine for multi-document search. path: third_party/LlamaIndex/Router_Query_Engine.ipynb authors: - ravi03071991 date: '2024-03-01' categories: - Integrations - RAG & Retrieval - title: SubQuestionQueryEngine description: Decompose complex queries into sub-questions across multiple documents using LlamaIndex engine. path: third_party/LlamaIndex/SubQuestion_Query_Engine.ipynb authors: - ravi03071991 date: '2024-03-01' categories: - Integrations - RAG & Retrieval - title: How to build a RAG system using Claude 3 and MongoDB description: Build chatbot RAG system with Claude and MongoDB using tech news as knowledge base. path: third_party/MongoDB/rag_using_mongodb.ipynb authors: - RichmondAlake date: '2024-03-06' categories: - Integrations - RAG & Retrieval - title: Claude 3 RAG agents with LangChain v1 description: Build RAG agents with Claude 3 using LangChain v1's updated agent framework patterns. path: third_party/Pinecone/claude_3_rag_agent.ipynb authors: - james-briggs date: '2024-03-14' categories: - Integrations - RAG & Retrieval - Agent Patterns - title: Retrieval-augmented generation using Pinecone description: Connect Claude with Pinecone vector database for retrieval-augmented generation and semantic search. path: third_party/Pinecone/rag_using_pinecone.ipynb authors: - alexalbertt date: '2024-02-18' categories: - Integrations - RAG & Retrieval - title: Iteratively searching Wikipedia with Claude description: Legacy notebook showing iterative Wikipedia searches with Claude 2 for research workflows. path: third_party/Wikipedia/wikipedia-search-cookbook.ipynb authors: - Anthropic date: '2023-08-15' categories: - Integrations - title: Using the Wolfram Alpha LLM API as a tool with Claude description: Integrate Wolfram Alpha LLM API as Claude tool for computational queries and answers. path: third_party/WolframAlpha/using_llm_api.ipynb authors: - alexalbertt date: '2024-04-03' categories: - Integrations - Tools - title: Tool evaluation description: Run parallel agent evaluations on tools independently from evaluation task files. path: tool_evaluation/tool_evaluation.ipynb authors: - Anthropic date: '2025-09-10' categories: - Evals - title: Using a calculator tool with Claude description: Provide Claude with calculator tool for arithmetic operations and mathematical problem solving. path: tool_use/calculator_tool.ipynb authors: - alexalbertt date: '2024-04-03' categories: - Tools - title: Creating a customer service agent with client-side tools description: Build customer service chatbot with Claude using tools for customer lookup and order management. path: tool_use/customer_service_agent.ipynb authors: - alexalbertt date: '2024-04-03' categories: - Tools - Agent Patterns - title: Extracting structured JSON using Claude and tool use description: Extract structured JSON data from various inputs using Claude's tool use capabilities. path: tool_use/extracting_structured_json.ipynb authors: - alexalbertt date: '2024-04-03' categories: - Responses - Tools - title: Memory & context management with Claude Sonnet 4.6 description: Build AI agents with persistent memory using Claude's memory tool and context editing. path: tool_use/memory_cookbook.ipynb authors: - zealoushacker date: '2025-05-22' categories: - Tools - Agent Patterns - title: Parallel tool calls on Claude 3.7 Sonnet description: Enable parallel tool calls on Claude 3.7 Sonnet using batch tool meta-pattern workaround. path: tool_use/parallel_tools.ipynb authors: - Anthropic date: '2025-03-05' categories: - Tools - title: Tool choice description: Control how Claude selects tools using tool_choice parameter for forced or auto selection. path: tool_use/tool_choice.ipynb authors: - alexalbertt date: '2024-05-15' categories: - Tools - title: Note-saving tool with Pydantic and Anthropic tool use description: Create validated tools using Pydantic models for type-safe Claude tool use interactions. path: tool_use/tool_use_with_pydantic.ipynb authors: - alexalbertt date: '2024-04-12' categories: - Tools - title: Using vision with tools description: Combine Claude's vision with tools to extract structured data from images like nutrition labels. path: tool_use/vision_with_tools.ipynb authors: - alexalbertt date: '2024-05-15' categories: - Multimodal - Tools - title: Build agents that remember your users description: Give your Claude Managed Agents a Memory store so they learn and remember your users' preferences across multiple interactions. path: managed_agents/CMA_remember_user_preferences.ipynb authors: - gaganb-ant date: '2026-04-24' categories: - Claude Managed Agents - Tools - title: The vulnerability detection agent description: Build a vulnerability-discovery agent with the Claude Agent SDK that threat-models a C target, hunts memory-safety bugs with built-in file tools, and triages findings into a structured report. path: claude_agent_sdk/06_The_vulnerability_detection_agent.ipynb authors: - eugeneyan-ant date: '2026-04-22' categories: - Claude Agent SDK - Cybersecurity - title: 'Multiagent: coordinate a specialist team' description: Heterogeneous team via the multiagent coordinator config — a coordinator runs three specialists (web-search researcher, file-reading librarian, rules-based pricer) with scoped toolsets to assemble a sales proposal. Covers the multiagent field, the thread_created / thread_message_received event types, and per-role tool scoping. path: managed_agents/CMA_coordinate_specialist_team.ipynb authors: - markn-ant date: '2026-05-03' categories: - Claude Managed Agents - Tools - title: 'Outcomes: agents that verify their own work' description: 'Build a grade-and-revise loop with Outcomes: a writer drafts a cited research brief, a stateless grader fetches every URL and checks every quote against a rubric, and feedback drives revisions until the brief passes. Covers user.define_outcome, the span.outcome_evaluation_* events, and how to write a rubric the grader can act on.' path: managed_agents/CMA_verify_with_outcome_grader.ipynb authors: - markn-ant - gaganb-ant date: '2026-05-03' categories: - Claude Managed Agents - Evals - title: Classifier fallback and billing for Claude Fable 5 description: Detect safety classifier blocks on Fable 5 and fall back to Opus 4.8 with server-side or SDK-based client-side fallback, including streaming behavior and the new billing changes. path: fable_5_fallback_billing/guide.ipynb authors: - Briiick - maheshmurag - mikaelagrace date: '2026-06-09' categories: - Responses - Safeguards - Billing