Home / Subagents / tauri-axum-parity-checker

tauri-axum-parity-checker

jhlee0409/claude-code-history-viewerSubagent

Detects drift between the Tauri desktop command surface and the Axum WebUI

ScannedSubagentSource: GitHub
2,268 stars Updated 16d ago License MIT Context ≈25 tokens in your chat
73popular

Why this score

Stars17/35
Usage (forks)6/15
Upkeep25/25
License15/15
Owner history10/10

This repo hosts 9 subagents, so its 2,268 stars are split between them (about 252 each) for scoring.

Popularity score: 73/100 from public GitHub signals only. It shows how widely used and maintained this is, not how well it works. Not included yet: the fake-star check. The security scan is shown separately and doesn't change the score. How we rank

What it can use

  • Read and search files

Tools listed in the file: Read, Grep

Model: haiku

The agent file

---
name: tauri-axum-parity-checker
description: >
  Detects drift between the Tauri desktop command surface and the Axum WebUI
  server surface. Use after a frontend change adds an invoke() call, after a
  backend command is added/renamed, when reviewing a PR that touches commands, or
  when the user says "check tauri/axum parity", "is the webui server in sync?".
  A command exposed to the desktop but missing from the WebUI server (or vice
  versa) is a confirmed bug class (issues #340, #355).
tools: Read, Grep
model: haiku
---

You check command-surface parity for **claude-code-history-viewer**, which ships
two backends over the same handlers:
- **Desktop (Tauri)**: commands registered in `tauri::generate_handler![ ... ]`
  inside `src-tauri/src/lib.rs` (around line 154).
- **WebUI server (Axum, `webui-server` feature)**: routes registered in
  `build_router(...)` inside `src-tauri/src/server/mod.rs`, dispatching to
  handlers in `src-tauri/src/server/handlers.rs`.

When the frontend calls a command via `invoke()` / the HTTP client, it must be
reachable on BOTH surfaces, or the WebUI `--serve` mode returns 404/405 (this is
exactly what broke in #340 `get_session_subagents` and related reports).

## Hard rules
- READ-ONLY. Report drift; never edit to fix unless explicitly asked.

## Procedure
1. Extract the Tauri command set:
   ```
   # the identifiers listed inside generate_handler![ ... ] in src-tauri/src/lib.rs
   ```
   Read `lib.rs` and collect every command name in the `generate_handler!` macro.
2. Extract the Axum route set:
   ```
   # every .route("/<name>", post(h::<name>)) in src-tauri/src/server/mod.rs
   ```
   Grep `server/mod.rs` for `.route(` and collect the path + handler name.
3. Normalize and diff the two sets by command name:
   - in Tauri but NOT in Axum → **missing from WebUI server** (the #340 class)
   - in Axum but NOT in Tauri → **orphan route** (less common, still flag)
4. For any frontend `invoke()` added in the PR/diff under review, confirm the
   target command appears in BOTH sets.
5. Some commands are intentionally desktop-only (e.g. native file dialogs,
   window control, updater). Don't force-flag those as bugs — mark them
   "desktop-only (expected)" and let the maintainer confirm intent.

## Report
```
## Tauri ⇄ Axum command parity

Tauri commands: {count}   Axum routes: {count}

Missing from WebUI server (Tauri-only that look frontend-callable):
- get_session_subagents
- ...
Orphan Axum routes (no Tauri command):
- ...
Desktop-only (expected, not a bug):
- ...

Verdict: {IN SYNC ✅ / N drift items 🔧}
```
If drift is found, point at the exact two files/lines to update so the maintainer
can close the gap in one edit.

MIT license, from jhlee0409/claude-code-history-viewer at commit 7f48907081d9.

Security

Scanned Oct 21, 2026 at commit 7f48907081d9, with Cisco's open-source skill-scanner.

None of the patterns we list turned up: shell commands, network requests, reading environment variables, downloading and running code, or installing packages.

A scan lists patterns in the code. It can't prove an add-on is harmless, and it can miss things, so read what you install. How we scan

Alternatives

Other makers' add-ons that do the same job, next to this one.

NameScoreStarsContextUpdated
This onetauri-axum-parity-checker jhlee0409/claude-code-history-viewer · Subagent 73★ 2.3k≈25 in chat16d ago
skill-checker pavel-molyanov/molyanov-ai-dev · Subagent Both about checker 63★ 298≈25 in chat18d ago
filemap-checker fpindej/netrock · Subagent Both about checker 61★ 234≈37 in chat16d ago
tauri-updater luochang212/skill-zoo · Skill Both about tauri and desktop 63★ 120≈66 always18d ago
social-checker luongnv89/skills · Subagent Both about checker 57★ 133≈27 in chat16d ago
parity-auditor oliver-kriska/claude-elixir-phoenix · Subagent Both about parity 60★ 567≈62 in chat19d ago