Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>Retro LedgerNew to Visual Studio Code? Get it now.
Retro Ledger

Retro Ledger

thisnamespace

| (0) | Free
See which rules your coding agent's retros added, whether they helped, and what was shared with the model. It only reads the files the retro-ledger skill writes.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Retro Ledger for VS Code

See which rules your coding agent's retros added, whether they helped, and what was shared with the model.

This is a viewer for the retro-ledger skill. The skill does the work: it runs retros, records each change in .retro/ledger.json with a signal it can count, and later scores whether the change helped. This extension shows you that ledger. It only reads, and it changes nothing.

What you see

An activity bar panel with two views.

Rules lists every change the skill has recorded, grouped by what needs doing:

Group Meaning
Due for review Past its review date and waiting for you to keep or remove it
Being measured Recorded, not yet due
Kept You kept it
Removed You took it out
Declined Proposals you turned down, which the skill will not suggest again

Each rule shows its last recorded verdict: helped, no effect, inconclusive, too early to tell, untestable, or needs your judgement. Hover over a rule to see the friction, the change, how it is measured, the counts before and after, and your reason if you gave one. Click a rule to open its file at the rule's line. If the rule's text is no longer there, it says so.

History shows the skill's audit log, newest first: each setup, evidence run, recorded change, score and decision, with which tool and model ran it as the agent reported. The first line keeps a running total of how much session text has been sent to the model and roughly how many tokens that came to.

The status bar shows how many rules are due for review, and is hidden when none are.

Running a retro

Run a Retro in Chat opens VS Code's chat with /retro-ledger typed in. It does not send it: nothing reaches a model until you press Enter.

If you use another agent, such as Claude Code, use Copy Retro Prompt and paste it into that agent's chat. The chat command VS Code offers for this is not part of its documented API, so if it is missing, the extension copies the prompt instead.

Privacy

What the extension does, in full:

Reads .retro/ledger.json and .retro/audit.jsonl in each workspace folder. When you open a rule, the file the ledger names, and only if it is inside that folder
Writes Nothing
Runs Nothing: no programs, tasks or terminals
Network None
Model None. Viewing the ledger uses no tokens

Each row is enforced by a test in test/privacy.test.js. The tests read the source for network calls, process launches, file writes and modules other than VS Code's own, and check that text from the ledger is shown as plain text, never as markdown or links.

Because it executes nothing, it runs in Restricted Mode, the state VS Code puts a folder in before you trust it, and in virtual workspaces.

The ledger and audit log are written by the skill, so the skill's own privacy section covers what they contain: counts, dates and descriptions in the agent's words, never the text of your sessions.

The source is two files, about 650 lines, with no dependencies. The published extension contains those two files, two icons and these documents, and a test checks that.

Limits

  • The verdict shown is the one from the skill's most recent check. Working out a fresh one would mean running the skill's scripts, and this extension runs nothing. Ask your agent for a retro to update them.
  • A rule is found by its text: the skill stores one line of each rule. If you edit that line, the extension can no longer find the rule and says so.
  • If a ledger was edited by hand, the extension shows it as it is, and ignores fields it does not recognise.

Settings

Setting Default
retroLedger.statusBar true Show the count of rules due for review
retroLedger.historyLimit 200 How many audit log entries the History view shows

Install

Not on the Marketplace yet. To try it, download the .vsix from a release or a CI run, then in VS Code run Extensions: Install from VSIX... from the Command Palette.

You also need the retro-ledger skill, which writes the ledger.

Development

npm test               # logic, privacy, manifest and package tests
npm run typecheck      # checks the JavaScript against VS Code's types
npm run test:vscode    # runs the extension inside a real VS Code; downloads VS Code first
npm run package        # builds the .vsix

The tests use a ledger and audit log written by the real skill scripts. To rebuild them after the skill changes, with a checkout of retro-ledger beside this one:

npm run fixtures -- ../retro-ledger

Releasing

Bump version in package.json, add a CHANGELOG.md entry and merge. Then publish a GitHub release whose tag is that version with a v in front, such as v0.1.0.

The Publish workflow checks the tag matches, runs the tests, builds the .vsix and sends it to each registry switched on with a repository variable:

Variable Registry Credentials
PUBLISH_OPEN_VSX set to true open-vsx.org An OVSX_PAT secret for the first version. After that, a trusted publisher can replace it
PUBLISH_VS_MARKETPLACE set to true Visual Studio Marketplace A Trusted Publishing policy for this repository and publish.yml. No secret

Only the publish jobs can ask GitHub for an ID token, and they run no project code.

Licence

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft