cc-update

A procedure for updating Claude Code, the command-line tool for using Claude during software development, or changing its pinned version. It points to the project’s central compatibility guide for the exact process.

In plain words
What is it for?
Use it when updating Claude Code, changing the pinned version, checking a new release, or responding to a request to update the tool.
Why use it?
It prevents the update process and version location from being rediscovered each time. It also provides a checklist for assessing how a new release affects the host and container.

Skill for Claude CodeCodex

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 skills/wingedguardian/genesis-agi/cc-update
Any agent
npx skills add WingedGuardian/GENesis-AGI --skill cc-update
Clone the repo
git clone --depth 1 https://github.com/WingedGuardian/GENesis-AGI

Made for: Claude Code, Codex.

Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,710 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 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.00106 $0.07710
Opus 5 $0.00053 $0.03855
Sonnet 5 $0.00021 $0.01542
Haiku 4.5 $0.00011 $0.00771

Measured today against content hash c00b360b5669, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

cc-update scanned grade B with 2 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 today.

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.

`~/.claude/settings.json`), so the pin is the only mover; an ad-hoc `npm i -g` gets healed back

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

> `curl -fsSL https://raw.githubusercontent.com/anthropics/claude-code/main/CHANGELOG.md -o ~/tmp/cc_changelog.md`
.claude/skills/cc-update/SKILL.md · 414 lines

How it starts

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

CC Update — start from the canonical source, don't rediscover

Genesis's Claude Code update process is fully standardized. This skill exists so a session executes that process instead of re-deriving it (grep archaeology every time). If you find yourself hunting for where the pin lives or how the host updates, STOP and read the doc.

Authoritative source — read these FIRST

  • docs/reference/cc-compatibility.md§Updating Claude Code (host + container) (the exact steps) and §CC Update Evaluation Checklist (the 8-lens impact eval).
  • The pin is the single source of truth: CC_VERSION (+ NODE_MAJOR) in scripts/lib/cc_version.sh.

The process in one breath — step numbers MATCH §Updating Claude Code in the doc

Deliberately the same numbering in both files: "step 4" means the same thing in each. The doc is authoritative for detail; this is the one-breath version. If a number here disagrees with the doc, the doc wins — and that disagreement is a bug worth fixing rather than working around.

Pick the target before anything else. npm view @anthropic-ai/claude-code version gives latest; use an explicit older version if you are deliberately not chasing latest. Every step below is defined over (pinned, target], so nothing can begin until target is fixed — and re-picking it later restarts the procedure (step 5).

⛔ GATE — FULL CHANGELOG READ. MANDATORY, NO EXCEPTIONS. (part of step 1, before any triage)

Read EVERY release entry in (pinned, target] IN FULL before step 1's triage. No pin bump proceeds without this.

Fetch it fresh — nothing in Genesis maintains a changelog cache: curl -fsSL https://raw.githubusercontent.com/anthropics/claude-code/main/CHANGELOG.md -o ~/tmp/cc_changelog.md (mkdir -p ~/tmp first — curl -f will not create it.) That path is a scratch copy, NOT a recon-pulled cache. Before reading, confirm the file CONTAINS a ## <target> heading (grep -c '^## <target>$') — a stale copy fails exactly that, which is how it would otherwise pass unnoticed while the whole new range goes unread. Do NOT also require the FIRST heading to equal the target: under the mid-soak rule you may deliberately finish on a target latest has already passed, and equality could never be satisfied by any re-fetch.

If the target released hours ago its heading may not be in main's CHANGELOG.md yet — the one case no re-fetch fixes. Cover the tail from the GitHub release bodies, but enumerate what is missing first: gh release view reads ONE release, so gh release view v<target> alone under-reads whenever more than one release in (pinned, target] is absent, and the gate closes over releases nobody read. gh release list --repo anthropics/claude-code --limit 60 --json tagName -q '.[].tagName', keep the tags in range with no ## <version> heading in the file, then gh release view <tag> for EACH. Say in the durable row which source covered which releases.

