Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/matt1398/claude-devtools/navigation-scrollgit clone --depth 1 https://github.com/matt1398/claude-devtoolsWrote 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.
[](https://agentmods.dev/commands/matt1398/claude-devtools/navigation-scroll)<a href="https://agentmods.dev/commands/matt1398/claude-devtools/navigation-scroll"><img src="https://agentmods.dev/badge/commands/matt1398/claude-devtools/navigation-scroll.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00048 | $0.02414 |
| Opus 5 | $0.00024 | $0.01207 |
| Sonnet 5 | $0.00010 | $0.00483 |
| Haiku 4.5 | $0.00005 | $0.00241 |
Grade A, and why
claude-devtools:navigation-scroll 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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 233 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Navigation & Scroll Orchestration
How tab navigation (error highlights, search scrolling, auto-scroll) works end-to-end.
Architecture
Navigation Request Model (Nonce-Based)
// src/renderer/types/tabs.ts
interface TabNavigationRequest {
id: string; // crypto.randomUUID() — fresh nonce per click
kind: 'error' | 'search' | 'autoBottom';
highlight: 'red' | 'yellow' | 'none';
payload: ErrorNavigationPayload | SearchNavigationPayload | {};
source: 'notification' | 'triggerPreview' | 'commandPalette' | 'sessionOpen';
}
// Stored on Tab:
interface Tab {
pendingNavigation?: TabNavigationRequest; // Set by enqueue, cleared by consume
lastConsumedNavigationId?: string; // Tracks last processed request
}
Store Actions (tabSlice.ts)
| Action | Purpose |
|---|---|
enqueueTabNavigation(tabId, request) |
Set pendingNavigation on a tab |
consumeTabNavigation(tabId, requestId) |
Clear pendingNavigation, record lastConsumedNavigationId |
Navigation Sources
| Source | Slice | Creates |
|---|---|---|
| Notification click / test trigger | notificationSlice.navigateToError() |
ErrorNavigationRequest (red) |
| CommandPalette search result | tabSlice.navigateToSession() |
SearchNavigationRequest (yellow) |
Controller Hook: useTabNavigationController
Location: src/renderer/hooks/useTabNavigationController.ts
Phase state machine:
idle → pending → expanding → scrolling → highlighting → complete → idle
Key behaviors:
- Active-tab-only: Ignores
!isActiveTabto prevent cross-tab races - Nonce dedup:
activeRequestIdRef.current === pendingNavigation.idprevents reprocessing - Failure debounce: 500ms cooldown after failed navigation (
lastFailureAtRef) - Abort support: New navigation aborts in-progress one via
AbortController - Highlight-first: Highlight is set BEFORE scroll (best-effort scroll, guaranteed highlight)
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.
- 4d ago First seen · 233 lines · 48 tokens per session scan A aaec9dc1ee51
claude-devtools:navigation-scroll is a command published in the GitHub repository matt1398/claude-devtools (3,892 stars, last pushed 3mo ago), licensed MIT. It adds 48 tokens to every session and 2,414 once invoked, about $0.0002 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.
Other commands, from other repositories
add-agent
引导新增一个 Agent 适配器。用法 /add-agent.
superpowers-execute
Execute the current GSD phase plan with Superpowers instead of gsd-execute-phase.
deps-age
Analyze dependency freshness and maintenance activity.
setup
Diagnose-first project setup with state machine — scans, confirms, interviews, writes.
scan
Scan AWS account for cost optimization.
issue
Template Category: Action Prompt Level: 3 (Conditional).