README
¶
peekm
A markdown viewer that tracks what AI coding agents change in your project.

peekm watches your project and shows you exactly which files AI coding agents changed, when they changed them, and what the agent was thinking. It's also a fast markdown viewer with live reload, GitHub styling, and dark/light themes — but the AI tracking is why it exists.
All data stays local. Nothing leaves your machine.
npm i -g @peekm/peekm # install
peekm . # start viewing
peekm setup claude-code # connect Claude Code (one time)
Or try without installing: npx @peekm/peekm .
AI Tracking
When connected, peekm tracks every file modification made by AI agents:
- Smart folders in the sidebar — "Recent AI Edits" surfaces files touched by AI in the last 24 hours
- Timeline (
/timeline) — chronological view of all AI file modifications, grouped by day, color-coded by operation type - Toast notifications — appear the instant AI modifies a file, click to navigate
- Session info panel — per-file dropdown showing session ID, tool, permission mode, timestamp
- Transcript viewer — read the full AI conversation for any session
- Persistent history — events survive restarts (
~/.peekm/events.jsonl)
Comparison
| Glow | grip | VS Code Preview | Ohai | peekm | |
|---|---|---|---|---|---|
| AI tracking | — | — | — | — | Smart folders, timeline, toasts |
| Session history | — | — | — | — | Persistent timeline + transcripts |
| Live reload | — | Manual | Yes | Yes | SSE with event replay |
| Directory browser | TUI list | — | File explorer | — | Web tree + smart folders |
| Cross-platform | Yes | Yes | Yes | macOS only | Yes |
| Price | Free | Free | Free (with VS Code) | $3.99 | Free |
| Startup | Fast | ~2s | Editor launch | Fast | < 100ms |
| Dependencies | Single binary | Python | VS Code | Mac App Store | Single binary |
What It Does
AI session tracking (with Claude Code):
- Smart folders — "Recent AI Edits" surfaces files touched by AI in the last 24h
- Timeline — chronological view of all AI modifications, color-coded by operation
- Toast notifications — instant alerts when AI modifies a file, click to navigate
- Session panel — per-file dropdown with session ID, tool, permission mode, timestamp
- Transcript viewer — read the full AI conversation for any session
- Persistent history — events survive restarts (
~/.peekm/events.jsonl)
Markdown viewer:
- VS Code-style sidebar with tree view and fuzzy search (Cmd/Ctrl+P)
- Live reload via Server-Sent Events with event replay
- Light/Dark/Auto themes, persisted
- In-browser editing with auto-save
- HTML export
- Single binary, cross-platform, < 100ms startup
Installation
npm (recommended)
npm i -g @peekm/peekm
Try without installing: npx @peekm/peekm .
Homebrew
brew install razvandimescu/tap/peekm
curl
curl -L https://github.com/razvandimescu/peekm/releases/latest/download/peekm_$(uname -s)_$(uname -m).tar.gz | tar xz && sudo mv peekm /usr/local/bin/
Go
go install github.com/razvandimescu/peekm@latest
All releases — macOS, Linux, Windows.
Usage
peekm README.md # view a file
peekm . # browse a directory
peekm -port 8080 . # custom port
peekm -browser=false . # don't open browser
| Flag | Default | Description |
|---|---|---|
-port |
6419 |
Port to serve on |
-browser |
true |
Auto-open browser |
-version |
false |
Show version |
-no-ai-tracking |
false |
Disable AI tracking |
| Subcommand | Description |
|---|---|
peekm setup claude-code |
Install Claude Code hooks |
peekm setup claude-code --port 8080 |
Custom port |
peekm setup claude-code --remove |
Remove hooks |
Setup is idempotent and non-destructive. Creates ~/.claude/peekm-hook.sh and adds PostToolUse hooks to ~/.claude/settings.json.
Ignoring Directories
peekm excludes .*, node_modules, vendor, dist, venv by default. Custom exclusions go in .peekmignore:
target
_site
*.tmp
peekm --show-ignored to see all active exclusions.
How It Works
Development
Go 1.23+. go build -o peekm && go test -race ./...
Contributing
PRs welcome. Open an issue if something breaks.
License
MIT — see LICENSE.
Acknowledgments
Related
- glow — Terminal markdown renderer
- grip — GitHub-flavored markdown preview
- VS Code Markdown Preview — Built-in editor preview
- Ohai — macOS markdown viewer for AI workflows
Documentation
¶
There is no documentation for this package.