CLI

Item verbs

The kraft item verbs: file, approve, reject, pause, resume, retry, raise a budget, skip, escalate and set policy.

kraft item acts on a work item. Wherever a command takes an ID, you can omit it inside that item's worktree. Every verb here accepts --json; the exceptions are in Output format.

Verbs at a glance

VerbWhat it does
item createFiles a work item.
item approveApproves the pending gate.
item rejectRejects the pending gate, with a note on why.
item pauseStops a running, waiting or queued item.
item resumeStarts a paused item, optionally with a message.
item retryRe-runs the node a stopped item stopped on.
item raise-budgetRaises the dollar cap that stopped an item and retries it.
item unblockDrops what a blocked item still comes after. Added in 2.1
item skipAdvances past the current node or gate without running it.
item escalateAsks an agent to help with a needs_human stop.
item completeEnds the item as completed.
item cancelEnds the item as cancelled; its worktree stays.
item abandonDrops the item, its worktree and its branch.
item archiveArchives finished items and removes their worktrees. Added in 2.1
item restorePuts an archived item back under Done. Added in 2.1
item commentDrafts a review comment, or replies to a thread.
item resolveMarks a review thread resolved.
item reopenReopens a resolved review thread.
item reviewSends your drafted comments as comment, approve or request-changes.
item set-chainSwitches a not-yet-started item's chain.
item set-attachmentsReplaces or drops a not-yet-started item's spec or plan.
item set-overridesSets the item-wide model and effort.
item set-node-overrideSets one node's agent overrides.
item set-policyGives the item its own policy override.
item mr-labelLabels the item's merge request.
item rerun-ciA fix-loop repair re-runs CI jobs that failed outside the code. Added in 2.6
item progressA worker reports it started plan task N.
item replyA worker answers a review thread.

Gates and running work

item approve

kraft item approve [flags] [ID]

Approves the pending gate.

FlagTypeDefaultMeaning
--gategate IDwhichever gate is pendingNames the gate you mean to decide. Refused if it isn't the pending one.
--digesttextnonePins the approval to a chain revision, as kraft view artifact printed it.
--headtextnoneNames the head you reviewed, as kraft view show printed it. The final review's approval is refused without it, or once the branch has moved. Added in 2.3

item reject

kraft item reject [flags] [ID]

Rejects the pending gate, with a note on why.

FlagTypeDefaultMeaning
--notetextnone given: requiredRecords why. A rejection needs a reason.
--gategate IDwhichever gate is pendingNames the gate you mean to decide. Refused if it isn't the pending one.
--nodenode IDthe chain's own reject_toRe-enters the chain at that node instead of the gate's default.

item pause

kraft item pause [ID]

Stops the whole work item: a running one, one waiting on CI, or one waiting out a rate limit. It also takes a queued or blocked item out of the hold, back to the status it came from.

It signals the current node's running agent sessions to stop and keeps their logs, drops a CI wait's or rate limit's next wake-up so nothing restarts the item, and leaves its worktree and branch as they are. It takes no flags besides the ID.

RefusalCause
409: work item is STATUS, not runningThe item is in a status pause doesn't take, such as needs_human or completed.
409: work item is being started from the queue: pause it again in a momentThe start queue has taken the item and not yet started it.
403A worker session names its own item.

item resume

kraft item resume [flags] [ID]

Starts a paused item, including one just filed, or one stopped on an agent's question. With every slot busy it is queued.

FlagTypeDefaultMeaning
--steertextnoneGives every paused agent task a message, or the answer to its question.
--steer-taskPATH=TEXT, repeatablenoneSends a message to one paused agent task, named by its node.step.task path.

One message for every paused task, and a different one for the code review:

kraft item resume --steer "keep the old API" --steer-task verification.review.code_review="check the auth module first"

A paused agent task resumes its own session where its harness can, as What retry and resume keep says.

RefusalCause
409 naming item retryThe item is stopped, not paused.
--steer refusedThe item is still running: pause it first.
--steer refusedThe item's pause stopped no agent task, such as a test run or a CI wait.
--steer-task refusedThe path isn't a paused agent task.

item retry

kraft item retry [flags] [ID]

Re-runs the node a stopped item stopped on, or after a cap its step, and is the way back onto a stopped item. With every slot busy the item is queued.

