claude-code-history-viewer: Agent for Claude Code

.claude/agents/typescript-architect.md

typescript-architect is an agent for Claude Code from jhlee0409/claude-code-history-viewer. It costs 57 tokens per session (320 once invoked), scanned A, original, MIT.

A design-first architecture role for a TypeScript and React codebase. It prepares a proposal and test plan before making approved changes.

In plain words
What is it for?
Use it for TypeScript architecture work, refactoring, restructuring, and changes that require updating multiple modules or interfaces.
Why use it?
It helps prevent quick patches that leave related code or callers broken. The approach keeps refactors grounded in the existing code and verified by tests.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is jhlee0409/claude-code-history-viewer's own configuration. It tells Claude Code how to work on claude-code-history-viewer itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-code-history-viewer configures →

About the project

Claude Code History Viewer is a desktop application and headless web server for browsing, searching, and analyzing conversation histories from many AI coding assistants. It helps developers review their past sessions across tools while keeping the data offline. The project is represented in the catalogue by agents, a setting, a command, and an instruction.

jhlee0409/claude-code-history-viewer · 2,136 stars · on GitHub · jhlee0409.github.io

Reuse

Borrowing it

Nothing to install: this file belongs to jhlee0409/claude-code-history-viewer. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/jhlee0409/claude-code-history-viewer/main/.claude/agents/typescript-architect.md
Clone the repo
git clone --depth 1 https://github.com/jhlee0409/claude-code-history-viewer

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for typescript-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/jhlee0409/claude-code-history-viewer/typescript-architect.svg)](https://agentmods.dev/agents/jhlee0409/claude-code-history-viewer/typescript-architect)
Your own site
<a href="https://agentmods.dev/agents/jhlee0409/claude-code-history-viewer/typescript-architect"><img src="https://agentmods.dev/badge/agents/jhlee0409/claude-code-history-viewer/typescript-architect.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 320 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.00320
Opus 5 $0.00028 $0.00160
Sonnet 5 $0.00011 $0.00064
Haiku 4.5 $0.00006 $0.00032

Measured 7d ago against content hash 09783b0184c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

typescript-architect scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/typescript-architect.md · 32 lines

What it actually says

You are the typescript architect for claude-code-history-viewer.

Operating mode — design-first, two phases

  1. DESIGN. Ground in the real code (Read / Grep). Produce a proposal: the change, the affected modules, the test plan, the risks. Edit / Write are BANNED in this phase. Wait for the user's approval.
  2. IMPLEMENT. Only after approval. Add or extend tests for the change. Update every callsite of any changed signature (grep both old and new names). Run vitest and show the result.

Stack facts

  • Language / runtime: node, typescript
  • Frameworks: react
  • Test runner: vitest — vitest
  • Build: tsc && vite build

Constraints

  • No surface patch that leaves callers stale. An interface change updates ALL callsites, then typecheck / tests.
  • Match the surrounding code's idioms, naming, and comment density.
  • Report measured facts (file:line, test counts), never "looks fine".
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 32 lines · 57 tokens per session scan A 09783b0184c5

Subscribe to this mod's changes

typescript-architect is an agent published in the GitHub repository jhlee0409/claude-code-history-viewer (2,136 stars, last pushed 2d ago), licensed MIT. It adds 57 tokens to every session and 320 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

migration-specialist

Use this agent when upgrading React versions, migrating between frameworks (CRA to Vite, Pages to App Router), updating major dependencies, running codemods, or handling breaking changes. This agent specializes in safe, incremental migration strategies.

PMDevSolutions/Aurelius · 50 tokens

astro-developer

SCOPE: ASTRO LANDING PAGE ONLY This agent is EXCLUSIVELY for the Dingo landing page (Astro, React, TypeScript in /langingpage/ directory). ❌ DO NOT USE for: Dingo transpiler/language development (use golang-developer instead) Go code in /cmd/, /pkg/, /internal/ (use golang-developer instead) Parser or AST work (use…

MadAppGang/dingo · 753 tokens

web-dev-expert

Use this agent when you need expert guidance on modern web development projects, particularly those involving TypeScript, React, Next.js, and deployment to Vercel. This agent excels at architectural decisions, technology stack recommendations, and implementing best practices for type-safe, scalable web applications.…

patrickserrano/lacquer · 0 tokens

Expert React Frontend Engineer

Expert React 19.2 frontend engineer specializing in modern hooks, Server Components, Actions, TypeScript, and performance optimization.

github/awesome-copilot · 30 tokens

Frontend Developer

React/TypeScript specialist for CoreAI DIY frontend development with React Flow, Zustand, and Tailwind CSS.

microsoft/skills · 24 tokens

tadpole-backend-specialist

Tadpole OS backend specialist for Rust, Axum, Tokio, sqlx, SQLite, AppState, agent registry, runner lifecycle, WebSocket events, and backend contract integrity.

DDS-Solutions/AI-TadPole-OS · 45 tokens