Scale: (2.1.218, 2.1.246] measured 25 releases / ~88KB. The load-bearing item can sit anywhere, including deep inside the newest release.

The analyzer is a TRIAGE SUMMARY, never a substitute. It prioritises; it does not discharge the gate.

Record it as a DURABLE row, not a chat line — opened BEFORE, closed AFTER. session_ledger_add always creates an open row, and its own return message says it "will re-inject into every post-compaction window until closed" (session_charter_tools.py::_impl_session_ledger_add). So a row added after declaring the gate done is a permanent false open item in charter counts, compaction injections and repo-pulse matching. Open it, do the read, then close it:

resp = session_ledger_add(session_id=<this session>,
                          text="CC changelog gate: reading (2.1.X, 2.1.Y] from <source>")
# resp is a DICT — the id is resp["id"], not resp itself.
# session_id is required, but a missing one returns {"error": …} rather than raising:
# CHECK the response, or you will proceed believing a row exists that does not.
…the read…
session_ledger_update(item_id=resp["id"], status="done",
                      evidence="read in full from <source>, <date>; <N> releases covered")

The row is session-scoped, so across a 2–3 day soak the session that opens the PR is not the one that ran the gate. What makes the gate checkable later is the carry-over: a CC-Gate-Changelog: trailer in the PR body plus the §Version History clause — see §Gate receipts in docs/reference/cc-compatibility.md for both receipts and what their absence means. The pin-receipt check blocks a pin-forward PR that is missing either — at MERGE time, where the body that actually merges is the one read. The cc-pin-receipts CI job runs the same checker advisorily and never fails a build. For rows added from 2026-08-26 onward, a Version-History row with no "changelog read" clause means the gate was not run — treat that as blocking at merge.

Delegation is allowed — with the SAME context and rigor, never a naive "summarize this." Brief the sub-agent with §Delegating the full changelog read below, then adversarially spot-check its load-bearing findings against ground truth. A delegated review is not a rubber-stamp.

