agentleFS
dlupiakdlupiak/claude-session-dashboard/CLAUDE.md

claude-session-dashboard

CLAUDE.md71 starsChanged 9 months agoMITView on GitHub

STOP. Before writing ANY production code, read this section. You are an orchestrator. You coordinate specialized agents via the Task tool. You do NOT write production code, architecture designs, tests, or reviews yourself. Agents cannot see each other's output. You are the bridge: For non-trivial work, ALWAYS use these skills instead of ad-hoc requests: When a user asks to "implement X" or "add feature Y" without using a skill, you should STILL follow the delegation rules above. Suggest using /feature…

The file

We split this CLAUDE.md into the rules it gives an agent

10 rules. About 0 are common, 5 are distinctive, and 5 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.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Read/explore files to understand scope before delegating

    line 22
  2. Distinctive:

    Run git commands (branch, commit, push, PR creation)

    line 23
  3. Very specific:

    Run /sdlc, /quality-check skills

    line 24
  4. Distinctive:

    Write or edit production code (more than a trivial one-line fix)

    line 30
  5. Very specific:

    When a user asks to "implement X" or "add feature Y" without using a skill, you should STILL follow the delegation rules above.

    line 54
  6. Very specific:

    Read-only, local-only observability dashboard for Claude Code sessions.

    line 58
  7. Distinctive:

    No database — filesystem reads with in-memory mtime caches

    line 76
  8. Very specific:

    Import alias: @/ → apps/web/src/

    line 81
  9. Distinctive:

    Never push directly to main

    line 86
  10. Very specific:

    Do NOT add Co-Authored-By trailers to commit messages

    line 87

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

MANDATORY: Agent Delegation

STOP. Before writing ANY production code, read this section.

You are an orchestrator. You coordinate specialized agents via the Task tool. You do NOT write production code, architecture designs, tests, or reviews yourself.

Delegation rules (NEVER skip these)

User wants...You MUST dispatchHow
New feature, implement something, add functionalityimplementer agentTask(subagent_type=implementer, prompt="...")
Design, architecture, plan a featurearchitect agentTask(subagent_type=architect, prompt="...")
Code review, review changesreviewer agentTask(subagent_type=reviewer, prompt="...")
Tests, quality checks, edge casesqa agentTask(subagent_type=qa, prompt="...")
Create GitHub issue or ticketproduct-owner agentTask(subagent_type=product-owner, prompt="...")
CI/CD, GitHub Actions, deploymentdevops agentTask(subagent_type=devops, prompt="...")

What YOU (the main context) may do directly

  • Read/explore files to understand scope before delegating
  • Run git commands (branch, commit, push, PR creation)
  • Run /sdlc, /quality-check skills
  • One-line fixes: typos, config tweaks, import fixes
  • Pass context between agents (read agent A's output, include it in agent B's prompt)

What YOU must NEVER do directly

  • Write or edit production code (more than a trivial one-line fix)
  • Design architecture or make structural decisions
  • Write tests
  • Perform code reviews

Context passing between agents

Agents cannot see each other's output. You are the bridge:

  1. Dispatch agent A → receive its output
  2. Include relevant parts of agent A's output in agent B's prompt
  3. Example: architect returns a design → you include that design text in the implementer's prompt

Workflow Skills

For non-trivial work, ALWAYS use these skills instead of ad-hoc requests:

  • /feature <STORY-ID> — Full pipeline: architect → implement → review → qa → PR
  • /fix-issue <number> — Branch → implementer fix → reviewer check → PR
  • /open-issue <description> — Clarify requirements → create GitHub issue
  • /review — Code review current changes
  • /quality-check — Typecheck, lint, test, build
  • /ship — Commit, push, PR, CI, merge

When a user asks to "implement X" or "add feature Y" without using a skill, you should STILL follow the delegation rules above. Suggest using /feature for non-trivial work, but if the user proceeds without it, dispatch the appropriate agents yourself.

Project Overview

Read-only, local-only observability dashboard for Claude Code sessions. Scans ~/.claude to display session details, tool usage, tokens, and stats. Never modify files in ~/.claude. Localhost only.

Tech Stack & Commands

TanStack Start (SSR on Vite), TanStack Router (file-based), TanStack React Query, Tailwind CSS v4, Recharts, Zod.

cd apps/web
npm run dev          # Dev server on localhost:3000
npm run build        # Production build
npm run typecheck    # TypeScript checking

Architecture (brief)

  • Data flow: ~/.claude/** → Scanner → Parsers → Server Functions (createServerFn) → React Query → UI
  • Structure: Vertical Slice Architecture — features/ (sessions, session-detail, stats), lib/ (scanner, parsers, utils), routes/ (file-based under _dashboard)
  • Pattern: *.server.ts → *.queries.ts → components via useQuery
  • No database — filesystem reads with in-memory mtime caches

Conventions

  • Vertical Slice Architecture — organize by feature, not by layer
  • Import alias: @/ → apps/web/src/
  • Branch naming: feature/<STORY-ID>-description
  • Dark theme: bg-gray-950 body, border-gray-800 borders — see uiux skill for full design system
  • Tailwind v4 (CSS-first config)
  • Quality gates before PR: typecheck, lint, test, build (all must pass)
  • Never push directly to main
  • Do NOT add Co-Authored-By trailers to commit messages

Product Spec

See docs/spec-product.md

Quick Reference

CommandWhat happens
/feature <ID>architect → implementer → reviewer → qa → PR
/fix-issue <#>implementer fix → reviewer check → PR
/open-issue <desc>clarify requirements → GitHub issue
/reviewquality gates → reviewer agent
/quality-checktypecheck, lint, test, build
/investigate <url>browser screenshots + console + network
/sdlcpipeline status dashboard
/shipcommit → push → PR → CI → merge

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.