escalate_analysis
Transfer complex code analysis tasks to Gemini when Claude Code encounters reasoning limits, enabling advanced semantic analysis beyond syntactic patterns for deeper insights.
Instructions
Hand off complex analysis to Gemini when Claude Code hits reasoning limits. Gemini will perform deep semantic analysis beyond syntactic patterns.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
analysis_type | Yes | Type of deep analysis to perform | |
claude_context | Yes | ||
depth_level | No | How deep to analyze (1=shallow, 5=very deep) | |
time_budget_seconds | No | Maximum time for analysis |
Input Schema (JSON Schema)
{
"properties": {
"analysis_type": {
"description": "Type of deep analysis to perform",
"enum": [
"execution_trace",
"cross_system",
"performance",
"hypothesis_test"
],
"type": "string"
},
"claude_context": {
"properties": {
"attempted_approaches": {
"description": "What Claude Code already tried",
"items": {
"type": "string"
},
"type": "array"
},
"code_scope": {
"properties": {
"entry_points": {
"description": "Specific functions/methods to start from",
"type": "array"
},
"files": {
"description": "Files to analyze",
"items": {
"type": "string"
},
"type": "array"
},
"service_names": {
"description": "Services involved in cross-system analysis",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"files"
],
"type": "object"
},
"partial_findings": {
"description": "Any findings Claude Code discovered",
"type": "array"
},
"stuck_description": {
"description": "Description of where Claude Code got stuck",
"type": "string"
}
},
"required": [
"attempted_approaches",
"partial_findings",
"stuck_description",
"code_scope"
],
"type": "object"
},
"depth_level": {
"description": "How deep to analyze (1=shallow, 5=very deep)",
"maximum": 5,
"minimum": 1,
"type": "number"
},
"time_budget_seconds": {
"default": 60,
"description": "Maximum time for analysis",
"type": "number"
}
},
"required": [
"claude_context",
"analysis_type"
],
"type": "object"
}