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

Hollow Agent OS: Local AI workers call Claude as senior architect when stuck
Hollow Agent OS uses local Qwen models that run 24/7, but when they hit logic errors or need major changes, they trigger a Claude call via MCP. Claude reorganizes file structures, reviews code, and acts as a manager for autonomous local workers.

Approach to Self-Improving Memory in Local AI Agents
A developer shares their approach to persistent memory for local AI agents using markdown files as source of truth, episode scoring with confidence-based rules, and trust escalation based on approval patterns.

CostHawk Launches Public Leaderboard for Claude Code, Codex, and Cursor Token Consumption
CostHawk’s leaderboard ranks public users of Claude Code, OpenAI Codex, and Cursor by total token consumption, tracking counts, models, and sync timestamps without storing prompts or code.
OpenClaw AI Agent with 6 Roles, Memory, and ADHD-Aware Design: Daily Ops Breakdown
A solo founder with ADHD built an open-source AI agent with 6 roles (action planner, debriefer, writer, legal, investigator, CRM) sharing memory, auto-generating follow-ups and drafts from transcripts.