peekm

command module
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 28 Imported by: 0

README

peekm

Go Report Card GitHub Release

See every file your AI touches — live, tracked, reviewable

peekm demo

A markdown viewer that knows when AI agents modify your files. Smart folders surface unreviewed AI edits. A timeline shows the full history. Toast notifications arrive the instant something changes. Everything persists across restarts.

npx @peekm/peekm .

Zero config. Single binary. Works without AI too — live reload, GitHub styling, dark/light themes.

Perfect for:

  • Claude Code / AI agent users — Smart folders show which files AI touched and which you haven't reviewed yet
  • Multi-session projects — Timeline view shows every AI modification, grouped by day, across all sessions
  • Anyone who reads markdown — Zero-config live preview with GitHub styling and directory browsing

Quick StartWhat You GetComparison

Quick Start

npx @peekm/peekm .

That's it. No config, no runtime dependencies. Or brew install razvandimescu/tap/peekm for a permanent install.

Connect to Claude Code (one command, one time):

peekm setup claude-code

Smart folders, timeline, and toast notifications activate automatically. Details

What You Get

Smart Folders

The sidebar shows two virtual folders that update in real time:

  • Recent AI Edits — files AI created or modified in the current session
  • Unreviewed — files AI touched that you haven't opened yet
AI Timeline

A chronological, color-coded view of every AI file modification, grouped by day. Each entry shows the file, operation type (Write/Edit), session ID, and relative timestamp.

Session Persistence

AI session events persist to ~/.peekm/events.jsonl. Restart peekm, and your smart folders and timeline are still there.

Toast Notifications

The instant AI creates or modifies a markdown file, a toast notification slides in. Click it to jump to the file. Notification history is accessible from the bell icon.

peekm vs. The World

Capability Glow grip VS Code Preview peekm
AI file tracking Smart folders + timeline
Unreviewed file detection Built-in
Session persistence Survives restarts
Toast notifications SSE-based, click to navigate
Live reload Manual Yes SSE with event replay
Directory browser TUI list File explorer Web UI tree + smart folders
Startup Fast ~2s Editor launch < 100ms
Dependencies Single binary Python VS Code Single binary
Offline Yes No (GitHub API) Yes Yes

Features

Navigation
  • VS Code-style sidebar — 280px tree view, collapsible folders, toggle with Cmd/Ctrl+B
  • Smart defaults — auto-opens README.md or most recent file
  • Fuzzy file search — Cmd/Ctrl+P to find files
Live Workflow
  • Auto-reload on save — see changes instantly via Server-Sent Events
  • Theme switching — Light/Dark/Auto with persistence
  • Live editing — edit markdown files directly in browser
  • HTML export — download self-contained HTML for sharing
Production-Ready
  • Single binary, cross-platform (macOS, Linux, Windows), ~8MB memory footprint
  • Whitelist-based file access, CSRF protection, path traversal prevention

Installation

npm (zero install)

npx @peekm/peekm .

Homebrew

brew install razvandimescu/tap/peekm

Quick Install (macOS/Linux)

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 Install

go install github.com/razvandimescu/peekm@latest

Download Binary

Releases page — macOS, Linux, Windows.

Usage

peekm README.md        # View a file (opens with sidebar)
peekm .                # Browse a directory
peekm -port 8080 .     # Custom port
peekm -browser=false .  # Don't auto-open browser
Options
Flag Default Description
-port 6419 Port to serve on
-browser true Auto-open browser
-version false Show version
-no-ai-tracking false Disable AI session tracking

AI Session Tracking

The tracking endpoint is always active. Connect your AI assistant with one command:

peekm setup claude-code              # Configure integration
peekm setup claude-code --port 8080  # Custom port
peekm setup claude-code --remove     # Remove integration

The setup is idempotent (safe to run multiple times) and non-destructive (preserves your existing Claude Code settings).

Ignoring Directories

peekm automatically excludes .*, node_modules, vendor, dist, venv, and similar. Add custom exclusions with .peekmignore:

# .peekmignore
target
_site
*.tmp
peekm --show-ignored    # See all exclusions

How It Works

  1. Parse — Converts markdown to HTML using goldmark
  2. Serve — Starts a local HTTP server with graceful shutdown
  3. Watch — Monitors file changes using fsnotify
  4. Reload — Sends live updates via Server-Sent Events with event replay
  5. Track — Receives AI session metadata and correlates with file changes

Get Started

npx @peekm/peekm .

Using Claude Code? One more command:

peekm setup claude-code

Open an issue if something breaks. Star the repo if it doesn't.

Development

  • Go 1.21 or higher
  • go build -o peekm && go test -race ./...

Contributing

Contributions welcome — submit a Pull Request.

License

MIT — see LICENSE.

Acknowledgments

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL