Back

Install gstack in Claude Code, Codex, Cursor and OpenCode

Install gstack for Claude Code, Codex, Cursor, or OpenCode. Choose the right host, verify skill discovery, and troubleshoot setup and safety-hook differences.

gstack tutorial series · Updated October 20, 2026.

Install gstack: choose your coding agent

For Claude Code, clone gstack into ~/.claude/skills/gstack and run ./setup. For Codex, run setup with --host codex; for Cursor, use --host cursor. A bare ./setup installs for Claude Code only.

Your agent Start here How to invoke the first skill
Claude Code Claude Code installation /office-hours
Codex CLI Codex installation Ask for gstack-office-hours
Cursor Cursor installation Ask for gstack-office-hours
OpenCode OpenCode installation /gstack-office-hours
OpenClaw Claude Code delegation Ask the delegated session to load gstack

The current upstream host matrix labels Claude Code full and Codex, Cursor, and OpenCode experimental. That difference matters for safety hooks and outside-review tools; identical Markdown instructions do not imply identical enforcement.

What is gstack?

gstack packages engineering workflows as skills: product questioning, architecture review, code review, browser QA, and release work. Start with one workflow, check the plan it produces, and expand only when it fits your project.

If you want the separate obra/superpowers framework, use the Superpowers installation guide. Its plugin commands do not install gstack.

Before you install

You need Git, the target coding agent, and Bun. The current gstack README recommends Bun 1.4.2 or later; setup rejects versions below 1.3.3. Windows additionally needs Node.js. Check prerequisites before troubleshooting skill discovery:

git --version
bun --version

Use a terminal where these commands work. On Windows, follow the upstream Windows instructions for your shell rather than pasting POSIX commands into PowerShell unchanged. Some skills have additional requirements: for example, outside review needs another authenticated coding CLI, and /cso has native-toolchain requirements. A successful base install does not prove those integrations are ready.

Platform 1: Install on Claude Code

For a new installation in a POSIX shell:

git clone --single-branch --depth 1 https://github.com/garrytan/gstack.git ~/.claude/skills/gstack
cd ~/.claude/skills/gstack
./setup
./setup --status

If that directory already exists, inspect its remote and local changes before updating it. Do not clone over it or delete it to suppress an error.

Start a fresh Claude Code session and invoke /office-hours with a small feature idea. Verify both that setup reports a Claude installation and that the session can load the skill. An assistant asking a generic clarifying question is not, by itself, installation proof.

Upstream also documents a project CLAUDE.md section for its browser workflow. Review that instruction against your project’s existing browser and permission rules before adopting it. Maintain those local rules deliberately; copying an installation example is not authorization to change them.

Platform 2: Install on Codex CLI

Use the current host installer instead of the old .codex/INSTALL.md prompt:

git clone --single-branch --depth 1 https://github.com/garrytan/gstack.git ~/gstack
cd ~/gstack
./setup --host codex
./setup --status

With the default Codex home, setup installs prefixed skills under ~/.codex/skills/gstack-*/. A custom CODEX_HOME changes that root. Open a fresh session and ask:

Use gstack-office-hours to discuss a small read-only dashboard.
Produce a plan and wait before implementation.

Look for the installed host in --status, then explicit skill loading in the session. On this experimental host, safety skills provide advice, not Claude Code’s blocking hooks. Keep the agent’s native approval and sandbox controls enabled.

Platform 3: Install on Cursor

From an existing clean gstack checkout, select Cursor explicitly:

cd ~/gstack
./setup --host cursor
./setup --status

For a fresh checkout, first run the clone command in the Codex section. Setup renders prefixed skills into ~/.cursor/skills/gstack-*/. Open a fresh Agent session and request gstack-office-hours by name. Do not put the repository in a commands/ directory and assume that makes its skills discoverable.

Install on OpenCode

The same checkout can register another host:

cd ~/gstack
./setup --host opencode
./setup --status

Upstream lists ~/.config/opencode/skills/gstack-*/ and prefixed /gstack-* commands. Restart the session, then invoke /gstack-office-hours. Install each intended host explicitly; this also makes it clear which registrations you need to repair later.

Platform 4: Install on OpenClaw

OpenClaw’s documented integration can delegate coding to a Claude Code session. Install gstack on the machine running that Claude Code session, then give the delegated session a concrete request such as:

Load gstack. Run /review on the current changes and report findings.

An OpenClaw chat recognizing the word “gstack” does not verify that a remote coding worker has it installed. Check the worker’s checkout, setup status, and actual skill invocation.

Upstream also lists a smaller set of native OpenClaw methodology skills distributed through ClawHub. They are a separate installation route, not a replacement for every Claude Code/browser workflow. Follow the current OpenClaw integration document for that route.

Safety guardrails and host differences

Skill Purpose What to verify
/careful Warn about destructive shell operations Whether the host supports the enforcement hook
/freeze Restrict edits to a selected directory The intended directory and the host’s enforcement behavior
/guard Combine careful and freeze behavior Both protections, rather than assuming a universal permission system
/unfreeze Remove the edit restriction That removing it is intended for this task

These commands complement your agent’s permissions. They do not replace backups, credential boundaries, or review before publishing. To inspect enforcement, use a disposable repository and benign edits; do not test a guard by issuing destructive commands against real data.

Verify your installation

Use three separate checks:

  1. Installer state: ./setup --status lists the correct host, tier, and path.
  2. Skill discovery: a fresh session can load the skill by its host-specific name.
  3. Task behavior: the skill produces an appropriate plan or review on a small disposable project.

Browser readiness is a separate check. If you need /browse or /qa, test a page you control and inspect the browser startup result. Do not infer browser success from a working planning skill.

Troubleshooting

Symptom Check first Next action
Codex or Cursor cannot find gstack Was setup run with the intended --host? Run setup for that host, inspect --status, and start a fresh session
Skill names differ from a tutorial The host matrix’s first invocation Use gstack- prefixed names where documented
Setup stops on Bun bun --version and setup’s actual error Update the prerequisite using its official instructions
Browser skills fail Browser/build diagnostics from setup Resolve the reported dependency before retrying QA
Outside review cannot run Required second CLI and its authentication Configure that integration separately; keep an incomplete review explicit
Existing clone prevents installation Checkout location, remote, and dirty files Reuse the correct checkout without overwriting local work

For upgrades, review upstream changes and your local diff, update the checkout, then rerun setup for the hosts you use. --status gives more useful evidence than assuming that a successful git pull updated every generated skill.

Team adoption and next steps

Upstream provides ./setup --team and bin/gstack-team-init for shared repositories. Review the files those commands create before committing them. Start with an optional team rollout if you still need to establish which hosts, tools, and approval rules your team supports.

Continue with office-hours for product scoping or code review for a concrete change. Keep the series index handy for the rest of the workflow.

References

Upstream changes quickly. Record your checkout commit and use ./setup --status when reporting an installation problem; do not treat this article’s review date as a version guarantee.

Last updated on Oct 20, 2026 10:23 +0800