# gstack | Garry Tan | Knowledge Base | Instagit

Use Garry Tan's exact Claude Code setup: 23 opinionated tools that serve as CEO, Designer, Eng Manager, Release Manager, Doc Engineer, and QA

GitHub Stars: 97.2k

Repository: https://github.com/garrytan/gstack

---

## Articles

### [Understanding G‑Stack Safety Guardrails: `/careful`, `/freeze`, and `/guard`](/garrytan/gstack/what-are-the-gstack-safety-guardrails-careful-freeze-guard)

Explore G-Stack safety guardrails: /careful, /freeze, and /guard. Learn how these hooks prevent destructive commands and limit file edits to secure directories within the garrytan/gstack repository.

- Tags: how-to-guide
- Published: 2026-05-15

### [How gstack Implements the Confusion Protocol to Prevent Architectural Ambiguity](/garrytan/gstack/how-does-gstack-implement-the-confusion-protocol-for-architectural-ambiguity)

Discover how gstack uses the Confusion Protocol to prevent architectural ambiguity. Learn how it forces LLMs to seek clarification for high-stakes decisions in your projects.

- Tags: how-to-guide
- Published: 2026-05-15

### [How gstack Uses Circular Buffers for High-Performance Logging Architecture](/garrytan/gstack/explain-the-gstack-logging-architecture-with-circular-buffers)

Discover how gstack leverages circular buffers for a high-performance logging architecture. Achieve O(1) write speed and controlled memory with this innovative approach.

- Tags: architecture
- Published: 2026-05-15

### [What AI Agents Does gstack Support? (Codex, Cursor, OpenClaw & More)](/garrytan/gstack/what-ai-agents-does-gstack-support-codex-cursor-openclaw)

Discover which AI agents gstack supports like OpenAI Codex CLI, Cursor, and OpenClaw. gstack auto-detects and bundles skills for seamless integration.

- Tags: deep-dive
- Published: 2026-05-15

### [How GStack's Version Auto-Restart Mechanism Works: Automatic Daemon Updates Explained](/garrytan/gstack/describe-the-gstack-version-auto-restart-mechanism)

Learn how GStack's version auto-restart mechanism automatically updates daemons. Discover seamless updates without manual intervention for the garrytan/gstack repository.

- Tags: internals
- Published: 2026-05-15

### [How to Configure gstack Telemetry and What Data It Collects](/garrytan/gstack/how-is-gstack-telemetry-configured-and-what-data-is-collected)

Learn how to configure gstack telemetry to collect operational events like skill lifecycles and CDP calls without sensitive data. Explore the lightweight, opt-out system and its logged JSONL data.

- Tags: how-to-guide
- Published: 2026-05-15

### [How gstack Detects Stale @ref References in Single Page Applications (SPAs)](/garrytan/gstack/how-does-gstack-detect-ref-staleness-in-single-page-applications)

gstack detects stale @ref references in SPAs by validating Playwright Locator counts at runtime and clearing reference maps on navigation. Learn how gstack ensures reliable SPA testing.

- Tags: how-to-guide
- Published: 2026-05-15

### [gstack Command Dispatch Categorization: READ, WRITE, and META Explained](/garrytan/gstack/what-is-gstack-command-dispatch-categorization-read-write-meta)

Understand gstack command dispatch categorization READ WRITE and META. Learn how gstack determines execution paths enforces permissions and filters content for secure operations.

- Tags: internals
- Published: 2026-05-15

### [How gstack Manages Scoped Token Authorization for Remote Agents: A Deep Dive into the Token Registry Architecture](/garrytan/gstack/how-does-gstack-manage-scoped-token-authorization-for-remote-agents)

Discover how gstack manages scoped token authorization for remote agents using JWT-based scope validation and automatic revocation. Learn about its token registry architecture.

- Tags: deep-dive
- Published: 2026-05-15

### [gstack E2E Test Infrastructure Using claude -p: A Deep Dive into AI-Driven Integration Testing](/garrytan/gstack/what-is-gstack-e2e-test-infrastructure-using-claude-p)

Explore the gstack E2E test infrastructure using claude -p. Learn how it validates AI-driven skills by spawning Claude-Code subprocesses and parsing NDJSON output for assertions.

- Tags: deep-dive
- Published: 2026-05-15

### [Question Tuning with gstack's AskUserQuestion Preferences: Complete Configuration Guide](/garrytan/gstack/explain-question-tuning-with-gstacks-askuserquestion-preferences)

Master question tuning with gstack's AskUserQuestion preferences. Gain persistent control over interactive prompts and auto-resolve interactions. Read our complete configuration guide.

- Tags: how-to-guide
- Published: 2026-05-15

