Documentation Index
Fetch the complete documentation index at: https://gump.build/docs/llms.txt
Use this file to discover all available pages before exploring further.
Prompts & Context
Every agent step has a prompt that tells the agent what to do. Gump resolves variables in the prompt, assembles additional context, and writes everything to a context file in the worktree before launching the agent.Prompt templates
Theprompt field is a template with variables in curly braces:
Key variables
| Variable | Available | Description |
|---|---|---|
{spec} | Always | Content of the spec file |
{task.name} | In an each block | Current task name |
{task.description} | In an each block | Current task description |
{task.files} | In an each block | Current task blast radius |
{impl.output} | After step executes | Output of a previous step |
{impl.agent} | After step executes | Agent that actually ran (useful after escalation) |
{error} | On retry | Error from the previous failed attempt |
{diff} | On retry | Diff from the previous failed attempt |
{attempt} | On retry | Current attempt number |
{gate.compile} | On retry | Bool result of a specific gate |
{gate.review.comments} | On retry | Comments from a workflow validator |
{prev.output} | On retry | Output from the previous retry iteration |
Template escaping
If your prompt contains literal curly braces (e.g., a JSON example), escape them with double braces:{{ produces a literal {. }} produces a literal }.
Custom context
Thecontext field injects additional information into the agent’s context. Two sources are supported:
File context
Command context
Combining sources
How context is materialized
Gump writes a context file in the worktree before launching the agent. The file name depends on the agent:CLAUDE.md for Claude Code, AGENTS.md for Codex and OpenCode, GEMINI.md for Gemini, QWEN.md for Qwen, .cursor/rules/gump-agent.mdc for Cursor.
The context file contains:
- Gump system instructions (output format, Git rules, worktree constraints, step type conventions)
- Resolved template variables
- Custom context (files and command outputs)
- The resolved prompt
Retry context injection
Whenattempt > 1 and the prompt is not overridden in the retry block, Gump automatically injects a retry section into the context — the failed diff, the error output, non-repetition instructions, and remaining attempts.
When the prompt is overridden in the retry block, this section is not injected — the developer controls everything.
Prompt from a file
For long prompts, usefile: instead of inline text: