Reference

Kraft for VS Code reference

The Kraft extension's commands, keys, settings, row buttons, search, status bar, board scope, Restricted Mode and the versions it works with.

For installing it and clearing a gate, see Kraft for VS Code.

Commands

Added in 2.6

Every command is under Kraft: in the Command Palette. "Palette" says when it is listed there: a command run from the palette first asks which item, listing only the items it applies to now. A command marked "menu" acts on the row, tab or title bar you run it from.

Items

CommandIDWhat it doesWhere and when
Pause, Resume…, Retry…kraft.pause, kraft.resume, kraft.retryStop the item, or start it again. Resume and Retry take an optional steer.Palette while connected and not read-only.
Answer…kraft.answerResume an item that asked a question, with your answer as the steer.Palette while connected and not read-only.
Skip…kraft.skipPass the node the item stands on, or its pending gate, without running it.Same.
Raise Budget…kraft.raiseBudgetRaise the spend cap that stopped the item, and retry it.Same.
Unblockkraft.unblockStop the item coming after the items it still waits on.Same.
Escalate…kraft.escalateAsk an agent to help.Same.
Complete…, Cancel…kraft.complete, kraft.cancelEnd the item, with a reason.Same.
Archive…, Restorekraft.archive, kraft.restoreMove a finished item to the archive and back.Same.

Gates and review

CommandIDWhat it doesWhere and when
Next Gatekraft.approveNextGateOpen the gate document of the longest-waiting gate.Palette while connected.
Open Gate Documentkraft.openArtifactOpen one item's gate document.Palette while connected; row button.
Approve, Reject…kraft.approve, kraft.rejectAnswer the gate.Palette only while a gate document is open.
Review Changeskraft.reviewChangesOpen the item's branch in the diff editor.Menu.
Add Review Comment, Edit, Save, Cancel, Delete…, Set Label…kraft.review.*Write and change your draft comments.Menu.
Resolve, Reopen, Show Other Threadskraft.review.resolveThread, reopenThread, otherThreadsClose or reopen a thread, and list threads the diff doesn't show.Menu.
Submit Review, Discard Review Comments…kraft.review.submit, kraft.review.discardSend or delete the drafts.Menu.

Finding and opening

CommandIDWhat it doesWhere and when
Open Item…kraft.openItemSelect an item on the board.Palette while connected.
Search…kraft.searchSearch Kraft's documents.Palette while connected.
Open in Web UI, Show Worker Logkraft.openInWebUi, kraft.showWorkerLogOpen the item in the browser, or watch a worker in a terminal.Palette while connected.
Open Merge Request, Open Spec, Open Plankraft.openMergeRequest, kraft.openSpec, kraft.openPlanOpen what the item links to.Palette while connected.
Open Worktree in New Windowkraft.openWorktreeOpen the item's worktree.Palette while connected, not signed in to another machine.
Show All Repos, Show This Repokraft.toggleAllRepos, kraft.showThisRepoWiden the board to every repo, or go back.Palette, not signed in to another machine.

Filing work

CommandIDWhat it doesWhere and when
File Work Item…kraft.fileWorkFile a work item.Palette unless read-only.
File as Kraft Spec…, File as Kraft Plan…kraft.fileAsSpec, kraft.fileAsPlanAttach a .md file as the spec or plan.Explorer menu.
File Selection as Kraft Work…kraft.fileSelectionFile the editor selection.Editor menu.
Connect This Repokraft.connectRepoConnect an unconnected repo.Palette when the board offers it.

Connection and config

CommandIDWhat it doesWhere and when
Start Kraftkraft.startDaemonStart Kraft in the background.Palette; status bar menu while disconnected and not signed in to another machine.
Show Logkraft.showLogOpen the log.Palette; status bar menu.
Status Menukraft.statusMenuOpen the status bar menu.Status bar only: it isn't in the palette.
Sign in to a server…kraft.signInUse a Kraft on another machine.Palette, status bar menu.
Open Config…kraft.openConfigList Kraft's config files and open one.Palette; the gear on the board's title bar, not signed in to another machine.
Show Resolved Chain, Lint Template Librarykraft.showResolved, kraft.lintLibraryPreview a chain after inheritance, or lint the library.Palette in a trusted workspace, not signed in to another machine.

Keyboard shortcuts

Added in 2.1

The gate loop has default keys, each chord starting with Ctrl+Alt+K (Cmd+Alt+K on macOS). Each works only where its command applies, and you can rebind any of them in Keyboard Shortcuts.

