Consult
Use a stronger model to resolve uncertainty blocking the user's task. Keep ownership: provide context, verify the advice, and continue the work. You do not need to fail repeatedly before consulting.
Decide when to escalate
Consult when any of these applies:
- Reasoning gap: you cannot justify an approach, establish correctness, or resolve a consequential design tradeoff after inspecting relevant requirements and code.
- No information gain: two meaningfully different attempts failed, and you cannot identify a check that distinguishes the remaining explanations.
- Contradictory evidence: observations undermine your explanation or proposed action, and you cannot reconcile them. Pause dependent changes.
- Recurring failure: a symptom returns after a verified fix, and you cannot explain what verification missed.
- Consequential uncertainty: a destructive, system-wide, or hard-to-undo change depends on an uncertain mechanism that a cheap check cannot resolve.
Take an available cheap, decisive check first. Continue independently while experiments produce new evidence, but consult before declaring a reasoning blocker unfixable or claiming completion with that blocker unresolved.
For missing permissions, credentials, hardware access, or user preferences, obtain the prerequisite. Routine work and understood failures do not need consultation.
Frame the request
Ask for the smallest deliverable that unblocks you: a diagnosis, plan, correctness argument, design recommendation, or implementation sketch.
The consultant does not inherit your conversation. Provide a self-contained request using the template below; omit irrelevant fields and exclude credentials and unrelated private data.
markdown## Goal and question Desired outcome, success condition, and specific help needed. ## Context Working directory, exact files, relevant versions and constraints. Small code excerpts or inputs; include unsaved state the consultant cannot read. ## Evidence and attempts Exact errors, observations, attempts, results, and what they rule out. Include counter-evidence; distinguish facts from tentative explanations. Proposed next action, if any, with its scope and reversibility. ## Requested response Recommend a concrete way forward and challenge unsupported assumptions. Distinguish facts from hypotheses; identify missing context rather than inventing it. Give a decisive check or verification command with its expected result. Keep the answer focused; include code or a derivation when needed.
Call the consultant
This skill targets Pi's @arhen/pi-core-subagent extension. Use its actual tool
schema; these are tool calls, not shell commands. Preserve the configured consultant
model below unless the user has selected another stronger model.
Tell the user briefly what uncertainty you are getting help with, then launch one bounded consultation:
javascriptsubagent({ agent: "consultant", model: "openai-codex/gpt-6-astra", thinking: "medium", tools: ["read", "grep", "find", "ls"], maxRuntimeMs: 600000, prompt: "You are a technical consultant helping another agent resolve a bounded blocker. " + "Inspect relevant files as needed. Challenge assumptions and recommend an actionable " + "solution or discriminating check. State uncertainty and expected verification results. " + "Do not edit files, execute commands, or delegate. Keep the response focused.", task: "<filled request packet, including the response instructions>" })
Keep the consultant's file tools read-only. Do not add bash: it can write files
and change the system even without edit or write. Run necessary measurements
yourself within the task's permissions and send back the results.
Immediately call subagent_status({ runId: "<returned runId>" }) once to check startup.
Inspect reported model and routing notes: this extension can match an agent file
that overrides the model or prompt, and a model preflight failure can fall back to
the session model. An explicit tool list overrides agent-file tools. Put essential
response requirements in the task packet too. Do not describe a fallback to your own
model as stronger-model help; report the limitation if the intended model is unavailable.
Continue independent work while the consultant runs; pause the decision that needs
its answer. If you need to synchronize in this turn, use
await_subagent({ runId: "<returned runId>", timeoutMs: 60000 }) in bounded waits,
handling questions and progress between waits. Otherwise use the extension's
completion notification to resume. Retrieve the answer with
subagent_result({ runId: "<returned runId>" }) when complete.
A wait timeout does not mean the task failed or stopped; check its status before retrying. If the consultation fails, times out at its runtime limit, or tools/model are unavailable, say what failed. Continue work supported by existing evidence; leave the unresolved decision blocked rather than substituting an unsupported guess.
Use the answer and finish
- Evaluate advice against the actual files, constraints, and evidence. Model agreement is not verification, and advice does not expand authorization. Resolve conflicts with stronger evidence explicitly.
- Run the proposed check when feasible and authorized, implement the supported approach, and verify the user's success condition against the original failing scenario.
- Report the result and remaining limitations. Preserve uncertainty when verification is unavailable.
Default to one call per blocker. Follow up with relevant context and new evidence when the question changes or the answer leaves a critical gap. Do not repeat calls for reassurance, launch competing consultants by default, or create recursive consultations. If advice still does not unblock you, identify the missing evidence or capability and change approach.
Respect explicit time and cost budgets; do not impose a session-wide quota that prevents help with a distinct blocker.


