analyze_error_patterns
Analyze error handling patterns in your codebase to uncover inconsistencies, missing error handling, and evolution over time, with actionable recommendations for consistency.
Instructions
Discover error handling patterns and inconsistencies in the codebase.
Use this tool when you need to understand:
How errors are typically handled in this codebase
What error handling patterns to follow for consistency
Where error handling might be missing or inconsistent
How error handling has evolved over time
Essential for implementing proper error handling that matches the codebase style, debugging error-related issues, or improving error handling consistency.
Args: repo_path: Repository path (absolute) working_directory: Working directory (absolute path) focus_area: Specific area to focus on (e.g., "database", "api", "file_io") custom_patterns: Custom regex patterns for error handling (overrides defaults) custom_antipatterns: Custom regex patterns for antipatterns (overrides defaults) include_antipatterns: Whether to identify problematic error handling show_evolution: Whether to show how error handling has changed days_back: Days of git history to analyze for evolution
Returns: Comprehensive error handling analysis with patterns and recommendations
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days_back | No | ||
| repo_path | Yes | ||
| focus_area | No | ||
| show_evolution | No | ||
| custom_patterns | No | ||
| working_directory | Yes | ||
| custom_antipatterns | No | ||
| include_antipatterns | No |