Skip to main content

Lane

Use this page to reference reusable lane parameters, nodes, edges, outputs, and worktrees.

The Lane manifest: the envelope (apiVersion, kind, metadata; see Manifests) plus spec.

Fields​

LaneSpec (spec)​

FieldTypeDefaultMeaning
paramslist[str][]The parameters the lane takes, by name.
nodesdict[str, FlowNode]requiredThe lane's nodes, by name.
edgeslist[FlowEdge]requiredThe lane's edges.
outputsdict[str, str]{}The lane's artifacts under their outside names, e.g. impl: "impl.{scope}".
workspaceLaneWorkspace or nullnullThe worktree the lane runs in, when it has one.

FlowNode (spec.nodes)​

FieldTypeDefaultMeaning
typestrrequiredThe node's type: agent, script, human, lane, map or a plugin's.
agentstr or nullnullagent: the Agent manifest the node runs.
runstr or nullnullscript: the command, or a built-in name.
messagestr or nullnullhuman: what the node asks the person.
actionslist[str][]human: the answers the node offers.
requireCommentlist[str][]human: the actions that need a comment with their answer.
attachFilesboolFalsehuman: whether the answer may attach files.
usesstr or nullnulllane: the Lane manifest the node runs.
withdict[str, str]{}lane: the parameters passed to the lane, by name.
overstr or nullnullmap: the artifact whose items the node repeats over.
lanestr or nullnullmap: the Lane manifest run once per item.
itemAsstr or nullnullmap: the name each item takes inside the lane.
maxItemsint or nullnullmap: the most items to run.
maxParallelint or nullnullmap: how many items to run at once.
writesstr or nullnullscript/human: the Schema of the artifact the node writes.

FlowEdge (spec.edges)​

FieldTypeDefaultMeaning
fromstr or list[str]requiredThe source node, or several for the same target.
tostr or nullnullThe target node, when the edge goes to one.
whenstr or nullnullA Python expression over artifacts; the edge is taken when it is true.
chooselist[str] or nullnullThe nodes the agent may pick among, when the edge branches.
joinstr or nullnullThe node where parallel branches join.
minint or nullnullHow many of choose the agent must pick.
feedbackboolFalseWhether the target sees the source's artifact as feedback.
newRoundboolFalseWhether taking the edge starts a new round.
maxRoundsint or nullnullThe most times the edge may be taken; required for a feedback edge.

LaneWorkspace (spec.workspace)​

FieldTypeDefaultMeaning
worktreestr or nullnullThe path template of the worktree, e.g. impl-{scope}.

See also​

  • Flow for graph fields shared with lanes.
  • Manifests for shared metadata and validation.