escalate_task
Escalates failed or complex bugs, race conditions, architecture, and security issues to a cloud frontier model. It redacts PHI/secrets and writes a NOTES.md handoff so local execution can resume.
Instructions
Escalate a 2-strike bug, subtle race condition, complex architecture design, or security audit from the local workhorse to upstream frontier intelligence (Gemini 4 Argon or Gemini 3.8 Flash via Antigravity). Runs pre-flight airgap check to prevent PHI/secret leaks, records the handoff packet in NOTES.md, queries the frontier model, and returns the architectural diagnosis and solution spec so the local model can resume execution.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "escalate_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Optional list of relevant source/test file paths to attach as context | |
| prompt | Yes | Clear explanation of the problem, failure symptom, or architectural bottleneck to solve | |
| redact | No | If true, automatically redacts detected secrets and clinical PHI before sending to cloud | |
| workdir | No | Optional target project directory (defaults to current working directory) | |
| attempted | No | List of prior attempts or approaches that failed (for the 2-Strike escalation packet) | |
| auto_handoff | No | If true, automatically creates/updates NOTES.md with the escalation request and frontier solution spec | |
| target_model | No | Escalation tier: 'auto' (smart cost-optimized routing: Flash for reviews/triage, Argon for 2-strike blockers/architecture), 'sprinter'/'flash' ('gemini-3.8-flash-medium'), or 'architect'/'argon' ('gemini-4-argon-medium') | auto |
| failing_output | No | Optional tail of stdout/stderr from the failing command | |
| failing_command | No | Optional command that reproduces the failure (e.g. 'pytest -q tests/test_x.py') |