com um clique
ratchet-update
Update Ratchet framework to the latest version
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Update Ratchet framework to the latest version
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Run agent pairs through phase-gated debates — guided by epic roadmap and current focus
Analyze project and generate tailored agent pairs through codebase analysis and human interview
Tighten the ratchet — analyze all improvement signals and sharpen the system
View or continue an ongoing debate
Manage guards — list, add, run, and override deterministic checks at phase boundaries
Add a new agent pair to an existing Ratchet configuration
| name | ratchet:update |
| description | Update Ratchet framework to the latest version |
Update Ratchet framework installation to latest version.
Check which installation exists:
~/.claude/commands/ratchet/ exists.claude/commands/ratchet/ existsIf both exist, AskUserQuestion:
"Global (~/.claude/)", "Local (.claude/)", "Both"If neither exists: "Ratchet not installed. Run /ratchet:init or bash install.sh from Ratchet repo."
Record scope: global, local, or both.
AskUserQuestion:
"Nix flake (Recommended)" — uses nix run github:netbrain/ratchet"Git clone + install.sh" — clones repo to temp directory"Local source" — use existing checkout (auto-detected or user-provided path)nix on PATH → recommend Nix flake (fastest, no clone needed)install.sh and skills/ → offer "Local source" firstRATCHET_SOURCE env var set → offer "Local source" with that pathExecute uninstall + reinstall for each scope.
# For local:
nix run github:netbrain/ratchet --refresh -- --local --uninstall 2>&1
nix run github:netbrain/ratchet --refresh -- --local 2>&1
# For global:
nix run github:netbrain/ratchet --refresh -- --global --uninstall 2>&1
nix run github:netbrain/ratchet --refresh -- --global 2>&1
--refresh forces Nix to fetch latest commit from GitHub (otherwise uses cached flake).
TMPDIR=$(mktemp -d)
git clone --depth 1 https://github.com/netbrain/ratchet "$TMPDIR/ratchet" 2>&1
# For local:
bash "$TMPDIR/ratchet/install.sh" --local --uninstall 2>&1
bash "$TMPDIR/ratchet/install.sh" --local 2>&1
# For global:
bash "$TMPDIR/ratchet/install.sh" --global --uninstall 2>&1
bash "$TMPDIR/ratchet/install.sh" --global 2>&1
rm -rf "$TMPDIR"
Locate install.sh: CWD contains install.sh + skills/ → use CWD; RATCHET_SOURCE env var → use that path; otherwise AskUserQuestion (freeform): "Path to Ratchet source directory?"
cd /path/to/ratchet/source
# For local:
bash install.sh --local --uninstall 2>&1
bash install.sh --local 2>&1
# For global:
bash install.sh --global --uninstall 2>&1
bash install.sh --global 2>&1
Run appropriate method twice — once with --global, once with --local.
After install completes, verify:
# Count installed commands
ls .claude/commands/ratchet/*.md 2>/dev/null | wc -l # local
ls ~/.claude/commands/ratchet/*.md 2>/dev/null | wc -l # global
Present summary:
Ratchet updated successfully!
Scope: [Global/Local/Both]
Method: [Nix flake / Git clone / Local source]
Commands: [N] slash commands installed
Scripts: [list key scripts: git-pre-commit, publish-debate-hook, etc.]
Your project data (.ratchet/) was preserved.
IMPORTANT: Restart Claude Code to pick up the new commands and hooks.
Type /exit or press Ctrl+C, then start a new session.
Always remind user to restart. Slash commands and hooks load at session start — current session keeps using old versions until restarted.
Updated: Slash commands, runtime scripts, agent definitions, schemas, statusline, hooks config.
Preserved: .ratchet/ directory (workflow.yaml, project.yaml, plan.yaml, pairs, debates, scores, escalations).