en un clic
builder-workflows
// How to use Builder CLI to manage workflows, tasks, nodes, and task comments. Use when the user asks to define/edit workflows, inspect Builder tasks, or add/list/replace Builder task comments.
// How to use Builder CLI to manage workflows, tasks, nodes, and task comments. Use when the user asks to define/edit workflows, inspect Builder tasks, or add/list/replace Builder task comments.
Builder prompt-writing guide. Use when editing system/developer prompts, tool descriptions, tool schemas, reminders, workflow prompts, meta-commentary, model-facing errors, workflow node prompts, subagent prompts, or files under ./prompts.
Builder GUI design constraints for desktop/web UI work. Use when designing or implementing Builder GUI screens, layouts, visual tokens, animations, or native window surfaces.
Create or improve agent skills. Use when the user wants to add a new skill or update an existing skill.
How to use `builder` cli or change your behavior/config. Read to learn `builder` commands; to debug project/workspace errors; when user asks to change builder config/settings/behavior.
Write or update Builder release notes/changelogs, especially GitHub Releases. Use when requests mention release notes, changelog, GitHub release body, generated notes cleanup, or a version like v1.1.1.
How to write Builder's public product documentation. Use when editing README or `docs/src/content/docs` pages.
| name | builder-workflows |
| description | How to use Builder CLI to manage workflows, tasks, nodes, and task comments. Use when the user asks to define/edit workflows, inspect Builder tasks, or add/list/replace Builder task comments. |
start is where tasks are created, agent runs Builder automation, join waits for parallel branches, and terminal is a sink where automation stops.transition_id; if the group has multiple edges, it fans out to parallel target nodes.implement, review, done, needs_changes over display labels with spaces.Authoritative command details are the live CLI:
builder workflow --help
builder task --help
The CLI authoring path is: create a workflow, add or update nodes, add or update edges, link it to a project, validate it, then create task records for human-operated workflow execution.
builder workflow create --description "Implement and review changes" "Implementation Review"
builder workflow inspect "Implementation Review"
builder workflow node add "Implementation Review" --key implement --kind agent --agent <implementer-role> --prompt "Implement the task." --output summary="Implementation summary"
builder workflow node add "Implementation Review" --key review --kind agent --agent <reviewer-role> --prompt "Review the implementation."
builder workflow edge add "Implementation Review" --from backlog --transition start --edge-key start --to implement --context new_session
builder workflow edge add "Implementation Review" --from implement --transition review --edge-key review --to review --context new_session --require-output summary --input implementation_summary=transition_output:summary
builder workflow edge add "Implementation Review" --from review --transition done --edge-key done --to done --context new_session
builder workflow link . "Implementation Review" --default
builder workflow validate "Implementation Review" --mode execution
Important CLI behavior:
workflow create auto-creates the initial backlog/start and done/terminal shape; inspect after create before adding duplicate start or terminal nodes.default is normalized.workflow node add returns a generated node_id. Edges are authored with node keys via --from and --to.workflow edge add creates or reuses the transition group for the given source node and transition ID, then adds an edge to that group.--output name=description; repeat it for multiple fields. Updating a node with any --output flag replaces the node's output field list.--input name=source:field, where common sources are task, transition_output, and join. Edge output requirements use --require-output <field> and must reference an output field declared on the source node. Updating an edge with any --input or --require-output flag replaces that list.workflow validate returns exit code 1 for invalid workflows and still prints valid false plus validation rows. Treat that as actionable validation output, not a shell failure to ignore.Start every edit by inspecting the current graph:
builder workflow inspect <workflow>
The first section lists node IDs, keys, kinds, display names, subagent roles, and any output_field rows. The transition_groups section maps source node IDs to transition IDs. The edges section maps transition groups to target node IDs and records context mode, approval requirements, input_binding rows, and output_requirement rows.
Update existing graph pieces by stable keys or emitted IDs:
builder workflow node add; update existing nodes with builder workflow node update <workflow> <node-key>.builder workflow edge add; update existing edges with builder workflow edge update <workflow> <edge-id>.builder workflow link, builder workflow unlink, and builder workflow default.builder workflow node update "Implementation Review" implement --prompt "Implement the task and include risk notes." --output summary="Implementation summary" --output risks="Known risks"
builder workflow edge update "Implementation Review" edge-abc123 --transition needs_review --transition-display-name "Needs Review" --edge-key review --to review --context compact_and_continue_session --require-output summary --input implementation_summary=transition_output:summary
Node update flags are partial except for repeated list flags: omitted scalar fields keep current values, while provided --prompt or --agent can intentionally set an empty value, and provided --output replaces the output fields list. Edge update flags are also partial; provided --input and --require-output replace their lists.
Validate after each meaningful graph change:
builder workflow validate <workflow> --mode draft
builder workflow validate <workflow> --mode task_creation
builder workflow validate <workflow> --mode execution
Use draft while authoring, task_creation before creating tasks, and execution before starting automation.
Each edge requires a context mode:
new_session: start a fresh Builder session and inject task metadata plus previous output.continue_session: continue the previous Builder session. This requires compatible source/target session context and the same subagent role across direct agent continuation.compact_and_continue_session: ask the previous agent for a handoff, then continue with the next node prompt, handoff, and task metadata.Use new_session as the default unless the workflow intentionally needs conversational continuity across nodes. Use --requires-approval when a transition must pause before the target node starts:
builder workflow edge add <workflow> --from implement --transition done --edge-key done --to done --context new_session --requires-approval
Create task records against a linked/default workflow and project, then inspect them:
builder task create --project . --workflow <workflow> --title "Fix flaky workflow test" --body "Investigate and fix the failure."
builder task list --project .
builder task show <short-id-or-task-id>
Task IDs beginning with task- are global. Short IDs are project-scoped, so pass --project <project-id-or-path> when the current directory is not the target project.
Use task show as the main state probe. It prints task metadata followed by placements, runs, transitions, and comments. Use it to find:
Task comments are durable task-local notes. They are useful for user instructions, review notes, and work logs that should not be committed into a worktree.
builder task comment add --project . <short-id-or-task-id> --body "Please prioritize the failing scheduler test."
builder task comment list --project . <short-id-or-task-id>
builder task comment replace <comment-id> --body "Updated note."
comment replace replaces the full body. Use comment list --include-deleted when deleted comments matter.
Do not run task commands that start automation, cancel work, move tasks, resume runs, approve transitions, or delete comments. These operations are reserved for humans. If the user asks for one of them, provide the exact command for the user to run themselves. If workflow work is blocked and you need one of these actions, use ask_question to call for help.
For workflow authoring requests:
builder workflow list, builder workflow inspect, and the current project context.Starting task automation can launch model work and consume provider credits. For exploratory validation prefer workflow validate, task create, task show, and comments.