FlagTypeDefaultMeaning
--steertextnoneCarries a message into the retry's prompt.
--pathnode, node.step or node.step.taskthe node it stopped onA step re-runs that step and everything after it. A task re-runs only that task, and its finished siblings stand. A node that already completed re-runs with everything after it. Exclusive with --restart.
--restartswitchoffRe-runs the whole chain from its first node.
--sandbox-from-configswitchoffPrints the item's sandbox and the one repos.yaml sets now, and changes nothing. A worker or an assistant is refused. Added in 2.3
--yesswitchoffWith --sandbox-from-config, replaces the sandbox and retries.

What retry and resume keep

A retry keeps everything the earlier run did and starts a new run from the retried work. It reopens every gate it has to re-run. A gate before the retried work keeps its decision.

A retry with no --path after a time cap, a budget cap or rate-limit retries running out starts at the step the item stopped in, not at its node's first: the steps before it passed, and running out says nothing about them. Raise cap and raise-budget retry the same way. A fix-loop cap, or any of these once the node's fix loop has run, re-runs the whole node, since a fix can break a step that had passed.

Only a retry you run yourself resets the counters of a cap the item breached, and Kraft records the reset as a cap_counters_reset event. A retry sent from a session Kraft started, or through the MCP client, leaves every counter where it stands, so an item that stopped on a cap stops again.

A gate rejection gives the nodes it re-runs their fix-loop attempts back, whoever rejected. The gate's own reject loop still counts each rejection, and only your retry resets that.

A paused agent task resumes its own session when its harness supports it, and is told the steer. Otherwise it restarts with its brief and the steer.

item raise-budget

kraft item raise-budget [flags] [ID]

kraft item raise-budget raises the dollar cap that stopped the item, then retries the node it stopped on.

FlagTypeDefaultMeaning
--usddollars or nonenone given: required--usd N raises the cap to N dollars and retries the item. --usd none lifts the cap.

It raises one of two caps:

  • The item's own cap, the one item create --budget sets.
  • The item-wide budget_usd of the item's policy. Kraft writes it into the item's policy override and keeps the override's other fields, as the interface's Raise cap does.

It refuses, and changes nothing, in these cases:

RefusalCause
A worker session: kraft: a worker session cannot act on its own work item (ID). Gates are where a human decides; report what you found instead. An escalation turn: the same sentence after kraft: 403:.The caller is a worker session on its own item, or an escalation turn: a spending cap is a person's call.
409: work item is not stoppedThe item's status isn't needs_human.
409: work item is queued for a free slot and starts on its own: pause it to take it out of the queue (kraft item pause ID), or the blocked wording.The item is queued or blocked.
409: work item was not stopped by a spend capThe item stopped for a reason that isn't a spend cap, such as a failed test.
409: a budget_usd on a node, step or task stopped this item: raise it with ... or 409: a token_budget stopped this item, not a dollar cap: raise it with .... Both name kraft item set-policy.The stop was on a node, step or task's budget_usd, or on a token_budget. item set-policy raises those, but it replaces the item's whole override, so pass the fields it already has too.
409: the daily cap stopped this item, not its own cap: raise budget.daily_usd in policy.yaml, or wait for local midnight, then retryThe stop was on budget.daily_usd. Raise it in policy.yaml, or wait for local midnight.
409: a budget_usd stopped this item on spend a harness never reported, which no higher cap passes: ...The stop was on spend a harness never reported, and you passed a number, or the cap is a node, step or task's. Only --usd none on the item-wide cap passes.
422: the item has already spent $X; a cap of $N would stop it again at once: raise it above that, or to noneN is at most what the item has already spent. Raise it above that, or use none.
blocked ID: it comes after OTHER (status). It starts when they complete; kraft item unblock ID drops themThe item comes after an unfinished item, so the retry waits for it. The cap is raised.
queued ID: N of M slots are busy. It starts when one frees; kraft item pause ID takes it out of the queueEvery slot is busy, so the retry waits for one. The cap is raised.
queued ID: held by the worktree storage limit: 12G counted against the 10G limit. It starts when space frees; kraft item archive --reclaimable archives finished items to make room, kraft item pause ID takes it out of the queueWorktrees are over storage.worktrees.limit, so the retry waits for space. The cap is raised.
queued ID: waiting for the checkout: “TITLE” is using it. It starts when the checkout frees; kraft item pause ID takes it out of the queueThe item runs in place and another one is using the checkout. The cap is raised.
409: a walk is already running for this work item; the cap was not changedA walk is still running, so the retry couldn't start.
422: 'budget_usd' 25 cannot exceed the administrator maximum 20; for none, the value reads none.The item-wide cap you set, or none, is past maxima.work_item.budget_usd in policy.yaml.
409: this work item has no chain snapshot to hold a policy overrideThe item has no chain snapshot to hold a policy override.

