claude-devtools
CLAUDE.md4k starsChanged 10 months agoMITView on GitHub
Electron app that visualizes Claude Code session execution Path encoding: /Users/name/project → -Users-name-project Each chunk has: timestamp, duration, metrics (tokens, cost, tools)
- Deletes or force-pushes
- Installs packages
Trending
More talk lately.thin dataabout the whole repository
Who's talking about matt1398/claude-devtools
- A Hacker News story“Show HN: I built a tool to un-dumb Claude Code's CLI output (Local Log Viewer)”Hacker News · Feb 13, 2026 · 69 points
- ekalb81/agent-odometer“Add a multi-session execution board and visual comparison”GitHub · Oct 4, 2026
- ekalb81/agent-odometer“Explain estimated context composition and compaction boundaries”GitHub · Oct 4, 2026
- ekalb81/agent-odometer“Build an on-demand full transcript and tool-call inspector”GitHub · Oct 4, 2026
- ekalb81/agent-odometer“Add lazy, paged read-only transcript record access”GitHub · Oct 4, 2026
The biggest 5 of 11 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 11
Talked about on GitHub and Hacker News (11 times).
On GitHub · 10
- Oct 4, 2026Add a multi-session execution board and visual comparison — ekalb81/agent-odometer0 reactions
- Oct 4, 2026Explain estimated context composition and compaction boundaries — ekalb81/agent-odometer0 reactions
- Oct 4, 2026Build an on-demand full transcript and tool-call inspector — ekalb81/agent-odometer0 reactions
- Oct 4, 2026Add lazy, paged read-only transcript record access — ekalb81/agent-odometer0 reactions · 1 comment
- Sep 27, 2026Add claude-devtools — AppImage/appimage.github.io0 reactions · 1 comment
5 more on GitHub
- Jul 3, 2026Audit candidate: matt1398/claude-devtools — xiaolai/nlpm0 reactions · 1 comment
- Apr 18, 2026Audit candidate: matt1398/claude-devtools — xiaolai/nlpm0 reactions · 4 comments
- Apr 2, 2026[failure] Show HN: I built a tool to un-dumb Claude Code's CLI output (Local Log Viewer) — steveash/hitchhikers-guide-to-ai-native-engineering0 reactions · 2 comments
- Mar 30, 2026Add resource: claude-devtools — hesreallyhim/awesome-claude-code0 reactions
- Feb 26, 2026[Resource]: claude-devtools — hesreallyhim/awesome-claude-code0 reactions · 3 comments
On Hacker News · 1
- Feb 13, 2026Show HN: I built a tool to un-dumb Claude Code's CLI output (Local Log Viewer)69 points · 44 comments
In this repositoryOne other file it gives its agents.
- src/CLAUDE.mdCLAUDE.md
The file
We split this CLAUDE.md into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Always use pnpm (not npm/yarn) for this project.
- Distinctive: line 27
Use path aliases for imports:
- Distinctive: line 48
AIChunk: All assistant responses with tool executions and spawned subagents
- Distinctive: line 56
Keep orphaned Task calls (no matching subagent) for visibility.
- Distinctive: line 109
Check for changes in message parsing or chunk building logic.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
claude-devtools
Electron app that visualizes Claude Code session execution
Tech Stack
Electron 28.x, React 18.x, TypeScript 5.x, Tailwind CSS 3.x, Zustand 4.x
Commands
Always use pnpm (not npm/yarn) for this project.
pnpm install- Install dependenciespnpm dev- Dev server with hot reloadpnpm build- Production buildpnpm typecheck- Type checkingpnpm lint:fix- Lint and auto-fixpnpm format- Format codepnpm test- Run all vitest testspnpm test:watch- Watch modepnpm test:coverage- Coverage reportpnpm test:coverage:critical- Critical path coveragepnpm test:chunks- Chunk building testspnpm test:semantic- Semantic step extraction testspnpm test:noise- Noise filtering testspnpm test:task-filtering- Task tool filtering tests
Path Aliases
Use path aliases for imports:
@main/*→src/main/*@renderer/*→src/renderer/*@shared/*→src/shared/*@preload/*→src/preload/*
Data Sources
~/.claude/projects/{encoded-path}/*.jsonl - Session files ~/.claude/todos/{sessionId}.json - Todo data
Path encoding: /Users/name/project → -Users-name-project
Critical Concepts
isMeta Flag
isMeta: false= Real user message (creates new chunks)isMeta: true= Internal message (tool results, system-generated)
Chunk Structure
Independent chunk types for timeline visualization:
- UserChunk: Single user message with metrics
- AIChunk: All assistant responses with tool executions and spawned subagents
- SystemChunk: Command output/system messages
- CompactChunk: System metadata/structural messages
Each chunk has: timestamp, duration, metrics (tokens, cost, tools)
Task/Subagent Filtering
Task tool_use blocks are filtered when subagent exists Keep orphaned Task calls (no matching subagent) for visibility.
Agent Teams
Claude Code's "Orchestrate Teams" feature: multiple sessions coordinate as a team.
- Process.team?
{ teamName, memberName, memberColor }— enriched by SubagentResolver from Task call inputs andteammate_spawnedtool results - Teammate messages arrive as
<teammate-message teammate_id="..." color="..." summary="...">content</teammate-message>in user messages (isMeta: false). Detected byisParsedTeammateMessage()— excluded from UserChunks, rendered asTeammateMessageItemcards - Session ongoing detection treats
SendMessageshutdown_response (approve: true) and its tool_result as ending events, not ongoing activity - Display summary counts distinct teammates (by name) separately from regular subagents
- Team tools: TeamCreate, TaskCreate, TaskUpdate, TaskList, TaskGet, SendMessage, TeamDelete — have readable summaries in
toolSummaryHelpers.ts
Visible Context Tracking
Tracks what consumes tokens in Claude's context window across 6 categories (discriminated union on category field):
| Category | Type | Source |
claude-md | ClaudeMdContextInjection | CLAUDE.md files (global, project, directory) |
mentioned-file | MentionedFileInjection | User @-mentioned files |
tool-output | ToolOutputInjection | Tool execution results (Read, Bash, etc.) |
thinking-text | ThinkingTextInjection | Extended thinking + text output tokens |
team-coordination | TeamCoordinationInjection | Team tools (SendMessage, TaskCreate, etc.) |
user-message | UserMessageInjection | User prompt text per turn |
- Types:
src/renderer/types/contextInjection.ts—ContextInjectionunion,ContextStats,TokensByCategory - Tracker:
src/renderer/utils/contextTracker.ts—computeContextStats(),processSessionContextWithPhases() - Context Phases: Compaction events reset accumulated injections, tracked via
ContextPhaseInfo - Display surfaces:
ContextBadge(per-turn popover),TokenUsageDisplay(hover breakdown),SessionContextPanel(full panel)
Error Handling
- Main: try/catch, console.error, return safe defaults
- Renderer: error state in Zustand store
- IPC: parameter validation, graceful degradation
Performance
- LRU Cache: Avoid re-parsing large JSONL files
- Streaming JSONL: Line-by-line processing
- Virtual Scrolling: For large session/message lists
- Debounced File Watching: 100ms debounce
Troubleshooting
Build Issues
rm -rf dist dist-electron node_modules
pnpm install
pnpm buildType Errors
pnpm typecheckTest Failures
Check for changes in message parsing or chunk building logic.
TypeScript Conventions
Naming
| Category | Convention | Example |
| Services/Components | PascalCase | ProjectScanner.ts |
| Utilities | camelCase | pathDecoder.ts |
| Constants | UPPER_SNAKE_CASE | PARALLEL_WINDOW_MS |
| Type Guards | isXxx | isRealUserMessage() |
| Builders | buildXxx | buildChunks() |
| Getters | getXxx | getResponses() |
Type Guards
// Message type guards (src/main/types/messages.ts)
isParsedRealUserMessage(msg) // isMeta: false, string content
isParsedInternalUserMessage(msg) // isMeta: true, array content
isAssistantMessage(msg) // type: "assistant"
// Chunk type guards
isUserChunk(chunk) // type: "user"
isAIChunk(chunk) // type: "ai"
isSystemChunk(chunk) // type: "system"
isCompactChunk(chunk) // type: "compact"
// Context injection type guards (component-scoped in ContextBadge.tsx, not exported)
isClaudeMdInjection(inj) // category: "claude-md"
isMentionedFileInjection(inj) // category: "mentioned-file"
isToolOutputInjection(inj) // category: "tool-output"
isThinkingTextInjection(inj) // category: "thinking-text"
isTeamCoordinationInjection(inj) // category: "team-coordination"
isUserMessageInjection(inj) // category: "user-message"Barrel Exports
src/main/services/ and its domain subdirectories have barrel exports via index.ts:
// Preferred
import { ChunkBuilder, ProjectScanner } from './services';
// Also valid
import { ChunkBuilder } from './services/analysis';Note: renderer utils/hooks/types do NOT have barrel exports — import directly from files.
Import Order
- External packages
- Path aliases (@main, @renderer, @shared)
- Relative imports
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

