/gt:gt-upgradefrom gt
Upgrades a vault to the installed release by running pending migrations, merging PROTOCOL.md and CONVENTIONS.md changes, adding new Core rules, and stamping the vault. Use after installing a new release.
Ships in gt. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Under gt sandbox mode (the session-start line says SANDBOX MODE; gt_settings.py get sandbox_mode prints on) Claude's shell and file tools cannot write the vault, and by default cannot read it. Every vault step below then takes the route in this table instead: a gt-vault MCP tool runs the same script, with the same checks, outside the sandbox. Read vault files with vault_read, vault_search and vault_list. With sandbox mode off (the default) nothing changes: the shell steps run as written.
| Shell step | Under gt sandbox mode |
|---|---|
gt_upgrade.py status | vault_report {report: upgrade_status} |
gt_upgrade.py run --dry-run | vault_report {report: upgrade_preview} |
gt_upgrade.py run (and --record-base, --accept-merge, --allow-dirty), the vault's git commit or stash, rm <doc>.merge-conflict | terminal: an upgrade rewrites vault files wholesale and backs up into ~/.claude/golden-thread/ |
gt_write_queue.py … | vault_queue_write — the same path, op, section, key and hint, with the text itself as content (no --session: the server stamps its own). The broker decides at once and the result says apply, held or escalate. design.md and global-memory/ are refused (owner only) |
gt_broker.py drain | nothing to run after vault_queue_write; vault_queue_drain if anything was queued from the shell |
A terminal row is a step sandbox mode refuses on purpose — it changes settings or install state, or rewrites the vault wholesale. Give the user the exact command to run from a terminal, and carry on with the rest.
install.sh updates the plugin. This updates the vault — the migrations,
documents and rules that live in it.
Step 1 — Locate the vault. $GT_VAULT if set, else vault_path from
~/.claude/vault-config.json. If neither, tell the user to run /gt:gt-init.
Step 1b — Say which defaults the release flips. A release can change a default for people who never
touched the setting. Run python3 <base_dir>/../../scripts/gt_upgrade.py preview (--preview is the same) and name each line it
prints (it reads the CHANGELOG's Default flip: bullets between the vault's stamp and the installed
release). Say "no defaults flip" when it prints that, or that no CHANGELOG is beside the install. Read-only.
Step 2 — Say what is pending, before anything else.
python3 <base_dir>/../../scripts/gt_upgrade.py status --vault "<vault>"
Read the result out: the release, the vault's stamp, and every pending step with its reason. A vault with no stamp is treated as old, not current — every migration is offered, and each one detects its own work, so a step that already happened is a no-op.
Step 3 — Rehearse. Always.
python3 <base_dir>/../../scripts/gt_upgrade.py run --vault "<vault>" --dry-run
This writes nothing — no stamp, no backup, no files. Show the user what it would do and get their go-ahead before applying. This step exists because on 2026-09-11 a rehearsal run by hand wrote the live vault instead of the copy.
Step 4 — Commit the vault first. run refuses a dirty tree, and rightly: the
upgrade should be one git checkout away from undone. If the user has uncommitted
work, commit it or stash it. --allow-dirty exists but is not the default answer.
Step 5 — Apply.
python3 <base_dir>/../../scripts/gt_upgrade.py run --vault "<vault>"
It backs the vault up to ~/.claude/golden-thread/backups/ first, applies each step,
stamps the vault and writes a line to log.md through gt_log.py.
Step 6 — Report what needs a person. Exit 1 means a step needed an owner; needs a person: lines are printed by status and run on every call until they are dealt with.
install.sh prints them too but never acts on them.
| What you will see | What it means |
|---|---|
REFUSED: … duplicate ADR number(s) | two decisions share a number. The owner picks which keeps it; renumbering breaks inbound references, so never do it unasked |
CONFLICT on a document | the merge conflicted: the merged text with markers is beside the document as <doc>.merge-conflict; the document itself is untouched |
needs a person: no merge base | gt never recorded a base for this document, so it cannot tell your edits from the release's changes. It is left untouched and never merged — see No merge base below |
needs a person: merge held — merging <doc> would remove N line(s) from it | a clean merge would delete lines the user still has — most often because a release before 0.14.0 recorded their own document as the merge base, so the merge would simply replace it with the template. Never applied unasked — see Merge held below |
needs a person: conflict awaiting you: <path>.merge-conflict | a conflict gt already wrote, for this exact base, template and document. It is not redone (no merge, no stamp, no rewrite) until something changes — see Conflict awaiting you below |
Nothing else is skipped when one step needs a person. Re-running after they resolve it continues from there.
Edits you make to a vault document go through the write queue (Core rule 1). The sections
below sometimes ask you to change Projects/PROTOCOL.md or CONVENTIONS.md by hand. Never with a
direct Write/Edit — the PreToolUse guard denies it. For each ## section the user's choice
changes, write that section's whole new body to a scratch file and queue it:
python3 <base_dir>/../../scripts/gt_write_queue.py --vault "<vault>" --path Projects/PROTOCOL.md \
--op replace-section --section "<heading text>" --content-file <scratch file> \
--session <session id> --hint "upgrade: <what the user chose>"
python3 <base_dir>/../../scripts/gt_broker.py drain --vault "<vault>"
Drain before --record-base or --accept-merge: those read the document, so a request still
sitting in the queue would be recorded as never made. Report the drain in one line (N applied, N held, N escalated) and do not run --record-base while anything for that document is held or
escalated. A section that is new in the template is an append with --section "<heading>".
When the change is not confined to a few ## sections — text above the first ## heading,
a section removed or re-ordered, or edits scattered through the document — queue the whole
document instead, with --op replace-file --content-file <the complete new document> (no
--section). The broker records the document's hash at queue time and escalates if it changed
in between, so re-read it and queue again rather than forcing it.
Merging without a base would either overwrite the owner's edits or ignore the release, so gt waits for a person. With the user:
Show the difference between their document and the shipped template (both paths are in the message):
git diff --no-index "<vault>/Projects/PROTOCOL.md" "<template path from the message>"
Walk through it and let the user decide, section by section, what to keep from their version and what to take from the template. Queue the edits they choose for the vault document (above), then drain. Never decide for them, and never replace the document wholesale unasked.
When the document is what they want, record the base:
python3 <base_dir>/../../scripts/gt_upgrade.py run --vault "<vault>" --record-base PROTOCOL.md
(CONVENTIONS.md likewise.) This records the shipped template as the base,
meaning "reviewed against this release", so later releases merge only their own
changes — unattended, including from install.sh. Only this command records a base;
the installer never does.
The message lists the lines the merge would remove. With the user:
Show the difference between their document and the shipped template, as for No merge base above, and point out the lines that would go.
If they keep their document (the usual answer when the message says the base is the same as their document), queue and drain any edits they choose, then:
python3 <base_dir>/../../scripts/gt_upgrade.py run --vault "<vault>" --record-base PROTOCOL.md
This replaces the old base with the shipped template and saves the old base under
~/.claude/golden-thread/backups/.
If they want the merge exactly as proposed, lines removed included:
python3 <base_dir>/../../scripts/gt_upgrade.py run --vault "<vault>" --accept-merge PROTOCOL.md
Open <doc>.merge-conflict and resolve each <<<<<<< / ======= / >>>>>>> block
with the user: their text is on one side, the release's on the other.
Put the resolved text into the document itself (Projects/PROTOCOL.md), without any
markers — one queued replace-file with the complete resolved document, then drain — and delete
the .merge-conflict file once the drain applied them all (it is not vault content, so a
plain rm).
Record that the document is now reviewed against this release, then re-run Step 2:
python3 <base_dir>/../../scripts/gt_upgrade.py run --vault "<vault>" --allow-dirty --record-base PROTOCOL.md
After a conflict gt wrote, --record-base replaces the old base with the shipped
template (it refuses while the .merge-conflict file still exists). Without it the
resolved document would be merged against the old base again and conflict again
wherever the user kept their own text. --allow-dirty is only because the resolution
is uncommitted; have the user commit afterwards.
--record-base.--accept-merge.| Path | What |
|---|---|
Projects/golden-thread/.vault-version.json | the stamp: which release this vault's files came from |
Projects/golden-thread/.templates/ | the merge base — the template text the vault was last seeded or upgraded from |
~/.claude/golden-thread/backups/vault-*.tar.gz | the pre-upgrade backup |
The base lives in the vault on purpose: only the current and previous releases stay on disk, so a base kept in the plugin would disappear exactly when an old vault needed it most.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (shaven/golden-thread) — no native marketplace selected
npx claudepluginhub p/shaven-gt-golden-thread-plugin-golden-thread-0-22-040 skills in this plugin
/gt-adoptAdopt a vault gt did not create: inspect its folders, propose a layout manifest, write it only after a yes, then run the read-only checks. Use when the user says: adopt this vault, use gt on my existing vault, my notes are not laid out like gt, point gt at my own folders./gt-allinRun every check in one command (scan, lint, optimize, install health, credentials, runbook and wiki lint, tests, receipts) and report how many actually ran. Never pushes or applies a change. Use when the user says: run everything, check everything, all checks./gt-allin-commitCommit once checks pass and a test receipt covers every staged file. Refuses without evidence or on the default branch; never pushes. Use when the user says: commit it, commit once checks pass./gt-briefDraft a self-contained CLAUDE.md section for a project's code repo from its vault notes — what it is, the stable decisions, where it runs, what not to do — printed for review, never written. Use when the user says: /gt-brief, brief the repo, draft the repo CLAUDE.md, graduate this project to its repo, what should the repo's CLAUDE.md say./gt-calibrateRun model calibration now: re-run recent agent-stage work a tier and an effort up and down, have a zero-context judge compare, and show each stage's verdict and the command to apply it. Runs even when model_calibration is off. Use when the user says: calibrate the models, calibrate the agents, run model calibration, are my agents on the right model./gt-closeClose this session's work, the opposite of /gt:gt-open: write back what it learned and release its vault claim. Use when the user says: close this session, close out the session, I'm done for now, wrap up this session, close the project I opened. To complete or archive a project, task or handoff, use /gt:gt-complete.2 plugins in one repository ship this exact skill · first indexed Oct 31, 2026
Other plugins' skills for the same job