map-refresh

map-refresh is an agent for Claude Code from roarista/awesome-harness. It costs 57 tokens per session (917 once invoked), scanned A, original, MIT.

A repository maintenance agent that refreshes cached code maps and checks live maps, which describe files and relationships in a codebase.

In plain words
What is it for?
Regenerating code maps and dependency graphs, checking advertised commands and files, and reporting whether all applicable checks pass.
Why use it?
It keeps navigation and structural information accurate after code changes, instead of allowing stale information to mislead later work.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: reads .claude/ paths.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is REPO=$(git rev-parse --show-toplevel) bash tools/map-refresh.sh.

Good fit Regenerating code maps and dependency graphs, checking advertised commands and files, and reporting whether all applicable checks pass.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/roarista/awesome-harness
agentmods
npx agentmods add agents/roarista/awesome-harness/map-refresh

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 map-refresh

README.md
[![agentmods](https://agentmods.dev/badge/agents/roarista/awesome-harness/map-refresh/github.svg)](https://agentmods.dev/agents/roarista/awesome-harness/map-refresh)
Your own site
<a href="https://agentmods.dev/agents/roarista/awesome-harness/map-refresh"><img src="https://agentmods.dev/badge/agents/roarista/awesome-harness/map-refresh/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 map-refresh

Your own site · 80×15
<a href="https://agentmods.dev/agents/roarista/awesome-harness/map-refresh"><img src="https://agentmods.dev/badge/agents/roarista/awesome-harness/map-refresh.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 917 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00057 $0.00917
Opus 5.5 $0.00023 $0.00367
Sonnet 5.5 $0.00011 $0.00183
Haiku 4.5 $0.00006 $0.00092

Measured 1mo ago against content hash 321a991ab09b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

map-refresh 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 1mo 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.

agents/map-refresh.md · 85 lines

How it starts

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

You refresh and verify this repo's code maps. You do not write source code.

The one command

REPO=$(git rev-parse --show-toplevel) bash tools/map-refresh.sh

(or ~/.claude/tools/map-refresh.sh if the repo has no tools/). Add --check to verify without regenerating — that is the pre-commit form.

It prints a TIER/STATUS/DETAIL table and exits 0 only when every applicable check passed. Do not pipe it through head/tail and then read $? — you get the pager's exit code. That mistake has been made three times in this repo.

What each tier means, because they are not the same kind of thing

tier kind what the script does
L0 / ZOOM computed LIVE every call verifies: is it available, does it name files, do the commands it advertises actually exist
CODEMAP a CACHED file regenerates on sha drift; refuses to serve one over 30 KB
GRAPHIFY a CACHED graph regenerates when any tracked source file is newer than graph.json

A stale cache is worse than a missing one: it answers confidently. That is why a drifted cache is a FAIL, not a warning.

After the script

  1. If it exits 0 — report the table and stop. Nothing else to do.
  2. If a tier FAILs — report which, quote the DETAIL line, and stop. Do not attempt to fix a map generator; that is a separate unit.
  3. Spot-check that the work actually landed in the map. Name one file the unit added or changed, and confirm it appears:
    • python3 ~/.claude/tools/l1.py <its area> lists it
    • python3 ~/.claude/tools/skeleton.py <the file> shows its real signatures A map that regenerated cleanly but does not contain the new work is the failure this agent exists to catch — a green run is not evidence on its own.

Return contract

UNIT: map-refresh
STATUS: PASS | FAIL
TIERS: <the table, verbatim>
SPOT-CHECK: <file> appears in <l1 area | skeleton>, or MISSING
DEVIATIONS: <anything you could not verify>
NEXT: <commit is safe | which tier blocks it>

Read the full file on GitHub · 85 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. 1mo ago Changed · +3 lines · -214 tokens per session 321a991ab09b
  2. 2mo ago First seen · 82 lines · 271 tokens per session scan A b4a7bfb66959

Subscribe to this mod's changes

map-refresh is an agent published in the GitHub repository roarista/awesome-harness (1 stars, last pushed 4d ago), licensed MIT. It adds 57 tokens to every session and 917 once invoked, about $0.0002 per session on Opus 5.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-31.

Related

map-refresh compared with agents from other repositories

map-refresh next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
map-refreshroarista/awesome-harnessAgent14d agoMITA57Claude Code
playwright-test-generatormicrosoft/playwrightAgent99ktodayApache-2.0A151Claude Code
.NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginnersAgent79ktodayMITA33Claude Code
code-revieweranthropics/claude-cookbooksAgent54k2d agoMITA52Claude Code
AVM Owner Triagegithub/awesome-copilotAgent41ktodayMITA61Claude Code
Ultimate Transparent Thinking Beast Modegithub/awesome-copilotAgent41ktodayMITA11Claude Code
WinForms Expertgithub/awesome-copilotAgent41ktodayMITA19Claude Code