Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Focus WorkspaceNew to Visual Studio Code? Get it now.
Focus Workspace

Focus Workspace

Yonas Valentin Mougaard Kristensen

|
1 install
| (0) | Free
Keep one goal and one next step in view, see what changed and what was really checked, and pick up where you left off.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Focus Workspace

A VS Code extension for developers who lose the thread — during AI-assisted work, after a meeting, the next morning. It keeps one goal and one next step in view, shows what changed and what was really checked, and helps you pick up where you left off.

It was designed from what developers say they struggle with (losing their place after any break, not remembering why a change was made, "did I actually test this?", agents that finish while you are elsewhere) and from research on interruptions and resumption. See docs/research/2026-12-01-adhd-developers.md.

Everything stays on your machine. Nothing pops up, nothing counts streaks, and nothing needs setting up before it is useful.

Focus — one goal, one next step

  • The status bar shows your next step (or your goal). Click it to change the next step: one line, nothing required.
  • The Focus view shows the repository and branch, your goal, a blocker or decision if you wrote one, your next step, the files that changed, unsaved editors, the latest check, and the agent's state.
  • No goal yet? A proposal from the branch name appears (feature/42-return-card → "Return card"). Adopt it with one click, or write your own.
  • Park Thought (editor context menu): write the tangent down where you found it and stay in the file. It is a note, never an edit to your code.
  • TODOs added on this branch lists the TODO/FIXME/XXX/HACK lines the branch added, each a jump target.
  • A task is done only when you say so (Edit Task → Complete). An agent stopping or a green check never completes it.

Understand — how the code you are changing connects

  • Understand Change (editor title on a changed file, the changed-file row, or the editor context menu) opens a small graph beside the code: the function at the cursor, who calls it and what it calls.
  • It comes from VS Code's own language providers and says so: static code relationships, not observed execution. Each box opens the real file and line; each line between boxes says why they are connected. The same information is listed as text below the graph.
  • Explain Selection writes a short explanation from the source and git, citing its evidence. If a VS Code language model is available, you can choose it instead; its answer is kept only if every citation points at evidence it was given, and a suggested next step stays a proposal until you adopt it.

Return — where was I?

  • Save Return Point asks one thing: your next step. Goal, decision, blocker, open files, the latest check and the git state are captured for you. No file contents are stored.
  • Resume shows your own next step first (click it to jump to where you last edited), then what changed since — files, commits, a branch switch, missing files — whether each check still applies to the code now, what the agent did meanwhile, and a timeline you can copy as Markdown for a PR description or standup.
  • The Focus view offers Last time: … when you open the window again.
  • Done today lists today's commits, completed tasks, parked thoughts you closed and checks that still apply — facts, no totals.

Checks that say what they really showed

  • Configure Check lists your package.json scripts (it never runs them) and saves the one you pick. Run Check runs it only when you ask, in a trusted workspace, without a shell.
  • The row shows the real outcome: exit 0, or test counts when a Vitest JSON report from that very run exists (3 passed, 0 failed · exit 0). An exit code is never shown as "verified".
  • Freshness says whether the result still applies: current, stale (code changed since), unknown (files were written during the run, even if reverted), unsupported or unavailable. Unsaved editors are not part of a check; the row says how many there were. Show Evidence shows the command, scope, files covered, what was never read (secrets, node_modules, build output) and the output.

Claude Code (optional)

Connect Claude Code adds hooks to this worktree's personal .claude/settings.local.json after showing you the exact change. It asks first whether to keep the first line of each prompt. Each event is written to a private folder of this extension and read within a moment; only the session, event and time (and the prompt line, if allowed) are kept. Disconnect Claude Code removes exactly what was added. Without it, the Focus view says Agent not connected, and Set Agent Note lets you write the agent's state yourself.

Install

  1. npm ci && npm run package → focus-workspace-0.1.0.vsix.
  2. In VS Code: Extensions → … → Install from VSIX…, or code --install-extension focus-workspace-0.1.0.vsix.
  3. Open a folder. The Focus Workspace icon is in the activity bar.

Remote SSH is not verified; the extension is built and tested for local VS Code.

Trust and privacy

  • In Restricted Mode notes keep working; git, checks and agent setup wait until you trust the workspace (capabilities.untrustedWorkspaces: limited; the focusWorkspace.checks setting is restricted).
  • Git runs read-only with every repository-configured program off: no fsmonitor, no hooks, no external diff or textconv, no optional locks.
  • State lives in VS Code's per-workspace extension storage; Delete Workspace History removes it for the selected repository.

Development

  • npm run test:unit — domain and adapters (vitest, real temporary git repositories and processes).
  • npm run test:headless — integration tests in an Extension Development Host inside Docker with xvfb, so no window opens on your screen (npm run test:integration runs them locally instead).
  • npm run package — production build, VSIX, and a check of what it contains.
  • Platform facts and their sources: docs/technical-decisions.md. What was verified: docs/validation.md.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft