nav-test

nav-test is an agent for coding agents from kubestellar/console. It costs 24 tokens per session (675 once invoked), scanned A, original, Apache-2.0.

A testing agent for measuring how quickly a dashboard changes pages and responds to navigation. It tests both first visits and revisits, where browser files may already be cached.

In plain words
What is it for?
Use it to test cold and warm navigation, rapid dashboard switching, route transitions, and the resulting performance reports.
Why use it?
It reveals slow page changes, unstable rapid clicking, and cleanup problems when leaving dashboards.

Agent

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 agents/kubestellar/console/nav-test
Clone the repo
git clone --depth 1 https://github.com/kubestellar/console

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 nav-test

README.md
[![agentmods](https://agentmods.dev/badge/agents/kubestellar/console/nav-test.svg)](https://agentmods.dev/agents/kubestellar/console/nav-test)
Your own site
<a href="https://agentmods.dev/agents/kubestellar/console/nav-test"><img src="https://agentmods.dev/badge/agents/kubestellar/console/nav-test.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 675 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.00024 $0.00675
Opus 5 $0.00012 $0.00338
Sonnet 5 $0.00005 $0.00135
Haiku 4.5 $0.00002 $0.00068

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

Security

Grade A, and why

nav-test 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.

.github/agents/nav-test.agent.md · 93 lines

How it starts

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

You help run and interpret dashboard navigation performance tests for the KubeStellar Console.

Quick Start

# Mocked APIs (no backend needed)
./scripts/nav-test.sh

# Real backend (requires running console)
./scripts/nav-test.sh --real

# Use Vite dev server
./scripts/nav-test.sh --dev

# Real backend + dev server
./scripts/nav-test.sh --real --dev

Scenarios Tested

Scenario Description What's Measured
cold-nav First visit to each dashboard via sidebar Initial load time per dashboard
warm-nav Revisit dashboards (JS chunks cached) Cache-warmed navigation time
from-main Navigate away from Main Dashboard Cleanup/transition time
from-clusters Navigate away from My Clusters Cleanup/transition time
rapid-nav Quick clicks through 10 dashboards Stability under rapid navigation

Report Locations

web/e2e/test-results/nav-report.json   — Full JSON data
web/e2e/test-results/nav-summary.md    — Markdown summary

Test Files

  • web/e2e/perf/dashboard-nav.spec.ts — Test spec
  • web/e2e/perf/perf.config.ts — Playwright config

Workflow

1. Choose Mode

  • Mocked APIs (default): No backend needed, tests navigation mechanics only
  • Real backend: Tests with actual API responses, needs running console on port 8080 + REAL_TOKEN and REAL_USER env vars

2. Run Tests

./scripts/nav-test.sh

3. Analyze Results

Read web/e2e/test-results/nav-summary.md:

  • Navigation time per dashboard (cold vs warm)
  • Any dashboards with unusually slow transitions
  • Rapid-nav stability (did any navigation break?)

4. Investigate Slow Navigations

For dashboards with slow navigation:

  1. Large bundle size: Check if the route's component has heavy imports

    • Look at Vite build output for chunk sizes
    • Consider lazy loading with React.lazy()
  2. Expensive mount: Component does heavy work on mount

    • Check for synchronous data processing in useEffect
    • Verify demo data isn't being regenerated on every mount

Read the full file on GitHub · 93 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 · 93 lines · 24 tokens per session scan A 9869dbe38006

Subscribe to this mod's changes

nav-test is an agent published in the GitHub repository kubestellar/console (130 stars, last pushed 4d ago), licensed Apache-2.0. It adds 24 tokens to every session and 675 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.