Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tailclaude

tail -f for Claude Code sessions. See what Claude is doing in real-time, from another terminal.

npx @lukebechtel/tailclaude

screenshot placeholder npm node


What it does

Claude Code stores every conversation turn as JSONL in ~/.claude/projects/. These files are dense and unreadable. tailclaude turns them into a compact, color-coded live stream:

14:32:01 ▶ USER  "Add error handling to the upload endpoint"
14:32:03 ◀ ASST  [thinking 2.1K] ⚙ Read: src/routes/upload.ts
14:32:04 ◀ ASST  ✓ tool_result (4.8K)
14:32:05 ◀ ASST  [thinking 1.4K] ⚙ Edit: src/routes/upload.ts
14:32:06 ◀ ASST  ✓ tool_result (312B)
14:32:07 ◀ ASST  "Done. I wrapped the handler in a try/catch..."

It auto-detects the most recent session, follows for live updates, and just works.

Install

# Run directly (no install needed)
npx @lukebechtel/tailclaude

# Or with bun
bunx @lukebechtel/tailclaude

# Or install globally
npm i -g @lukebechtel/tailclaude

Usage

# Tail the most recent session (auto-detected)
tailclaude

# Match a session by UUID prefix
tailclaude ffbb89d7

# Tail a specific file
tailclaude /path/to/session.jsonl

# Show last 10 entries, then follow
tailclaude -n 10

# One-shot: print and exit (no follow)
tailclaude --no-follow

# AI-powered summaries for large tool results (requires claude CLI)
tailclaude --ai-summary

# Live AI status digests every 30 seconds
tailclaude --ai-updates

Options

Flag Description
-n <count> Number of recent entries to show (default: 20)
-f, --follow Follow the file for new entries (default)
--no-follow Print entries and exit
--ai-summary Summarize large tool results (>3KB) using Claude Haiku
--ai-updates Print an AI status digest every 30 seconds
--no-color Disable colored output
-h, --help Show help

AI Summaries

When --ai-summary is passed, tool results larger than 3KB get a one-line summary from Claude Haiku. This makes it easy to see what a tool returned without reading walls of text:

14:32:04 ◀ ASST  ✓ tool_result (4.8K) → [AI] "Express route handler with multer upload, validates file type and size"

This requires the Claude CLI to be installed. If you're using tailclaude, you probably already have it. Without --ai-summary, no external tools are needed.

AI Status Updates

--ai-updates is the killer feature. Every 30 seconds, Haiku reads the recent session activity and prints a status digest:

┌────────────────────────────────────────────────────────────┐
│ AI Status Update (14:35:02)                                │
├────────────────────────────────────────────────────────────┤
│ **Working on**: Refactoring upload route error handling     │
│ in src/routes/upload.ts, adding try/catch blocks.          │
│ **Progress**: Making steady progress — 2 edits applied,    │
│ moving to tests next.                                      │
│ **Next**: Will likely read/update test file for upload     │
│ route and run the test suite.                              │
└────────────────────────────────────────────────────────────┘

Think of it as a manager watching over Claude's shoulder and giving you the TL;DR. Great for long-running tasks where you want to check in without reading every line.

How it works

  • Scans ~/.claude/projects/ for session JSONL files
  • Picks the most recently modified session (or matches by UUID prefix)
  • Parses each JSONL line and renders it as a compact, colored summary
  • In follow mode, polls for new data every 500ms (like tail -f)

Requirements

  • Node.js >= 18
  • Claude CLI (only if using --ai-summary or --ai-updates)

License

MIT

About

Finally, a CLI tool to answer: "What the heck is claude doing?"

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages