How anthropics/claude-cookbooks works
Claude Cookbooks is a collection of copyable examples for developers building Claude applications, not one integrated runtime. A representative user workflow is to choose a recipe, adapt its prompt/tool or retrieval example, and use Claude or an external service to produce a result. The tree also contains standalone agents and hosting examples. Edges are limited to relationships stated in the README or visible in the supplied source index/excerpts; many recipe internals were not sampled, so their connections are intentionally omitted.
Main entry points: README.md Claude Cookbooks · main.py Kubernetes Gateway · pipeline.py Policy Compiler and Extractor · provider_retrieval.py RAG Retrieval and Reranking
Components 23
Moderation
- Policy Compiler and Extractor
capabilities/content_moderation/pipeline.py - Rule Engine
capabilities/content_moderation/engine.py - Moderation Evaluation
capabilities/content_moderation/evaluation/run_eval.py
Retrieval and SQL
- Classification Prompts
capabilities/classification/evaluation/prompts.py - RAG Retrieval and Reranking
capabilities/retrieval_augmented_generation/evaluation/provider_retrieval.py - Text-to-SQL Prompts
capabilities/text_to_sql/evaluation/prompts.py - Evaluation Vector DB
capabilities/text_to_sql/evaluation/vectordb.py - MongoDB Configuration
managed_agents/mongodb_on_cma/config.py
Agents and Hosting
- Research Agent
claude_agent_sdk/research_agent/agent.py - Agent HTTP Server
claude_agent_sdk/hosting/server.py - Kubernetes Gateway
claude_agent_sdk/hosting/kubernetes/gateway/main.py - Pod Provisioning
claude_agent_sdk/hosting/kubernetes/gateway/k8s.py - Session Proxy
claude_agent_sdk/hosting/kubernetes/gateway/proxy.py - Agent Visualizer
claude_agent_sdk/utils/agent_visualizer.py - URL Utilities
managed_agents/example_data/orchestrate/src/url_utils.py
Tool Use
- Memory Code Review Demo
tool_use/memory_demo/code_review_demo.py - Memory Operations
tool_use/memory_tool.py - Customer Service Tools
tool_use/utils/customer_service_tools.py - Ticket API
tool_use/utils/customer_service_api.py
Other components
- Developer
- Claude Cookbooks
README.md - Claude API
- External Knowledge
Connections 17
- Developer → Claude Cookbooks: chooses recipe
README.md - Claude Cookbooks → Policy Compiler and Extractor: offers moderation
README.md - Claude Cookbooks → Moderation Evaluation: offers evaluations
README.md - Claude Cookbooks → Classification Prompts: offers classification
README.md - Claude Cookbooks → RAG Retrieval and Reranking: offers retrieval
README.md - Claude Cookbooks → Text-to-SQL Prompts: offers SQL examples
README.md - Claude Cookbooks → Research Agent: offers agent examples
README.md - Claude Cookbooks → Memory Code Review Demo: offers tool-use examples
README.md - Policy Compiler and Extractor → Rule Engine: evaluates rules
capabilities/content_moderation/pipeline.py - Agent HTTP Server → Research Agent: runs agent
claude_agent_sdk/hosting/server.py - Kubernetes Gateway → Pod Provisioning: provisions pods
claude_agent_sdk/hosting/kubernetes/gateway/main.py - Kubernetes Gateway → Session Proxy: relays sessions
claude_agent_sdk/hosting/kubernetes/gateway/main.py - Memory Code Review Demo → Memory Operations: executes memory
tool_use/memory_demo/code_review_demo.py - Customer Service Tools → Ticket API: uses ticket API
tool_use/utils/customer_service_tools.py - Text-to-SQL Prompts → Evaluation Vector DB: references vector DB
capabilities/text_to_sql/evaluation/prompts.py - Developer → Claude API: integrates Claude
README.md - RAG Retrieval and Reranking → External Knowledge: retrieves knowledge
README.md