refresh-wiki

refresh-wiki is a command for Claude Code from damusix/atomic-claude. It costs 66 tokens per session (5,211 once invoked), scanned A, original, MIT.

A command for updating a project wiki, either inside the current code repository or in a shared wiki covering multiple repositories. A repository is the project folder containing its code and history.

In plain words
What is it for?
Use it to refresh repository or cross-repository wiki content, optionally providing a root directory when the shared wiki is elsewhere.
Why use it?
It determines which wiki the request refers to and runs the matching update process, avoiding confusion between project documentation and broader team documentation.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it to refresh repository or cross-repository wiki content, optionally providing a root directory when the shared wiki is elsewhere.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/damusix/atomic-claude/refresh-wiki
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.

Clone the repo
git clone --depth 1 https://github.com/damusix/atomic-claude

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/damusix/atomic-claude/refresh-wiki/github.svg)](https://agentmods.dev/commands/damusix/atomic-claude/refresh-wiki)
Your own site
<a href="https://agentmods.dev/commands/damusix/atomic-claude/refresh-wiki"><img src="https://agentmods.dev/badge/commands/damusix/atomic-claude/refresh-wiki/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 refresh-wiki

Your own site · 80×15
<a href="https://agentmods.dev/commands/damusix/atomic-claude/refresh-wiki"><img src="https://agentmods.dev/badge/commands/damusix/atomic-claude/refresh-wiki.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,211 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.00066 $0.05211
Opus 5.5 $0.00026 $0.02084
Sonnet 5.5 $0.00013 $0.01042
Haiku 4.5 $0.00007 $0.00521

Measured 11d ago against content hash ed4c3460fcef, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

refresh-wiki 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 11d 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.

context/commands/refresh-wiki.md · 425 lines

How it starts

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

/refresh-wiki [root] — refresh the wiki. With no argument, auto-detects scope: if docs/wiki/index.md exists in the current repo the scope is repo; if a wiki/ directory exists at the cwd or a supplied [root] the scope is realm. Pass [root] to target a specific realm root.

Step 0 — Detect scope

A supplied [root], a wiki/ outside a git repo, or a realm-typed wiki/ means realm scope, a plain git repo means repo scope, and a git repo with an untyped wiki/ beside it is the user's call.

flowchart TD
    A{"root given?"} -->|yes| RL["Realm scope"]
    A -->|no| G{"Inside a git repo?"}
    G -->|no| W{"wiki/ present?"}
    W -->|yes| RL
    W -->|no| RP["Repo scope"]
    G -->|yes| S{"wiki/ beside it?"}
    S -->|no| RP
    S -->|yes| K{"Realm-typed index?"}
    K -->|yes| RL
    K -->|no| Q{"User picks?"}
    Q -->|repo| RP
    Q -->|realm| RL
  • Repo scope: covers a first run too, where docs/wiki/ is empty or has no index yet. Outside a git repo the R1 pre-flight stops it.

  • Realm-typed index?: wiki/index.md contains <wiki-type>realm</wiki-type>.

  • User picks?: ask the user in one batched question block; cancel or ambiguous input means repo scope:

    This directory is a git repo and has a wiki/ sibling. Which scope?
    - Repo scope (refresh docs/wiki/ inside this repo)
    - Realm scope (refresh wiki/ as a cross-repo wiki)
    

Repo scope

R1 — Pre-flight

git rev-parse --is-inside-work-tree

If not inside a git repo, stop:

not a git repo. /refresh-wiki (repo scope) requires a git repository.

R2 — Bootstrap check

test -f docs/wiki/scan.md

If the file does not exist, this is a first-time initialization. Print:

no existing signals found. initializing from scratch.

Set first_run=true. Continue to R3.

R3 — Steering file check

atomic wiki init --scope repo

This is idempotent: it writes the wiki steering scaffold if it does not exist, and no-ops silently if it already does. On creation the command prints created <path> on stdout — relay that line, followed by (edit to steer the inferrer).

Read the full file on GitHub · 425 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. 11d ago Changed · -121 lines scan C → A ed4c3460fcef
  2. 2mo ago Changed · +4 lines 8a8d9a9eb07e
  3. 3mo ago First seen · 542 lines · 66 tokens per session scan C fd762831ea7b

Subscribe to this mod's changes

refresh-wiki is a command published in the GitHub repository damusix/atomic-claude (117 stars, last pushed yesterday), licensed MIT. It adds 66 tokens to every session and 5,211 once invoked, about $0.0003 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-30.

Related

refresh-wiki compared with commands from other repositories

refresh-wiki next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
refresh-wikidamusix/atomic-claudeCommand117yesterdayMITA66Claude Code
agentloop-audit-dashboardalibaba/loongsuite-pilotCommand2703d agoApache-2.0A21Claude Code
agentloop-audit-queryalibaba/loongsuite-pilotCommand2703d agoApache-2.0A18Claude Code
generate-llmsopencue/cuecardsCommand10yesterdayMITA33Claude Code
audit-geoopencue/cuecardsCommand10yesterdayMITA24Claude Code
audit-seoopencue/cuecardsCommand10yesterdayMITA27Claude Code
add-agentivan-magda/claude-code-plugin-templateCommand725mo agoMITA12Claude Code