### [How gstack Implements the Search Before Building Principle](/garrytan/gstack/how-does-gstack-implement-the-search-before-building-principle)

Discover how gstack enforces Search Before Building. It injects ETHOS.md knowledge layers and logs Eureka moments before code generation, ensuring efficient development.

- Tags: how-to-guide
- Published: 2026-05-15

### [How gstack Handles Unicode Sanitization at Server Egress](/garrytan/gstack/what-is-gstacks-approach-to-unicode-sanitization-at-server-egress)

gstack ensures strings leaving your server are free of lone UTF-16 surrogate code points, preventing JSON parser errors with its robust Unicode sanitization.

- Tags: internals
- Published: 2026-05-15

### [How the gstack /review Skill Verifies Plan Completion Against a Diff](/garrytan/gstack/how-does-the-gstack-review-skill-verify-plan-completion-against-diff)

Learn how the gstack /review skill verifies plan completion against a git diff. It checks actionable items against your code changes for accurate status updates.

- Tags: how-to-guide
- Published: 2026-05-15

### [Gstack Error Philosophy for AI Agents: Treating Failures as Machine-Readable Instructions](/garrytan/gstack/what-is-the-gstack-error-philosophy-for-ai-agents)

Discover the Gstack error philosophy for AI agents. Learn how Gstack transforms Playwright failures into actionable, machine-readable instructions for agents, guiding their next steps.

- Tags: best-practices
- Published: 2026-05-15

### [How gstack Domain Skills Persist Per-Site Knowledge Across Sessions](/garrytan/gstack/how-do-gstack-domain-skills-save-per-site-knowledge-across-sessions)

Learn how gstack domain skills persist per-site knowledge across sessions. Discover the JSONL append-only record system and state management that ensures continuity.

- Tags: how-to-guide
- Published: 2026-05-15

### [How the SKILL.md Template System Works in gstack](/garrytan/gstack/what-is-the-skill-md-template-system-in-gstack-for-documentation)

Discover how the SKILL.md template system in gstack generates synchronized skill documentation from a single source ensuring AI commands stay documented. Learn more now.

- Tags: internals
- Published: 2026-05-15

### [How gstack Handles Cookie Security and Keychain Access: Cross-Platform Chromium Cookie Import](/garrytan/gstack/how-does-gstack-handle-cookie-security-and-keychain-access)

Learn how gstack secures cookie handling and Keychain access cross-platform. It imports Chromium cookies securely, protecting raw values and using AES keys safely in memory.

- Tags: internals
- Published: 2026-05-15

### [Understanding the Dual-Listener Tunnel Architecture in gstack pair-agent](/garrytan/gstack/explain-the-dual-listener-tunnel-architecture-in-gstack-pair-agent)

Discover the dual-listener tunnel architecture in gstack pair-agent. Securely share Chromium instances with multiple AI agents using separate local and public HTTP endpoints for key exchange.

- Tags: architecture
- Published: 2026-05-15

### [How gstack Continuous Checkpoint Mode Auto-Commits Work](/garrytan/gstack/how-does-gstacks-continuous-checkpoint-mode-auto-commit-work)

Understand how gstack continuous checkpoint mode auto-commits save your workflow context automatically. Learn about silent WIP commits for staged files, code units, bug fixes, and long commands.

- Tags: internals
- Published: 2026-05-15

### [Understanding the gstack Security Model for Localhost-Only HTTP Servers](/garrytan/gstack/what-is-gstack-security-model-for-localhost-only-http-servers)

Discover the gstack security model for localhost-only HTTP servers. Learn about its four layers, including loopback binding and token validation, to prevent DNS rebinding attacks.

- Tags: deep-dive
- Published: 2026-05-15

### [How gstack's Sidebar Agent Defends Against Prompt Injection](/garrytan/gstack/how-does-gstacks-sidebar-agent-defend-against-prompt-injection)

Discover how gstack's sidebar agent defends against prompt injection with system prompt hardening, input sanitization, and process isolation for robust LLM security.

- Tags: security
- Published: 2026-05-15

### [How the GStack Ref System Works: Stable Element Addressing Without DOM Mutation](/garrytan/gstack/what-is-gstack-ref-system-for-page-elements)

Discover GStack's stable ref system for element addressing. Assign human-readable IDs like @e1 without DOM mutation, enhancing CSS selector stability and CSP compatibility.

- Tags: internals
- Published: 2026-05-15

### [How the gstack Browser Daemon Achieves Sub‑Second Latency](/garrytan/gstack/how-does-gstack-browser-daemon-achieve-sub-second-latency)

Discover how the gstack browser daemon achieves sub-second latency using a persistent local Chromium process and efficient HTTP POST requests, replacing slow protocols.

- Tags: internals
- Published: 2026-05-15

