anthropics /claude-cookbooks
A collection of notebooks/recipes showcasing some fun and effective ways of using Claude.
★ 54,480⑂ 6,615👁 630⑃ 678● 232▤ 0◈ 0
54,480
stars
+25+373
6,615
forks
630
watchers
678
prs
232
issues
0
releases
0
discussions
README
Claude Cookbooks The Claude Cookbooks provide code and guides designed to help developers build with Claude, offering copy-able code snippets that you can easily integrate into your own projects. Prerequisites To make the most of the examples in this cookbook, you'll need a Claude API key (sign up for free here). While the code examples are primarily written in Python, the concepts can be adapted to any programming language that supports interaction with the Claude API. If you're new to working with the Claude API, we recommend starting with our Claude API Fundamentals course to get a solid foundation. Explore Further Looking for more resources to enhance your experience with Claude and AI assistants? Check out these helpful links: - Anthropic developer documentation - Anthropic support docs - Anthropic Discord community Contributing The Claude Cookbooks thrives on the contributions of the developer community. We value your input, whether it's submitting an idea, fixing a typo, adding a new guide, or improving an existing one. By contributing, you help make this resource even more valuable for everyone. To avoid duplication of efforts, please review the existing issues and pull requests before contributing. If you have ideas for new examples or guides, share them on the issues page. Table of recipes Capabilities - Classification: Explore techniques for text and data classification using Claude. - Retrieval Augmented Generation: Learn how to enhance Claude's responses with external knowledge. - Summarization: Discover techniques for effective text summarization with Claude. Tool Use and Integration - Tool use: Learn how to integrate Claude with external tools and functions to extend its capabilities. - Customer service agent - Calculator integration - SQL queries Third-Party Integrations - Retrieval augmented generation: Supplement Claude's knowledge with external data sources. - Vector databases (Pinecone) - Web pages - Embeddings with Voyage AI Multimodal Capabilities - Vision with Claude: - Getting started with images - Best practices for vision - Interpreting charts and graphs - Extracting content from forms - Generate images with Claude: Use Claude with Stable Diffusion for image generation. Advanced Techniques - Sub-agents: Learn how to use Haiku as a sub-agent in combination with Opus. - Upload PDFs to Claude: Parse and pass PDFs as text to Claude. - Automated evaluations: Use Claude to automate the prompt evaluation process. - Enable JSON mode: Ensure consistent JSON output from Claude. - Create a moderation filter: Use Claude to create a content moderation filter for your application. - Prompt caching: Learn techniques for efficient prompt caching with Claude. - Cost optimization: Work through a cost optimization checklist on an agent, measuring pass rate and cost per task to find the Pareto-optimal configuration. - Latency optimization: Work through the latency levers on an agent, measuring t
Top issues
#546Proposal: add agent spending governance cookbook8 comments · 2026-04-16#612[PROPOSAL] Pre-flight tool input safety for Claude tool use7 comments · 2026-05-10#473Energy Efficiency: 10 Mathematical Techniques for 60-70% AI Energy Reduction (Phi6Simple, FFT-Mix, Phi MoE)7 comments · 2026-03-26#701[PROPOSAL] Human-in-the-loop approval for irreversible agent actions5 comments · 2026-06-11#719[PROPOSAL] Cookbook: Deterministic guardrails as pre/post-action checks on agent tool calls4 comments · 2026-06-17#687Cookbook Proposal: Claude Agent with Autonomous x402 Micropayments on Solana4 comments · 2026-06-03#596[Notebook Proposal] Shared context caching across multi-agent Claude workflows4 comments · 2026-05-04#753Feature Request: Add scheduled full-repo sweep to lint-format.yml (similar to links.yml)3 comments · 2026-07-02
相关报道 (5)
blog.csdnclaude-cookbooks Observability Agent 架构与通信流解析:从 MCP 到 GitHub API 的全链路监控设计2026-09-07blog.csdn【GitHub每日速递 20251103】Claude Cookbooks:一站式掌握Claude开发秘籍,解锁AI无限可能!2026-08-1236Kr刚刚,Claude Fable 5续命5天,省钱攻略来了2026-07-07InfoQ.cnAnthropic 这两天真“忙”:上线网页版 Claude Code,还让 Claude 搞科研2025-10-21QQ NewsClaude Sonnet 4.5、DeepSeek-V3.2 发布,OpenAI 最新动态2025-09-30
News & coverage (8)
Hacker NewsFront End Aesthetics: A Prompting Guide▲ 1 · 1 comments · 2025-11-14opentools.aiClaude Cookbooks: Official Recipes and Notebooks by Anthropic2026-05-24blockchainClaude Cookbooks on GitHub: Latest Developer Guide for Claude 3.5 Use Cases and API Patterns2026-02-27eu.36kr.comClaude Fable 5 Extended 5 Days: Exclusive Money-Saving Guide Just Released2026-07-07KuCoinAnthropic Extends Free Access to Fable 5 Until July 12, Shares Cost-Saving Strategies2026-07-07Pasquale PillitteriThe Best GitHub Repos to Learn Artificial Intelligence (Free)2026-07-04DataDrivenInvestorTop 9 Claude Skills for Finance and Quantitative Developers (Including One That Connects to Live…2026-06-02OpenToolsMatt Pocock Skills for Claude Code2026-06-02