If the cap moves and the retry is then refused, the answer says so. Run kraft item retry once that is resolved.

See Raise a cap on a stopped item.

Filing a work item

item create

kraft item create [flags] TITLE

Files a work item. Without --autostart it is filed paused, and you start it.

FlagTypeDefaultMeaning
--descriptiontextnoneThe brief: what the work is, which the spec is written from. Ids in it aren't parsed; --implements names an issue.
--afteritem ID, repeatablenoneNames a work item this one comes after. See Items that come after others.
--autostartswitchoffStarts the item at once. Refused from a session Kraft started. With every slot busy, the item is filed queued and starts when one frees, and the command says so: What create prints shows the line. --json carries the slots.
--spec, --planpathnoneAttaches a document and skips the node that would write it. See Attach a spec or plan.
--base-branchbranch namethe repo's default branchStarts from, and merges into, that branch. It must exist on origin.
--in-place, --worktreeswitchthe repo's worktrees settingRuns the item in the repo's own checkout, or in a worktree of its own. Either overrides the repo's worktrees setting. Frozen when filed. See Run items in your own checkout. Added in 2.1
--chain-filepathnoneFiles the item with a one-off chain read from the file, exclusive with --chain. A person reviews its custom content in the web UI before the item can start; until then --autostart files it paused. Added in 2.5
--repopaththe repo you are standing inTargets another connected repo. A relative path is read from where you stand.
--chainchain IDthe repo's default_chain, else defaultTargets another chain.
--implementsbead ID, repeatablenoneCloses the named issue in your optional beads issue tracker when the item completes.
--auto-gate, --no-auto-gateswitchonAn agent reviews each gate that declares auto_review before you are asked, in either auto_review_mode. --no-auto-gate turns that off for this item. Items filed by a schedule, POST /api/triggers or auto-intake have it off.
--runnermachine, group, any or localthe library'sWhere the item's steps run: a machine or group from workers.yaml, any or local, over the library's. See Run a step on another machine. Added in 2.4
--skip-nodesnode ID, repeatablenoneNode IDs to leave out of the item's chain at intake, comma-separated or repeated (--skip-nodes spec,plan or --skip-nodes spec --skip-nodes plan).
--budgetdollars or nonethe policy'sSets the item's dollar cap. --budget none lifts it.
--node-overrideNODE.FIELD=VALUE, repeatablenoneOverrides one field on node NODE, any field item set-node-override takes.
--policyKEY=VALUE, repeatablenoneGives the item its own policy override.

It refuses, and files nothing, in these cases:

RefusalCause
An error naming kraft repo connect--repo names a repo you haven't connected.
A refusal of --runnerThe name is unknown, or the item runs in place or has workspace members.
422An --after ID is unknown or abandoned.
attachment path escapes the repoA --spec or --plan file is outside the repo.
422: unknown node id(s) to skip: [...]A --skip-nodes ID the chain doesn't have.
422: skip_nodes: 'ID' does not allow skippingA --skip-nodes node that doesn't allow skipping.
422: dropping [...] would leave chain 'ID' with no nodesThe skipped nodes, with any an attachment trims, are the whole chain.

--autostart is refused (403, nothing filed) from a session Kraft started and from a request tagged as the MCP client, which has no autostart option. The server can't tell a coding agent that runs the command in its own shell from a person, so that call starts the item.

What create prints

item create prints the new item's id, status and title as key value lines. A line follows for each warning that applies: repo_warning, bead_warning or duplicate_warning.

id      3f9c1e7a5b2d4c80a6e1d97f0b34c2aa
status  paused
title   fix the flaky test

status is what the server answers: paused, or active when --autostart found a free slot. With --autostart and every slot busy, the item is filed queued and a last line replaces the slots key, after any warning lines:

