Wigwam AgentFS for VS Code
Browse local AgentFS projects, branches, workspaces, and parked stashes in the
AgentFS viewer. The viewer also provides workspace-scoped Changes and Timeline
tabs, a full-screen Graph of the project's history in the editor area, and a
small set of explicit actions: show a workspace or a branch as a folder in this
window, create a workspace from a branch, stage a dirty workspace, and remove
or sweep workspaces — each behind its own confirmation, never as a side
effect.
The extension keeps the existing wigwam.wigwam-sync marketplace identity and
wigwam.* command namespace for upgrade compatibility. It works with VS Code
forks such as Cursor, Windsurf, and VSCodium.
The window
A window shows one project. The first folder is the anchor: the project's
in-place tree, or — for a project that has none — a read-only view of the trunk
branch. The anchor stays for the life of the window. Everything else is added
beside it and removed again, and a window holds as many of those as you put in
it.
The Explorer draws every root as a bare folder, so the folder name and its badge
say which is which:
| Root |
Badge |
Writable |
What it is |
<project> — home |
⌂ |
usually |
the anchor, at the top of the window |
<name> — workspace |
ws |
yes |
an AgentFS workspace |
<branch> — branch view |
br |
no |
a live read-only view of a branch head |
<snapshot> — snapshot view |
sn |
no |
a read-only view of one fixed snapshot |
Roots are always ordered anchor, then views, then workspaces, and adding one
never reorders the rest.
A project with no tree of its own and no view of its trunk has nothing to
anchor on. Opening one of its workspaces reloads the window with just that
folder, the way it always did.
Putting something in the window. Each workspace row and each branch row in
Browse has one folder button. On shows that root in the Explorer; off takes it
out. Right-click a row that is in the window for the same removal, or use VS
Code's own Remove Folder from Workspace — the toggles follow either way.
Taking a root out changes nothing on disk: a workspace stays mounted, and a
branch view stays served.
The first time you show a branch, the extension asks AgentFS to serve a view of
it (afs view branch:<id>). That is the only change it makes; asking again
adopts the view that is already there. A branch view follows its branch head,
so it is always the branch as it is now — and when the view is lagging behind
the head, the extension says so instead of presenting stale files as current.
Branch and snapshot views need Linux or macOS; on Windows AgentFS cannot
serve one, so the branch toggle is disabled and says why. Snapshot views are
made with afs view snap:<id> at the command line; the window shows, names and
badges them like any other view.
Views are read-only. Their files open read-only in the editor, so you are told
before a save fails.
The one restart. Turning a plain window into the project's window reloads
it once, because VS Code restarts the extension host whenever the first folder
changes. After that, showing and hiding roots is instant.
Features
- Browse — Project → Branch → Workspace → parked stash, backed by the
versioned
afs topology --json --all contract, with filtering and sorting.
- Workspace browser — activate a branch to select its history in Timeline,
including from Changes. Single-click a workspace to select its workspace
Timeline without collapsing the browser. Double-click, or use the folder
toggle, to show it in the window; more actions remain under
….
- Safe directory actions — show in this window, open in a new window, open
in this window only (reloading it with just that folder), or reveal in the
file manager. Store-only/unmounted workspaces remain visible but cannot be
opened.
- Explorer decorations — every AgentFS workspace root open in the window
carries theme-aware
D (uncheckpointed), S (checkpointed but not
integrated), or I (integrated) badges on its changed paths, and the tooltip
names the workspace each badge belongs to. Containing directories use the
strongest descendant state (D > S > I), highlighting the path through
collapsed folders. The project's own tree is badged like any other workspace.
Read-only views have nothing to badge and are left alone, as are reverted
files and each root's own badge. States come from the aggregate
afs path-status --json-v1 API, never the coarse lifecycle tag.
- Source Control — every open workspace root gets its own
AgentFS · <name>
provider listing its changed files under Uncheckpointed, Checkpointed
and Integrated, in the order work moves through them. Click a row for its
diff; right-click for this version, the previous one, the head, or this
version against the head. Deleted files appear here, struck through — they
have no file left in the Explorer to badge or right-click. The badge counts
the work that is not on the branch yet, so integrated rows never keep it
above zero. The rows come from the same path-status read as the Explorer
badges and cost no extra AgentFS call. Views get no provider.
- Inline changes — editor gutter bars, the inline peek and next/previous
change for every open workspace root, each file compared against its own
workspace's origin snapshot — the same baseline as its
D/S/I badge. The
status bar names the workspace the current editor is in and how many of its
files are comparable; click it to turn the bars off — the Source Control file
lists stay. Views get no bars.
- Changes — inspect the selected workspace's uncheckpointed changes and open
supported text changes in VS Code's diff editor. Added files open plainly in
the editor (there is no old side to diff against), the way the SCM views open
an untracked file. Binary, large, unavailable, mode-only, and non-file entries
remain visible with refusal reasons.
- Timeline — workspace scope remains newest first: the current operation
tail, Stage/Partial Stage, stash, replay and reconcile cards, then creation.
Branch scope is clearly labeled
project / branch, reads landed snapshot
history from Head to root, and shows checkpoint people, time, writers,
snapshot IDs, and available replay/integration provenance. Workspace operation
lists default to useful creates, updates, and renames: click a row to open its
VS Code diff, or use the row's chevron to expand operation metadata. Display
offers per-type filters plus Changes only and Select all presets, so
deletes, symlinks, directory operations, metadata changes, write intents, and
unknown operation types remain available when diagnosing filesystem behavior.
Floating Display, Filter, and action menus dismiss on an outside click or Escape.
Branches remain viewable without workspaces, including archived branches when enabled.
- Graph — a full-screen editor page that draws
main as a trunk and every
departure from it as an excursion: a replay (the original snapshots stayed
off-trunk when integrate refused with stale_head, drawn hollow with a
dashed return), a reconcile (integrate hit a conflict, the merge
workspace resolved it by hand, and that work really did land — solid), a
cross-branch merge, a live workspace, or a parked branch. Every
snapshot gets its own column ordered by creation time, so a bounce reads as a
short local loop. Removed workspaces is an age-filter slider, not a zoom
control: None hides removed workspace lanes; moving right includes
increasingly older removals (by removal time), ending at All time. Every
workspace still on disk — spent ones included — is always drawn, even with a
history search applied.
Archived branches whose horizontal spans do not overlap share vertical space.
Archived branches and spent/removed workspaces read as history: muted lines,
dashed stems and capsule outlines, hollow snapshots, and explicit status labels.
Live and dead workspaces never share a collapsed cluster.
History/filter rebuilds preserve the snapshot and branch being viewed rather
than leaving the viewport at obsolete columns or lane coordinates.
The filter applies on release and has no implicit newest-50 cap; unavailable
snapshots and archived-branch exclusions are reported in the summary.
Wheel to zoom, drag to pan, click for a detail card; level
of detail follows pixels-per-column, collapsing plain runs of landings into a
counted capsule when there is no room for them. Arrow keys walk the trunk and
step into a loop, Enter runs the selection's primary action, and clicking the
trunk anywhere selects the snapshot nearest the pointer — including at the
zoom levels where individual glyphs are too small to draw. Diff against
parent opens the whole snapshot as one page in VS Code's multi-file diff
editor; files that cannot be shown as text (binary, large, unavailable,
mode-only) are reported rather than falsely opened. While a branch's history
is active in Timeline, selecting a snapshot in the graph scrolls that entry
into view and flashes it — without touching the tab, selection, or focus.
- Workspace actions — a
+ on every branch row creates a new workspace
from that branch (afs new --branch) after asking for a name; a dirty
workspace's … menu offers Stage Checkpoint…, which asks for a message
and runs afs snapshot (staging never integrates — landing a snapshot stays a
deliberate CLI step); a project's … menu offers Remove Spent
Workspaces…, which previews exactly what afs rm --spent would remove and
only sweeps after a modal confirmation. Snapshots and history always remain
in the store. The Graph's detail card offers the same open / stage / new
workspace actions for the selection it describes. Remove workspace…
and Remove with forks… delete unresolved workspaces after one confirmation,
including their unintegrated work. No extra force step is needed; snapshots
and history remain in the store.
- Live refresh — AgentFS stamps a per-project change signal on every
committed write, and the extension watches it: the sidebar and an open graph
follow
afs new, stage, integrate, and agent edits on their own, with write
storms coalesced. Needs an afs that reports change_signal_path; with an
older CLI, refresh stays manual and focus-driven.
- Resilient refresh — request cancellation and stale-completion fencing keep
rapid selection changes from publishing the wrong workspace or branch.
Archived branches are hidden by default and can be shown with
wigwam.showArchivedBranches.
Requirements
Install AgentFS so afs is on the extension host's PATH, or set
wigwam.afsExecutablePath to the executable. The extension invokes the CLI
without a shell and consumes versioned topology, Changes, and Timeline APIs.
Run topology outside an AgentFS entrance when you want the machine-wide project
registry; AgentFS entrances intentionally mask other projects.
Commands
| Command |
Description |
AgentFS: Choose Workspace… |
Search openable workspaces and show the selection in this window |
AgentFS: Refresh Projects |
Refresh the viewer topology |
AgentFS: Show Timeline |
Open Timeline for a selected workspace |
AgentFS: Refresh Timeline |
Refresh Timeline and topology |
AgentFS: Load More Timeline |
Load the next checkpoint page when available |
AgentFS: Show Workspace in This Window |
Add the workspace as a root beside the anchor |
AgentFS: Show Branch in This Window (read-only) |
Serve the branch's view if needed, then add it as a root |
AgentFS: Remove from This Window |
Drop one root; the workspace or view itself is untouched |
AgentFS: Remove Every AgentFS Root from This Window |
Drop every root but the anchor |
AgentFS: Open Workspace in This Window Only |
Reload the window with just that folder |
AgentFS: Open Workspace in New Window |
Open the workspace in a separate window |
AgentFS: Reveal Workspace in File Manager |
Reveal the workspace directory |
AgentFS: Toggle Inline Changes |
Turn the gutter change bars on or off |
AgentFS: Show Graph |
Open the full-screen history graph for the selected project |
AgentFS: Show Output |
Show AgentFS command errors and refresh information |
The commands that act on one row are invoked from the AgentFS view and its
context menus rather than the Command Palette.
VS Code performs its normal dirty-editor confirmation when reloading the window
with a single folder.
Settings
| Setting |
Default |
Description |
wigwam.afsExecutablePath |
afs |
AgentFS CLI executable path |
wigwam.showArchivedBranches |
false |
Include archived branches in Browse and the picker |
wigwam.inlineChanges |
true |
Gutter change bars for every workspace root in the window (the Source Control file lists are not affected) |
wigwam.openWorkspaceMode |
addToWindow |
Whether the picker adds a workspace beside the anchor or reloads the window with just that folder |
wigwam.searchIncludesViewRoots |
false |
Search the read-only view roots |
wigwam.pinRustAnalyzerToAnchor |
false |
Pin rust-analyzer.linkedProjects to the anchor's Cargo.toml |
wigwam.managedWindowSettings |
{} |
Bookkeeping written by the extension. Do not edit |
Each root in the window is a full copy of the project, which the editor's
search, file watcher and language servers all pay for. The two settings above
are the levers, and they are worth reading before you turn them:
wigwam.searchIncludesViewRoots. Off, each view root's absolute path is
listed in the project's search.exclude, so a find across the window reports
each hit once instead of once per open copy of the tree. That also keeps the
views out of Quick Open. On, the views are searched like any other root.
wigwam.pinRustAnalyzerToAnchor. rust-analyzer runs one server per window
and has no per-folder switch, so without a pin it loads the Cargo workspace in
every open root. Pinning rust-analyzer.linkedProjects to the anchor's
Cargo.toml stops that, at a cost: go-to-definition from a file inside a view
then lands in the anchor's copy of the code, not the view's. Off by default,
because it writes another extension's setting into your workspace file.
Two limits have no setting, and the extension does not pretend otherwise:
- A view's recursive file watcher cannot be switched off from a workspace
file. The extension lists each view root in
files.watcherExclude, which
filters the events, but VS Code still establishes the watch. Views change only
when a branch head moves, so this is wasted work rather than wrong content.
- The TypeScript server cannot be scoped. It has no exclusion setting and
ignores
files.exclude and search.exclude. It does start lazily, so a view
stays inert until you open a TypeScript file inside it.
The window's settings live in a per-project .code-workspace file the
extension writes in VS Code's own user data, not in your project. It edits only
the keys it records in wigwam.managedWindowSettings; anything else you put in
that file, including your own entries in the same settings, is left alone.
The former hut URL, relay URL, auto-connect, autosave, and
.wigwam/settings.json settings are obsolete and are not read or created.
Scope
Reading is ambient; changing state is not. Browse uses afs topology; Changes
uses the versioned afs diff/afs content editor contracts; Timeline uses
afs --project <name> timeline --workspace <durable-id> --json-v1; branch
history uses afs --project <name> log <durable-branch-id> --json --no-count;
the Graph uses the same log contract with --all, for the complete trunk
chain and for the ancestry of each off-trunk snapshot. Explorer decorations use
afs --project <name> path-status --workspace <durable-id> --json-v1 and
refresh from the same project change signal; they never query from
provideFileDecoration or poll.
Mutations happen only on an explicit gesture, through a fixed set of versioned
verbs: afs new <name> --branch <branch> --json, afs snapshot <workspace-id> -m <message> --json, afs rm --spent [--dry-run] --json, afs mount <workspace-id> --json, afs rm [-r] <workspace-id> --json, and afs view branch:<branch-id> --json. The extension never parses human output or reads
SQLite directly, and does not unmount a view, advance, stash, integrate,
replay, reconcile, sync, connect, autosave, intercept saves, expose blame, or
attribute editor writes — landing work on a branch stays a deliberate CLI step.
Changing what the window shows is not one of those mutations. Adding or
removing a root edits the window's folder list and the project's
.code-workspace file, and nothing else.
Integration events are shown only in branch history and are not falsely
inserted into workspace-stream Timeline order. Branch history never includes
Current, uncheckpointed state, operation buckets, workspace creation, or live
workspace Changes actions. Changes remains workspace-only.
License
Proprietary. See wigwam.build/terms.
| |