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

.claude/agents/rust-architect.md

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

A Rust architecture guide for claude-code-history-viewer, a project for viewing Claude Code history. It requires design approval before implementation and tests for approved changes.

In plain words
What is it for?
Use it for Rust refactors, restructuring, or deeper architecture work in this project.
Why use it?
It prevents architectural refactors from leaving callers or tests outdated by requiring code inspection, a proposal, updated call sites, and measured verification.

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,290 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/rust-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 rust-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/jhlee0409/claude-code-history-viewer/rust-architect/github.svg)](https://agentmods.dev/agents/jhlee0409/claude-code-history-viewer/rust-architect)
Your own site
<a href="https://agentmods.dev/agents/jhlee0409/claude-code-history-viewer/rust-architect"><img src="https://agentmods.dev/badge/agents/jhlee0409/claude-code-history-viewer/rust-architect/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rust-architect

Your own site · 80×15
<a href="https://agentmods.dev/agents/jhlee0409/claude-code-history-viewer/rust-architect"><img src="https://agentmods.dev/badge/agents/jhlee0409/claude-code-history-viewer/rust-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 298 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.00053 $0.00298
Opus 5.5 $0.00021 $0.00119
Sonnet 5.5 $0.00011 $0.00060
Haiku 4.5 $0.00005 $0.00030

Measured 2mo ago against content hash 501edd24179d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rust-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 2mo 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/rust-architect.md · 30 lines

What it actually says

You are the rust 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. Write the failing test first. Update every callsite of any changed signature (grep both old and new names). Run cargo test and show the result.

Stack facts

  • Language / runtime: rust
  • Test runner: cargo test — cargo test
  • Build: cargo 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. 2mo ago First seen · 30 lines · 53 tokens per session scan A 501edd24179d

Subscribe to this mod's changes

rust-architect is an agent published in the GitHub repository jhlee0409/claude-code-history-viewer (2,290 stars, last pushed today), licensed MIT. It adds 53 tokens to every session and 298 once invoked, about $0.0002 per session on Opus 5.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

cleanup

Finds and removes dead code — unused files, exports, types, and dependencies — across the TS/React + Rust/Tauri monorepo. Use for dead-code audits and cleanup. Report-first; deletes only the safe tier after confirmation.

saeedkolivand/ai-job-hunter-app · 51 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

extension-reviewer

Primary reviewer for the browser extension (apps/extension/ — MV3, Chrome + Firefox) and the desktop⇄extension bridge (native-host + loopback WebSocket pairing/token auth, origin allowlist) plus the shared extension protocol. Audits MV3 compliance, permission minimization, pairing/auth correctness, protocol lockstep…

saeedkolivand/ai-job-hunter-app · 88 tokens

webgl-perf-profiler

Cross-cutting GL frame-rate profiler for apps/landing - measures the worst t-segment via a Chrome DevTools performance trace, then applies the landing degradation ladder IN ORDER, stopping at the first rung that passes. Has write access to apply rungs. GL frame-rate only - distinct from performance-profiler (desktop…

saeedkolivand/ai-job-hunter-app · 82 tokens

frontend-engineer

Frontend implementation - React, Next.js, TypeScript, UI components, styling, accessibility, browser work.

jpoley/flowspec · 24 tokens

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