mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-29 19:34:29 +01:00
/cso is gone: the skill, its native helper programs, scanner images, CI jobs, docs and the rest of its tests. Upgrading removes gstack's own `/cso` entries and old helper files, and leaves a skill of your own named `cso` alone. Why: on 52 real security advisories, plainly asking the agent to audit the code caught more than /cso (13 vs 7 on particle-1; 12 vs 8 of 51 on Claude Opus 5.5, within the margin of error). To do: nothing. Optional cleanup of old scanner images and reports is in the changelog entry. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/outside-voice#1 reader=outside-voice Review-Finding: p1/outside-voice#2 reader=outside-voice Review-Finding: p1/adversarial-native#1 reader=adversarial-native Review-Finding: p1/adversarial-native#2 reader=adversarial-native
70 lines
5.3 KiB
Markdown
70 lines
5.3 KiB
Markdown
# Install details
|
|
|
|
The README covers the two-step install. This page holds the details: what
|
|
setup needs and how long it takes, the team-mode hook, the hooks setup
|
|
registers in Claude Code, agent harness registration, and how to remove gstack.
|
|
|
|
## How long setup takes
|
|
|
|
`./setup` took 31 seconds after the clone on a 4-vCPU Linux cloud machine (v1.91.13.0, clean HOME, including the binary build and the Chromium download). Slower networks and laptops take longer.
|
|
|
|
## Requirements, in detail
|
|
|
|
**Requirements:** [Claude Code](https://docs.anthropic.com/en/docs/claude-code), [Git](https://git-scm.com/), [Bun](https://bun.sh/) v1.4.2+ (the tested version; setup refuses Bun older than 1.3.3, which would let compiled tools read a project's `.env`, and warns in between), [Node.js](https://nodejs.org/) (Windows only). **Recommended on macOS:** the [Aside](https://aside.com) browser (macOS 15+) — browser skills, `/make-pdf`, and `/diagram` drive it first, with your real logged-in sessions. Without it, `./setup` builds gstack's own bundled browser and the same skills use that.
|
|
|
|
## Team mode
|
|
|
|
From inside your repo, `(cd ~/.claude/skills/gstack && ./setup --team) && ~/.claude/skills/gstack/bin/gstack-team-init required` switches you to team mode and bootstraps the repo so teammates get gstack automatically (the README has the full paste, which also commits the change).
|
|
|
|
No vendored files in your repo, no version drift, no manual upgrades. Every Claude Code session starts with a fast auto-update check (throttled to once/hour, network-failure-safe, completely silent). Team mode follows the `stable` channel, as every new install does: the tagged release cut Monday and Thursday mornings, never more than once every 72 hours except for an important change (within about a day) or a security or regression fix, and never more than a week stale, not every merge to main. `gstack-config set update_channel main` follows every merge instead; see [releases.md](releases.md#channels).
|
|
|
|
Swap `required` for `optional` if you'd rather nudge teammates than block them.
|
|
|
|
`required` blocks skills with a hook that runs on [Node.js](https://nodejs.org/), so every teammate needs Node.js on PATH, on every OS. With Claude Code 2.1.295 or later the hook also blocks when it can't run (no Node.js, or a missing `.claude/hooks/check-gstack.cjs`); older Claude Code lets skills through in that case.
|
|
|
|
## Hooks that `./setup` registers
|
|
|
|
`./setup` registers the hooks below in `~/.claude/settings.json`, every one pointing at the canonical install. In team mode it registers the `SessionStart` auto-update hook (`gstack-session-update`; `./setup --no-team` skips it). It asks before registering the AskUserQuestion `PreToolUse` (preference enforcement) and `PostToolUse` (deterministic answer capture) hooks that `/plan-tune` uses at runtime; `./setup` never writes them silently. `docs/uninstall.md` lists the same families when telling you what to remove by hand.
|
|
|
|
`./setup` also registers one default-on Stop hook:
|
|
`gstack-timeline-stop` (closes dangling session-timeline entries when a session
|
|
is interrupted; fail-open — 2s internal budget, always exits 0, can never block
|
|
a session). Opt out persistently with `./setup --no-timeline-stop-hook` — the
|
|
choice lands in the `timeline_stop_hook` config key, survives upgrades, and an
|
|
explicit "no" removes a live registration. `GSTACK_TIMELINE_STOP_HOOK=no` and
|
|
`gstack-config set timeline_stop_hook no` work too (flag > env > config).
|
|
`./setup --no-team` skips it for that run, `gstack-settings-hook remove-source
|
|
--source gstack-timeline-stop` removes it by hand, and `gstack-uninstall`
|
|
removes it too.
|
|
|
|
Three more hooks are on by default: skill routing (a `UserPromptSubmit` hook
|
|
that names the gstack skill, or an installed skill with its own `triggers:`, that
|
|
a prompt fits), skill contracts (a `Stop` hook that
|
|
blocks once when a skill ends without its required outputs) and the
|
|
destructive-command check (a `PreToolUse` hook that runs /careful's check before
|
|
every Bash and PowerShell command). Turn one off with `./setup --no-skill-routing`,
|
|
`--no-skill-contracts` or `--no-destructive-guard`, or `gstack-config set <name> off`;
|
|
see [skill-routing-and-contracts.md](skill-routing-and-contracts.md). The
|
|
opt-in skill gates (`./setup --ceo-review-gate`, `./setup --autoplan-gate`)
|
|
register their own hooks the same way; see [skill-gates.md](skill-gates.md).
|
|
|
|
Hook registration is canonical-only: every hook command points at the stable
|
|
`~/.claude/skills/gstack` install, never the tree setup ran from, so deleting
|
|
a worktree or Conductor workspace can't leave dead hooks erroring in your
|
|
sessions. Every `./setup` run also heals first: `gstack-settings-hook
|
|
prune-stale --repoint` removes dead gstack hook entries, re-points stale ones
|
|
at the stable install, and collapses duplicates, printing one line (and
|
|
writing a backup beside the file) only when it changed something.
|
|
|
|
## Agent harnesses
|
|
|
|
Run inside OpenClaw, Hermes or a Dot, `./setup` also registers gstack's skills
|
|
with that harness, in the harness's own skills folder, and prints every path
|
|
it wrote. It never does this when `--host` names another host or with
|
|
`--local`. Turn it off with `./setup --no-harness-auto` or
|
|
`GSTACK_HARNESS_AUTO=0`. Per-harness details, any other harness, and why QM is not available yet: [hosts.md](hosts.md#agent-harnesses).
|
|
|
|
## Uninstall
|
|
|
|
See [uninstall.md](uninstall.md).
|