Day to day

Kraft for VS Code

Install the Kraft extension to clear gates, review a branch's diff, and edit Kraft config files in VS Code or an editor built on it, such as VSCodium or the Cursor editor.

You end with the board in VS Code's sidebar, a gate cleared from the editor, and errors in Kraft's YAML config files flagged as you type. It works the same in Cursor and VSCodium, which install it from Open VSX rather than the VS Code Marketplace.

Before you start

  • Kraft running on this machine, or on another one you can sign in to (Use Kraft from another machine). kraft admin start holds the terminal; add --detach to run it in the background.
  • A Kraft of the extension's own major release and at least its minor. Against any other, the extension is read-only: see If the extension is read-only.

Install

  1. Install Kraft (publisher kraft-sdlc) from the VS Code Marketplace, or from Open VSX, the registry VSCodium and Cursor install from. Or search for kraft-sdlc.kraft in the Extensions view.
  2. Optionally, for completion and instant structure checks in config files, install Red Hat YAML. The extension offers it once if it is missing.

Every release also attaches the extension as kraft-<version>.vsix. To install one by hand, download it from the GitHub release and run:

code --install-extension kraft-<version>.vsix

Check it worked

Open the Kraft view in the sidebar: it lists your work items in the groups the web board uses: Needs you, Running, Not started and Done. Each row shows the item's title, then why it is there, such as "agent asks: …" or "failed at implementation". A running row also says where it is in its chain, such as "implementation · step 2 of 5". Hovering a row shows its ID and the full reason. Cancelled items stay under Done.

Icons carry the state in colour and shape. An item waiting on you (a gate, a question, a budget stop) has a yellow icon, and a failed or capped item a red one, a different shape each. A running item has a plain play icon. Screen readers read each row as its title, state and reason, and each group with its count, such as "Needs you, 3 items".

Below the reason, the hover shows what the item has spent and how long it has run, each against its cap, such as "Spent $2.41 of $5.00" and "Ran 1h 12m of 2h", or "(no cap)" when it has none.

The status bar shows a check mark beside Kraft while the extension is connected and nothing waits on you. When something does, a bell and the count, such as Kraft 2, replace it. The status bar and the connection says what else it shows and what to do when it can't connect.

Clear a gate

When a gate opens, VS Code shows a notification with Open and Reject…, or Open only while the extension is read-only. It names the item and what the gate asks. Gate notifications and approval covers several arriving at once.

  • Open shows the gate's document rendered, in a locked Markdown preview. The tab ends with the item's ID, as in [Preview] Spec (K-12).md.
  • Approve, Reject…, Review Changes and Submit Review are in that tab's title bar; Approve and Reject are on the item in the sidebar too. Approve sends the version that preview showed. On an older preview of the item, such as the spec's once the plan gate is up, it opens the latest document instead.
  • The preview's own Open Source button shows the Markdown as text, to search or copy from.
  • Approving a gate whose document you haven't opened opens it instead (Read the spec on <title> first: the document is open.); approve again once you have read it.
  • If a chain revision changed since you read it, the tab reloads with the new one and the approval is refused; read it and approve again.

A gate followed by a merge or a push asks you to confirm first; every other gate takes one step. The item leaves the Needs you group in the sidebar.

Approve isn't offered while the gate has unresolved must-fix review threads.

File work from VS Code

Added in 2.1

Four commands file a work item without leaving the editor:

  • Kraft: File Work Item…, in the Command Palette and as + in the Kraft view's title bar.
  • File as Kraft Spec… and File as Kraft Plan…, on a .md file in the Explorer: the file is attached as the item's spec or plan.
  • File Selection as Kraft Work…, on a selection in the editor: its first line is the title and the whole selection is the description.

