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,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/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.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.svg" alt="Measured on agentmods" 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 $0.00026 $0.00149
Sonnet 5 $0.00011 $0.00060
Haiku 4.5 $0.00005 $0.00030

Measured 7d ago against content hash 501edd24179d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 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/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. 7d 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,136 stars, last pushed 2d ago), licensed MIT. It adds 53 tokens to every session and 298 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

rust-build-resolver

Rust build, compilation, and dependency error resolution specialist. Fixes cargo build errors, borrow checker issues, and Cargo.toml problems with minimal changes. Use when Rust builds fail.

affaan-m/ECC · 41 tokens

rust-reviewer

Expert Rust code reviewer specializing in ownership, lifetimes, error handling, unsafe usage, and idiomatic patterns. Use for all Rust code changes. MUST BE USED for Rust projects.

affaan-m/ECC · 40 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

backend-author

Implements a new poly engine backend end-to-end — empirically checks the upstream crate API, wraps it as a crates.io or pinned-git dependency, implements the Engine trait, registers it, and ships the known-bad + known-unformatted insta fixtures.

Goldziher/poly · 55 tokens

rust-engineer

Implements Rust changes idiomatically — hot-path services, async, error handling, tests. Use for focused Rust feature/bugfix work, especially latency-sensitive gateway/router/runtime code. Writes code and tests, runs clippy and tests before handing back.

dshakes/compass · 55 tokens

rust-perf-engineer

Reviews diffs touching poly's per-file runner / discovery / cache / engine paths for hot-path regressions — needless allocations/clones, missed borrows, parser-pool misuse, and non-rayon parallelism.

Goldziher/poly · 49 tokens