Learn how to use fine-grained tool calling in Claude for faster, more granular streaming. Understand JSON validation, buffering delays, and when to enable fine-grained mode.
Learn how to use the Claude Code SDK to run Claude programmatically from your applications and scripts. Available for TypeScript, Python, and CLI with practical examples and use cases.
Learn how to use system prompts to customize Claude's responses for specific use cases. Build a math tutor chatbot and create flexible chat functions with role-appropriate interactions.
Learn how to generate clean structured data like JSON with Claude using assistant message prefilling and stop sequences. Get raw data without explanatory text or markdown formatting.
Master one-shot and multi-shot prompting techniques in Claude. Learn how to use examples to handle edge cases, define output formats, and improve response quality.
Learn how to use hooks in Claude Code to address common AI development weaknesses. Implement TypeScript type checking and query duplication prevention with practical examples and code.
Learn how to use Claude's built-in text editor tool for file manipulation. Understand schema versions, implementation requirements, and practical applications for file editing.
Learn how to build robust multi-turn conversation loops that handle sequential tool calls automatically. This guide covers refactoring message handlers, implementing conversation loops, managing tool execution, and handling complex scenarios where Claude needs multiple tools to answer a single question.
Learn how to implement code-based grading for AI-generated code evaluation. This guide covers syntax validation for Python, JSON, and regex, combining code and model graders, and using objective metrics to measure prompt engineering progress.
Learn how to build hooks in Claude Code to intercept and control tool calls. Master PreToolUse and PostToolUse hooks, understand tool call data structures, and implement access control for sensitive files.