Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>Paper TrailNew to Visual Studio Code? Get it now.
Paper Trail

Paper Trail

Preview

Manc Software

|
10 installs
| (0) | Free
Watch, read, search, measure and clean up your local Claude Code, Codex, Gemini CLI and Copilot Chat sessions
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Paper Trail: explore, search and clean up local AI session data

VS Marketplace version Open VSX version VS Code 1.100 or later Works offline, no telemetry

Paper Trail

Watch, read, search, measure and clean up what your AI coding tools keep on your machine. Claude Code, OpenAI Codex, Gemini CLI and GitHub Copilot Chat each save every session to a folder you never see, with no way to look back at it. Paper Trail brings them all into VS Code, side by side, and nothing leaves your machine.

  • Live: every running Claude Code and Codex session and its agents, what each is doing now, its tokens, cost and context fill
  • Reader and replay: any session read back as a conversation, tool calls and subagents included, or replayed on a timeline
  • Search: every prompt, reply and tool call, across every tool
  • Insights and history: sessions, active hours, tokens and estimated cost over time, by project, agent and tool, and every prompt you have typed on one timeline
  • Space: what each project and session takes on disk
  • Clean up: a preview of exactly what goes, a health check, scheduled clean-up and trimming inside a kept session, for Claude Code's data

Codex, Gemini CLI and Copilot Chat are read-only: Paper Trail never changes or deletes their files.

Paper Trail is under active development, so features may still change between releases.

Selecting the size in the status bar opens the Overview; a click on the largest project in the treemap shows it in the Projects view, then the Insights and History tabs

Features

See what is running

Know what every session is doing without switching terminals. The Live tab shows every running Claude Code and Codex session on this machine, this workspace's first, and each agent under it on a lane of its own: what it is doing now, how long it has run, its tokens, estimated cost and context fill, and the files it has read, created or edited. The Running now view above Projects keeps a row for each, and Go to session jumps to a Claude Code session's terminal or the Claude panel.

Paper Trail can also notify you when a session is waiting for you, finishes its turn, has an agent fail, has its context nearly full, or has an agent that looks stuck or has run too long. Each is off until switched on in the settings.

The Live tab following a running session: its lanes fill as it works, and a hover on an agent's lane shows what it is doing

Read any session like a conversation

Go back to any session, from any of the four tools, and read it like a chat: your prompts, the replies as Markdown, thinking folded away, each tool call as a compact row you can open to see its input and result, images inline, and subagents nested under the call that started them. The header has the folder, branch, models, dates, token counts and an estimated cost. Jump between your prompts with Alt+Up and Alt+Down, and find in the session with Ctrl+F. Sessions of hundreds of megabytes open quickly, and a running session follows along as it grows.

Replay shows how a session unfolded: a timeline above the conversation with a lane for the session and one for each agent, idle gaps drawn short. Drag or step the scrubber to move the conversation to that moment, zoom in around it, or play it back at 10, 60 or 300 times real time.

A session opened from the Projects view: a tool call and a subagent expanded, a jump to the next prompt twice, then find in the session stepping through matches

Replay opened on a session: playback runs along the lanes, a drag on the scrubber moves the conversation with it, then a zoom in

Search everything you ever said

Find the session where you solved it last time. Search every tool's sessions from the sidebar: your prompts, the replies, or everything including tool calls and their results, with match case and regular expressions. Results stream in grouped by session; pick one to open the session at that point. Stop a search with Escape.

A search for backoff streams in matches grouped by session; a click on one opens the session at that reply

Insights and history

See how you actually use your AI tools. Insights shows sessions, active hours, tokens and estimated cost by day or week over a range you pick, each against the period just before it, then by project, by agent type and by tool with durations and failure rates, the most-edited files, and the model mix. History is every prompt you have typed, in any of the tools, on one timeline grouped by day with a strip to jump by, searchable and filtered by project and tool, each opening its session at that prompt.

The Insights tab: the range set to 90 days, then the chart switched to tokens, to weeks and to estimated cost, with projects below

The History tab: prompts on a timeline grouped by day, each with its project