Origin (2026-08-26). A session re-targeted 245→246 off the headline delta and let the changelog-reading analyzer stand in for actually reading the changelog. The cause was mechanical, not just human: on main the analyzer fetches only the newest 5 GitHub releases, keeps just the new version's body, and truncates it at 1000 chars — v2.1.246's body is ~9.3KB, so it saw the first ~8 of ~60 bullets and structurally could not surface the rest. The later full read found real Genesis-relevant 246 items the triage had missed: subagent maxTurns now returning partial output, -p --continue/--resume plan-mode resume, and a --strict-mcp-config startup-hang fix that lands directly on Guardian Diagnosis.

  1. Evaluate — intake, the ⛔ GATE above, then triage. Intake, never from scratch: memory_recall + docs/reference/cc-compatibility.md §Known Issues / §Version History + npm view @anthropic-ai/claude-code@<target> engines.node + a quick community sweep (Reddit/forums) for regressions the changelog omits. Triage: recon_cc_update_check(old, new) MCP (backed by src/genesis/recon/cc_update_analyzer.py). Know its real coverage: today it fetches only the newest 5 GitHub releases, matches the target version's tag, and truncates that body at 1000 chars — so on a multi-release jump it sees a fraction of ONE release, or NOTHING at all once the TARGET's own tag ages out of the newest 5. That is likely mid-soak: step 5 holds a candidate for 2-3 days while CC ships ~daily. When that happens the LLM is never called at all_fetch_changelog returns "", and analyze gates the LLM path on if self._router and changelog, so it falls through to a hand-built dict with details="Changelog not available". The confident-looking informational verdict in that case is a deterministic fallback, not a judgement — do not read it as "the analyzer looked and found nothing". Two traps in reading that verdict. (a) _fetch_changelog returns "" from five distinct paths — a non-zero gh exit, a timeout, a bare except, a non-list payload, and the tag-not-in-newest-5 case. An expired gh auth produces a byte-identical details="Changelog not available", so confirm gh auth status before concluding the tag aged out. (b) There is a SECOND non-judgement path: when the LLM was called and failed, the keyword heuristic also returns informational with real changelog text. Tell them apart by the " (LLM analysis unavailable)" suffix on summary — without that suffix and with a non-empty details, the verdict is a genuine LLM read. (A whole-(old, new] map-reduce rewrite exists on an unmerged branch — unmerged as of 2026-08-26; grep the file before relying on it. It would still omit the oldest chunks on a very large range, so the GATE does not retire either way.) Triage every hooks / MCP / CLI-flag / subagent / permissions delta. Rule: a changelog claim that "we depend on X" only gates the bump if verified against LIVE usage — the TodoWrite lesson: a removed feature Genesis measured 0 uses of is hygiene, not a blocker.
    • Take the PRE-align model-alias sample HERE, in step 1. It belongs to the first never skippable step, not to step 2 — step 2 has a legitimate skip condition, and a sample nested under it silently disappears exactly when that skip fires, leaving the step-4 "after" reading with nothing to compare against. It cannot move later either: step 3 replaces the CLI, so this is the last point at which the old binary is still installed. See §Model-alias drift below for the invocation; the post-align half is step 4.
  2. Deploy current main FIRSTscripts/update.sh as a background task, BEFORE aligning the candidate, so the soak runs on current code. Otherwise step 8 lands accumulated Genesis change AND the CC bump together and you cannot attribute a regression to either. Checkable skip condition — three parts, all required: git fetch origin first (an unfetched origin/main is stale and produces a false "already current"); take the newest update_history_recent row whose status == "success" — the tool deliberately returns every attempt including failure and rolled_back (update_history.py:98-113), and a failed attempt's later timestamp otherwise reads as evidence of a deployment that never happened; then confirm that row's new_commit is an ancestor-or-equal of the fetched origin/main head — mechanically, git merge-base --is-ancestor "$(git rev-parse origin/main)" <new_commit> exits 0. Skip only if all three hold.
  3. Align the CONTAINER ONLY to the candidate.
    source scripts/lib/cc_version.sh   # NOTE: this sets CC_VERSION to the repo PIN
    CC_VERSION=<candidate>             # standalone assignment, AFTER the source
    cc_ensure_local
    cc_shadow_scan
    
    ⚠️ Never write CC_VERSION=<candidate> cc_ensure_local and then a bare cc_shadow_scan. An assignment prefix on a function call does not persist past that call, so the scan would run on the OLD pin while the container is on the candidate — and if any copy sits at the old pin it crowns that one canonical and deletes the freshly-installed candidate (cc_version.sh:251). Full rationale: doc §Updating step 3. claude --version is NOT sufficient here: it spawns a fresh child, which reads the new on-disk binary and truthfully reports the candidate while the session asking the question is still executing the old one. Run scripts/check_cc_running_versions.sh instead — it compares each live process's actual mapped binary against the one on disk. Check the Node floor firstnpm view @anthropic-ai/claude-code@<candidate> engines.node vs node -v. If it rises above the container's Node, STOP: no container-side Node transition tool exists today (install.sh:473-477 hardcodes >= 20 and never reads NODE_MAJOR), and a failed align is not a clean no-op — npm install -g has already replaced the working CC before the verify runs.
  4. Validate the CANDIDATE against candidate-shaped expectations, not step 9's. During the soak the correct state is container == candidate, host == old pin — step 9 requires BOTH to equal the pin, which cannot hold yet. Run the critical paths, the doc's §Known Issues, and each behavior the impact eval flagged; any Guardian-path check exercises the host's old binary, so candidate-specific Guardian behavior needs a container-side exercise.
    • Run scripts/check_cc_running_versions.sh BEFORE validating, not just before the soak. Same trap as step 3 and step 5: validation performed inside a session still mapped to the replaced binary is evidence about the OLD release, and it is the evidence the whole changelog gate feeds into. The check belongs at every point that produces evidence about the candidate — steps 3, 4, 5 and 9 — not only at the soak boundary.
    • Take the POST-align model-alias sample here and compare it against the pre-align one from step 2 — nothing else in the system will catch an alias remap. See §Model-alias drift below for the invocation and for which modelUsage entry to read (it is not the first one).
  5. Soak 2–3 days under real use — but the clock does not start until every interactive session is actually ON the candidate. A long-running CC process keeps its original binary mapping until it restarts; npm replaces the package underneath it. So relaunch the foreground sessions, then prove it rather than assuming it:
    scripts/check_cc_running_versions.sh    # exit 0 required before the clock starts
    
    Re-run it at soak END too — sessions started mid-soak are fine, but one that predates the align and was never relaunched has been contributing evidence about the OLD release the whole time. Origin (measured on a live install): a soak was declared started and ran its full length with a majority of live CC processes — and most interactive sessions — still executing the replaced predecessor. cc_shadow_scan was clean throughout (it scans on-disk copies, not running processes) and claude --version reported the candidate the whole time, because it spawns a fresh child. Nothing in the procedure would have caught it.