Each asks, in order:

  1. The title, and an optional description. From a selection, only the title: the selection, line breaks and all, is the description.
  2. Which documents to attach: none, the open .md file as spec or plan, or files you pick.
  3. The chain: the repo's default, or one of the chains this repo can run.
  4. How to file it. The picker's title previews what runs, such as default · 4 of 6 nodes run · 1 gate · skips spec (spec attached). File paused files it without starting it, so nothing spends tokens until you start it. File and start starts it, or queues it when every slot is busy. More options… opens Kraft's web page with what you entered, for the settings these steps don't ask.

The item is then selected on the board, and a notification says how it was filed.

  • The repo must be connected to Kraft and enabled. Otherwise the command says so before it asks anything: run kraft repo connect in the repo.
  • An attached file must be saved, and inside the repo or one of its worktrees: Kraft commits it on the item's branch. An unsaved change asks you to save first.
  • Filing works only with Kraft running on the same machine as the window's files. When kraft.url points at another host, the commands say so: file the item from the web UI instead.
  • When Kraft warns about the item it filed, such as an open item with the same title, the warning appears after filing, with Open item and Abandon. Abandon asks first, and says so instead when the item has started since.

Act on an item

Added in 2.1

Open the context menu of an item in the Kraft view. The menu lists only what Kraft would accept for that item now, the same doors the web interface offers:

CommandWhat it does
Pause, Resume…, Retry…Stop the item, or start it again. Resume and Retry take an optional steer.
Skip…Pass the node the item stands on, or its pending gate, without running it. Asks first.
Raise Budget…Raise the spend cap that stopped the item, and retry it. Enter a positive number of dollars, or none for no cap.
UnblockStop the item coming after the items it still waits on.
Escalate…Ask an agent to help. Not offered on a spend-cap stop, since the agent would hit the same cap.
Complete…, Cancel…End the item. Both need a reason, which is recorded on the item.
Archive…, RestoreMove a finished item to the archive and back. Archiving asks first while the item has a worktree, since it is deleted.

Every command, with its ID and when it is available, is in Commands. To act on several selected items at once, see Act on several items. The button that appears on a row you hover is in Row buttons.

Watch a worker

Right-click an item and run Show Worker Log. A terminal named Kraft: <id> opens on one of the item's agent sessions: while the item is stopped, the session it stopped on; otherwise the newest.

  • The terminal shows the recent lines first, then new ones as the agent writes them. Each line has its time, its source and its text.
  • When the session ends, a closing line gives the session's status, such as — session done —, and the terminal stays open.
  • If the connection drops, the log reconnects without repeating lines. After three failed tries in a row it stops with — stream lost: <reason> —. A refusal such as an unknown session or a rejected token stops it at once.
  • Close the terminal to stop following. Running the command again on the same item replaces its terminal.

An item that hasn't run an agent yet has no log: VS Code says so instead of opening a terminal.

From the Command Palette

Added in 2.1

While VS Code is connected to Kraft, the Command Palette has two entries of its own:

  • Kraft: Next Gate opens the gate document of the item waiting at a gate. When several wait it lists them, the longest-waiting first, and opens the one you pick. Then approve or reject it from the tab's title bar, or with the keys.
  • Kraft: Open Item… lists every item the board shows. Pick one to select it on the board: an item at a gate opens its gate document, any other opens in the web UI.

Most commands on an item's right-click menu are in the palette too (the full list), such as Kraft: Pause or Kraft: Show Worker Log. Run from there, it first asks which item, listing only the items it applies to now. Kraft: Restore lists the archived items. When none applies, VS Code says so instead, such as "Nothing here can pause now."

Some stay where their item is already known. Kraft: Approve and Kraft: Reject show only while a gate document is open. Review Changes, Submit Review and Discard Review Comments aren't in the palette: they act on the item of the row or review tab you run them from. Commands that change an item are hidden while the extension is read-only, except Approve and Reject, which then say why they can't run.

The default keys are in Keyboard shortcuts, and Kraft: Search… is in Search. The Open submenu reaches an item's merge request, spec and plan: see Open the merge request, spec or plan.

