Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>LTMS ReaderNew to Visual Studio Code? Get it now.
LTMS Reader

LTMS Reader

Preview

Long-term memory structure

| (0) | Free
A map of your Claude Code sessions in VS Code, with exact search, search by meaning and the records behind each turn. Reads your Claude Code transcripts on your own machine and keeps copies there; the optional map downloads a 586 MB model from huggingface.co once; nothing else leaves your machine.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

LTMS Reader

Your Claude Code sessions in VS Code, as a map of what each turn says, with exact search, search by meaning, and the records behind each turn. This is a Preview, the first version: what it keeps, and how, may change in a later one. A package for Linux on x64, for VS Code 1.140.0 or later: tested on VS Code 1.140.0 and 1.148.0, a remote window over SSH included.

Your data

The privacy policy is PRIVACY.md, in the package.

  • Nothing is copied or read before your yes. Until a project of Claude Code's is set up, LTMS Reader reads the names of Claude Code's project folders and the names and sizes of their files, and opens none of them.
  • What is copied, and where. At your yes, the transcripts of the projects you set up are copied, byte for byte, into the storage VS Code gives the extension (its global storage folder), on the machine where the workspace runs: each session's transcript, its agents' transcripts, their small metadata files and the journals of agent workflows. The large tool outputs Claude Code keeps beside a transcript are not copied. Anything written in a session, anything pasted into it included, is in its copy. Made from the copies and kept with them: the text of each turn and an index for exact search; with the map, the vectors for search by meaning and the map itself; and the names you give the map's regions. The copies, and what the build makes from them, can be read by your user account alone.
  • Which projects. By default, the projects whose sessions Claude Code started in the window's folders (a subfolder included); the setting ltmsReader.mapScope set to all takes every project of Claude Code's projects folder. Each project is copied only after its own yes, and a project added later is asked about by name.
  • For how long. Until you erase them, or uninstall the extension. What Claude Code writes later into a session in scope is copied while a window of that map is open, 10 seconds after the last write (the window watches the map's projects that have their yes, whichever window gave it, and looks at every transcript's size and time every 5 minutes). Claude Code deleting its own transcripts (after 30 days by default) does not delete the copies, which may then be the only ones left.
  • The one connection. Build the map downloads the map's model, three files of 586 MB in all, from huggingface.co and the Hugging Face storage host its answer redirects to (a host under huggingface.co or hf.co), once, in the window that asked, and checks every file against the sha256 the extension carries; a download that did not finish goes on from what came (Resume). That is the only connection LTMS Reader makes: Records and search only downloads nothing, and with the model already in place nothing is downloaded. The request, as any download, shows Hugging Face your IP address.
  • No telemetry. Nothing about you or your use is sent anywhere: no telemetry, no analytics, no account. ONNX Runtime, the runtime of the model, has telemetry of its own: every process that loads it is started with it switched off. A release is built by the repository's release script only (vsce run in the repository refuses to package or publish the folder itself), and the script builds no package unless the package's egress test passes in the same run (see Building and testing).
  • Every VS Code profile shares one copy. VS Code gives an extension one global storage folder for every profile, so the copies, the model and the map are one set for every profile of a VS Code, and an erase in one profile is an erase there for all of them.
  • Erase. Erase One Session… deletes one session, with its agents, from every place LTMS Reader keeps it, and leaves its id in a tombstone, so that it is never copied again; the quotes of it that other sessions hold stay until those sessions are erased too; Claude Code's own transcripts are never touched. Erase Everything… deletes everything but the record of the data format, the erased sessions' ids and, unless you ask, the model, and clears what LTMS Reader keeps in the editor's own state, in the profile it runs in and in each profile that has a window open then. See Erase, below.
  • Uninstalling. VS Code deletes the extension's storage, the copies with it, the next time it starts after the uninstall. Two ways of removing it skip that clean-up: VS Code removing the extension at once itself, as it does one the Marketplace marks as malicious, and its folder deleted outside VS Code. To be certain, use Erase Everything… first.

What the Marketplace's agreement asks to be said, in one place:

