claude-code-viewer
CLAUDE.md1.3k starsChanged 7 months agoMITView on GitHub
Conventional Commits format: type: description Release Note Awareness: Type Selection: | Type | Release Note | Purpose | |------|--------------|---------| | feat | Features | User-facing new feature | | fix | Bug Fixes | User-impacting bug fix | | chore, ci, build, refactor | Excluded | Internal changes | Critical: Use fix only for user-facing bugs. Internal fixes (linter errors, type errors, build scripts) must use chore. Message Quality Examples: Claude Code Viewer reads Claude Code session logs directly from…
Trending
Quiet since September.thin dataabout the whole repository
Who's talking about d-kimuson/claude-code-viewer
- @takke.jp“Android Studio 内のコンソールで Claude Code の応答が見にくくなったので claude-code-viewer …”Bluesky · Oct 3, 2025 · 3 likes
- makecindy/cindy“feat(desktop): 支持用量恢复后继续任务”GitHub · Jul 31, 2026 · 1 reactions
- A Hacker News story“Claude Code Session Viewer”Hacker News · Dec 19, 2025 · 1 points
- sudosubin/agents.nix“agent-skills.github.d-kimuson.claude-code-viewer: init at 0.8.2”GitHub · Sep 26, 2026
- farmcan/kage“UI/UX gap analysis: kage serve web vs KAGE desktop app”GitHub · Jun 5, 2026
The biggest 5 of 9 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 9
Talked about on GitHub, Hacker News and Bluesky (9 times).
On GitHub · 7
- Jul 31, 2026feat(desktop): 支持用量恢复后继续任务 — makecindy/cindy1 reaction · 8 comments
- Sep 26, 2026agent-skills.github.d-kimuson.claude-code-viewer: init at 0.8.2 — sudosubin/agents.nix0 reactions
- Jun 5, 2026UI/UX gap analysis: kage serve web vs KAGE desktop app — farmcan/kage0 reactions · 1 comment
- Jun 5, 2026Research: existing open-source session viewers we can learn from — farmcan/kage0 reactions · 1 comment
- Apr 18, 2026Audit candidate: d-kimuson/claude-code-viewer — xiaolai/nlpm0 reactions · 1 comment
2 more on GitHub
- Mar 26, 2026Remux.live - example repo — parvezk/parallel-app0 reactions · 1 comment
- Oct 17, 2025Real-Time Tool Usage Visibility in Verbose Mode — radleta/claude-iterate0 reactions · 1 comment
On Hacker News · 1
- Dec 19, 2025Claude Code Session Viewer1 point
On Bluesky · 1
- Oct 3, 2025Android Studio 内のコンソールで Claude Code の応答が見にくくなったので claude-code-viewer を導入してみたらめっちゃ捗ってる。すごい。スマホのブラウザからも状況分かるし指示も出せる。ありがたい。… — @takke.jp3 likes and reposts
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- fix-schemaSkill
- releaseSkill
- i18nSkill
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
16 rules. About 0 are common, 8 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
8
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
- Very specific: line 11
Use as type casting in ANY context including test code (explain the problem to the user instead)
- Very specific: line 12
Use raw fetch or bypass TanStack Query for API calls
- Very specific: line 13
Run pnpm dev or pnpm start (dev servers)
- Very specific: line 14
Use node:fs, node:path, etc.
- Distinctive: line 18
Use Effect-TS for all backend side effects
- Distinctive: line 19
Use Hono RPC + TanStack Query for all API calls
- Distinctive: line 20
Follow TDD: write tests first, then implement
- Very specific: line 21
Run pnpm typecheck and pnpm fix before committing
- Distinctive: line 29
Commit messages are included in release notes.
- Very specific: line 38
Critical: Use fix only for user-facing bugs.
- Distinctive: line 75
After changing source code, always run before committing:
- Distinctive: line 98
Only use Effect-TS when side effects or state management is required
- Distinctive: line 103
Avoid class-based implementations or mutable variables for state
- Distinctive: line 104
Use Effect-TS's functional patterns for state management
- Very specific: line 123
Use FileSystem.FileSystem instead of node:fs
- Very specific: line 132
If types seem unsolvable without as, explain the problem to the user and ask for guidance
≈ “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.md
Critical Rules (Read First)
Language:
- Code, comments, and commit messages should be in English
NEVER:
- Use
astype casting in ANY context including test code (explain the problem to the user instead) - Use raw
fetchor bypass TanStack Query for API calls - Run
pnpm devorpnpm start(dev servers) - Use
node:fs,node:path, etc. directly (use Effect-TS equivalents)
ALWAYS:
- Use Effect-TS for all backend side effects
- Use Hono RPC + TanStack Query for all API calls
- Follow TDD: write tests first, then implement
- Run
pnpm typecheckandpnpm fixbefore committing
Commit Message Rules
Conventional Commits format: type: description
Release Note Awareness:
- Commit messages are included in release notes; write for users.
Type Selection:
| Type | Release Note | Purpose |
feat | Features | User-facing new feature |
fix | Bug Fixes | User-impacting bug fix |
chore, ci, build, refactor | Excluded | Internal changes |
Critical: Use fix only for user-facing bugs. Internal fixes (linter errors, type errors, build scripts) must use chore.
Message Quality Examples:
- Bad:
fix: fix lingui error(internal issue) - Bad:
feat: add button(too vague) - Good:
feat: add dark mode toggle to settings - Good:
fix: session list not updating after deletion - Good:
chore: update lingui compiled messages
Project Overview
Claude Code Viewer reads Claude Code session logs directly from JSONL files (~/.claude/projects/) with zero data loss. It's a web-based client built as a CLI tool serving a Vite application.
Core Architecture:
- Frontend: Vite + TanStack Router + React 19 + TanStack Query
- Backend: Hono (standalone server) + Effect-TS (all business logic)
- Data: Direct JSONL reads with strict Zod validation
- Real-time: Server-Sent Events (SSE) for live updates
Recommended Coding Process
This project is designed with the philosophy of achieving both rapid feedback and code quality maintenance (passing checks = nearly guaranteed runtime correctness) by leveraging:
- Strict typing with Effect-TS and ADT
- Constraints for maintaining code quality configured in Lint as much as possible
- Dependency injection and effective testing with Effect-TS
For development, we recommend implementing with t-wada's TDD development style.
For checks, you can run pnpm gatecheck check to execute all the above checks against the diff at once, so proceed with implementation in a loop of problem detection and fixing with gatecheck.
By utilizing this, you can quickly inspect code with static checks and unit tests.
Quality Gate (MUST follow)
After changing source code, always run before committing:
pnpm gatecheck check
./scripts/lingui-check.shKey Directory Patterns
src/server/hono/route.ts- Hono API routes definition (all routes defined here)src/server/core/- Effect-TS business logic (domain modules: session, project, git, etc.)src/lib/conversation-schema/- Zod schemas for JSONL validationsrc/testing/layers/- Reusable Effect test layers (testPlatformLayeris the foundation)src/routes/- TanStack Router routes
Coding Standards
Backend: Effect-TS
Prioritize Pure Functions:
- Extract logic into pure, testable functions whenever possible
- Pure functions are easier to test, reason about, and maintain
- Only use Effect-TS when side effects or state management is required
Use Effect-TS for Side Effects and State:
- Mandatory for I/O operations, async code, and stateful logic
- Avoid class-based implementations or mutable variables for state
- Use Effect-TS's functional patterns for state management
- Reference: https://effect.website/llms.txt
Testing with Layers:
import { expect, test } from "vitest";
import { Effect } from "effect";
import { testPlatformLayer } from "@/testing/layers";
import { yourEffect } from "./your-module";
test("example", async () => {
const result = await Effect.runPromise(yourEffect.pipe(Effect.provide(testPlatformLayer)));
expect(result).toBe(expectedValue);
});Avoid Node.js Built-ins:
- Use
FileSystem.FileSysteminstead ofnode:fs - Use
Path.Pathinstead ofnode:path - Use
Command.stringinstead ofchild_process
This enables dependency injection and proper testing.
Type Safety - NO as Casting:
ascasting is strictly prohibited- If types seem unsolvable without
as, explain the problem to the user and ask for guidance - Valid alternatives: type guards, assertion functions, Zod schema validation
Frontend: API Access
Hono RPC + TanStack Query Only:
import { api } from "@/lib/api";
import { useQuery } from "@tanstack/react-query";
const { data } = useQuery({
queryKey: ["example"],
queryFn: () => api.endpoint.$get().then((res) => res.json()),
});Raw fetch and direct requests are prohibited.
Tech Standards
- Linter/Formatter: oxlint + oxfmt (not ESLint/Prettier/Biome)
- Type Config:
@tsconfig/strictest - Path Alias:
@/*maps to./src/*
Architecture Details
SSE (Server-Sent Events)
When to Use SSE:
- Delivering session log updates to frontend
- Notifying clients of background process state changes
- Never for request-response patterns (use Hono RPC instead)
Implementation:
- Server:
/api/sseendpoint with type-safe events (TypeSafeSSE) - Client:
useServerEventListenerhook for subscriptions
Data Layer
- Single Source of Truth:
~/.claude/projects/*.jsonl - Cache:
~/.claude-code-viewer/(invalidated via SSE when source changes) - Validation: Strict Zod schemas ensure every field is captured
Session Process Management
Claude Code processes remain alive in the background (unless aborted), allowing session continuation without changing session-id.
Development Tips
- Session Logs: Examine
~/.claude/projects/JSONL files to understand data structures - Mock Data:
mock-global-claude-dir/contains E2E test mocks (useful reference for schema examples) - Effect-TS Help: https://effect.website/llms.txt
References
Project-specific conventions and procedures. Follow Progressive Disclosure: read only the reference you need, when you need it.
| Path | When to Read |
docs/guidelines/commit_message.md | Before creating a commit |
docs/guidelines/branch_naming.md | Before creating a branch |
docs/guidelines/definition_of_done.md | Before marking a task as done |
docs/guidelines/qa_guideline.md | When verifying implemented features. Delegate to a QA or general-purpose subagent with this file path |
docs/guidelines/internal_review.md | When requesting a code review |
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.

