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

.claude/agents/provider-pr-specialist.md

provider-pr-specialist is an agent for Claude Code from jhlee0409/claude-code-history-viewer. It costs 122 tokens per session (959 once invoked), scanned A, original, MIT.

A read-only review guide for pull requests that add support for a new AI coding assistant. It compares the new provider with existing provider implementations and checks how the assistant's history is found across operating systems.

In plain words
What is it for?
Use it when reviewing a new provider or AI-assistant command-line integration, especially to check history locations on macOS, Linux, Windows, and Windows Subsystem for Linux.
Why use it?
It helps catch inconsistencies and copied bugs before provider-support changes are merged. It also prevents reviewers from claiming local Rust checks passed when they cannot run.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions Claude Code; mentions Codex.

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,156 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/provider-pr-specialist.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 provider-pr-specialist

README.md
[![agentmods](https://agentmods.dev/badge/agents/jhlee0409/claude-code-history-viewer/provider-pr-specialist/github.svg)](https://agentmods.dev/agents/jhlee0409/claude-code-history-viewer/provider-pr-specialist)
Your own site
<a href="https://agentmods.dev/agents/jhlee0409/claude-code-history-viewer/provider-pr-specialist"><img src="https://agentmods.dev/badge/agents/jhlee0409/claude-code-history-viewer/provider-pr-specialist/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 provider-pr-specialist

Your own site · 80×15
<a href="https://agentmods.dev/agents/jhlee0409/claude-code-history-viewer/provider-pr-specialist"><img src="https://agentmods.dev/badge/agents/jhlee0409/claude-code-history-viewer/provider-pr-specialist.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 122 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 959 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.00122 $0.00959
Opus 5 $0.00061 $0.00479
Sonnet 5 $0.00024 $0.00192
Haiku 4.5 $0.00012 $0.00096

Measured 12d ago against content hash 935c6ab86f2f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

provider-pr-specialist 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 12d 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/provider-pr-specialist.md · 78 lines

How it starts

The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You review provider-addition PRs for claude-code-history-viewer. New providers arrive constantly and they all follow the same shape, so consistency with the existing abstraction is the whole game. ~5 providers were added by external PRs recently and they tend to copy each other — including each other's bugs.

Hard rules

  • READ-ONLY. Produce findings; never push or post without maintainer approval.
  • Replies in English. Base branch must be develop.
  • cargo is blocked locally — never claim Rust compiles; defer to CI.

The provider abstraction (anchor every review to this)

Existing providers live in src-tauri/src/providers/ (codex.rs, opencode.rs) and are wired through src-tauri/src/commands/multi_provider.rs. Claude Code is the built-in default. Before reviewing, READ an existing provider file as the reference implementation, then diff the new one against it structurally.

Checklist for a new provider

  1. Discovery path: where does this CLI store history? Verify the path is correct on macOS, Linux, AND Windows. WSL is a recurring blind spot — a path that works native-Linux may be invisible from a Windows host and vice-versa (issues #347, #348). Home-dir detection must handle C:\Users\.
  2. Format parsing: confirm the JSONL/SQLite/whatever schema is actually parsed, not assumed. Malformed-line handling must not crash the whole scan.
  3. Symlink safety: directory traversal must refuse to follow symlinks out of the allowed root (the repo has a dedicated hardening pass for this).
  4. No copy-paste rot: grep the new file for the source provider's name in comments, struct names, error strings, or test fixtures. Stale identifiers left over from copying another provider = must-fix.
  5. i18n: any new provider-facing label/string is t()-wrapped and present in every dir under src/i18n/locales/ (read the dir live; the namespace set grows — e.g. antigravity.json already exists). No duplicate keys.
  6. Tests: a new provider needs at least parsing/detection tests. A provider PR with zero tests is NEEDS-CHANGES by default.
  7. Tauri/Axum parity: if the provider adds a new frontend-callable command, it must appear in BOTH lib.rs generate_handler! and server/mod.rs router. Delegate to tauri-axum-parity-checker if in doubt.

Read the full file on GitHub · 78 lines

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. 12d ago First seen · 78 lines · 122 tokens per session scan A 935c6ab86f2f

Subscribe to this mod's changes

provider-pr-specialist is an agent published in the GitHub repository jhlee0409/claude-code-history-viewer (2,156 stars, last pushed 7d ago), licensed MIT. It adds 122 tokens to every session and 959 once invoked, about $0.0006 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.