← Reddit

I built a free tool that saves your Claude sessions as Markdown in your project repo

Reddit · Lucky-Bottle-0 · April 16, 2026
A free open-source tool called Contrails saves Claude AI sessions as Markdown files within project repositories, allowing maintainers and teammates to view the reasoning process behind code contributions rather than just the final output. The tool monitors ~/.claude/projects/ in real-time and generates clean, readable documentation trails that can be referenced in pull requests and future sessions. It runs continuously in the background across macOS, Windows, and Linux platforms.

Detailed Analysis

Contrails, an open-source tool developed by a community contributor, addresses a growing transparency gap in AI-assisted software development by automatically capturing Claude coding sessions as human-readable Markdown files stored directly within project repositories. The tool monitors the `~/.claude/projects/` directory in real-time — the native location where Claude Code logs conversations in JSONL format on macOS and Linux — and converts those sessions into clean, structured trails that travel alongside the codebase itself. Available across macOS, Windows, and Linux, Contrails is designed to run passively in the background, requiring no change to an existing development workflow. The resulting Markdown files can be referenced from future sessions, linked directly from pull requests, and reviewed by maintainers or collaborators who wish to understand the reasoning process behind a contribution, not merely its output.

The tool emerges at a moment when the open-source community is wrestling seriously with what many developers describe as "AI slop" — contributions whose final diffs are coherent but whose underlying reasoning is opaque or absent. When a contributor submits code generated or significantly shaped by an AI agent, the pull request conveys none of the deliberation involved: the edge cases explored, the alternative approaches considered, or the constraints the agent was given. Contrails reframes AI-assisted contribution as a traceable, auditable process rather than a black-box output, offering maintainers a basis for evaluating not just what was submitted but how it was reached. This directly parallels the value of detailed commit messages or design documents in traditional collaborative development.

Contrails is not the first tool to tackle this problem, though it is among the more holistically designed. Existing community solutions include `claude-code-logs`, which exports JSONL transcripts to Markdown with real-time watching capabilities, and `SpecStory`, which saves conversations automatically into a `.specstory/history/` directory within the project. The `conversation-logger` project similarly parses transcripts with full-text search support. Contrails differentiates itself through its cross-platform GUI approach and its explicit framing around collaborative contribution workflows — the emphasis is not merely on personal archiving but on social legibility within open-source ecosystems. Claude Code's own native memory system, built around `CLAUDE.md` files and `.claude/commands/` slash command templates, provides structural scaffolding for per-project context, but offers no mechanism for session-level historical logging that others can inspect.

The broader trend this tool reflects is the AI development community's gradual movement toward what might be called "process transparency" as a professional norm. As AI agents become routine participants in software development, questions of attribution, accountability, and intellectual provenance are intensifying. Whether a repository should carry a structured archive of agent conversations — and how to prevent such logs from cluttering a codebase, a concern some developers have raised in favor of scoped directories like `.claude/review/` — is an open design question the community is actively negotiating. Contrails' approach of embedding session trails directly in the repo enforces a kind of radical transparency that treats AI reasoning as a first-class artifact of the development record, subject to the same version control and peer review as the code itself. Whether this norm takes hold broadly will depend in part on whether maintainers begin requesting such trails as a condition of AI-assisted contributions.

Article image Read original article →