Read the full file on GitHub · 414 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. today Changed · +1 lines c00b360b5669
  2. yesterday First seen · 413 lines · 106 tokens per session scan B 0ec8548f3044

Subscribe to this mod's changes

cc-update is a skill published in the GitHub repository WingedGuardian/GENesis-AGI (93 stars, last pushed today), licensed MIT. It adds 106 tokens to every session and 7,710 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it B with 2 findings (reads agent configuration directories, makes network calls). 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

survey-methodology

Plan-time methodology contract for survey/review/report projects. Forces an audit-grade survey instead of a paper-trust summary. Distilled from 240 reviews (2024-2026) across 9 domain clusters — physics/RMP/Living Reviews, chemistry/materials, biology/medicine narrative + Cochrane SRs, CS/ML/AI, math/Acta Numerica…

Muuuun/luxas · 161 tokens

review

Write domain-authentic review articles that synthesize rather than stack. Covers 10 scientific domains (physics, chemistry, biology, medicine, mathematics, computerscience, earthenvironment, astronomy, economics, materials) with per-domain style guides mined from landmark reviews in RMP / Nat. Rev. X / Annu. Rev. /…

Muuuun/luxas · 97 tokens

search

Unified academic paper search, citation chains, paper download (arXiv LaTeX/PDF, Sci-Hub), figure extraction from papers, LaTeX source reading, BibTeX fetching, web search, and browser automation for Cloudflare-protected sites (PRL, Science, Nature, Google Scholar).

Muuuun/luxas · 65 tokens

matplotlib-figures

Publication-quality data plots via matplotlib with venue-specific styles. Use for generating your own figures (timelines, comparison charts, data summaries, heatmaps) that you add to the LaTeX report. Your brain prompt supplies the venue-specific style directory as {{VENUESPECIFICDIR}} — use that value wherever this…

Muuuun/luxas · 79 tokens

qec-construct

Verifier-in-the-loop CONSTRUCTION of quantum error-correcting codes with transversal non-Clifford gates (CCZ/T). Applies whenever the project goal is a new or better code/construction — INCLUDING search-phrased goals ("find codes beating X"), where the construct-loop (propose algebraic rule → qverify → debug) is the…

Muuuun/luxas · 148 tokens

venue-specific

Venue-specific formatting requirements for academic journals and conferences across all disciplines. Covers Nature, Science, Cell, PRL, NEJM, Lancet, JACS, NeurIPS, ICML, and 30+ top venues. Use when writing, formatting, or checking a paper for a specific target venue.

Muuuun/luxas · 65 tokens