search_patterns
Search for reusable design patterns and principles from Claude Code's architecture to adapt for your own AI agent. Filter by pattern type, keywords, or module.
Instructions
Search for reusable design patterns and principles extracted from Claude Code's architecture. Returns 'directly-reusable' patterns that you can adapt for your own Agent implementation. Output is paginated: each section is capped (default 800 chars) and total sections capped (default 12). Use module_id to focus, or get_module(section="principles") for the full text of a specific module.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern_type | No | Type of patterns to search: 'reusable' = patterns you can copy, 'anti-pattern' = patterns to avoid, 'all' = both. | |
| keywords | No | Optional: filter patterns by keywords (e.g., ['cache', 'retry', 'streaming']). | |
| module_id | No | Optional: restrict to a single module (e.g., 'M05'). Useful when you already know the relevant module. | |
| max_per_section | No | Optional: per-section character cap (default 800). Truncated sections include a hint to fetch full content via get_module. | |
| max_sections | No | Optional: maximum total number of sections to return (default 12). |