See where the space goes

Transcripts grow quietly into gigabytes. The Overview shows the total, a treemap and a sortable list of projects by size, the biggest and oldest sessions, and everything else in Claude Code's folder (plugins, file history, shell snapshots and the rest) with their sizes. It also shows Claude Code's own cleanupPeriodDays and what it does.

The Overview tab: the total, a treemap of projects coloured from blue for the smallest to orange for the largest, and the list beneath it

Clean up with a preview

Get the space back without guessing what you'll lose. Delete a session or a whole project from the Projects view, or clear out in bulk from the Clean up tab: sessions older than some days, larger than some size, or with no reply; projects whose folder no longer exists; and folders left behind by deleted sessions. The preview is grouped by project and lists every file and folder that would go and the space each rule returns, and you can keep any of them. Everything goes to the trash by default. Running sessions are never deleted, and sessions changed in the last few minutes are asked about again. Clean up's rules never take a project's memory; a project they empty moves to Leftovers.

The health check lists what bloats the data, with one fix for each: the biggest projects and sessions, oversized memory files, orphans and leftovers, sessions past cleanupPeriodDays, sessions that are mostly saved output, and the temp folders Claude Code sweeps by age itself. A schedule, off until you save one after a preview, runs the saved rules when due while VS Code is open, always to the trash, never on running or recent sessions or on memory, and logs its last 20 runs.

Trim session, on a session you keep, removes saved tool results, finished agents' transcripts, file history, API request records, copies of tool results, inline images and oversized results. The pick starts empty, a confirmation says what is lost, and the session then shows what was trimmed. These are the trims claude --resume was shown to survive.

Clean up and trimming cover Claude Code's data only; the other tools' sessions are never changed.

The Clean up tab: two rules ticked fill the preview, one session is kept, and the rest move to the trash after a confirm

Projects at a glance

The Projects view lists each project by its real folder, with its size and session count, and each session by its title, date, size and message count. Sort by date, size or name, and filter by title, folder or session id. Running and recently active sessions are marked, and so are projects whose folder is gone. Sessions expand to their subagents, nested as they were spawned, and projects with no sessions sit in a collapsed Leftovers group with a delete on each. From a session you can export it as Markdown, reveal its transcript and copy its id; resume a Claude Code, Codex or Gemini CLI session in a terminal with that tool's own command; and trim or delete a Claude Code session.

The Projects view with one project open: a running session, a recently active project and two whose folder is gone

Four tools in one place

Paper Trail reads each tool's folder when it exists, with nothing to set up. With sessions from more than one tool, the Projects view groups them by tool, and every list, the reader, Search and the Live tab show which tool a session came from.

Codex's sessions in ~/.codex (or CODEX_HOME), from the CLI and the desktop app, compressed and archived ones included, open, search, export, follow live and resume with codex resume.

Gemini CLI's chats in ~/.gemini (or GEMINI_CLI_HOME's .gemini) are read the same way, each under the folder it ran in, with its subagents nested under it. They open, search, export and resume with gemini --resume. Gemini CLI support was checked against files written by Gemini CLI 0.68.0's own code and has not yet been confirmed on a signed-in session.

GitHub Copilot Chat's chats, the chat built into VS Code, are read from the VS Code that Paper Trail runs in (or the User folder paperTrail.copilotDir names), each under the folder or workspace it was in, empty windows' chats together. They open, search and export; Paper Trail never trims or changes them, as VS Code keeps its own index of them. Tokens show where Copilot saved them, with no cost, as Copilot is billed by plan. A very large chat opens at its last requests; Search still covers all of it.

Requirements

  • VS Code 1.100 or later
  • Claude Code, Codex, Gemini CLI or Copilot Chat, which write the sessions. Paper Trail only reads their folders, and deletes or trims Claude Code's only when you confirm

Install

Install from the Visual Studio Marketplace, or from Open VSX in VSCodium and other editors that use it. In the editor, search the Extensions view for Paper Trail, or run code --install-extension MancSoftware.paper-trail.