queued 3f9c1e7a5b2d4c80a6e1d97f0b34c2aa: 3 of 3 slots are busy. It starts when one frees; kraft item pause 3f9c1e7a5b2d4c80a6e1d97f0b34c2aa takes it out of the queue

When the storage limit or an in-place item's checkout holds the start instead of a busy slot, that line says so in place of the slot count, as the table above shows for raise-budget.

Items that come after others

Added in 2.1

--after ID takes a work item ID of any repo on this Kraft instance, or a start of one 4 characters or more that no other item's ID shares. The item stores the whole ID. An unknown or abandoned ID is refused with 422, and a completed one counts as met. Dependencies are set when the item is filed: item unblock drops them, and nothing adds them.

A dependency is met when the item it names is completed, post-merge nodes included. item resume, retry and raise-budget on an item with an unfinished dependency block it, after their own refusals and before the slot check. The scheduler moves it to the queue once all are met. A start after an abandoned item is refused with a 409 naming it, and the two ways on: item unblock or item cancel.

item pause takes a blocked item out and keeps its dependencies, so starting it again blocks it again. item unblock drops the unmet ones, or only --dependency ID (the start of one of its IDs is enough), and the next scheduler pass releases the item. On any status but blocked or paused it answers 409. A blocked item whose dependency is abandoned goes back to where it came from, and its timeline says why.

What a blocked start prints

Added in 2.1

item resume, retry, raise-budget and create --autostart on an item that comes after an unfinished one print one line, and --json carries waiting_on:

blocked 3f9c1e7a5b2d4c80a6e1d97f0b34c2aa: it comes after b81d0c42e6a94f3d8c5a7e19f2046b13 (active). It starts when they complete; kraft item unblock 3f9c1e7a5b2d4c80a6e1d97f0b34c2aa drops them

Attach a spec or plan

  • PATH must be a file inside the repo (or a worktree of it), usually under .engineering/, since it is committed on the item's branch.
  • A file outside is refused with attachment path escapes the repo: copy it in first.
  • A relative PATH is read from where you stand.

Filing on a repo that can't run the item yet

Filing on a repo that can't run the item yet still works, with a warning. A repo with no setup command declared stops the item before its first task. One with no test command (and no test scopes) stops it at verification, after its agent tasks have run. Set the missing command in Settings › Repos, or run kraft repo connect in the repo again, before you start the item. --json carries the warning as repo_warning.

item unblock

Added in 2.1

kraft item unblock [flags] [ID]

Drops what a blocked or paused item still comes after.

FlagTypeDefaultMeaning
--dependencyitem ID, or the start of one of 4 characters or moreevery unmet dependencyDrops only that one.

On any status but blocked or paused it answers 409. Items that come after others says what happens next.

Addressing work by path

Retry, skip and resume address chain work by its path: node, node.step or node.step.task. A tasks: node's one step is main, so the path to its implement task is implementation.main.implement. kraft view show --json lists every path. item retry --path and item resume --steer-task take one, and so does item skip --path.

Reviewing a change

item comment

kraft item comment [flags] [ID]

Drafts a review comment: a new thread, or with --reply an answer to one. --file, --lines and --side anchor it to a line range; without them it is about the whole change.

FlagTypeDefaultMeaning
--bodytextnone given: requiredThe comment.
--replythread IDnoneAnswers an existing thread instead of starting a new one.
--filepath, as the diff names itnoneThe file in the repository the comment is about.
--linesA[-B]noneThe line range in --file the comment is anchored to.
--sideold or newnewThe side of the diff the range is on.
--start-sideold or newthe --side valuePuts line A on the other side, for a range across sides: --lines 12-13 --start-side old --side new is old line 12 through new line 13, a removed line through its replacement.
--labelone of must-fix, question, nitnoneLabels the thread.
--suggesttextnoneGives a suggested replacement for the range.

A comment across a removed line and its replacement:

kraft item comment --body "keep the old name" --file src/db.py --lines 12-13 --start-side old --side new

Kraft quotes the range's lines from the diff onto the thread, so the agent that reads it gets them, as for a comment made on the review page. The command prints the thread's place (src/db.py:+40, src/db.py:-12 to +13) and the lines it quotes.

RefusalCause
A refused --fileThe path starts with / or holds ...
A refused --suggestThe range isn't --lines on the new side alone: a suggestion replaces new lines, so an old-side range is refused.

