Start work

o opens Start work. Describe the task; Heed picks the repo, names the branch, makes the worktree, opens a session and starts the agent on your words.

The Start work dialog: the prompt, the guessed repo, the worktree name, the agent, options and the command it will run

The Start work prompt box with the typed prompt, Fix broken anchors in the redirect pages

The Start work fields: the kind chips, the repo guesses with their percentages, the worktree name, the agents, the model and the options, and the command Heed will run

The dialog has its own small modes, like Heed itself:

  • Typing (INSERT, the default): keys go into the prompt or the worktree name. ⇥ moves to the next field.
  • Moving (NORMAL, after ⎋): j k or ⇥ move between fields, h l choose within one, space toggles, i or ↩ edits again.
Key
⌘↩ Start
⌃n / ⌃p Cycle the repo guess (or the agent, on the agent row)
⌘V Paste at the cursor; a big paste (over 20 lines or 2,000 characters) becomes an attachment
⎋ Stop typing; again to cancel

While typing, the cursor moves as in any text field, here and wherever heed takes typing (the : line, a / filter, the pickers):

Key
← → A character; ⌥← ⌥→ a word; ⌘← ⌘→, Home End or ⌃a ⌃e the line's start or end
↑ ↓ A line in the prompt (⌘↑ ⌘↓ its start or end); in a picker they move the list
⇧ with any of those Select; typing or pasting replaces the selection. ⌘A selects all
⌫ ⌦ The character before or after the cursor
⌥⌫ or ⌃w The word before the cursor (at the end of a folder path: up a folder)
⌃u or ⌘⌫ Back to the line's start
Field
Prompt What you want done. It grows with what you type, up to a third of the window, then scrolls.
Kind What the work is: feat, fix, refactor, docs, chore or plan. It picks the branch prefix. See Branch names.
Repo The guessed repo; another chip or other repo… picks a different one. See Choosing repos. The last chip makes it a chat.
Worktree The branch and folder name, from the kind and the prompt's words. See Branch names.
Agent Which agent starts, or a shell only. See Agent and options.
Options Autostart, plan first, shell split.

Attachments. A big paste (a CI log, a diff, a stack trace) is kept beside the prompt as a chip that says what it looks like and how long it is. When the work starts it is written to a file in heed's folder for the session, and the prompt tells the agent to read it, so the prompt stays short. On a host the text goes into the prompt instead. In the prompt field, after ⎋, h l pick a chip, x drops it and P (or a click) puts its text back in the prompt.

Links. A PR or issue URL in the prompt shows as a chip with its title once heed has fetched it, and the branch is named from that title: "look at …/issues/88" becomes fix/redirects-moved-pages when the issue is "Fix redirects for moved pages".

A pasted CI log kept as an attachment, and the linked issue with its title

The bottom of the dialog shows the exact command the agent pane will run, and Cancel and Start buttons that do what ⎋ and ⌘↩ do.

A longer prompt is sized as you type. When it looks bigger than one session, a quiet line under the prompt offers a goal (⌘G); the fields stay and ⌘↩ starts what they show. Small tasks never see the line. See Bigger than one session.

Every part of the dialog takes a click, in either mode. Clicking the prompt or the worktree name edits it; clicking a chip picks it as space would (a repo, other repo…, the chat chip, an agent, a folder kind or host); clicking a switch flips it; clicking a row of the repo search adds that repo. Clicking a field's label moves there. Clicking outside the dialog cancels it, as it does for the floating panel.

O opens Start work with the prompt of the session you are on, ready to change and start again: a second attempt, another agent, another repo. In History, O does the same for a closed session.

Start work opened from a closed session's prompt

To pick up the same session where it stopped instead, reopen it from History with R.

Next: Sessions.