Sessions and Mission Control
Start sessions, move between them, and read their state from one window.
A session is one conversation with the agent in one project folder. Mission Control is the grid that shows every open session as a live miniature.
Starting a session
| Key | Result |
|---|---|
⌘N |
Opens the folder picker and starts a session in the chosen project. |
⌘⇧N |
Starts another session in the project of the session in view. |
The picker’s scratch row starts a session with no project folder. /promote moves a scratch session into a project later.
A project that holds a .kcode/ folder shows a trust dialog before any of its hooks, skills, plugins or settings load. Trust & remember saves the answer for the project, This session only trusts it for one session, and Open untrusted opens the project without them.
Moving around
| Key | Result |
|---|---|
| Click a tile | Opens the session at full size. |
⌘M |
Returns to the grid. |
⌘1 to ⌘9 |
Opens the first to the ninth session. |
⌘⇧] and ⌘⇧[ |
Moves to the next or the previous session. |
⌘K |
Lists the sessions that are off the grid, by project, to reopen one. |
⌘⇧F |
Searches the text of past sessions. |
⌘P |
Opens the command palette. |
Ctrl-B |
Shows every shortcut. |
A right-click on the empty grid switches the layout between Grid, Tabbed and Sidebar. Dragging one tile onto another groups the two under a label.
Reading a session’s state
Each tile is a live miniature of its session, so the grid shows which sessions are working and which have stopped for an answer. ⌘⌥N opens the notification center. The status bar of a session names its model and its reasoning effort.
Permission modes
A new session starts in auto: tool calls run without a prompt, except calls that read or write a secret location, and deny rules still apply. /permissions changes the mode of the session and its allow and deny rules.
| Mode | What runs without a prompt |
|---|---|
plan |
Reads, and shell commands that only read. Nothing is written. |
default |
Reads. A write, or a shell command that does more than read, asks first. |
accept-edits |
Reads, and writes to project files. |
auto |
Every call, except one that touches a secret location. |
permissions.default_mode in ~/.kcode/config.toml sets the mode new sessions start in.
Undo, fork and help
| Command | Result |
|---|---|
/undo |
Reverts the files the last turn changed and, in a git checkout, the commits it made. |
/fork |
Copies the session at the current point into a new session. |
/rename |
Gives the session a title. |
/help <name> |
Explains a command, a setting, a shortcut or a tool. |
The command palette’s Open user manual opens the manual of the running build in the browser.