agentleFS
matt1398matt1398/claude-devtools/CLAUDE.md

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

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 2 mentionsMar 2026: 1 mentionApr 2026: 2 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 1 mentionAug 2026: 0 mentionsSep 2026: 1 mentionOct 2026: 4 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the matt1398/claude-devtools repository that our weekly crawl found: only 11 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about matt1398/claude-devtools

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

5 more on GitHub

On Hacker News · 1

  • In this repositoryOne other file it gives its agents.

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
  1. Distinctive:

    Always use pnpm (not npm/yarn) for this project.

    line 9
  2. Distinctive:

    Use path aliases for imports:

    line 27
  3. Distinctive:

    AIChunk: All assistant responses with tool executions and spawned subagents

    line 48
  4. Distinctive:

    Keep orphaned Task calls (no matching subagent) for visibility.

    line 56
  5. Distinctive:

    Check for changes in message parsing or chunk building logic.

    line 109

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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 dependencies
  • pnpm dev - Dev server with hot reload
  • pnpm build - Production build
  • pnpm typecheck - Type checking
  • pnpm lint:fix - Lint and auto-fix
  • pnpm format - Format code
  • pnpm test - Run all vitest tests
  • pnpm test:watch - Watch mode
  • pnpm test:coverage - Coverage report
  • pnpm test:coverage:critical - Critical path coverage
  • pnpm test:chunks - Chunk building tests
  • pnpm test:semantic - Semantic step extraction tests
  • pnpm test:noise - Noise filtering tests
  • pnpm 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 and teammate_spawned tool results
  • Teammate messages arrive as <teammate-message teammate_id="..." color="..." summary="...">content</teammate-message> in user messages (isMeta: false). Detected by isParsedTeammateMessage() — excluded from UserChunks, rendered as TeammateMessageItem cards
  • Session ongoing detection treats SendMessage shutdown_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):

CategoryTypeSource
claude-mdClaudeMdContextInjectionCLAUDE.md files (global, project, directory)
mentioned-fileMentionedFileInjectionUser @-mentioned files
tool-outputToolOutputInjectionTool execution results (Read, Bash, etc.)
thinking-textThinkingTextInjectionExtended thinking + text output tokens
team-coordinationTeamCoordinationInjectionTeam tools (SendMessage, TaskCreate, etc.)
user-messageUserMessageInjectionUser prompt text per turn
  • Types: src/renderer/types/contextInjection.ts — ContextInjection union, 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 build

Type Errors

pnpm typecheck

Test Failures

Check for changes in message parsing or chunk building logic.

TypeScript Conventions

Naming

CategoryConventionExample
Services/ComponentsPascalCaseProjectScanner.ts
UtilitiescamelCasepathDecoder.ts
ConstantsUPPER_SNAKE_CASEPARALLEL_WINDOW_MS
Type GuardsisXxxisRealUserMessage()
BuildersbuildXxxbuildChunks()
GettersgetXxxgetResponses()

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

  1. External packages
  2. Path aliases (@main, @renderer, @shared)
  3. Relative imports

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.