item resolve

kraft item resolve [flags] THREAD

Marks a review thread resolved. It takes no flags. It prints one line, such as resolved thread a893… on calc.py:+9 to +11; --json prints the thread.

item reopen

kraft item reopen [flags] THREAD

Reopens a resolved review thread. It takes no flags. It prints one line, as item resolve does; --json prints the thread.

item review

kraft item review [flags] [ID] OUTCOME

Sends your drafted comments with an outcome. OUTCOME is one of:

OutcomeMeaning
commentQueues the drafts for the next agent; never interrupts.
approveNeeds a pending gate.
request-changesRedoes the work now, at a pending gate or not.
FlagTypeDefaultMeaning
--summarytextnoneAdds a note above the threads.
--nodenode IDderived from the threadsOverrides where request-changes re-runs.
--headtextnoneNames the head you reviewed at the final review, as item approve takes it. Added in 2.3

Drafts are invisible to every agent until a review sends them. must-fix blocks every gate approval until resolved. See Reviewing a change for the full picture, and kraft view threads/kraft view compare in the view verbs to read before you comment.

Skip, escalate, end or drop an item

item skip

kraft item skip [flags] [ID]

Advances past the current node or gate without running it.

FlagTypeDefaultMeaning
--notetextnoneRecords why, on the skip's event.
--pathnode, node.step or node.step.taskthe whole current node or gateSkips only that node, step or task of the current node. Its siblings keep running.
--headtextnoneNames the head you reviewed, as kraft view show printed it. Skipping the final review needs it. Added in 2.3
RefusalCause
422: path: ...--path names nothing in the item's chain.
409: path: 'PATH' does not allow skippingThe node, step or task doesn't allow skipping.
409: path: 'PATH' is not the node the item stands on ...--path names a node other than the current one or its pending gate.
409: a walk is already running for this work itemA walk is still running for a stopped item.

item escalate

kraft item escalate [flags] [ID]

Asks an agent to help with a needs_human stop, or with a paused item that has started. The manual form of the board's auto-escalation.

FlagTypeDefaultMeaning
--messagetextnone given: requiredWhat to tell the agent.
--new-threadswitchoffStarts a fresh agent session instead of continuing the latest thread.
RefusalCause
409A spend cap stopped the item, and the agent would spend against the same cap. Raise that cap first: the item's own with raise-budget, the daily one with budget.daily_usd on Settings › Policy.

item complete

kraft item complete [flags] [ID]

Ends the item as completed. It stops whatever is running and records the reason on the item's timeline.

FlagTypeDefaultMeaning
--reasontextnone given: requiredWhy, recorded on the audit event.
--close-beadsswitchoffAlso closes its linked beads issues.

item cancel

kraft item cancel [flags] [ID]

Ends the item as cancelled. It stops whatever is running and records the reason on the item's timeline. The worktree stays.

FlagTypeDefaultMeaning
--reasontextnone given: requiredWhy, recorded on the audit event.

Cancel settles beads as abandon does: the item's own bead is closed with the reason, and a bead it implements stays open with a note.

item abandon

kraft item abandon [flags] [ID]

Drops the item, its worktree and its branch.

FlagTypeDefaultMeaning
--reasontextasked for in a terminalWhy it is dropped. With none recorded, it warns.
--yesswitchoffRequired, because uncommitted work and unpushed commits are lost.

abandon records its reason on the item's work_item_abandoned event, and kraft view show and the item page show it. It also writes the reason to the item's bead: the bead intake filed is closed with it, and a bead the item implements stays open with a note. A beads failure is logged and never fails the abandon.

abandon deletes the item's worktree, its branch and its attachment copies, including those of a cancelled item. abandon has no MCP tool.

RefusalCause
409The item is active: pause it first.

Archive and restore finished items

Added in 2.1

item archive

kraft item archive [flags] [ID ...]

Archives completed or cancelled items and removes their worktrees. With no ID, the item whose worktree you are in.

FlagTypeDefaultMeaning
--yesswitchoffArchives. Without it the verb only prints the preview. Uncommitted changes in each worktree are lost.
--reclaimableswitchoffTakes every completed or cancelled item that isn't archived and that view storage marks reclaimable, the 200 largest at most (the preview and bulk routes take no more); run it again for the rest. Refused beside IDs.
--jsonswitchoffPrints the preview when --yes is missing, and the bulk results when it is given.
kraft item archive ID1 ID2 --yes
kraft item archive --reclaimable --yes

