TUI tool lets you browse and edit Claude Code's auto-memory files
`claude-mem-viz` is an open-source terminal UI that lets developers browse, edit, prune, and audit Claude Code's auto-memory files stored at `~/.claude/`, across all projects in one place.
Score breakdown
Audit and prune Claude Code's hidden auto-memory files — including orphaned entries Claude wrote but never indexed — without manually digging through `~/.claude/` directory structures.
- 01claude-mem-viz is an open-source TUI for browsing and editing Claude Code's auto-memory files stored at `~/.claude/`
- 02Built by lu-zhengda and written in Go; installable via Homebrew, `go install`, or from source
- 03`--stale-days` flag configures how many days old a memory must be before it is flagged (e.g., `--stale-days 60`)
`claude-mem-viz`, published by lu-zhengda on GitHub, is a terminal user interface (TUI) for inspecting and managing the auto-memory files that Claude Code stores at `~/.claude/`. The tool addresses a practical gap: Claude Code can write memory files but fail to add them to its index, causing them to be silently ignored. The TUI surfaces all projects' memories in one view, showing when each was last updated and flagging potentially stale or orphaned entries.
The tool supports several installation paths — Homebrew (`brew tap lu-zhengda/tap && brew install claude-mem-viz`), `go install github.com/lu-zhengda/claude-mem-viz@latest`, or building from source.
The tool supports several installation paths — Homebrew (`brew tap lu-zhengda/tap && brew install claude-mem-viz`), `go install github.com/lu-zhengda/claude-mem-viz@latest`, or building from source. CLI flags include `--root` to point at an alternative `.claude` directory, `--stale-days` to configure the staleness threshold, and `--list` for a non-interactive dump. Interactive key bindings cover navigation (`j`/`k`, arrow keys), pane switching (`tab`/`shift+tab`), editing in `$EDITOR` (`enter`/`e`), creating new memories (`n`), deleting entries (`d`), unindexing without deletion (`x`), fixing audit issues (`f`), fuzzy search (`/`), and reloading from disk (`r`).
The `x` (unindex) action is notable: it removes a memory from `MEMORY.md` while leaving the file on disk, effectively "parking" it so Claude won't load it without permanently discarding it. The `n` (new memory) action includes a project-picker stage, allowing a new memory to be scaffolded in any project without changing focus.
Key facts
- 01claude-mem-viz is an open-source TUI for browsing and editing Claude Code's auto-memory files stored at `~/.claude/`
- 02Built by lu-zhengda and written in Go; installable via Homebrew, `go install`, or from source
- 03`--stale-days` flag configures how many days old a memory must be before it is flagged (e.g., `--stale-days 60`)
- 04`--root` flag lets users point the tool at an alternative `.claude` directory; `--list` provides a non-interactive dump
- 05The `x` (unindex) action removes a memory from `MEMORY.md` without deleting the file from disk
- 06The `f` key fixes audit issues such as orphaned or dangling memory files that Claude Code wrote but never indexed
- 07The `n` key scaffolds a new memory with a project-picker stage so any project can be targeted without changing focus