claude-devtools:navigation-scroll

claude-devtools:navigation-scroll is a command for Claude Code from matt1398/claude-devtools. It costs 48 tokens per session (2,414 once invoked), scanned A, original, MIT.

Technical instructions for coordinating tab navigation and scrolling in a desktop coding application. It covers moving to errors or search results and keeping automatic scrolling in sync.

In plain words
What is it for?
Use it when changing tab navigation, restoring scroll positions, highlighting errors, scrolling through search results, or handling automatic scrolling to the bottom.
Why use it?
It gives developers one model for passing navigation requests through the application and avoiding common scrolling bugs.

Command for Claude Code

Install

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.

agentmods
npx agentmods add commands/matt1398/claude-devtools/navigation-scroll
Clone the repo
git clone --depth 1 https://github.com/matt1398/claude-devtools

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 claude-devtools:navigation-scroll

README.md
[![agentmods](https://agentmods.dev/badge/commands/matt1398/claude-devtools/navigation-scroll.svg)](https://agentmods.dev/commands/matt1398/claude-devtools/navigation-scroll)
Your own site
<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>
Per session 48 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,414 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00048 $0.02414
Opus 5 $0.00024 $0.01207
Sonnet 5 $0.00010 $0.00483
Haiku 4.5 $0.00005 $0.00241

Measured 4d ago against content hash aaec9dc1ee51, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

.claude/commands/devtools/navigation-scroll.md · 233 lines

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.

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 !isActiveTab to prevent cross-tab races
  • Nonce dedup: activeRequestIdRef.current === pendingNavigation.id prevents 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)

Read the full file on GitHub · 233 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. 4d ago First seen · 233 lines · 48 tokens per session scan A aaec9dc1ee51

Subscribe to this mod's changes

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.