Review a branch

  1. Right-click the item in the Kraft view and run Review Changes, or run it from a gate document's title bar. The branch opens in the multi-file diff editor.
  2. Read the findings from the review agents. They show on the lines they name, as a coloured bar with the message beside the line, and in the Problems panel.
  3. Add a comment on any line, on either side. It asks for a label: Must fix, Question, Nit or none.
  4. Run Submit Review. Pick the outcome, then add an optional note for the agent.

Comments are Kraft's review threads: the same ones the web UI's review and kraft view threads show, with their label, lines and side. Every comment is a draft until you submit a review, wherever it was written, and a draft's title says Draft.

Edit or delete your drafts from the comment's title bar. Resolve or reopen a submitted thread from the thread's title bar. A draft must-fix thread blocks Approve: change its label or delete it. Threads come back fresh when an agent replies and when the window regains focus.

Threads on the whole change, and threads on files this review doesn't show, are listed in one document: Show Other Threads, in the diff's title bar.

What Submit Review offers depends on the item:

The itemOutcomes
At a gateRequest changes (the threads go to the fix node), Comment (an agent answers in the threads; the gate stays open) or Approve.
Not at a gateRequest changes only. On a paused item the request is queued, and the item stays paused until you resume it.

Approving a gate while drafts are waiting asks to send them with the approval. No agent acts on comments sent with an approval.

Request changes asks where the work restarts. The default is Kraft's own choice. You can pick an earlier node instead, or, with no gate, the current one. Once a fix loop is out of rounds, Request changes isn't offered at that gate.

Approve with a must-fix thread open lists the threads that block it; pick one to go to it. A draft must-fix thread can only be relabelled or deleted.

Submit Review and Discard Review Comments show on an item with draft comments, once its threads are loaded: at a gate, stopped on you (paused, failed or out of budget), or after Review Changes. Discard Review Comments deletes every draft on the item, the web UI's and the CLI's included.

After updating from a 1.x extension, comments you had not submitted move to the item's review as drafts the first time Kraft connects. Each lands on the whole change and names its file and line. If the item has nothing to review any more, the extension shows their text instead.

Edit config files

Files under $KRAFT_HOME/config (policy.yaml, harnesses.yaml, chains/*.yaml and the rest) get completion from Kraft's JSON Schemas, and the running Kraft checks each edit and flags the line at fault. On a chain file, Show Resolved Chain previews the chain after inheritance. On save, the extension asks the running Kraft what the file needs:

  • Reload Kraft, when Kraft can reread the file live: the library, chains, policy.yaml, intake.yaml and addons.yaml.
  • Restart Kraft, when Kraft reads it only at startup: notify.yaml and access.yaml. Restarting ends the agents of items running in place.
  • Nothing, for files Kraft reads each time it needs them, such as harnesses.yaml and repos.yaml.

A Kraft started by a service manager restarts itself. One started from a terminal opens a terminal in your home folder running kraft admin restart with the binary Start Kraft runs (kraft.path).

If that restart fails, as it does for a Kraft running attached to a terminal, which it stops, a notification says so and offers Start Kraft. If Kraft still answers, as when you answer no to its question about running agents, the notification says Kraft is still running and offers nothing.

A reload that Kraft partly refuses names each refused file and its reason.

Use Kraft from another machine

Added in 2.6

The board, gates, documents and worker logs work against a Kraft on another machine, signed in with its password.

  1. On the server, bind Kraft off loopback and set a password, as Remote access describes.
  2. In VS Code, run Kraft: Sign in to a server… from the Command Palette.
  3. Type the server's address, such as https://my-server:8765, then its password. An http:// address to another machine first asks you to confirm, since the password crosses the network unencrypted.
  4. The window reloads and the board is the server's.

Actions that read this machine, such as Start Kraft, Open Worktree in New Window and Review Changes, are refused with a line naming the server. What a signed-in window leaves out lists them, and the reference covers the session, a self-signed certificate and signing in again.

Next steps

Copyright © 2026