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.
Workflow Composition
Workflows can call other workflows. This lets you build modular, reusable pipelines.Calling a sub-workflow as a step
Calling a sub-workflow as a gate (validator)
A workflow withtype: validate (output = bool) is usable as a gate:
{gate.review.comments}.
Calling a sub-workflow in GET
A workflow whose output feeds the prompt:get: executes before the RUN of the current step. Its output enters the state and the prompt can reference it.
Inputs
Workflows don’t declare aninputs: block. Required keywords are deduced by Gump by scanning variables. If a required keyword can’t be resolved, --dry-run raises an error.
Resolution order: explicit values from caller → parent step state → parent workflow state → error.
A called workflow is autonomous — it can be run standalone: gump run validators/arch-review --set diff=... --set agent=....
State grafting
When a sub-workflow completes, its entire state is grafted under the calling step’s namespace. No explicit return — the entire state is the interface. The parent accesses sub-workflow outputs via:Workflow resolution
Cascade: project.gump/workflows/ → user ~/.gump/workflows/ → built-in go:embed.