Before it archives, item archive prints one line per item: the worktree's size, how many uncommitted files the archive loses, and whether the branch stays (it does when it holds commits nothing else has). Then it prints the total freed and where usage lands against the quota and limit. item archive has no MCP tool.

RefusalCause
Exit 1, nothing archived--yes is missing: it stops after the preview.
A line in the results, exit 1An item can't be archived. The rest are still archived.

item restore

kraft item restore [ID]

Puts an archived item back under Done. The worktree archive removed doesn't come back. It takes no flags. item restore has no MCP tool.

Change an item's setup

item set-chain

kraft item set-chain [flags] [ID]

Switches a not-yet-started item's chain. One of --chain and --chain-file is required.

FlagTypeDefaultMeaning
--chainchain IDnoneThe chain to switch to. Also accepted as --template.
--chain-filepathnoneGives the item a one-off chain instead, which a person reviews first if it has custom content. Exclusive with --chain. Added in 2.5

item set-attachments

kraft item set-attachments [flags] [ID]

Revises a not-yet-started item's spec or plan, copying the file again.

FlagTypeDefaultMeaning
--spec, --planpathnoneThe revised document, a file inside the repo. Attach a spec or plan says which paths it takes.
--dropspec or plan, repeatablenoneRemoves that attachment and restores the gate it trimmed.
RefusalCause
409The item has started: its worktree already holds its documents, committed on its branch.

item set-overrides

kraft item set-overrides [flags] [ID]

Sets the item-wide model and effort, without changing the chain.

FlagTypeDefaultMeaning
--modelmodel IDthe chain's own bindingThe item-wide model.
--effortone of low, medium, high, xhigh, maxthe chain's own bindingThe item-wide effort.
--escalate-modelmodel IDthe chain's own bindingThe model for a fix loop's escalation.
--runnermachine, group, any or localthe stored oneWhere the item's steps run. Takes effect at the next step launch. Added in 2.4
--clearswitchoffReturns every one to the chain's own binding, the runner too.

Each call replaces the whole override, so a flag you leave out goes back to the chain's own binding. The one exception is --runner: a call that doesn't name it keeps the stored one.

RefusalCause
A refused modelIt doesn't look like a model ID: letters, digits and . _ : / @ + [ ] -, optionally after a leading ~, at most 128 characters.

item set-node-override

kraft item set-node-override [flags] [ID]

Changes one node of one item until that node starts. The override is stored on the item and doesn't edit the chain.

FlagTypeDefaultMeaning
--nodenode IDnone given: requiredThe node to change.
--auto-escalate, --no-auto-escalateswitchunchangedArms or disarms agent review of this node's auto-escalate gates.
--auto-escalate-stuck, --no-auto-escalate-stuckswitchunchangedArms or disarms auto-escalation when this node stops stuck.
--auto-escalate-delay-sinteger, secondsunchangedThe delay before this node's auto-escalation fires.
--model, --effortmodel ID, effort levelunchangedWhat every agent task in the node launches with. See Which model and effort a task uses.
--runnermachine, group, any or localunchangedWhere the node's steps run. Wins over the item-wide --runner and the library. Added in 2.4
--extra-prompttextunchangedAppended to the instruction of every agent task the node runs. See Extra prompt.
--reviewerbot:LOGIN, check:NAME or none, repeatableunchangedThe automated reviewers the node's review wait reads, over the repo's and the task's. none alone expects none. Added in 2.4
--clearswitchoffResets the node to the chain's own binding.

Each call changes only the flags you give and keeps the node's other overrides, so --model opus and then --effort max leave both set. This differs from set-overrides, where each call replaces the whole item-wide override.

attempts and wall_clock_s have no flag here. Set them at filing with kraft item create --node-override N.attempts=2. Before the item starts, the node's Config tab on the item page also sets attempts.

RefusalCause
A refused changeThe node has started. --runner alone is allowed on a started node, because it takes effect at the next step launch.
403--extra-prompt from a worker session or an escalation turn.

