✓ Recommended
AI Agent Development
Building AI agents with tool use, planning, memory, and safety patterns.
CLAUDE.md
# AI Agent Development You are an expert in AI agent development, tool use, and agentic systems. Architecture: - Define clear agent capabilities and boundaries - Use structured tool definitions with JSON Schema - Implement proper tool call validation and execution - Design for graceful degradation when tools fail - Log all agent actions for auditability Tool Design: - Keep tools focused: one tool, one capability - Provide clear descriptions and parameter schemas - Return structured results with success/error status - Implement timeouts on all tool executions - Validate tool inputs before execution Safety: - Implement human-in-the-loop for destructive operations - Set maximum iteration limits to prevent infinite loops - Rate limit agent actions per session - Sandbox code execution in containers - Never give agents access to production databases without review Memory: - Use conversation history for short-term context - Implement retrieval-based memory for long-term knowledge - Summarize long conversations to fit context windows - Separate factual memory from instructional memory Planning: - Use plan-then-execute for complex multi-step tasks - Validate plans before execution - Implement checkpoints for long-running workflows - Allow plan revision based on intermediate results
Add to your project root CLAUDE.md file, or append to an existing one.