Step, slash-command and mode prompts
Full reference17 reviewed records from the shipped Antigravity artifacts: step-string templates, /grill-me, /goal, non-interactive mode, and teamwork handoff reminders. Each entry preserves the exact shipped bytes, offset, and SHA-256 provenance.
Runtime and step prompts
Step prompt template: errors
When: Embedded Go template used to render tool/command step output or template error status back to the model.
- Source:
desktop/Contents/Resources/bin/language_server@0x3870a5d–0x3870b98(315 bytes) · embedgoogle3/third_party/jetski/prompt/template_provider/templates/helpers/errors.tmpl· SHA-2565d37ed29f71d8da88f2eea9a1ebf5db8cbee22be4bde63506f1887f7da0ff0ea
{{- /*
Global error handling helpers for templates
*/ -}}
{{- /*
templateError outputs a standardized error token with a description
Usage: {{template "templateError" "description of the error"}}
Output format: <TEMPLATE_ERROR:description>
*/ -}}
{{- define "templateError" -}}
<TEMPLATE_ERROR:{{.}}>
{{- end -}}
Step prompt template: default_status_output_string
When: Embedded Go template used to render tool/command step output or template error status back to the model.
- Source:
desktop/Contents/Resources/bin/language_server@0x38c7da7–0x38c8279(1,234 bytes) · embedgoogle3/third_party/jetski/prompt/template_provider/templates/step_strings/helpers/default_status_output_string.tmpl· SHA-256c9d1a48159f15ad0ebbac54129db898fcc8276ade3765e8ca3bd8bc29c560504
{{- /*
Template for defaultStatusOutputString function
Returns a status string based on step status, or empty string if status is DONE
Can be used by multiple step converter templates
Params: . (dot) - the Step proto
*/ -}}
{{- define "defaultStatusOutputString" }}
{{- $step := . }}
{{- $statusStr := $step.GetStatus.String }}
{{- if eq $statusStr "CORTEX_STEP_STATUS_CANCELED" }}
Step was canceled: {{ $step.GetError.GetShortError }}
{{- else if eq $statusStr "CORTEX_STEP_STATUS_ERROR" }}
Encountered error in step execution: {{ $step.GetError.GetShortError }}
{{- else if eq $statusStr "CORTEX_STEP_STATUS_INVALID" }}
{{- if $step.GetMetadata.GetToolCall }}
Error invalid tool call: {{ $step.GetError.GetShortError }}
{{- else }}
Error: {{ $step.GetError.GetShortError }}
{{- end }}
{{- else if or (eq $statusStr "CORTEX_STEP_STATUS_PENDING") (eq $statusStr "CORTEX_STEP_STATUS_RUNNING") }}
Step is still running
{{- else if eq $statusStr "CORTEX_STEP_STATUS_WAITING" }}
Step is WAITING for user approval
{{- else if eq $statusStr "CORTEX_STEP_STATUS_DONE" }}
{{- /* Return empty string for DONE status */ -}}
{{- else }}
{{- template "templateError" "Unrecognized Cortex Step Status" }}
{{- end }}
{{- end }}
Step prompt template: run_command
When: Embedded Go template used to render tool/command step output or template error status back to the model.
- Source:
desktop/Contents/Resources/bin/language_server@0x397825e–0x3979323(4,293 bytes) · embedgoogle3/third_party/jetski/prompt/template_provider/templates/step_strings/run_command.tmpl· SHA-2564edd693408313c291eff37e3554b7a05e3a77107a97686632c54fd560ee6755f
{{- /*
Template for RunCommandStringConverter.ToOutputString
Data: StepStringData with Step field
*/ -}}
{{- $step := .Step -}}
{{- $runCommand := $step.GetRunCommand -}}
{{- $proposedCmd := $runCommand.GetProposedCommandLine -}}
{{- $actualCmd := $runCommand.GetCommandLine -}}
{{- $commandId := $runCommand.GetCommandId -}}
{{- $statusStr := $step.GetStatus.String -}}
{{- $combinedOutput := $runCommand.GetCombinedOutput -}}
{{- $combinedOutputSnapshot := $runCommand.GetCombinedOutputSnapshot -}}
{{- $isError := or (eq $statusStr "CORTEX_STEP_STATUS_ERROR") (eq $statusStr "CORTEX_STEP_STATUS_INVALID") -}}
{{- /* Check if command was edited */ -}}
{{- if and (ne $proposedCmd $actualCmd) (ne $proposedCmd "") }}
The user changed the command to be run to: {{ $actualCmd }}
{{- end }}
{{- /* Background command special case */ -}}
{{- if ne $commandId "" }}
Background command ID: {{ $commandId }}
{{- if $combinedOutputSnapshot }}
{{- if ne $combinedOutputSnapshot.GetFull "" }}
Output snapshot:
{{ $combinedOutputSnapshot.GetFull }}
{{- end }}
{{- end }}
{{- else }}
{{- if and (eq $statusStr "CORTEX_STEP_STATUS_CANCELED") (not $combinedOutput) }}
{{- if $step.GetError.GetShortError }}Step was canceled: {{ $step.GetError.GetShortError }}{{- else }}Step was canceled.{{- end }}
{{- else if or (eq $statusStr "CORTEX_STEP_STATUS_PENDING") (eq $statusStr "CORTEX_STEP_STATUS_RUNNING") (eq $statusStr "CORTEX_STEP_STATUS_WAITING") (eq $statusStr "CORTEX_STEP_STATUS_UNSPECIFIED") }}
{{- template "defaultStatusOutputString" $step }}
{{- else }}
{{- /* Print error message if the step failed */ -}}
{{- if $isError }}
{{- template "defaultStatusOutputString" $step }}
{{- end }}
{{- /* Handle cancellation with output */ -}}
{{- if eq $statusStr "CORTEX_STEP_STATUS_CANCELED" }}
{{- if $step.GetError.GetShortError }}Step was canceled: {{ $step.GetError.GetShortError }}{{- else }}Step was canceled.{{- end }}
The following output was generated before the cancellation.
{{- else }}
{{- /* Exit code information */ -}}
{{- if or (ne $runCommand.GetExitCode 0) (not $isError) }}
The command exited with code {{ $runCommand.GetExitCode }}.
{{- end }}
{{- /* Sandbox guidance. Suppressed entirely when bypassing is disabled by config. When the command line statically contains a non-proxy trusted CLI, a requested BypassSandbox is dropped (the CLI must stay intercepted). Tell the model whenever it requested bypass (so it does not retry in a loop) or when a sandboxed failure would otherwise prompt a futile bypass retry. Otherwise fall back to the generic bypass suggestion, suppressed for commands that already ran with an override or that surfaced their own trusted-CLI remediation. */ -}}
{{- if not $runCommand.GetSandboxBypassDisabled }}
{{- if ne $runCommand.GetSandboxedTrustedCli "" }}
{{- if or $runCommand.GetSandboxOverride (and (ne $runCommand.GetSandboxErrors "") (or (ne $runCommand.GetExitCode 0) $isError) (not $runCommand.GetIsTrustedCli)) }}
This command includes call(s) to `{{ $runCommand.GetSandboxedTrustedCli }}`, which MUST run inside the sandbox, so `BypassSandbox` was not applied to this command. If you really need to run the other parts outside the sandbox, run them as a separate command.
{{- end }}
{{- else if and (ne $runCommand.GetSandboxErrors "") (or (ne $runCommand.GetExitCode 0) $isError) (not $runCommand.GetSandboxOverride) (not $runCommand.GetIsTrustedCli) }}
There were sandbox errors that may or may not be related to the failure. If you think the failure is because of running in the sandbox, you can run the command again with `BypassSandbox` set to true to request explicit user permission.
{{- end }}
{{- end }}
{{- end -}}
{{/* Output section */ -}}
{{- if ne $combinedOutput.GetFull "" }}
Output:
{{ $combinedOutput.GetFull }}
{{- else if or (ne $runCommand.GetStdoutOutput.GetFull "") (ne $runCommand.GetStderrOutput.GetFull "") }}
Stdout:
{{ $runCommand.GetStdoutOutput.GetFull }}
Stderr:
{{ $runCommand.GetStderrOutput.GetFull }}
{{- else if not $isError }}
No output
{{- end }}
{{- end }}
{{- end }}
{{- /* Terminal ID for persistent terminals */ -}}
{{- if ne $runCommand.GetTerminalId "" }}
Terminal ID: {{ $runCommand.GetTerminalId }}
{{- end }}
Step prompt template: send_command_input
When: Embedded Go template used to render tool/command step output or template error status back to the model.
- Source:
desktop/Contents/Resources/bin/language_server@0x38abc72–0x38ac026(948 bytes) · embedgoogle3/third_party/jetski/prompt/template_provider/templates/step_strings/send_command_input.tmpl· SHA-256704a1b6454a8b3d988ea62f0ac5aae50e0b5dc11b6e652d81844dea2880379b9
{{- /*
Template for SendCommandInputStringConverter.ToOutputString
Data: StepStringData with Step field
*/ -}}
{{- $step := .Step -}}
{{- $sendInput := $step.GetSendCommandInput -}}
{{- $output := $sendInput.GetOutput -}}
{{- $running := $sendInput.GetRunning -}}
{{- $exitCode := $sendInput.GetExitCode -}}
{{- $statusStr := $step.GetStatus.String -}}
{{- if or (eq $statusStr "CORTEX_STEP_STATUS_PENDING") (eq $statusStr "CORTEX_STEP_STATUS_RUNNING") (eq $statusStr "CORTEX_STEP_STATUS_INVALID") (eq $statusStr "CORTEX_STEP_STATUS_ERROR") (eq $statusStr "CORTEX_STEP_STATUS_WAITING") (eq $statusStr "CORTEX_STEP_STATUS_UNSPECIFIED") }}
{{- template "defaultStatusOutputString" $step }}
{{- else }}
Input sent successfully.
{{- if $running }}
The command is still running.
{{- else }}
The command exited with code {{ $exitCode }}.
{{- end }}
{{- if and $output (ne $output.GetFull "") }}
Output:
{{ $output.GetFull }}
{{- end }}
{{- end }}
Non-interactive mode prompt
When: Injected when running non-interactively (e.g. headless or print mode) without user approvals.
- Source:
desktop/Contents/Resources/bin/language_server@0x386a03a–0x386a149(271 bytes) · SHA-256a4d815a737d6e839f218d2ede7d844b6cc183716e48469e01684cb5531663371
You are in NON-INTERACTIVE mode. The user will not respond to questions or requests for approval. Work autonomously.
## Execute
- The user is not available for interactive review. Proceed to execute the task directly.
- If you discover issues, address them and continue.
Slash command prompt: /goal
When: Injected when the user marks a task with /goal for thorough long-running execution.
- Source:
desktop/Contents/Resources/bin/language_server@0x3888e59–0x3889070(535 bytes) · SHA-256ffdaf83d421339281f678fca9bf9fe076fd3fe3b189a5268750664dbc22123a1
The user has marked this task with /goal, indicating that this task is intended to run for a long time without user input, e.g. overnight. You should be extra thorough and only stop when you are confident the goal has been completely fulfilled. The system will force you to continue execution, prompting you to audit your work until completion. Once complete, include <!-- GOAL_COMPLETE --> in your response. If the user explicitly asked to stop or cancel this goal, include <!-- GOAL_CANCELLED --> in your response to cancel the goal.
Slash command prompt: /grill-me
When: Injected when the user invokes /grill-me to run an interactive design interview.
- Source:
desktop/Contents/Resources/bin/language_server@0x3885204–0x38853ef(491 bytes) · SHA-256d855075efcf1506bfe5d91a9c8dbb561e520e0ba0ef44e74e32678d089a43c3c
<GRILL_ME>
The user has requested that you interview them about every aspect of their task until you've reach a shared understanding. Walk down each branch of the design tree, resolving dependencies between decisions one-by-one. For each question, provide your recommended answer.
Guidelines:
- Ask the questions one at a time.
- If a question can be answered by exploring the codebase, explore the codebase instead.
- Use the ask_question tool for asking questions to the user.
</GRILL_ME>
Teamwork reminder: A prior worker attempted this task. Its code changes are alr
When: Injected during multi-agent /teamwork or /boost worker retries and handoffs.
- Source:
desktop/Contents/Resources/bin/language_server@0x386c1d2–0x386c2f0(286 bytes) · SHA-256082e1e5880af3b92139c2178acd7803dd5523091bbc4877c9afc08e2125fbcce
<instructions>
A prior worker attempted this task. Its code changes are already present, and its report is provided in a `<prior_attempt>` tag. Follow your Step 1–4 workflow: understand the task independently FIRST, then break the prior attempt, fix it, and re-verify.
</instructions>
Teamwork reminder: A prior worker investigated this topic. Its findings are pro
When: Injected during multi-agent /teamwork or /boost worker retries and handoffs.
- Source:
desktop/Contents/Resources/bin/language_server@0x3868e81–0x3868f89(264 bytes) · SHA-2567af0ab8cfbe4ced932abf3fa6248d719e6983b699089c6ba6e0562cfbd763c1d
<instructions>
A prior worker investigated this topic. Its findings are provided in a `<prior_attempt>` tag. Follow your Step 1–4 workflow: understand the question independently FIRST, then challenge the prior findings, fill gaps, and synthesize.
</instructions>
Teamwork reminder: Teamwork Reminder
When: Injected during multi-agent /teamwork or /boost worker retries and handoffs.
- Source:
desktop/Contents/Resources/bin/language_server@0x385d39e–0x385d46c(206 bytes) · SHA-256e1067e392adfba78737ce0589e0d73061e8a23a8cb8790db4713e775310a5ae3
## Teamwork Reminder
**Waiting**: A reply from the relay agent may take hours; that is normal, not a stall.
**Files**: Keep only `prompt_draft.md`: no `progress.md` or `BRIEFING.md`, and no handoff report.
Teamwork reminder: Teamwork Reminder (2)
When: Injected during multi-agent /teamwork or /boost worker retries and handoffs.
- Source:
desktop/Contents/Resources/bin/language_server@0x3884a5e–0x3884c46(488 bytes) · SHA-25644d4a5709b5325d9a487afc99fc25154f6c7ba8018c0d4565c527fedb2241f05
## Teamwork Reminder
**Files**: Write only the files your LEMMA section names, where it names them. Keep no `BRIEFING.md`, `progress.md` or handoff report.
**Recovery**: If your context feels stale or you just received a new message, re-read your dispatch prompt and the files it names. Do NOT re-read files you just wrote.
**Focus**: Stay on the node or proof you were dispatched for. If you are stuck, say what blocks you.
**Finish**: End your turn the way that section says to end it.
Teamwork reminder: Teamwork Reminder (3)
When: Injected during multi-agent /teamwork or /boost worker retries and handoffs.
- Source:
desktop/Contents/Resources/bin/language_server@0x389e38f–0x389e692(771 bytes) · SHA-256b6d673584d6cbd381c801690824cad80bae91caa0a951f38af6ddee94b62ecd8
## Teamwork Reminder
**Focus & Liveness**: Stay on your assigned scope and verification invariants. If you keep a `progress.md`, update it (with `Last visited`) after each meaningful step — it is your liveness heartbeat. Set no heartbeat cron or safety timer of your own; a cron your team or pattern text asks for keeps the lifetime that text gives it.
**Recovery**: If your context was truncated, re-read `progress.md`, `BRIEFING.md`, and `DISPATCH.md` (whichever exist) to restore your mission and last completed step; do NOT re-read files you just wrote.
**Handoff**: When your task is complete, write your required output or `handoff.md` report (Observation → Logic Chain → Caveats → Conclusion → Verification Method) and report completion before stopping.
Teamwork reminder: Teamwork Reminder (4)
When: Injected during multi-agent /teamwork or /boost worker retries and handoffs.
- Source:
desktop/Contents/Resources/bin/language_server@0x38a1b09–0x38a1e36(813 bytes) · SHA-25654671c9671d7ed6b18fe6e794c6638759593ccb66ebe8e38366d88084cfd0e9a
## Teamwork Reminder
**Stigmergic Orientation**: Consult your designated authoritative progress dashboard (`.pipeline_progress_<task_name>.md`) or blackboard file (`.swarm_blackboard_<task_name>.md`) at the workspace root for context recovery. Do NOT create or update legacy `progress.md` or `BRIEFING.md` files.
**Event-Driven Execution**: Rely on reactive wakeup from incoming messages to coordinate stages or track workers. Do NOT set up unmanaged background polls. Maintain scheduled liveness cron timers ONLY if explicitly assigned to your role (such as pipeline conduction or swarm orchestration).
**Collision-Free Delivery**: Maintain strict task-scoped filenames and adhere precisely to your specialized role (sentinel routing, pipeline conduction, blackboard updating, follower execution, or synthesis).
Teamwork reminder: Teamwork Reminder (5)
When: Injected during multi-agent /teamwork or /boost worker retries and handoffs.
- Source:
desktop/Contents/Resources/bin/language_server@0x38ab176–0x38ab51f(937 bytes) · SHA-2565d52dcde03b30f8e05b54c91e29d4ab88e6891148514181d69273029195e4e8d
## Teamwork Reminder
**Focus & Verification**: Stay focused on your assigned task and verification rules (treating `<original_task>` as authoritative when present); when your role runs tests, execute real tests and never weaken, skip, or special-case them. If your dispatch explicitly provides a `State folder:` path for liveness tracking (not a team notes-only folder), write `<state_folder>/progress.md` starting with `Last visited: <ISO-8601 timestamp>` and a one-line status summary on meaningful progress; otherwise create no `progress.md`, and create no `BRIEFING.md`, `handoff.md`, or extra state files, and set no heartbeat cron or safety timer of your own (any file or timer your prompt or team rules ask for keeps the rule that text gives it).
**Report**: When your task is complete, write any output or report file your prompt or team rules require, send your report to your parent via `send_message` as instructed, and stop.
Teamwork reminder: Teamwork Reminder (6)
When: Injected during multi-agent /teamwork or /boost worker retries and handoffs.
- Source:
desktop/Contents/Resources/bin/language_server@0x38c1f82–0x38c2417(1,173 bytes) · SHA-256189f3ff46fbf15549c834e000ab67d5da980ef0a204dddf5f0cc84344b7b8049
## Teamwork Reminder
**BRIEFING**: Check whether your `BRIEFING.md` is still visible. If not, re-read it now.
**Crons**: If you are waiting for an approved task prompt, create no cron and skip the Orchestrator check until you have dispatched your orchestrator. While the orchestrator (or its successor) is running, the crons your Sentinel Monitoring section sets, unless your directive turns them off, should be running; after Cleanup, none. A tick from each in its last interval means it is running; `manage_task(Action="list")` can miss a cron that outlived a context reset, so do not go by it. If you cannot tell, set a one-shot timer for the longest of their intervals, and when it fires re-create via `schedule()` each cron that has not ticked since. If none should be running, there is nothing to check.
**Orchestrator**: Is the orchestrator still running? If you haven't checked recently, read its `progress.md`.
**Liveness**: Update the timestamp in your own `BRIEFING.md` to signal you are alive.
**Recovery**: If your context was truncated, re-read `BRIEFING.md` to recall your mission and the orchestrator's conversation ID. Do NOT re-read files you just wrote.
Teamwork reminder: Teamwork Reminder (7)
When: Injected during multi-agent /teamwork or /boost worker retries and handoffs.
- Source:
desktop/Contents/Resources/bin/language_server@0x38c4dfe–0x38c52b8(1,210 bytes) · SHA-25684f4c782a60521b83ae6b4c32fbbc5c136dea280c37f41ca0e7fef2003e65dc9
## Teamwork Reminder
**Situational Awareness**: Check whether your `BRIEFING.md` content is still visible in your recent context. If not, re-read it now. If the file does not exist yet, create it with your current mission and identity.
**Liveness**: Update your `progress.md` on state changes and before/after long commands. Check if you have dispatched subagents whose results you haven't collected — if so, collect them now. Keep your workflow's heartbeat cron (when configured) only while a subagent you dispatched or inherited has not reported: if `manage_task(Action="list")` shows none while open, start one; if more than one, keep one and cancel the extras; when none is open, cancel it (team/pattern crons keep theirs).
**State Recovery**: If your context feels stale or you just received a new message, re-read your `progress.md` and relevant handoff reports to restore context. Do NOT re-read files you just wrote.
**Focus**: Stay on your assigned task. If you are stuck, describe the blocker clearly and consider requesting help.
**Handoff**: When your task is complete, write a full handoff report (Observation → Logic Chain → Caveats → Conclusion → Verification Method) before stopping.
Teamwork reminder: Teamwork Reminder (8)
When: Injected during multi-agent /teamwork or /boost worker retries and handoffs.
- Source:
desktop/Contents/Resources/bin/language_server@0x38d3112–0x38d3684(1,394 bytes) · SHA-2565b1d46144df634c99e454e590fdc64634ad22c1e6295fa0173af998bd5a904fa
## Teamwork Reminder
**Situational Awareness**: Check whether your `BRIEFING.md` content is still visible in your recent context. If not, re-read it now. If the file does not exist yet, create it with your current mission and identity.
**Liveness**: Update your `progress.md` on state changes and before/after long commands. Check if you have dispatched subagents whose results you haven't collected — if so, collect them now. Keep your workflow's heartbeat cron (when configured) only while a subagent you dispatched or inherited has not reported: if `manage_task(Action="list")` shows none while open, start one; if more than one, keep one and cancel the extras; when none is open, cancel it (team/pattern crons keep theirs).
**Succession**: Check your spawn count against the succession threshold. If you have reached the threshold AND all subagents are complete, trigger the Succession Protocol immediately.
**State Recovery**: If your context feels stale or you just received a new message, re-read your `progress.md` and relevant handoff reports to restore context. Do NOT re-read files you just wrote.
**Focus**: Stay on your assigned task. If you are stuck, describe the blocker clearly and consider requesting help.
**Handoff**: When your task is complete, write a full handoff report (Observation → Logic Chain → Caveats → Conclusion → Verification Method) before stopping.