drive

drive

A private goals file that steers your Claude sessions, with their live status drawn right in the editor.

TypeScriptStarted

README

A private goals file that steers your Claude sessions, with their live status drawn right in the editor.

Drive annotating a goals file in VS Code

You write what you want in a plain markdown file, in your own words. Lines you mark with ! get picked up by a Claude coordinator session, which starts work sessions, follows their PRs, and records what's happening in a sidecar file. The editor draws that status onto your lines as you type:

  • gutter icons: queued ○, working ◐, question ?, in review ◆, done ✓, failed ✗, blocked ■, and ◇ when you've changed a line since the coordinator last looked at it
  • inline italic notes at the end of each line, like Git blame: the latest report, PR number and state, and how long ago it happened
  • rollups on headings and parent items: 1/3 done · 1 working · 1 question
  • questions from agents shown as a prompt above the line; click it to open the session and answer
  • hovers with the goal chain, linked sessions (click to open in Claude Desktop), PRs and history

Hovering a line shows its sessions, links and history

Drive in Claude Desktop

The main way to use Drive is a Drive session: a Claude Code session in Claude Desktop opened in the folder that holds goals.md, with the Drive mod installed. The mod draws the file in a pane beside the chat, every heading and line with its status, refreshed every few seconds from Claude Desktop's own session state. Nothing needs syncing.

  • Press a line that has a session to open that session.
  • Press a line without one (▶, or ○ when it ends in !) to put "Start the goals line …" in the prompt box. Send it, and the Drive session sets the work up the way you start work (a workspace, a worktree, a launch routine), links the new session to the line and detaches it to top level.
  • Ask the Drive session in chat to add, move, nest or reword lines. Links follow the lines.
  • /drive opens the pane in any session.

Install, from a terminal:

git clone https://github.com/jeffbaumes/drive drive-src && cd drive-src   # not ~/drive: that is where your goals live
npm install && npm run build && npm link   # the drive CLI the mod runs
drive init                                 # ~/drive/goals.md, seeded with your sessions
cp coordinator/CLAUDE.md ~/drive/
claude plugin marketplace add "$PWD"
cd ~/drive && claude plugin install drive@drive --scope project

Then start a Code session in Claude Desktop with ~/drive as its folder.

From GitHub instead of a clone, the mod alone installs with /plugin install drive --marketplace jeffbaumes/drive at a terminal prompt.

The VS Code extension below draws the same status in the editor. It is the earlier way to use Drive and still works.

Why

Chats are private, and so is a programmer's to-do list. Issue trackers and checked-in specs are public. Drive keeps intent in a file only you edit, and lets the coordinator decide what leaves it: a brief for a session, a branch, a PR description.

The rule is simple: you write the goals file, the coordinator writes the sidecar, and the editor only draws. Nobody edits the other side's file.

The goals file

## Ship the pricing page
- usage-based pricing table !
  - stripe checkout in test mode !
  - annual plans
- explain the free tier limits on the landing page !
  • Headings and indentation make goals and subgoals.
  • End a line with ! (or press Ctrl+Alt+Enter) to mark it for the coordinator. Lines without it are just thoughts.
  • Edit freely. Status follows each line through rewording and moving (it's matched by text and parent, not line number). A reworded line shows ◇ until the coordinator passes the change to its session.

drive init starts the file with a flat list of your open Claude Desktop sessions under ## Sessions, newest first, each already linked so its status shows right away. Scheduled-task runs and archived sessions are left out. Move them under your own headings and nest them from there; status follows each line. --empty skips the import.

A file is a Drive file when it's named goals.md, ends in .goals.md, or has a sidecar next to it.

The sidecar

.goals.md.drive.json, next to the goals file. Each entry is one line's status:

{
  "id": "fgg5r7",
  "key": "usage-based pricing table",
  "text": "usage-based pricing table",
  "parentKey": "ship the pricing page",
  "status": "working",
  "detail": "table renders; wiring plan ids",
  "sessions": ["local_…"],
  "links": [{ "url": "https://github.com/you/site/pull/42", "state": "open" }],
  "updated": "2026-12-01T13:20:00Z",
  "history": [{ "at": "…", "status": "working", "note": "started" }]
}

Statuses: working, question, review, blocked, done, failed, dropped, idle. "Queued" and "edited" are worked out from the goals file, never stored.

The coordinator

The coordinator is an ordinary Claude Code session in Claude Desktop, opened in the folder that holds your goals file, with coordinator/CLAUDE.md copied next to it. Say "sync" and it:

  1. runs drive todo to see queued, edited and deleted lines and open questions;
  2. starts (or proposes) a session for each queued line, with a brief written from that line and its goal chain only;
  3. records each session with drive set <line> --status working --session <id>;
  4. catches up on sessions active since the last sync: progress, questions, PRs and results.

Sessions are flat: the coordinator detaches each one to top level right after starting it, so the file holds the structure and nothing reports up a chain. The editor shows each session's live state straight from Claude Desktop, and drive todo lists sessions active since their line was last updated, so each sync catches up on their PRs, questions and results.

You don't have to say "sync" after the first time. The coordinator keeps a drive wait running in the background. When you save a new ! line, an edit or a deletion and then stop typing for a few seconds, the command exits and wakes the coordinator, which syncs. Because nobody asked in chat, a sync started this way proposes new sessions as cards you start with a click.

Live session status

The extension also reads Claude Desktop's own per-session summaries (read-only) for every session linked in the sidecar. So when a session finishes a turn or starts waiting on you, the line updates before the coordinator records anything. This reads the app's internal metadata files, which are not a public API: if they change, Drive quietly falls back to the sidecar alone.

The CLI

drive show                 the file with status, as the editor draws it
drive todo                 JSON: queued, edited, deleted lines, open questions,
                           and sessions with news since their line was updated
drive wait [--quiet <s>]   block until you add work, then print `todo`
drive status               JSON: every line with its entry and goal chain
drive set <line|id> ...    --status --detail --question --clear-question
                           --session <id> --link <url> --link-state <s>
                           --note <text> --ack
drive drop <id>            forget an entry whose line was deleted
drive init [--empty]       create ~/drive/goals.md listing your open sessions

The file comes from --file, then $DRIVE_FILE, then ./goals.md, then ~/drive/goals.md.

Install

git clone https://github.com/jeffbaumes/drive drive-src && cd drive-src   # not ~/drive: that is where your goals live
npm install
npm run package                       # builds drive-0.1.0.vsix
code --install-extension drive-0.1.0.vsix
npm link                              # puts `drive` on your PATH
drive init                            # ~/drive/goals.md, seeded with your sessions
cp coordinator/CLAUDE.md ~/drive/

Then open ~/drive/goals.md in VS Code, and start a Claude Desktop session in ~/drive to be the coordinator.

Develop

npm test         # unit tests (parser, matching, rollups)
npm run itest    # launches VS Code with the extension and checks hovers and lenses

Set VSCODE_PATH to use an installed VS Code instead of downloading one.

Not yet

  • PR and CI state without the coordinator. The extension could ask gh directly for linked PRs.
  • Other editors. The sidecar is the whole protocol, so any editor that can draw gutter marks and end-of-line text can show it.