gstack: Instructions file for Codex

AGENTS.md

gstack AGENTS.md is an instructions file for Codex, OpenCode from garrytan/gstack. It costs 5,941 tokens per session, scanned C, original, MIT.

A set of instructions for AI coding agents working with gstack, a collection of specialist software-development skills. It explains the available skills and how they fit into planning, coding, testing, and releasing software.

In plain words
What is it for?
Use it to choose skills for product planning, architecture reviews, design checks, implementation, quality assurance, debugging, documentation, release, and deployment.
Why use it?
It gives an agent a shared workflow instead of leaving it to guess which review or development step is needed.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

This is garrytan/gstack's own configuration. It tells Codex and OpenCode how to work on gstack itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything gstack configures →

About the project

gstack is a set of opinionated tools that gives a coding agent workflows associated with roles such as product leadership, design, engineering management, release management, documentation, and quality assurance. It is for developers who want one coding agent to support more parts of the software delivery process.

garrytan/gstack · 139,952 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to garrytan/gstack. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/garrytan/gstack/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/garrytan/gstack

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gstack AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/garrytan/gstack/agents-md/github.svg)](https://agentmods.dev/instructions/garrytan/gstack/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/garrytan/gstack/agents-md"><img src="https://agentmods.dev/badge/instructions/garrytan/gstack/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gstack AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/garrytan/gstack/agents-md"><img src="https://agentmods.dev/badge/instructions/garrytan/gstack/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,941 This file is loaded in full into every session.
When invoked 5,941 The same file — it is already loaded in full.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.05941 $0.05941
Opus 5.5 $0.02376 $0.02376
Sonnet 5.5 $0.01188 $0.01188
Haiku 4.5 $0.00594 $0.00594

Measured yesterday against content hash e7a9d1dd4d4c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

gstack AGENTS.md scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

| `/careful` | Warn before destructive commands (rm -rf, DROP TABLE, force-push). |
AGENTS.md · 322 lines

How it starts

The opening of the file, as written. The whole thing — 322 lines — stays where its author put it; the contents beside it link to each section on GitHub.

gstack — AI Engineering Workflow

gstack is a collection of SKILL.md files that give AI agents structured roles for software development. Each skill is a specialist: CEO reviewer, eng manager, designer, QA lead, release engineer, debugger, and more.

Available skills

Skills live in .agents/skills/ (or ~/.claude/skills/gstack/ on Claude Code). Invoke them by name (e.g., /office-hours).

Plan-mode reviews

Skill What it does
/office-hours Start here. Reframes your product idea before you write code.
/plan-ceo-review CEO-level review: find the 10-star product in the request.
/plan-eng-review Lock architecture, data flow, edge cases, and tests.
/plan-design-review Rate each design dimension 0-10, explain what a 10 looks like.
/plan-devex-review DX-mode review: TTHW, magical moments, friction points, persona traces.
/plan-tune Self-tune AskUserQuestion sensitivity per question.
/autoplan One command runs CEO → design → DX → eng review (eng always last).
/design-consultation Build a complete design system from scratch.
/spec Turn vague intent into a precise, executable spec in five phases. Files a GitHub issue, optionally spawns a Claude Code agent in a fresh worktree, and lets /ship close the source issue on merge.

Implementation + review

Skill What it does
/review Pre-landing PR review. Finds bugs that pass CI but break in prod; lists every gate edit for gate integrity.
/deslop-shared-libs Find worthwhile shared-code extractions in recent work. Recommendations only.
/write-skill Write or improve an agent skill without bloat: edit ladder, size per level (gstack-skill-bill), skill-to-bin drift check, full diets with a before/after test.
/test-audit Sweep existing tests for low-value, implementation-coupled or duplicate tests. Report-only unless you approve a batch.
/codex Second opinion via OpenAI Codex. Review, challenge, or consult modes. Available outside the Codex harness.
/claude-code Second opinion via Claude Code. Review, challenge, or consult modes. Available outside the Claude Code harness.
/investigate Systematic root-cause debugging. No fixes without investigation.
/verify Build-and-verify loop while you code: the repo's checks plus the tests pregate selects, fix, repeat, then hand off to /ship. Never green on an unmapped change.
/design-review Live-site visual audit + fix loop with atomic commits.
/design-shotgun Generate multiple AI design variants, comparison board, iterate.
/design-html Generate production-quality Pretext-native HTML/CSS.
/design-motion Turn an approved design into a showcase loop: MP4 for X, website GIF, 800×500 GIF, with seam, rest and overflow checks.
/devex-review Live developer experience audit (TTHW measured against the real flow).
/qa Test browser, API, CLI, job, worker and webhook behavior; reproduce bugs, fix them and re-verify.
/qa-only The same surface-aware QA, reporting findings and proposed tests without changing product code or tests.
/scrape Pull data from a web page in your Aside browser, with your real logged-in state. Read-only. On the fallback browser a codified browser-skill answers a repeat intent in ~200ms.
/skillify Codify the most recent successful /scrape flow into a permanent browser-skill (fallback browser only).

Read the full file on GitHub · 322 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · +1 lines · +61 tokens per session e7a9d1dd4d4c
  2. 3d ago Changed · +2 lines · +40 tokens per session ab90898836f1
  3. 4d ago Changed · +3 lines · +33 tokens per session c453df4c3432
  4. 5d ago Changed · +1 lines · +62 tokens per session 1a627e0aef9e
  5. 8d ago Changed · +1 lines · +48 tokens per session 85e74ddde903
  6. 9d ago Changed · +5 lines · +123 tokens per session 3715394c63a8
  7. 10d ago Changed · +2 lines · +189 tokens per session 3818220eb5d3
  8. 15d ago Changed · +89 tokens per session e24da2c32211
  9. 17d ago Changed · +6 lines · +236 tokens per session e7e964d480ed
  10. 26d ago First seen · 301 lines · 5,060 tokens per session scan C e428a4928a23

Subscribe to this mod's changes

gstack AGENTS.md is an instructions file published in the GitHub repository garrytan/gstack (139,952 stars, last pushed today), licensed MIT. It adds 5,941 tokens to every session, about $0.0238 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

gstack AGENTS.md compared with instructions from other repositories

gstack AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gstack AGENTS.mdgarrytan/gstackInstructions file140ktodayMITC5,941Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode