/gt:gt-grantfrom gt
Lets one command through for a limited time without lowering the overall lockdown level. Supports once, N minutes/hours, or forever grants. Lists active grants with time remaining and revokes them.
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.
| Shell step | Under gt sandbox mode |
|---|---|
gt_grant.py list | terminal: it reads ~/.claude/golden-thread/lockdown/, which sandbox mode fences |
gt_grant.py add / revoke | terminal: a grant writes ~/.claude/settings.json, which sandbox mode write-protects on purpose — and a grant is the user's to give, so it is always run by them |
A terminal row is a step sandbox mode refuses on purpose. Give the user the exact command to run from a terminal, and carry on with the rest.
Claude Code refuses a command it has no permission rule for, and its refusal says the cure: "the user can add a permission rule". A hand-written rule lasts forever, which is the wrong cure for a one-off. A grant is that rule with a lifetime:
| Duration | What happens |
|---|---|
once | the first matching command runs, then the rule is taken out (and it lapses after an hour if unused) |
30m, 2h | the rule stands for that long, then gt takes it out. A command after it ends asks again |
forever | a plain allow rule that survives gt being uninstalled. Backed up first |
The broad switch for most users is the lockdown level (/gt:gt-settings lockdown). A grant is for the one command a level does not cover — for example a ship script.
The user, in a terminal. gt_grant.py add refuses to run without one, and asks gt unlock for a fresh confirmation when unlock is on. Do not run it, and do not try to reach the same effect another way: an assistant granting itself permission is exactly what the refusal is there to stop. When a command was refused, give the user the line to run and wait.
python3 ~/.claude/golden-thread/hooks/gt_grant.py add "make deploy" 30m
python3 ~/.claude/golden-thread/hooks/gt_grant.py add "scp *" once
python3 ~/.claude/golden-thread/hooks/gt_grant.py list
python3 ~/.claude/golden-thread/hooks/gt_grant.py revoke <id>
PATTERN is the command, exact (make deploy), or a prefix ending in * (scp *), or a Claude Code rule you write yourself (Bash(...), Edit(./docs/**)).
Bash, Edit): that is the insecure lockdown level, chosen on purpose.~/.ssh, .env, cloud logins).A grant is a permission rule Claude Code reads from settings.json; it applies when Claude Code reloads its settings (restart it if a command still asks). Ending a grant mid-session is done by a PreToolUse check that makes Claude Code ask again once the clock has passed it — gt's guards only ever tighten, none says "allow". The matching gt does for that (and for spending a once) is an approximation of Claude Code's own; the rule in settings.json is what Claude Code enforces. Every use is one line in ~/.claude/golden-thread/lockdown/log.jsonl (the grant, its rule, a hash of the command — never the command).
gt's PermissionDenied hook prints the cure: the narrow one first (a grant, with the line to run), then the lowest lockdown level whose rules cover the command, if any. Relay it to the user as it is. Do not suggest raising the level for a one-off.
What SKILL.md sets; muted values are Claude Code's defaults
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-21-342 skills in this plugin
/gt-allinRun every check in one command — scan, lint, optimize report, install health, credentials, runbook and wiki lint, the repo's tests, validation receipts — and report how many actually ran, not just what they found. Never pushes, never applies a change./gt-allin-commitCommit once the checks pass and a test receipt covers every staged file. Refuses without evidence, refuses on the default branch, and never pushes./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 the model calibration pass now: re-run recent agent-stage work one tier down, one tier up and one effort higher, have a zero-context adjudicator judge the outputs, and show keep, move-down, move-up or raise-effort for each stage with the command to apply it. An alias for /gt:gt-optimize --only calibration that runs even when model_calibration is off. Use when the user says: calibrate the models, calibrate the agents, run model calibration, recalibrate the models, are my agents on the right model./gt-closeClose this session's work — the opposite of /gt:gt-open: write back what the session learned (gt-work) and release the session's claim on the vault. To complete or archive a project, a task or a handoff, use /gt:gt-complete. 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./gt-completeComplete a project, a task or a handoff the guided way. A project: review every open task and handoff (complete, drop, move to another project, or keep shelved), offer to graduate what it learned, then archive it in place — or move it to Archive/ on request. A task: mark it done. A handoff: mark it handled. Use when the user says: complete the project, we're done with this project, archive the project, retire this project, mark that task done, mark that handoff handled, complete the handoff. To end the session you are in, use /gt:gt-close.Other plugins' skills for the same job