CommandWindows and LinuxmacOSWorks when
Kraft: Next GateCtrl+Alt+K NCmd+Alt+K NVS Code is connected to Kraft.
Kraft: ApproveCtrl+Alt+K ACmd+Alt+K AA gate document is the active tab.
Kraft: Reject…Ctrl+Alt+K RCmd+Alt+K RA gate document is the active tab.
Kraft: Submit ReviewCtrl+Alt+K SCmd+Alt+K SA gate document is the active tab, or a review tab whose item has draft comments.

Approve still needs the gate document to have been read first, as from the title bar.

Settings

SettingWhat it does
kraft.urlWhere Kraft listens. Empty reads KRAFT_HOST and KRAFT_PORT, then bind and port from access.yaml. Set in your user or Remote settings only. Kraft: Sign in to a server… sets it to the address you signed in to.
kraft.pathThe kraft binary Start Kraft runs. Empty runs kraft on your PATH; a leading ~ means your home folder. Set in your user or Remote settings only.
kraft.notificationsall, gates or off: all notifies when an item needs you or fails, gates only when a gate opens. Pausing an item yourself never notifies.

Act on several items

Select several items with Ctrl-click or Shift-click (Command-click on macOS), then open the context menu on one of them. The menu shows a command only when the row you opened it on allows it. Pause, Resume…, Archive and Restore act on the whole selection; every other command acts only on the item you opened it on. Archiving asks first, since worktrees are deleted.

On a selected row, the Resume… button also acts on the whole selection, with no steer. On an unselected row it resumes just that item, with a steer.

Items Kraft wouldn't accept the command for are left alone. Resume sends no steer, and leaves out an item that asked a question: answer it on its own. One message then says how many items the command reached, and names each item it didn't, with the reason.

Row buttons

An item that waits on you shows one button on its row when you hover it, the same action the web board's row offers:

ItemButton
At a gateOpen Gate Document
Asking a questionAnswer…: resumes it. The input box shows the question, and your answer steers the item.
Stopped by its spend capRaise Budget…
Failed, or stuck in a loopRetry…
Paused mid-chainResume…
Stopped by a loop cap, or another stopOpen in Web UI

