By christancho
Auto-exports Claude Code conversations as readable text files before context compaction and on session end
A Claude Code plugin that automatically saves your conversations as readable text files before context compaction and when sessions end. Never lose a conversation again.
Claude Code hooks fire automatically at three key moments:
/clear, saving the conversation before it's wipedEach export is saved as a .txt file inside the project's .claude/chat-exports/ directory, so conversations stay with the project they belong to.
Exports use a terminal-style format that mirrors the Claude Code CLI:
────────────────────────────────────────────────────────────────────────────────
▐▛███▜▌ Claude Code · my-project
▝▜█████▛▘ 2026-03-20 14:00 · Branch: main
▘▘ ▝▝ Session: a8f2c3d1
────────────────────────────────────────────────────────────────────────────────
❯ How do I add authentication to this API?
⏺ You can add JWT-based authentication by installing jsonwebtoken and
creating middleware that validates the token on each request.
⏺ Bash(Install jsonwebtoken)
⎿ added 1 package, audited 312 packages in 2s
⏺ Write(~/src/middleware/auth.ts)
⎿ Wrote 42 lines to ~/src/middleware/auth.ts
import jwt from 'jsonwebtoken';
import { Request, Response, NextFunction } from 'express';
… +40 lines
⏺ Update(~/src/app.ts)
⎿ Added 2 lines, removed 1 line
import { authMiddleware } from './middleware/auth';
────────────────────────────────────────────────────────────────────────────────
❯⏺Read 3 files)Inside a Claude Code session run:
/plugin marketplace add christancho/chat-autoexporter
/plugin install chat-autoexporter@christancho
/reload-plugins
The hooks register automatically — no manual configuration needed.
Clone the repo, then inside a Claude Code session run:
/plugin install /path/to/chat-autoexporter
/reload-plugins
your-project/
└── .claude/
└── chat-exports/
├── 2026-03-20-140000.txt
├── 2026-03-20-153022.txt
└── 2026-03-21-091500.txt
Each file is timestamped (YYYY-MM-DD-HHMMSS.txt). If two exports happen in the same second (e.g., PreCompact + SessionEnd), the second gets a -2 suffix.
[USER]/[ASSISTANT] formatAll errors are non-fatal. The hook will never block Claude Code operation:
MIT
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub christancho/chat-autoexporter --plugin chat-autoexporterSession log archiver: saves conversations as Markdown or JSON for easy review
Session transcript timeline viewer for Claude Code and Codex agent sessions
Persistent local memory for Claude Code. Every tool call, every file edit, every thinking block from every session — stored verbatim on your machine. Semantic recall in ~126ms with zero API calls.
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Memory compression system for Claude Code - persist context across sessions
Multi-model consensus engine integrating OpenAI Codex CLI, Gemini CLI, and Claude CLI for collaborative code review and problem-solving.