nav-compact

nav-compact is a skill for Claude Code from alekspetrov/navigator. It costs 38 tokens per session (1,973 once invoked), scanned B, original, no licence file.

A conversation-cleanup tool that clears the visible working context while saving a marker for important knowledge. It is intended for starting a fresh part of a task without losing the preserved context.

In plain words
What is it for?
Use it when changing tasks, finishing a task, or nearing the conversation's token limit. It also responds to requests to clear the context or start fresh.
Why use it?
Long coding conversations can become crowded or cause the agent to lose track of the current task. This helps reset the conversation when that happens.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the navigator plugin — 35 skills, 6 agents shipped together

Good fit Use it when changing tasks, finishing a task, or nearing the conversation's token limit. It also responds to requests to clear the context or start fresh.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alekspetrov/navigator/nav-compact
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.

Any agent
npx skills add alekspetrov/navigator --skill nav-compact
Clone the repo
git clone --depth 1 https://github.com/alekspetrov/navigator

Made for: Claude Code.

Or install navigator, the plugin that ships this one along with the rest of its 35 skills, 6 agents.

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-compact

README.md
[![agentmods](https://agentmods.dev/badge/skills/alekspetrov/navigator/nav-compact/github.svg)](https://agentmods.dev/skills/alekspetrov/navigator/nav-compact)
Your own site
<a href="https://agentmods.dev/skills/alekspetrov/navigator/nav-compact"><img src="https://agentmods.dev/badge/skills/alekspetrov/navigator/nav-compact/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nav-compact

Your own site · 80×15
<a href="https://agentmods.dev/skills/alekspetrov/navigator/nav-compact"><img src="https://agentmods.dev/badge/skills/alekspetrov/navigator/nav-compact.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,973 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown 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.1 $0.00038 $0.01973
Opus 5 $0.00019 $0.00986
Sonnet 5 $0.00008 $0.00395
Haiku 4.5 $0.00004 $0.00197

Measured 9d ago against content hash 0731e2cc29f5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade B, and why

nav-compact scanned grade B with 1 finding 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 9d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

HAS_HOOK=$(grep -l "nav_dispatch" .claude/settings.json .claude/settings.local.json 2>/dev/null | head -1)
skills/nav-compact/SKILL.md · 315 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 9d ago Changed 0731e2cc29f5
  2. 12d ago First seen · 315 lines · 38 tokens per session scan B 2c874dcf971c

Subscribe to this mod's changes

nav-compact is a skill published in the GitHub repository alekspetrov/navigator (232 stars, last pushed yesterday), with no licence file. It adds 38 tokens to every session and 1,973 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

session-logs

Search, browse, and analyze session history to recall past conversations, decisions, and completed work.

profclaw/profclaw · 22 tokens

memory-manager

Store, recall, and organize persistent context, preferences, and knowledge across sessions.

profclaw/profclaw · 18 tokens

vellum-memory-v3-migration

One-time migration of an existing memory-v2 concept corpus into the memory-v3 section-grain "wiki" — topical articles with a stand-alone lead and queryable sections — with loss-proof staging, assistant-reviewed authoring, and a retrieval-eval gate before cutover.

vellum-ai/vellum-assistant · 63 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens

daily-briefing

Proactive daily briefing that fires on a recurring schedule, pulls recent memory and workspace context, composes a structured summary (action items, progress, radar, next steps), and delivers it to all active channels. Enable with a time like "set up my daily briefing at 9am". Disable, reschedule, or check status at…

vellum-ai/vellum-assistant · 75 tokens

ha-knowledge

Working method for the Hope Agent knowledge space — how to capture, organize, link, retrieve, and maintain Markdown notes well with the note tools. Load whenever you are reading or writing notes in an attached knowledge base. Trigger on: user asks to take / save / organize / restructure notes, build or grow a…

shiwenwen/hope-agent · 187 tokens