The notification for an item that asks a question offers Answer (the same as the row's button) instead of Retry, and only while Kraft would accept a resume. Other stops keep Retry. While the extension is read-only, the notification offers only Open in Web UI.

A button shows only while Kraft would accept it. Answer, Raise Budget, Retry and Resume are hidden while the extension is read-only.

Activating an item at a gate opens its gate document. Any other item is only selected.

Open the merge request, spec or plan

Right-click an item and open the Open submenu to reach what it links to. It also holds Open Worktree in New Window, Open in Web UI, Show Worker Log and Review Changes. Each entry shows only on an item that has it:

EntryWhat it opens
Open Merge RequestThe item's merge request, in your browser. Only an http or https link is offered.
Open Spec, Open PlanThe spec or plan the item was filed with, as Kraft stored it at intake, in a read-only editor tab. Editing the original file since doesn't change it.

A long document is cut short, and the tab ends with a line saying so: open it in the web UI for the whole of it. If Kraft no longer has its copy of the document, VS Code shows the server's message instead.

Added in 2.1

Run Kraft: Search… from the Command Palette while VS Code is connected to Kraft. Type what you are looking for: VS Code searches Kraft's documents (specs, plans, gate documents and session summaries) once you stop typing, and lists each hit with its kind, its repo and the passage that matched.

You pickWhat happens
A hit that belongs to a work itemThe item is selected on the board. If the board doesn't show it (it is archived, or in a repo outside this window), it opens in the web UI instead.
A hit with no work itemThe document opens in a read-only editor tab.

If Kraft can't run the search, or can only run a text search because vector search is failing, the reason shows in the search box's title.

The status bar and the connection

The status bar shows a check mark beside Kraft while the extension is connected and nothing waits on you, and Kraft (read-only) when the versions don't match or the workspace is in Restricted Mode.

While connected, the status bar also shows how many items in scope wait on you, such as Kraft 2, the same count as the Needs you group. When something waits, it shows a bell in place of the check mark on VS Code's warning background. It leaves the number out when nothing waits.

While connected, hovering Kraft shows what Kraft has spent today against its daily cap, such as "Today: $1.20 of $20.00" or "Today: $0.500 (no daily cap)". It reads the figure on connect and again at most every 30 seconds while the board changes, and leaves the line out when the server doesn't answer.

Select Kraft in the status bar for Show Log, Open Web UI, Start Kraft (only while it is disconnected, and never when you are signed in to another machine), Sign in to a server… and Retry Now. Kraft: Show Log in the Command Palette opens the same log: it records each connect, disconnect and retry with its delay, every request Kraft refused, and every command that failed.

While the extension can't connect, hovering Kraft says why, and an empty Kraft view shows one row:

RowMeaningSelecting it
Kraft isn't running — StartNothing answers at kraft.url.Starts Kraft in the background: kraft admin start --detach, from kraft.path.
Kraft refused the token — check kraft.urlKraft answered but rejected the token: kraft.url points at another Kraft, or the token changed.Opens the kraft.url setting.
Kraft: sign in againKraft answered 401 to a session: it was signed out, or the password changed.Runs Kraft: Sign in to a server…; the stored session is deleted.
Kraft error: … — Show logKraft answered with another error.Opens the log.

The extension retries on its own, waiting 1 second, then 2, 4 and so on up to 30 seconds between tries. Retry Now tries again at once.

Start Kraft runs from your home folder and shows "Starting Kraft…" until Kraft answers, then connects. A Kraft that is already running is said so, and the extension reconnects to it. When the binary isn't found, Get Kraft opens the install page and Open Settings opens kraft.path. Any other failure shows Kraft's own error, with the full output in Show Log. Selecting it again while one start runs says Kraft is already starting.

Which items the board shows

Added in 2.1

The board, the count on its icon and the notifications cover the repos of the window's folders. A folder matches its repo the way Kraft matches it, so these all show the repo's items:

  • A subfolder of the repo.
  • A symlinked path to it.
  • A linked worktree of it.
  • A submodule or nested repo under a connected repo.

A window opened on an item's worktree shows that item's repo.

Archived items sit under Archived, the last group, collapsed. Expand it to list them, then right-click one, or select several, and run Restore to put them back under Done. The group reads its items from Kraft when you expand it, when the extension connects, and after an item is archived or restored. If that read fails, the group shows one row saying why.

Archived shows only while the board has other items. When it has none, restore from the Command Palette with Kraft: Restore, which lists the archived items to pick from, or from the web UI.

Show All Repos, in the view's title bar, widens the board, the count and the notifications to every repo Kraft has work in. Show This Repo, in the same place while all repos show, goes back to this window's repos. Both are also in the Command Palette.

The view's description says which it shows, "This repo" or "All repos", where VS Code shows a description (not in a sidebar that holds only the board). While Kraft is disconnected, the rows are the last it knew, and a line above them says "Not connected · last known".

The choice is kept per workspace: reopen the folder, or reload the window, and the board shows the repos it showed when you left it.

When this window's repos have no Kraft work, the view says "No Kraft work in this repo." with File Work Item… and Show all repos links. With all repos shown and no work in any, it says "No Kraft work yet, in any repo." with the File Work Item… link.

When a folder's repo isn't connected to Kraft at all, the view says "This repo isn't connected to Kraft." instead, after one sentence on what Kraft is and what a gate is, with a What is Kraft? link to the docs and a Connect this repo link (also Kraft: Connect This Repo in the Command Palette). It connects the repo with the commands Kraft detects, and the board then reads the connected repos again.

To set the test or setup command yourself, connect from the web UI or with kraft repo connect. Connecting from VS Code needs Kraft on this machine: when kraft.url points elsewhere, neither the link nor the command is offered, and you connect the repo from the web UI or with kraft repo connect on Kraft's machine. A read-only window doesn't offer them either.

To work in an item's worktree, right-click the item and run Open Worktree in New Window. It appears only while the item's worktree is on disk: not before the item has run, and not once its worktree is reclaimed.

Gate notifications and approval

Added in 2.1

When a gate opens, the notification names the item by its title and says what the gate asks, such as "Design the caching layer: approve spec". A notification for an item that failed or hit a cap or budget is a warning; a question or a gate isn't.

When two or more arrive at once, as on startup or after a reconnect, one notification says "3 items need you" instead, with Next Gate when a gate is among them and Show Board to reach the rest.

After you approve, a message says what was approved ("Approved: <title> · approve spec"), and where the item went when Kraft already knows.

A gate that is followed by a merge or a push asks first ("Approve and merge <title> into the target branch?", with an Approve and Merge or Approve and Push button), whether you approve from the gate or by Submit Review with the Approve outcome; every other gate is one step. Kraft sends no flag for this, so the extension reads the item's chain: a merge or push node or task between this gate and the next.

Opening the config

Added in 2.4

Open Config…, the gear in the board's title bar or Kraft: Open Config… in the Command Palette, lists the files in $KRAFT_HOME/config that exist, each with a line on what it holds: configuration first (policy.yaml, harnesses.yaml, repos.yaml and the rest), then templates (library.yaml and each chain by its file name). Typing matches the file names and those lines, so budget finds policy.yaml.

Pick one to open it; in a trusted workspace a chain opens with the Show resolved chain lens above its first line.

sandbox.yaml and detectors.yaml, the two files only you write, are listed under Not created yet until they exist. Picking one opens an unsaved editor at its path, with a header linking its reference page and schema completion already on; saving creates the file.

Other missing files aren't offered: the web UI's Settings writes most of them, kraft admin addon writes addons.yaml, kraft admin worker add writes workers.yaml, and kraft admin forge add writes forges.yaml. The last entry, Open Config Folder in New Window, opens the folder. The whole command works in Restricted Mode, because it only opens files.

Signing in to a remote Kraft

Added in 2.6

To use the board of a Kraft on another machine, run Kraft: Sign in to a server… from the Command Palette or the status bar menu. It asks for the server's address, filled in from kraft.url, then for its password.

  • The address. http or https, with the host and port and nothing after: a path prefix such as https://proxy/kraft/ is refused. The host is lower-cased and the port made explicit, so HTTPS://Box/ and https://box:443 are one server. A zone ID such as %eth0 is refused.
  • An unencrypted password. For an http:// address to a host that isn't this machine, the extension first warns that the password crosses the network unencrypted and asks whether to go on. It asks on every sign-in, a Tailscale address included.
  • What it keeps. The session goes in VS Code's secret storage under that address, and kraft.url is set to it in your user settings. The window then reloads and the board is the server's.
  • What the server shows. The web UI lists the session as Kraft for VS Code on <hostname>. Sign it out there. It also ends when the password changes and expires after session_expiry_days.
  • The token stays home. With a session the extension sends the session's cookie and never the mcp-token, including on the live-updates socket, and it follows no redirect.
  • A self-signed https server. The error says the server's certificate isn't trusted. Set NODE_EXTRA_CA_CERTS to the file holding its certificate authority and restart VS Code.

When the server ends the session, the extension deletes it, shows "The server ended this session." with Sign in again, and the status bar row reads Kraft: sign in again. A refusal that the extension finds isn't the session's, such as a proxy's, is retried as any failed connection is.

A user-level kraft.url that names another machine and holds no session keeps working with the token, as before. The status bar tooltip then adds "Sign in to use a session instead."

What a signed-in window leaves out

Added in 2.6

Some actions read or change this machine, and a window signed in to another machine's Kraft refuses them, naming the server:

  • Start Kraft, which would start a Kraft here.
  • Open Worktree in New Window and Review Changes, which read the item's worktree on the server's machine. Review the diff in the web UI.
  • Connecting a repo, and filing work from a file or selection.
  • Config checks, schema completion, Show Resolved Chain and Lint Template Library, and Open Config…, which read config files on the server's machine.
  • Repo scoping: no folder here belongs to the server's repos, so the board shows every repo and Show All Repos is hidden.

The documents, previews, gates, worker logs, search and the live board need nothing local, and work as on the same machine. Remote - SSH is unchanged: a window on a remote machine whose Kraft is on that machine needs no sign-in.

In Restricted Mode

Added in 2.1

In a workspace you haven't trusted, the extension runs read-only. The board, gate documents and Review Changes work. Every action, from Approve to Submit Review and Start Kraft, shows "Kraft is read-only in Restricted Mode: trust this workspace to act." The status bar item reads Kraft (read-only), with the reason in its tooltip.

Config checks, schema completion, Show Resolved Chain and Lint Template Library start once you trust the workspace, with no reload.

If the extension is read-only

The extension needs an editor whose VS Code base is 1.90 or newer, and a Kraft of its own major release and at least its minor: the 2.0 extension needs Kraft 2.0 or a later 2.x. Against any other, it turns read-only. The board still updates, every action is disabled, and its status bar item reads Kraft (read-only).

To fix it, update whichever is older: upgrade Kraft from 1.4 when the extension is newer, or update the extension when it is a 1.4 one, pinned or with updates off.

An extension newer than Kraft

  • When it connects, it shows a warning that says which to update, and the status bar item's tooltip repeats it: against a 1.4 server, "This extension (2.0.0) needs Kraft 2.0 or later; this server runs 1.4.0. Update Kraft. Actions are disabled until they match."
  • When you then try an action, it shows "Kraft is read-only: this server's version doesn't work with this extension. Hover Kraft in the status bar to see which one to update."

VS Code updates the extension on its own, so after a new major release this is what you see until you update Kraft from 1.4.

  • Kraft for VS Code: install the extension, clear a gate, review a branch and edit config files.
Copyright © 2026