Accessed Claude Code's session transcripts, their agents' transcripts, metadata and workflow journals, for the projects in scope (by default the open workspace's); before your yes, only the names of folders and files, and the files' sizes
When at your yes, and then as a session in scope grows, while a window of that map is open (the window watches the map's projects that have their yes, and looks at every transcript's size and time every 5 minutes); and Claude Code's own transcripts, read again each time a turn or its records are shown (see What it reads)
Kinds of data everything written in those sessions: your prompts, the model's replies, tool calls and their outputs (except the large outputs Claude Code keeps beside a transcript), anything pasted into them
Used for showing your sessions to you: the map, exact search, search by meaning, the records
Stored in VS Code's storage for this extension, on the machine where the workspace runs, readable by your user account alone
Kept until you erase it (one session, or everything) or uninstall the extension; Claude Code's own deletion of its transcripts does not reach the copies
Shared with no one
Sent nowhere, except the one download you choose: the model, from huggingface.co and its storage (Hugging Face sees your IP address, as for any download)
Anonymised not applicable: nothing leaves your machine

What it shows

LTMS Reader: Open the Map opens the map panel:

  • the turns as points, grouped in regions and constellations, in 2-D or 3-D;
  • its tabs: Search (words, dates, a session or a cluster; by meaning once a model is in place), Tree, Conversation, Gates, Records (the transcript lines behind a turn), Labels (names you give the regions and constellations), Route (a path between two turns) and About (the snapshot open, and its checks);
  • a turn's whole session in a panel of its own, beside the map.

The status bar's edition item says the first letters of the edition the map was fitted in, the turns on the map, and how many turns the store holds that the map does not ("13 newer turns", one "newer turn" in the singular, nothing when there is none, a question mark when the store cannot be read): session and agent turns alike, counted as the map counts its turns, so a turn of the map that grew since is not a newer one, and the store's other objects, which hold no turn, are not counted. Its hover says what each part counts, and the head of the About tab shows the same line.

The other commands: Open a Turn by Address…, Choose the Snapshot…, Verify the Snapshot, Set Up the Map…, Refresh the Map Now, Refit the Map, Cancel the Map's Build, Erase One Session…, Erase Everything….

Setting up the map

A window whose Claude Code projects have not been set up shows one notification, never a dialog: "LTMS Reader can build a map of this workspace's Claude Code sessions.", with Set up… and Not now, and the status bar's item "LTMS Reader: Set up". Not now is remembered for those projects in the editor's own state, and the notification is not shown for them again; a project added later (to projects set up, or after a Not now) is named in a notification of its own, and so are the projects the ltmsReader.mapScope setting adds when it is turned to all.

LTMS Reader: Set Up the Map… (or Set up…, or the status bar's item) asks in one dialog: what it copies and keeps, and for how long; the model's download, its size and its host, the one connection it makes; the disk and the time a build will take (a range, computed from the transcripts' sizes and this machine's cores by measurements on two corpora and two machines); Erase; what it does not copy; the profile; uninstalling. Its answers: Build the map (the model is downloaded, then the map is built), Records and search only (no download), Not now. One window asks at a time; another one says so in its status bar and goes on from the answer, and once the yes is given there its status bar says the projects were set up in another window. Before your yes nothing of a project is copied or read: only the names of the projects' folders and the sizes of their files.

The model's download runs in the window, with its progress in a notification and in the status bar, and Cancel; what came is kept, and the next start offers Resume. A build you start (Set Up…'s yes, Refresh the Map Now, Refit the Map) shows its progress with Cancel (also Cancel the Map's Build), which stops it after its current commit; the next start offers Resume for a build that was stopped. While the map is built, the line's text-only snapshot opens: Records, Conversation and exact search. The status bar's build item says the step a build is at, and while it embeds, the share done and the time left (from the build's plan: the tokens it will embed, said before the first vector).

What it reads

  • A snapshot, the map's frozen data (a manifest and its databases), from the extension's global storage folder: one of the window's line, in lines/<line>/snapshots/<name>/ (a line is the map of one scope: the projects whose sessions were started in the window's folders; a window is offered its own line's snapshots only, and with no folder open its chooser lists every line's), or snapshot/manifest.json there, or one in snapshots/<stamp>/, or the manifest the ltmsReader.manifest setting names. Every part is checked against the manifest before anything is shown. A snapshot of version 5, the kind this package makes, names nothing it reads by an absolute path: its parts are in its own folder, its store is its line's (lines/<line>/store) and its model a folder of the global storage folder, and one whose manifest names an absolute path, or a path out of its folder, does not open.
  • The text of each turn, from the store of the snapshot's line (for an older snapshot, the store it names).
  • A text-only snapshot, a line's before it has a map (Records and search only; the model not in place; fewer than 20 session turns), holds the store's reference, the turns and the exact index; the map's panel opens it in a no-map mode: the turns listed by session, exact search, the Turn, Records, Conversation and Tree views, and no canvas, no search by meaning, no gates or labels.
  • The transcripts: Claude Code's projects folder ($CLAUDE_CONFIG_DIR/projects, or ~/.claude/projects), or the folder the ltmsReader.rawRoot setting names; the map's build reads its line's projects from that same folder. They are read for the Records, Conversation and Tree tabs, the session panel and a record opened as a document; for which of a turn's lines the harness or another model wrote (a turn shown, opened as a document or extracted); and for the folder a relative path in a record is opened from. Only a transcript whose first bytes hash to the turn's seal is used.
  • For a search by meaning, a model in the global storage folder, under the folder the snapshot names (models/bge-m3-int8-4de13258/ for a snapshot this package makes; models/<the snapshot's model>/ for an older one). Without it that search says so, and the rest works.
  • The alias module, which shows each Divine Name in Hebrew text by a substitute word, run only with the ltmsReader.aliasView setting on (it is off by default). For a snapshot of version 5 it is the package's own, run from bytes that hash to the sha256 the package pins, and not read with the setting off. For an older snapshot it is the alias module the snapshot names: it is read and checked against the snapshot's pin at every open, and a snapshot whose alias module cannot be read, or is not the one it pins, does not open, with the setting off too.

What it runs

Its own code, all of it inside the package (with the alias view on, its own alias module), and code that comes with a snapshot and its store, not with the package; each is run only from bytes that hash to the sha256 it is pinned by:

  • the parser the store pinned for the records it sealed (<store>/gen/<generation>/ccjsonl.ts, pinned by that generation's MANIFEST), with which the records helper reads the transcripts. That folder also holds a package.json that names its files ES modules, so that a package.json above the global storage folder (a home folder's, say: npm 12's npm init writes "type": "commonjs") does not decide how the generator loads;
  • for a snapshot made before version 5, with the alias view on, the alias module the snapshot names (pinned by the snapshot's manifest).

Its two helper processes, the records helper and the query embedder, are started with VS Code's own binary run as node, or with the program the ltmsReader.helperRuntime setting names; so is the build's supervisor (pipeline/refresh.mjs), which starts each step of a line's build as a process of its own with that same program, and the projects folder and the line as arguments. Each of these processes is given the same environment, of the package's own making: PATH, HOME and LANG; the editor's TMPDIR, when it has one, so that your choice of it reaches them; ONNX Runtime's telemetry switch set; a cache folder in the global storage folder; and ELECTRON_RUN_AS_NODE, which runs VS Code's binary as node. Nothing else of the editor's environment reaches them. For a snapshot made before version 5 it also runs git, found on your PATH, with that same environment, to read the store's current commit (for the About tab, the status bar's edition line, and whether the store's indexes are current for the Gates tab); a snapshot of version 5 has a store without git.

While a project of the window's line has its yes, the window watches what Claude Code writes into it (the project's folder, and the subagents folders of the sessions written in the last day: at most 1,000 folders for one line) and looks at every transcript's size and time every 5 minutes; the watching opens no transcript. A change is read into the line's store 10 seconds after its last write; with the model in place, the new turns are embedded when no run is under way; a new snapshot is made when the store holds what no snapshot of the line covers, at most once in 30 minutes, or at once with Refresh the Map Now (after the run under way, if one is). It is announced as soon as it is made, and the map switches to it only when you say so. Past 1,000 folders, or when the system refuses another watch, the window looks every 5 minutes only, and the status bar's build item says so.

The settings that name what it reads or runs (ltmsReader.manifest, ltmsReader.rawRoot, ltmsReader.helperRuntime) and the alias view's switch are taken from your user settings only (in a remote window, from that machine's remote settings): a workspace's settings cannot set them.

What it writes

Only in its global storage folder: the names you give in the Labels tab (labels.jsonl, one line for each act) and a cache of the terms it suggests for them (labels/), each its owner's alone, in the folder of the snapshot's line (lines/<line>/), since they name that line's clusters (for a snapshot made before lines, in the global storage folder itself); with a model in place, the process that runs it is given a cache folder there too. While a window shows a snapshot of a line, it keeps a lease on it, lines/<line>/onscreen/<window>.json, renewed every minute and removed when the window closes; a line keeps its newest snapshot and every one a window's lease names (a lease five minutes without renewal is the lease of a window that is gone), and at a switch, and every minute, a window deletes the line's other snapshots. When you ask it to (Extract), it writes a Markdown file where you choose. It writes nothing into the transcripts. No telemetry.

For a line whose projects have their yes, its build writes there too, each file its owner's alone: the copies of the transcripts (raw/), the line's store, layer, editions, overlays and snapshots (lines/<line>/), the build's log (lines/<line>/refresh/log.jsonl), and the data format (STATE.json). While a window asks about a project, it keeps the marker .consent-asking there, so that one window asks at a time; each yes is kept in CONSENT.json (per project, with the sha256 of the words it was given to), and the answer in the line's LINE.json (no build of a line answered Records and search only makes vectors or a map, even with the model already on the machine, until Set Up… is answered Build the map). At Build the map, the model's three files are downloaded into models/bge-m3-int8-4de13258/, each checked against its pin. A Not now (with the projects' folders), that the map was asked for, the snapshot chosen for each line and the map panel's width are kept in the editor's own state for this extension (each profile's own), not in a file of its own; Erase Everything… clears them in the profile it runs in (see Erase). VS Code gives an extension one global storage folder for every profile, so every profile of this VS Code shares what LTMS Reader keeps there.

Erase

Erase One Session… deletes one session, with its agents, from every place LTMS Reader keeps it: its copies, its objects in every line's store, its rows of the layer and every vector no other turn uses, the exact indexes and units files (made again without it), every snapshot that holds it, the suggested names, and the run log's records that name it. The map keeps its layout while 20 of its fitted turns remain: its edition loses the session's turns, and the names given to its clusters stay (but the name of a cluster made of the session's turns alone). A tombstone keeps the session's id (never its text), so it is never copied again while Claude Code still holds it. Erase removes the session's own records only: another session that quoted it (a tool's output that showed its transcript, say) keeps its quotes until that session is erased too, and the sessions whose records name it are listed when the erase ends, in a message that carries Show the Log. A copy of another session that cannot be read does not stop the erase: it is kept as it is, and named, since whether it quotes the session is not known. An erase that stops partway (a full disk, an error) says so, and Erase One Session… again finishes it: a line's store, the last thing erased in it, still holds the session until everything made from it is gone, and until the erase has finished, its tombstone says so: Erase One Session… lists the session first, and the next start offers to erase it again. A file made from a store that the erase cannot read, whole or in part, does not stop it: the file is deleted (a store of vectors with the stores of chunks that point at it), and the next build makes it again. A store that cannot be read stops the erase, which says so; Erase Everything… is then the way out. A folder of the copies that cannot be listed stops it too, since it may hold the session's own copies: Erase One Session… again finishes it once the folder can be read. Erase Everything… deletes everything but the data format, the erased sessions' ids and, unless you ask, the model; and it clears what LTMS Reader keeps in the editor's own state (the projects answered Not now, with their folders' paths, that the map was asked for, the snapshot chosen for each line, the map panel's width). VS Code keeps that state per profile, and an extension cannot reach another profile's: it is cleared in the profile Erase Everything… runs in and in each profile that has a window open then; another profile's entries stay there. Each asks first, in a dialog. Claude Code's own transcripts are not touched. Every profile of this VS Code shares what LTMS Reader keeps in its global storage folder, so an erase in one profile is an erase there for all of them. A deleted file's bytes may stay on the disk until they are written over (on an SSD, the drive decides when).

Remote windows

It is a workspace extension. In a remote window it runs where the workspace runs, reads that machine's files, and keeps its copies there. It was tried in a remote window over SSH, with the VS Code Server of 1.140.0 and of 1.148.0.

When it starts, in any window, it tries what its runtime must have (in a remote window, the VS Code Server's Node): node:sqlite with FTS5, the import of TypeScript files, and stripTypeScriptTypes in node:module. Its output says what it found. When one is missing it says so once, in a warning, and turns off what needs it: without node:sqlite or FTS5 no snapshot can be built or opened in that window; without the import of TypeScript files no map can be built there; without stripTypeScriptTypes the records cannot read a transcript there.

Contact

The publisher's contact address: contact@ltms.sh

Licence

The licence is LICENSE.txt, in the package.

Not in it yet

  • Packages for other platforms: this one is for Linux on x64.

Versions

The way LTMS Reader cuts a transcript into turns (its generator: three files whose bytes the package pins) is frozen with each release. A later version that changes it is a new data format: it reads every stored transcript again from its copies, and its CHANGELOG says so.

Building and testing

  • npm ci, then npm test: the tests, in plain Node, with no VS Code.
  • Besides the snapshots they build, the tests open the demo snapshot in test/fixtures/demo-snapshot (a small corpus made for testing): test/demo-fixture.mjs copies it into a folder that stands for the global storage folder, and points its manifest at its alias module and at a folder for its store (the manifest's own paths are placeholders, /demo-corpus/...).
  • The tests that need the int8 model (test/*-model.test.mjs) run when LTMS_TEST_MODEL names a folder that holds its three files (onnx/model_int8.onnx, tokenizer.json, config.json), and say they are skipped otherwise. The tests that build a package (test/package-bytes.test.mjs, the whole release test/release-model.test.mjs, and vsce run in the repository in test/package-made-by-release.test.mjs) also need LTMS_TEST_VSCE: vsce's command, or a folder where @vscode/vsce is installed. The test of the model's pins against its files needs MODEL_SRC, a folder that holds them. LTMS_TEST_ERASE_STOPS=all widens the erase's two sweeps of stop points to every point of the erase (by default each stops it at fewer). One of the model's tests is the egress test, test/egress-model.test.mjs (Linux, with unshare, strace, mount, ip and openssl): each process of a build and of the helpers runs inside a seal that no traffic can leave, traced, and must be silent; the model's download runs against stand-ins of its source, and must reach only that host and the host its redirect names.
  • The package: node scripts/install-runtime.mjs (the runtime packages, from npm's cache), then THREE_SRC=<a three.js r186 checkout> node tools/viewer/structure/vendor-three.mjs (three.js for the 3-D view), then npm run vsix -- <vsce>; it is built with no network, from a copy of the package's files in which its own JavaScript and stylesheets have their comments taken out, line for line (a comment that holds a licence, a copyright or an SPDX line stays, and the files whose bytes the package pins are copied as they are: node scripts/strip-comments.mjs --list says what is kept). Built again from the same files, it is the same bytes, whatever modes the checkout gave them. A package one of the build's checks refuses is deleted.
  • A release: npm run release -- --vsce <vsce> --model <the int8 model's folder> (scripts/release.mjs) runs the egress test, and builds the package only when every one of its tests passes in that run (a test skipped is no pass) and the package's files are the same after it; it puts the package, its record and the egress test's report in build/release/. In a git work tree of its own it is made from the commit: a work tree with changes not committed is refused, before the egress test runs, and the record names the commit; a folder that is no git work tree of its own is released with no commit in its record. A package to publish is one this command made. vsce run in the repository (vsce package, or vsce publish without --packagePath) refuses, since package.json's vscode:prepublish lets only the package's build pass (which npm run vsix and the release run); npm run vsix alone runs no egress test, so publish the release's package: vsce publish --packagePath build/release/ltms-reader-linux-x64-<version>.vsix.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft