gstack README

项目的 README,来自 github.com/garrytan/gstack。合并为一个 markdown 文件:README.md。

gstack

gstack: ship agent-written code you can trust. Review that catches blocking bugs, a guard that catches destructive commands, and a PR that carries its own evidence. gstack tests itself in public against the same model running without it, and deletes the skills that lose.

It works like a small engineering team inside Claude Code and other coding agents: a partner who pushes back on your idea, a reviewer who reads the diff for production bugs, a QA lead who opens a real browser, and a release engineer who ships the PR. Start with /office-hours. You run it with slash commands, and it is free and MIT-licensed. Built by Garry Tan, President & CEO of Y Combinator, who uses it every day.

Read next: How one person's agent crews merged 197 PRs in 14 days, and what that number hides · Every eval, wins and losses · Why gstack

Measured

We delete what loses. /investigate was removed after a controlled eval found no measurable gain, and /cso was removed after a plain "audit this repo for security problems" request named more real security advisories in three tries. See the cut list for the numbers and alternatives, or browse every eval plan and result in gstack-evals.

How it works

Captured /qa, /review, and /gstack-ship demo run on a billing app.

64-second run where /qa fixes a browser bug, /review flags a payout race with a second model, and /gstack-ship opens a PR with its check record (re-record).

The gstack loop: /office-hours writes a design doc, /autoplan reviews the plan, your agent builds, /review flags blocking bugs, /qa reproduces and fixes bugs, and /gstack-ship opens a PR that shows what was checked. In Claude Code, a guard checks shell commands along the way.

An example session:

You:    I want to build a daily briefing app for my calendar.
You:    /office-hours
Claude: I'm going to push back on the framing. What you described is a
        personal chief of staff, not a briefing app.
        [challenges your premises, writes a design doc the next skills read]
You:    /autoplan
        [CEO, design and eng reviews of the plan; asks you only taste calls]
You:    Approve plan. Build it.
You:    /review
        [AUTO-FIXED] 2 issues. [ASK] Race condition → you approve the fix.
You:    /qa https://staging.myapp.com
        [opens a real browser, reproduces a bug, fixes it, adds a test]
You:    /gstack-ship
        Tests: 42 → 51 (+9 new). PR opened with the tests and review results.

Install — about 30 seconds

Needs Claude Code, Git and Bun v1.4.2+ (setup refuses Bun older than 1.3.3 and can auto-install pinned, checksum-verified Bun if missing), plus Node.js on Windows. Run:

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

Or add the Claude Code plugin with /plugin marketplace add garrytan/gstack and /plugin install gstack@gstack.

Then add the browsing rule to your project's CLAUDE.md:

## gstack
Use /browse from gstack for all web browsing. Never use mcp__claude-in-chrome__* tools.

./setup installs the Core-10 skills plus /gstack-upgrade by default; add the rest with ./setup --pack <name> or ./setup --pack full (packs).

New installs follow stable. Team mode, channels, platform notes and hooks live in docs/install.md. Codex CLI now has full support; other agents live in docs/hosts.md. Uninstall steps live in docs/uninstall.md.

Start with four skills

Skill What it does
/office-hours Start here. Pushes back on your framing and writes a design doc the other skills read.
/review Reads your diff for bugs that pass CI and break production. Fixes the obvious ones and asks about the rest.
/qa Tests your site, API, CLI, job or webhook. Reproduces bugs, fixes the cause, adds a regression test where it can and re-verifies.
/gstack-ship Runs tests, review and a docs check, then opens a PR whose body shows what was checked.

Stop there. You'll know if this is for you.

Turn on the opt-in PR receipt footer (gstack-config set pr_receipt_footer true) for a commit-bound check line; opted-in public PRs feed the weekly public count.

Real PR check record

Shipped check record from PR 4923 with commit SHA, tests, and second-model review.

The rest of the sprint

Skill What it does
/autoplan Runs the plan reviews that apply (CEO, design, developer experience, eng) and brings the taste and scope calls to you in one approval.
/plan-ceo-review Rethinks the problem and finds the better product inside the request.
/plan-eng-review Locks architecture, data flow, edge cases and the test plan before code.
/plan-design-review Rates each design dimension 0 to 10 and edits the plan to get there.
/build-check Runs the repo's typecheck, lint, build and the tests your change needs; fixes and reruns until green, or says why it could not verify.
/careful Warns before destructive commands; on by default in Claude Code. /guard adds an edit lock.
/land-and-deploy Merges the PR, waits for CI and the deploy, and checks production health.
/retro Weekly retro covering what shipped, streaks, test health and the weekly digest.

The plan reviews have not shown a measured gain yet, and the tests so far left them little room to show one (what we learned). Use them for the thinking they force.

Design, browser, iOS, memory, Capy factory and maintainer skills are listed by tier in docs/skills.md, with a deep dive for each.