Quick start

  1. Open Paper Trail in the activity bar. The Projects view fills in as it reads your sessions.
  2. Start a session in Claude Code or Codex and run Paper Trail: Open Live to watch it work.
  3. Open a session from the Projects view to read it, and select Replay to see it unfold.
  4. Try a search from the Search view, or the Insights tab to see how you use your tools.
  5. Select the size in the status bar, or run Paper Trail: Open Overview, to see what takes the space, then the Clean up tab to see what you could clear out.

Settings

Setting Default Description
paperTrail.configDir "" Claude Code's config folder; empty uses CLAUDE_CONFIG_DIR, then ~/.claude
paperTrail.codexDir "" Codex's home folder; empty uses CODEX_HOME, then ~/.codex
paperTrail.codex.enabled auto read Codex's sessions, read-only; auto, on or off
paperTrail.geminiDir "" Gemini CLI's .gemini folder; empty uses GEMINI_CLI_HOME/.gemini, then ~/.gemini
paperTrail.gemini.enabled auto read Gemini CLI's chats, read-only; auto, on or off
paperTrail.copilotDir "" the VS Code User folder whose Copilot Chat chats are read; empty uses this VS Code's
paperTrail.copilot.enabled auto read Copilot Chat's chats, read-only; auto, on or off
paperTrail.deletePermanently false delete without moving to the OS trash
paperTrail.recentMinutes 5 minutes since a transcript changed for its session to count as recently active
paperTrail.trivialMessageCount 2 sessions with fewer prompts and replies than this count as trivial in Clean up
paperTrail.prices {} price overrides per model id, in dollars per million tokens (input, output, cacheWrite, cacheWrite1h, cacheRead)
paperTrail.showThinking false open thinking blocks by default in the session reader
paperTrail.notify.waiting false notify when a running session is waiting for you
paperTrail.notify.turnDone false notify when a running session finishes its turn
paperTrail.notify.agentFailed false notify when an agent fails
paperTrail.notify.context false notify when a session's or an agent's context is nearly full
paperTrail.notify.stuck false notify when an agent looks stuck or has run too long
paperTrail.contextWarnPercent 80 context fill, in percent, that counts as nearly full
paperTrail.stuckMinutes 10 minutes busy with nothing written before an agent counts as stuck
paperTrail.longRunMinutes 60 minutes before a turn or an agent counts as running too long
paperTrail.schedule.enabled false run the saved clean-up rules on a schedule, always to the trash; turn on from Clean up after a preview
paperTrail.schedule.intervalDays 7 days between scheduled clean-ups
paperTrail.schedule.rules {"match": "any"} the scheduled clean-up's rules, set from Clean up: olderThanDays, largerThanMb, trivial, cwdMissing, orphans, and match (any or all) for the first three

Colours

Paper Trail's four accent colours can be changed in workbench.colorCustomizations, and themes can set them. Together they make the size scale of the treemap and bar list, from the smallest project to the largest:

Colour Used for
paperTrail.deep the smallest project
paperTrail.trail your prompts, the active tab, the activity bars in Insights and the second step of the scale
paperTrail.spark Claude's replies, tool activity and the third step of the scale
paperTrail.flame the largest project

Privacy

Paper Trail makes no network requests and sends no telemetry. It reads Claude Code's, Codex's, Gemini CLI's and Copilot Chat's data on your machine, keeps a small index of session details in VS Code's storage for this extension, and deletes or trims only Claude Code's data, and only what you confirm. Its webviews have a content security policy that blocks every network request. Costs are estimated from token counts with a built-in price table, not fetched.

Trademarks

Paper Trail is not affiliated with, endorsed by or sponsored by Anthropic, OpenAI, GitHub, Google or Microsoft. Claude Code, Codex and the other product names are their owners' trademarks and are used only to say which tools' files Paper Trail reads. The tool glyphs are VS Code's own codicons; no logo is bundled.

Support

Questions and bug reports go to the Q&A tab of the extension's Marketplace page.

Licence

Paper Trail is proprietary software, free to use; the terms are in the LICENSE file that comes with the extension. Third-party components and their licences are listed in its ThirdPartyNotices.txt.

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