One more case is allowed after the node starts: an item stopped at that node because its stored model override isn't a valid model ID. Fix it with --clear, or a new --model or --effort, then retry. An item filed by an older Kraft can meet this.

Which model and effort a task uses

From highest precedence to lowest:

  1. This node override.
  2. The item-wide set-overrides.
  3. The task's own model: and effort: in the library.
  4. The repo's models: (model only).
  5. The harness profile's defaults:.

A value the node's harness doesn't accept is refused when you set it, not at launch. A gate's auto_review uses the item-wide values only.

Extra prompt

--extra-prompt is added after the task's own prompt and brief. It never replaces them. It doesn't reach a gate's auto_review or the interactive escalation turn. At intake, N.extra_prompt=... is taken as written, not read as YAML.

An extra prompt is a person's to set, so an agent's text doesn't reach a task unreviewed. From a worker session or an escalation turn, --extra-prompt and --node-override N.extra_prompt=... are refused (403), and so is an extra_prompt sent through the MCP server.

item set-policy

kraft item set-policy [flags] [ID]

Gives the item its own policy override, replacing any it had.

FlagTypeDefaultMeaning
--policyKEY=VALUE, repeatablenoneOne field of the override.
--clearswitchoffDrops the item's own override.

A key is dotted down the policy's levels, and --policy repeats for more than one field:

kraft item set-policy --policy merge_request_feedback.ci.await_ci.total_time_cap_minutes=60
kraft item set-policy ID --policy max_attempts=2 --policy time_cap_minutes=45

A work item's own policy

kraft item create --policy KEY=VALUE (repeatable) and kraft item set-policy give one work item its own policy override, without touching its chain or any other item. FIELD=VALUE applies item-wide. PATH.FIELD=VALUE applies to one node, step or task and everything under it, as in --policy merge_request_feedback.ci.await_ci.total_time_cap_minutes=60. Values are read as YAML, so deny_tools=[WebFetch] is a list.

set-policy replaces the whole override. The fields are those described in policy.yaml:

FieldsBehaviour
timeout_minutes, max_attempts, allowed_harnessesMove within the maxima in policy.yaml and win over what the chain set. max_attempts applies to execution nodes only.
allowed_tools, deny_tools, sandboxOnly tighten. A list intersects with what each task already allows.
time_cap_minutes, total_time_cap_minutes, token_budget, budget_usdItem-wide caps. Raise one above the chain's, up to maxima.work_item, to unstick a capped item before a retry. budget_usd=none clears the dollar cap, the one way past a stop on unknown spend; see Raise a cap on a stopped item.

On a path, a cap only tightens. Kraft refuses a value above what the chain or the item already gives that scope, and names both. A wait task's total cap is its timeout.

Kraft refuses a value past its maximum, a path the chain doesn't have, and a key that isn't a policy field, naming the field.

set-policy works on any item that hasn't ended. On a running or waiting item it takes effect from the next node the item enters and from the next check of a wait it is parked on. The new timeout counts from when the wait started.

Label the merge request

item mr-label

kraft item mr-label [flags] LABEL...

Relabels the item's merge request with the labels given as arguments, such as release::patch, and re-creates its pipeline. A worker session calls it too.

FlagTypeDefaultMeaning
--iditem IDthe item whose worktree you are inPicks the item.

The labels are positional, so the item is picked with --id:

kraft item mr-label --id ID release::patch
kraft item mr-label release::patch qa::done

Verbs a worker calls

A worker session calls these. You don't run them by hand.

item progress

kraft item progress [flags] N [ID]

Reports that the worker started plan task N, an integer: the N of the plan's ## Task N heading. It takes no flags.

item rerun-ci

Added in 2.6

kraft item rerun-ci [flags] [ID]

Re-runs the merge request's failed CI jobs from a fix-loop repair. It is for a failed CI job that died outside the code, such as a download that returned a 504.

FlagTypeDefaultMeaning
--reasontextnone given: requiredWhat you saw, recorded on a ci_rerun_requested event.
RefusalCause
A second re-runIt is allowed once per fix attempt.
CI not redCI isn't red for the branch's current head.

item reply

kraft item reply [flags] THREAD

Answers a review thread.

FlagTypeDefaultMeaning
--bodytextnone given: requiredThe answer.
--claimone of fixed, answered, should_fixnoneSays what the reply claims.
Copyright © 2026