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/lykhoyda/rn-dev-agent/nav-graphgit clone --depth 1 https://github.com/Lykhoyda/rn-dev-agentWrote 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/lykhoyda/rn-dev-agent/nav-graph)<a href="https://agentmods.dev/commands/lykhoyda/rn-dev-agent/nav-graph"><img src="https://agentmods.dev/badge/commands/lykhoyda/rn-dev-agent/nav-graph.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.00021 | $0.00735 |
| Opus 5 | $0.00010 | $0.00367 |
| Sonnet 5 | $0.00004 | $0.00147 |
| Haiku 4.5 | $0.00002 | $0.00073 |
Grade A, and why
nav-graph 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 — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Navigation Graph
You are mapping the navigation topology of a React Native app. Follow the subcommand below.
Parsing Arguments
- If
$ARGUMENTSis empty orscan→ run Scan - If
$ARGUMENTSisread→ run Read - If
$ARGUMENTSstarts withfind→ extract screen name from remaining text, run Find - If
$ARGUMENTSstarts withnavigateorgoto→ extract screen name, run Navigate
Scan
- Call
cdp_nav_graphwithaction="scan". - Display results as a table:
- Navigator count, screen count, coverage percentage
- List of navigators with their kind, screen count, and active screen
- If not first scan: show new routes and removed routes
- Note the file path where the graph was saved.
- If coverage < 100%, note which navigators are unvisited and suggest navigating to them to expand the graph.
Read
- Call
cdp_nav_graphwithaction="read". - If no cached graph exists, suggest running
scanfirst. - Display the full navigator tree in a readable format:
root (tab) — 3 screens [active: Home] ├── Home (stack) — 4 screens [active: ProductList] │ ProductList, ProductDetail, Search, Categories ├── Cart (native-stack) — 3 screens │ CartList, Checkout, OrderConfirmation └── Profile (stack) — 2 screens ProfileView, EditProfile - Show metadata: last scanned, scan count, project, router type.
- If stale (>24h), suggest re-scanning.
Find
- Call
cdp_nav_graphwithaction="read"andscreen="<name>". - Display the screen's location: which navigator, navigator kind, path from root.
- Show the screen's properties: path, params, reliability score, visit count.
- Suggest the navigation approach:
- If the screen is in a tab navigator: "Navigate to parent tab, then to screen"
- If in a stack: "Push onto the stack from the parent screen"
- If path exists: "Deep link available: "
Navigate
- Call
cdp_nav_graphwithaction="navigate"andscreen="<name>". - If no graph exists, suggest running
scanfirst. - Display the navigation plan:
- Number of steps and estimated reliability
- Each step: action type, target screen, navigator kind
- Prerequisites (auth, permissions) if detected
- Deep link alternative if available
- Ask the user: "Execute this plan?" If yes:
- For each programmatic step: call
cdp_navigate(screen="<target>") - After each step: verify with
cdp_navigation_state - Report success/failure for each step
- For each programmatic step: call
- If a step fails:
- Try
device_find+device_pressas UI fallback - If still fails, report and ask user for guidance
- Try
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 · 71 lines · 21 tokens per session scan A 21e78e9641f4
nav-graph is a command published in the GitHub repository Lykhoyda/rn-dev-agent (11 stars, last pushed today), licensed MIT. It adds 21 tokens to every session and 735 once invoked, about $0.0001 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
dashboard-list-models
List reachable models from the dashboard registry. Usage /dashboard:list-models [annotated].
dashboard-session-abort-all
Abort multiple running sessions (asks which). Usage /dashboard:session-abort-all.
dashboard-flow-auto
Toggle autonomous mode for a session's flow. Usage /dashboard:flow-auto.
dashboard-server-tunnel-off
Disconnect the public tunnel. Usage /dashboard:server-tunnel-off.
dashboard-session-diff
Show file changes (git diff) for a session by id-prefix. Usage /dashboard:session-diff . Runs locally, no LLM.
dashboard-session-thinking
Set a session's thinking level. Usage /dashboard:session-thinking.