Running parallel crews

The factory numbers above come from Capy, where /captain runs agent crews and lands verified PRs in merge trains (setup). Without Capy, run local Claude Code or Codex CLI worktrees via crew/bin/gstack-crew (Captain without Capy (local worktrees)).

Real 18-PR release

v1.105.3.0 release notes showing 18 verified PRs landed together.

Troubleshooting

Run the doctor: ~/.claude/skills/gstack/bin/gstack-doctor (on other hosts, ./setup --status prints its path). It costs nothing and prints the fix for each problem. Every gstack message is explained in docs/troubleshooting.md; more help is in docs/install.md.

Privacy

Telemetry is off unless you opt in. The update check and outside reviews (which send code to Codex or Claude Code under your login) are on by default; each turns off with one setting (docs/privacy.md).

Docs

Skills · Cut list · Install · Other agents · PR receipt · Weekly digest · Releases · Support tiers · Architecture · Contributing · Changelog · All docs


We're hiring. Want to ship real products at AI-coding speed and help harden gstack? Come work at YC — ycombinator.com/software Extremely competitive salary and equity. San Francisco, Dogpatch District.

License

MIT. Free forever. Go build something.

gstack (garrytan/gstack)

正在搜索数据库…

143.3K ·GitHub
这是什么?gstack 是 Garry Tan 个人使用的 Claude Code 配置:一套包含 23 个有鲜明主张的技能,在 Claude Code 里模拟出一支完整的工程团队(CEO、工程经理、设计师、代码审查员、QA、安全官、发布工程师)。
这是代码库,还是别的东西?它不是可以导入到代码里的库或框架,而是 23 个专业技能加上 8 个强力工具,全部以 Markdown 斜杠命令的形式实现,在 Claude Code(或其他受支持的 AI 编程代理)中运行。
我该怎么安装 gstack?把安装说明粘贴到 Claude Code 中:它会把 gstack 克隆到 ~/.claude/skills/gstack 并运行 ./setup。然后你运行 /office-hours,描述你正在构建的东西,再依次使用 /plan-ceo-review、/review 和 /qa。
安装前需要先装什么?你需要 Claude Code、Git 和 Bun v1.0+;只有在 Windows 上才需要 Node.js。在 macOS 上,推荐安装 Aside 浏览器(macOS 15+),这样浏览器类技能就能使用你真实已登录的会话,而不是内置的备用浏览器。
gstack 只是一堆零散的命令,还是我得按它的流程来用?gstack 是按冲刺(sprint)流程构建的,而不是独立工具:技能会按顺序相互传递(Think、Plan、Build、Review、Test、Ship、Reflect)。如果在 macOS 上没有 Aside 浏览器,依赖浏览器的技能会退回使用 gstack 自带的浏览器,而不是你已登录的会话。
这东西是给谁用的?面向仍想亲自写代码的创始人和 CEO、希望获得结构化角色而不是空白提示词的 Claude Code 新手,以及希望在每个 PR 上都做严格审查、QA 和发布自动化的技术负责人或资深工程师。
gstack 只能配合 Claude Code 用吗?不是。它支持 10 种 AI 编程代理,包括 OpenAI Codex CLI、OpenCode、Cursor、Factory Droid、Kiro、Slate、OpenClaw、Hermes 和 GBrain,安装时会自动检测你已有的是哪些。其他能读取规则文件的代理,可以使用轻量的、仅包含指令的精简版。
授权或收费方面有什么坑吗?没有坑。gstack 完全免费,采用 MIT 许可证,鼓励你 fork 后自行修改。
/office-hours 技能到底是做什么的?它开场会提出六个逼问式问题,在写任何代码之前就挑战你对产品的定位,最终生成一份设计文档,后续的每个技能(CEO 审查、工程审查、QA)都以此为基础。
gstack 和 OpenClaw 是怎么配合的?OpenClaw 通过 ACP 启动 Claude Code 会话,因此只要为 Claude Code 装好 gstack,你就可以直接用自然语言和 OpenClaw 代理对话(例如请它做一次安全审计),它会调度对应的 gstack 技能,比如 /cso 或 /autoplan。
我在共享仓库里装了 gstack 之后,它会自动持续生效吗?会。“团队模式”会为仓库做初始化,让队友自动获得 gstack,并每小时静默检查一次更新,无需将文件直接内嵌进仓库,也无需手动升级。
OpenAI Codex 那边具体会怎样?安装程序会读取你 Codex 配置文件 config.toml 中设置的模型,并生成与之匹配的行为配置(如果没有设置,则回退到默认模型)。某些模型,例如 gpt-5.6-sol,会获得范围受限的专属指令。
作者
garrytan
大小
290.3 MB
星标
143.3K
时长
8个月
提交 · 90 天