enola for VS Code
Shows what enola did in each Claude Code, OpenCode, Codex and pi session, and what it found in your codebase.
The enola view in the activity bar has two parts:
- Codebase: findings and rule status for the open folder.
- Sessions: a group per coding agent, its sessions, and under each session every enola step in order.
Sessions
Steps shown:
- MCP tool calls, with input and full output
enola ... runs through the shell
- OpenCode 2: enola calls made from a script through its code-execution tool, one step per call
- hook runs, with what the hook told the agent (Claude Code and pi)
Click a step to open its input and output as a Markdown preview; Open Source shows the raw text.
Rows show status and duration, and hovering shows the full command and paths. Subagent steps are
grouped under the subagent.
Each session shows its repository or folder beside the title. Hover for the full path, or choose
Open Repository Folder to open it in a new window. The git root is found from the session's
recorded directory, including subfolders and worktrees. This is where the session started; a command
can target another repository, which stays visible in its input. A folder that no longer exists still
shows its recorded name and path.
The list shows sessions for the open workspace: started in the workspace folder, below it, or above
it. The globe button switches to all projects. The toolbar also has search (every word must match the
title, repository, folder or id), a filter by agent, and a failed-steps-only filter.
Running sessions
Running sessions are green, with a spinner while the agent works. The session you are in also gets a
green label and dot.
- Claude Code: the session in the tab you focused last, matched by tab title. Two running sessions
with the same title are both left unmarked.
- OpenCode: sessions open as tabs in a running terminal UI; the one viewed last, as OpenCode records it.
- Codex: sessions a running Codex has open for writing. Codex does not record which one you are
viewing, so none gets the label.
- pi: the newest session of each directory a pi process runs in. This is inferred, and none gets the label.
Tokens
Each session has a Tokens row, also in its tooltip. Click it for the full report:
- what the model was charged, as the agent recorded it
- an estimate of tokens through enola's calls and through every other tool, with the average per call,
and the same for file reads and searches alone
The split by tool is an estimate (about four characters per token), because no agent records tokens
per call. It shows what enola's answers cost, not what they saved.
Changes
Click Changes under a session for a report of enola results, the agent's public explanations and
recorded successful edits, in time order. Expand Changes and click an edit to open its recorded
before/after diff. These work when the repository is no longer on disk.
Sources: Claude Code Edit/MultiEdit results, Codex file-change records and apply_patch calls, pi edit
results, and OpenCode edit/apply_patch results. Claude Code and OpenCode subagents are included.
Only public assistant messages are used as explanations; reasoning is excluded.
Many agents record only changed fragments. These diffs are labelled excerpts. Writes without
previous contents open as after only documents. Deletions without patches, shell edits and missing
history cannot be rebuilt into a reliable diff. The report does not claim enola caused an edit, and an
explanation can be incomplete or wrong.
Open Current Git Diff (Unattributed) on a session or its Changes row shows the repository as it
is now: staged and unstaged tracked files against HEAD, read-only, untracked files excluded. It can
include other sessions and manual edits.
Codebase view
Shows what enola found in the open folder, read from the snapshot in .enola: hotspots, god classes,
cycles, complex functions, dead code candidates and more. Groups are ordered by importance and findings
by confidence. Click a finding to open its file at the line; hover for an explanation. Findings with
confidence of 90% or more are highlighted.
The Snapshot row shows the snapshot's age and warns when HEAD has moved past the commit it was taken
at. Click a stale one to regenerate it (enola --generate); click a current one for enola's
architecture summary.
The view uses the first folder of the workspace. Reading the snapshot needs no enola binary.
Rules
Rules are declared in enola-intent.yaml (see enola help constraints; check with
enola constraints lint).
- Rules checked: a row on each session. It shows whether the agent's recorded edits were checked:
enola check never ran, ran before the last edit, failed, or passed after it. A check without
--fail-on or --max-spillover is marked as enforcing nothing. Reads the session history only.
- Change passes / fails the rules: whether the working tree passes your declared rules, graded
against the baseline from
enola baseline pin. Each breach is listed with file and line. Without a
baseline the row reads Change not graded and offers to pin one, after asking.
- Declared rules: the rules and their reasons. Click one to open it in its file.
The check runs when the folder opens, on refresh, and when an agent session in the repository stops
working; that verdict also appears on the session's Rules checked row. Checks only read. They never
edit files, block saves or commits, or stop the agent. To enforce, use enola's hooks
(enola install --hooks) or CI.
Commands: enola: Check Changes Against Rules (verdict in the status bar) and
enola: Open Codebase Insights (verdict, rule ledger, largest flows).
enola binary
Sessions, tokens, changes and the snapshot need no binary. Checks, pinning, regenerating the snapshot
and upgrading run enola 0.4.34 or newer, found in enola.binaryPath, then PATH, ~/.local/bin,
~/go/bin, /usr/local/bin and /opt/homebrew/bin.
A missing enola is offered once for install; the command is typed into a terminal for you to run. An
older one is offered enola upgrade, after you confirm.
Data
Read-only: Claude Code transcripts in ~/.claude/projects, OpenCode's database in
~/.local/share/opencode, Codex sessions in ~/.codex/sessions, pi sessions in
~/.pi/agent/sessions, and <folder>/.enola. A group appears only for an agent with history on the
machine. OpenCode needs VS Code 1.101 or later (built-in SQLite).
Nothing is written outside VS Code's extension state, except by actions you start: regenerating the
snapshot and pinning a baseline write to .enola, and upgrading replaces the enola binary.
Settings
enola.claudeProjectsDir: Claude Code transcripts. Empty: $CLAUDE_CONFIG_DIR/projects, or ~/.claude/projects.
enola.opencodeDataDir: OpenCode database. Empty: $XDG_DATA_HOME/opencode, or ~/.local/share/opencode.
enola.codexDir: Codex home. Empty: $CODEX_HOME, or ~/.codex.
enola.piDir: pi agent directory. Empty: $PI_CODING_AGENT_DIR, or ~/.pi/agent.
enola.sessionAgeDays: list sessions active within this many days (default 30, 0 for all).
enola.binaryPath: the enola binary. Empty: search as described above.
enola.failOn: comma-separated checks whose new findings fail a check (default constraints,
your declared rules). Empty reports everything and fails nothing.
enola.checkWhenSessionFinishes: check a repository when an agent session in it stops working (default on).
Development
npm install
npm test # agent readers against fixtures
npm run test:vscode # the extension in a throwaway VS Code profile (macOS path by default)
scripts/build-vsix.sh # tests, then builds the .vsix (also: npm run package)
Press F5 to run the extension in a development host.