Conversation Documentation & Extraction Companion
Preserve the flow state moments that context compacts lose.
Archive your Claude Code conversations before they disappear. Get full technical records AND clean dialogue-only versions. Never lose the origin story again.
Claude Code compacts conversations at 200k tokens.
When this happens:
- β The UI loses scroll history
- β Your ah-ha moments? Gone.
- β Pivotal decisions? Lost.
- β The "why" behind your architecture? Vanished.
You can't scroll back. The conversation just... disappears.
If you're a "long-type collaborator" who works with Claude across days or weeks, this is devastating. You lose not just the conversation, but the journey.
Claude Codec archives conversations in TWO versions:
Complete record with:
- Every message (user + Claude)
- All tool uses and results
- Claude's thinking processes
- File diffs and technical details
- Timestamps and context
Use when: You need the complete technical record.
Just the dialogue:
- User messages
- Claude responses (text only)
- 78% smaller than full version
- Pure flow state moments
Use when: You want to find insights without technical noise.
# Clone the repo
git clone https://github.com/GitIdol/ClaudeCodec-Conversation-Documentation-Extraction-Companion-.git
# Copy scripts to global location
mkdir -p ~/bin/claude-tools
cp ClaudeCodec-*/scripts/*.{js,sh} ~/bin/claude-tools/
chmod +x ~/bin/claude-tools/*.sh
# Add alias to your shell
echo 'alias archive-conversations="~/bin/claude-tools/archive-all-conversations.sh"' >> ~/.zshrc
source ~/.zshrcFrom any project directory:
archive-conversationsOr use the full path:
~/bin/claude-tools/archive-all-conversations.shCreates:
archived-conversations/
βββ 2025-12-06_session-full.md (Complete record)
βββ 2025-12-06_session-clean.md (Just dialogue)
Flow State Moments:
- π‘ Ah-ha insights that sparked ideas
- π― Pivotal decisions that changed everything
- π€ The "why" behind architectural choices
- π Extended dialogues where understanding emerged
The Origin Stories:
Months or years from now, when someone asks "Why did you design it this way?" or "Where did this idea come from?" - you'll have the answer.
The complete story. The moment it all changed.
- Automatically skips empty conversations
- Only archives meaningful sessions (5+ exchanges)
- Filters out noise and system messages
- Detects when conversations have grown
- Re-archives with latest content
- Doesn't duplicate unchanged files
- Human-readable filenames:
2025-12-06_session-clean.md - Chronologically sorted
- Easy to browse and search
node ~/bin/claude-tools/search-conversations.js "keyword" --clean-onlyFinds specific moments across ALL archived conversations.
Working on something for weeks or months? Context resets are inevitable. Archive regularly to maintain continuity.
Before a major architectural decision gets compacted away, preserve the full discussion.
Capture the genesis of ideas - the brainstorming sessions where everything clicked.
Keep the complete record of how you solved complex problems.
Share the full conversation history with team members or future you.
## User
I'm thinking about how to measure success for this app. Traditional metrics feel wrong.
---
## Claude
YES. Exactly. If we're building for deep dialogue, we can't measure engagement like
Twitter does. What if we measured understanding_score instead - whether people
actually connected, not how long they scrolled?
---
## User
That's it! That changes everything about how we build this...Just the dialogue. Just the insights. Just what matters.
What It Does:
- Scans
~/.claude/projects/<project>/for conversation files - Extracts to readable markdown (full + clean versions)
- Saves to
./archived-conversations/in current project - Handles multi-day conversations (re-archives when updated)
File Format:
- Input:
.jsonl(Claude Code conversation files) - Output:
.md(Markdown for human reading)
Compression:
- Full versions: ~1-2MB for long sessions (1,500+ messages)
- Clean versions: ~300-400KB for same sessions
- 78% reduction in clean mode
This tool was born from real frustration with losing important conversations. If you have ideas to make it better:
- Open an issue describing the problem
- Submit a PR with improvements
- Share your use cases
Built by humans who collaborate deeply with AI and need the history to survive.
MIT License - use it, fork it, improve it.
Built during active development of Claude Confluence - an app for deep dialogue between humans.
The irony: We built this tool to preserve conversations about building a tool for better conversations. Meta? Yes. Useful? Absolutely.
"The best dialogues have a shape. They meander, circle back, pause, surprise even the participants. These archives capture that shape, not just the content."
When you hit the 200k context limit and Claude Code compacts the conversation:
- The UI won't let you scroll back
- The compact summary misses nuanced moments
- Flow state insights can be lost forever
With Claude Codec:
- Every profound conversation is preserved
- Both full technical record AND clean dialogue
- Searchable across all sessions
- The origin stories live forever
Run the archive. Preserve the moments. Keep the story.
Built with Claude Code Technology is for people. These conversations are proof.
π€π€