companion-capture: Tool saves Claude Code's ephemeral speech bubbles

What companion-capture does
If you use Claude Code in the terminal, you've probably noticed the companion character that pops up with speech bubbles while you work. These messages are ephemeral—the TUI redraws and they're gone. Some contain useful observations about your code, warnings about bugs, or funny commentary. companion-capture watches terminal output, extracts those bubble messages, and saves them to markdown files (and optionally SQLite for search).
How it works
- A shell wrapper launches Claude Code through
script -q -Fto capture raw terminal output - A Python parser runs a VT100 screen buffer (not ANSI stripping—actual cursor position tracking) to figure out where text is actually rendered
- Messages require two consecutive scans before being written, so you don't get half-rendered garbage
- A PostToolUse hook surfaces new captures back to Claude mid-session, so it can actually see what the companion said
Features
- Zero runtime dependencies (stdlib Python only)
- Full-text search across captures (
companion-capture search "auth bug") - Privacy controls—exclude patterns, project blocklists, retroactive redaction
- Opt-in contextual recall that feeds recent captures back to Claude automatically
companion-capture doctorfor health checking the whole setup- 400+ pytest cases
What the developer found using it
The companion actually catches things. It flagged a migration script that had no test coverage. It noticed a race condition in a multi-session setup. Most of the time it's vibes and reactions, but every few sessions it drops something genuinely worth reading back.
Current limitations
MacOS + Claude Code only for now. No external dependencies, MIT licensed.
GitHub: github.com/jaywadhwa/companion-capture
📖 Read the full source: r/ClaudeAI
👀 See Also

Open-source trust scoring hook for Claude Code monitors sessions, blocks protected paths
A developer built a Python hook that scores every Claude Code session on reliability, scope, and cost dimensions, blocks access to protected paths like .env files, and hash-chains events for tamper detection. The single-file tool is available on GitHub.

BrightBean Studio: Open-source social media management platform built with AI agents
BrightBean Studio is an open-source, self-hostable social media management platform that supports 10+ platforms with direct first-party API integrations. It was built in 3 weeks using Claude and Codex.

LLM Council Analysis Reveals Practical Claude Code Token Optimization Strategies
A developer used the LLM Council tool with 5 personas to analyze Claude Code usage patterns, identifying that extended thinking mode by default was the biggest token drain. The resulting playbook achieved 60-70% token reduction with same or better output quality.

Ory Lumen: Open Source Local Semantic Search Plugin for Claude Code
Ory Lumen is a Claude Code plugin that indexes codebases using Ollama with a code embedding model and SQLite-vec for semantic search, addressing Claude Code's performance issues with large codebases. The tool is free, local-only, and includes a SWE-style benchmark test harness for reproducible results.