Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
9d87b37
feat: community tier schema — backup columns + benchmarks table
garrytan Mar 20, 2026
3f2dca1
feat: email OTP + magic link auth for community tier
garrytan Mar 20, 2026
c784e18
fix: wire update_checks into telemetry-sync + session count fallback
garrytan Mar 20, 2026
7400d87
feat: community backup, restore, and benchmarks CLI
garrytan Mar 20, 2026
3330d97
feat: benchmarks + recommendations edge functions
garrytan Mar 20, 2026
a961a8a
feat: 3-option telemetry prompt + community upgrade + regenerate SKILLs
garrytan Mar 20, 2026
d87e8fb
fix: isolate E2E tests from production telemetry
garrytan Mar 20, 2026
1584dea
feat: richer error telemetry — error_message + failed_step fields
garrytan Mar 20, 2026
03de795
fix: simplify auth to OTP-only, remove magic link complexity
garrytan Mar 20, 2026
6ef78ab
fix: dashboard crash dedup + actionable error display
garrytan Mar 20, 2026
b349769
feat: telemetry epilogue captures error context + regenerate SKILLs
garrytan Mar 20, 2026
f169c6c
merge: resolve conflicts with origin/main
garrytan Mar 22, 2026
2068a7e
merge: incorporate origin/main into community-mode branch
garrytan Mar 23, 2026
647e92e
merge: incorporate origin/main into community-mode branch
garrytan Mar 23, 2026
195c102
merge: incorporate origin/main into community-mode branch
garrytan Mar 23, 2026
b437b53
chore: gitignore supabase/.temp/
garrytan Mar 23, 2026
6bd6d5b
feat: telemetry data integrity — source tagging, UUID fingerprint, du…
garrytan Mar 23, 2026
ea66b4d
chore: regenerate SKILL.md files after preamble/epilogue changes
garrytan Mar 23, 2026
fed0a4b
feat: one-liner installer + setup install ping
garrytan Mar 23, 2026
af9769d
fix: filter source=live in edge functions (Codex review fix #5)
garrytan Mar 23, 2026
00ce4b7
chore: add Homebrew tap to TODOS.md (deferred from CEO review)
garrytan Mar 23, 2026
3df8a77
chore: stage pre-existing community tier changes
garrytan Mar 23, 2026
d805600
feat: transparency note + one-liner install in README
garrytan Mar 23, 2026
16f3815
chore: delete dead telemetry-ingest edge function
garrytan Mar 23, 2026
34f05d2
chore: regenerate SKILL.md files after transparency note addition
garrytan Mar 23, 2026
3cd5c06
chore: bump version and changelog (v0.12.0.0)
garrytan Mar 24, 2026
7767fb3
merge: incorporate origin/main into community-mode branch
garrytan Mar 24, 2026
9ffb608
merge: incorporate origin/main into community-mode branch
garrytan Mar 24, 2026
43708fd
feat: add screenshot storage migration + web URL config
garrytan Mar 25, 2026
d45ec97
feat: device code auth flow (RFC 8628) for gstack-auth
garrytan Mar 25, 2026
a1236bb
feat: gstack-screenshot-upload CLI helper
garrytan Mar 25, 2026
56e8d20
feat: PR screenshots in /ship template + upload/auth tests
garrytan Mar 25, 2026
539a660
merge: incorporate origin/main into community-mode branch
garrytan Mar 25, 2026
0dc74da
fix: inline Phase 4A cleanup in migration 003
garrytan Mar 25, 2026
96ff408
merge: incorporate origin/main into community-mode branch
garrytan Mar 27, 2026
2e7a729
docs: add PRIVACY.md covering telemetry, screenshots, auth, and data …
garrytan Mar 27, 2026
f34e43c
docs: clarify data ownership — Garry Tan / YC, never sold
garrytan Mar 27, 2026
4abe674
docs: clean up privacy policy — single no-sell statement, add core team
garrytan Mar 27, 2026
19984f7
docs: add logged-in tier to privacy policy
garrytan Mar 27, 2026
1f03771
docs: privacy policy — logged-in tier callout, data retention on acco…
garrytan Mar 27, 2026
349f552
feat: add /gstack-submit skill — showcase entry composer with browser…
garrytan Mar 27, 2026
5a7e1bc
docs: add showcase submissions section to PRIVACY.md
garrytan Mar 27, 2026
5a5b575
Merge remote-tracking branch 'origin/main' into garrytan/community-mode
garrytan Mar 27, 2026
51171f3
fix: zsh glob safety — setopt guards + find for shell glob patterns
garrytan Mar 27, 2026
e59141e
chore: bump version and changelog (v0.13.0.0)
garrytan Mar 27, 2026
05ad1a4
merge: incorporate origin/main into community-mode branch
garrytan Mar 27, 2026
aa8bc56
merge: incorporate origin/main into community-mode branch
garrytan Mar 27, 2026
5ff9926
chore: untrack bin/gstack-global-discover compiled binary
garrytan Mar 27, 2026
3f00c08
chore: regenerate gstack-submit/SKILL.md after merge
garrytan Mar 27, 2026
9068ed6
merge: incorporate origin/main into community-mode branch
garrytan Mar 28, 2026
913e228
docs: add /gstack-submit to all skill lists and doc references
garrytan Mar 28, 2026
f572aa0
merge: incorporate origin/main into community-mode branch
garrytan Mar 28, 2026
be3c4ff
merge: incorporate origin/main into community-mode branch
garrytan Mar 28, 2026
2de09af
chore: remove generated gstack-submit/SKILL.md
garrytan Mar 28, 2026
e72ce9b
merge: incorporate origin/main into community-mode branch
garrytan Mar 28, 2026
008d65a
fix: restore generated gstack-submit/SKILL.md
garrytan Mar 28, 2026
1807e95
merge: incorporate origin/main into community-mode branch
garrytan Mar 29, 2026
460053a
merge: incorporate origin/main into community-mode branch
garrytan Mar 29, 2026
a9872b2
chore: gitignore .factory/ directory
garrytan Mar 29, 2026
f1598f4
chore: untrack .factory/ generated files
garrytan Mar 29, 2026
f458f18
fix: broaden session-awareness E2E assertion to accept more LLM phras…
garrytan Mar 29, 2026
3074e67
merge: incorporate origin/main into community-mode branch
garrytan Mar 29, 2026
d455e96
merge: incorporate origin/main into community-mode branch
garrytan Mar 30, 2026
3b0102b
chore: regenerate gstack-submit/SKILL.md after merge
garrytan Mar 30, 2026
93e8258
merge: incorporate origin/main into community-mode branch
garrytan Mar 31, 2026
f44be6d
chore: regenerate gstack-submit/SKILL.md after merge
garrytan Mar 31, 2026
30e6747
fix: extract codex section instead of copying full SKILL.md in E2E test
garrytan Mar 31, 2026
d519678
merge: incorporate origin/main into community-mode branch
garrytan Apr 8, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ extension/.auth.json
.gstack-worktrees/
/tmp/
*.log
supabase/.temp/
bun.lock
*.bun-build
.env
.env.local
.env.*
!.env.example
supabase/.temp/
1 change: 1 addition & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ gstack/
├── extension/ # Chrome extension (side panel + activity feed + CSS inspector)
├── lib/ # Shared libraries (worktree.ts)
├── docs/designs/ # Design documents
├── gstack-submit/ # /gstack-submit skill (showcase gallery submission)
├── setup-deploy/ # /setup-deploy skill (one-time deploy config)
├── .github/ # CI workflows + Docker image
│ ├── workflows/ # evals.yml (E2E on Ubicloud), skill-docs.yml, actionlint.yml
Expand Down
180 changes: 180 additions & 0 deletions PRIVACY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
# Privacy Policy

**Last updated:** 2026-03-26

gstack is an open-source CLI tool. This policy explains what data gstack collects, why, and how you control it.

## The short version

- **Telemetry is off by default.** Nothing is sent unless you say yes.
- **We never collect your code, file paths, repo names, prompts, or any content you write.**
- **You can change your mind anytime:** `gstack-config set telemetry off`
- **Screenshots you upload are yours.** You can delete them anytime.

---

## 1. Telemetry

### What we collect (if you opt in)

gstack has four data tiers:

| Tier | What's sent | Identifier |
|------|------------|------------|
| **Off** (default) | Nothing | None |
| **Anonymous** | Skill name, duration, success/fail, gstack version, OS | None — no way to connect sessions |
| **Community** | Same as anonymous | Random UUID (`~/.gstack/.install-id`) — connects sessions from one device |
| **Logged in** | Same as community, plus screenshots tied to your account | Email address + GitHub username (via OAuth) |

The first three tiers are chosen during first run. The **logged in** tier applies when you sign in to gstack.gg to use features like PR screenshots. Your email and GitHub username are associated with your uploaded screenshots and auth session. Logging in does not retroactively attach your identity to prior telemetry events.

### What we never collect

- Source code or file contents
- File paths or directory structures
- Repository names or branch names
- Git commits, diffs, or history
- Prompts, questions, or conversations
- Usernames, hostnames, or IP addresses (not logged server-side)
- Any content you write or generate

### How it works

1. Events are logged locally to `~/.gstack/analytics/skill-usage.jsonl`
2. A background sync (`gstack-telemetry-sync`) sends unsent events to Supabase
3. Local-only fields (`repo`, `_branch`, `_repo_slug`) are **stripped before sending**
4. Sync is rate-limited to once per 5 minutes, batched (max 100 events)
5. If sync fails, events stay local — nothing is lost or retried aggressively

### Update checks

gstack checks for updates by pinging our server with:
- Your gstack version
- Your OS (darwin/linux)
- A random device UUID

This happens regardless of telemetry tier because it's equivalent to what any package manager (Homebrew, npm) sends. No usage data is included. You can verify this in `bin/gstack-update-check`.

---

## 2. Screenshots (PR Screenshots feature)

When you use the PR Screenshots feature during `/ship`:

### What's stored

- **Screenshot images** (PNGs) uploaded to a private Supabase Storage bucket
- **Metadata:** nanoid, your user ID, slugified repo name, slugified branch name, viewport size, timestamp
- Images are served through a proxy (`gstack.gg/i/{id}`) that adds a watermark — raw images are never publicly accessible

### What's NOT stored

- No source code or file contents
- No git history or commit data
- No prompt or conversation data

### Your control

- You can delete your screenshots anytime (authenticated DELETE to the API)
- Orphan screenshots (no PR number after 24 hours) are automatically cleaned up
- Images are tied to your gstack.gg account — you own them

---

## 3. Authentication

gstack.gg supports two auth methods:

- **GitHub OAuth** — we receive your GitHub username and email. We don't access your repos, code, or any GitHub data beyond basic profile.
- **Email OTP** — we store your email address to send verification codes.

Auth tokens are stored locally at `~/.gstack/auth-token.json` with file permissions `0600` (owner-only read/write). Tokens are standard Supabase JWT tokens and can be revoked by logging out (`gstack-auth logout`).

---

## 4. Data storage and security

All data is stored in [Supabase](https://supabase.com) (open-source Firebase alternative):

- **Row-Level Security (RLS)** on all tables — direct database access is denied even with the publishable API key
- **Edge functions** validate schema, enforce event type allowlists, and limit field lengths
- **The Supabase publishable key in our repo is a public key** (like a Firebase API key) — it cannot bypass RLS
- **Screenshot storage bucket is private** — images are only accessible through the watermark proxy using a service-role key

The full database schema is in [`supabase/migrations/`](supabase/migrations/) — you can verify exactly what's stored.

---

## 5. Showcase Submissions

When you run `/gstack-submit`, gstack helps you compose a submission for the gstack.gg showcase gallery. This is **user-initiated and user-approved**, different from telemetry (which runs in the background).

### What gets sent (only after you preview and approve)

| Data | Source | You control it |
|------|--------|---------------|
| Project title, tagline, description | AI-generated, you edit before sending | Yes, edit or cancel |
| Screenshot | Browse tool captures your deployed URL | Yes, you provide the URL |
| Build stats (commit count, LOC, skills used) | Local git + analytics files | Yes, preview before sending |
| Build story | AI-written from design docs + optionally transcripts | Yes, preview before sending |
| Repo URL | Your git remote | Yes, can omit |

### What never gets sent

- Raw source code or file contents
- Claude Code transcripts (read locally, never transmitted, only the AI-generated summary)
- Private URLs or credentials found in local files

### Transcript reading (opt-in)

If you choose to let gstack read your Claude Code transcripts for a richer build story:
- Transcripts are read **locally only**, never sent to any server
- Only pattern-matched excerpts (decision moments, skill usage) are read, not full conversations
- The AI writes a narrative summary; the raw transcript text is never included in the submission
- You preview the full build story before it's sent anywhere

---

## 6. Data retention

| Data type | Retention |
|-----------|-----------|
| Telemetry events | Indefinite (aggregated, no PII) |
| Update check pings | Indefinite (version + OS only) |
| Device codes (auth) | Deleted 15 minutes after expiry |
| Orphan screenshots | Deleted 24 hours after upload if no PR is created |
| Active screenshots | Retained until you delete them |

---

## 7. Your rights

- **Access:** Run `gstack-analytics` to see all your local telemetry data. The JSONL file at `~/.gstack/analytics/skill-usage.jsonl` is plain text — you can read it directly.
- **Opt out:** `gstack-config set telemetry off` — stops all collection and syncing instantly.
- **Delete local data:** Remove `~/.gstack/analytics/` to clear all local telemetry.
- **Delete screenshots:** Authenticated DELETE request to the upload API, or contact us.
- **Delete account:** Contact us at the email below to deactivate your account. You will lose access to your data, including uploaded screenshots and account features. Previously collected telemetry and usage data may be retained and used by GStack, the GStack core team, or Y Combinator to improve the product.

---

## 8. Data ownership and use

GStack is owned by Garry Tan via copyright. Telemetry data collected through GStack may be used by Garry Tan, the GStack core team, or Y Combinator to improve GStack. We will never sell your data.

### Third-party services

- **Supabase** hosts our database and storage (their privacy policy: https://supabase.com/privacy)
- **Vercel** hosts gstack.gg (their privacy policy: https://vercel.com/legal/privacy-policy)
- **GitHub** provides OAuth authentication

---

## 9. Changes

We'll update this policy as gstack evolves. Material changes will be noted in the [CHANGELOG](CHANGELOG.md). The "Last updated" date at the top always reflects the current version.

---

## Contact

Questions about privacy? Open an issue at https://github.com/garrytan/gstack/issues or email privacy@gstack.gg.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@ Fork it. Improve it. Make it yours. And if you want to hate on free open source

**Requirements:** [Claude Code](https://docs.anthropic.com/en/docs/claude-code), [Git](https://git-scm.com/), [Bun](https://bun.sh/) v1.0+, [Node.js](https://nodejs.org/) (Windows only)

### Step 1: Install on your machine
### One-liner install

Open Claude Code and paste this. Claude does the rest.
```bash
bash <(curl -fsSL https://github.com/ghraw/garrytan/gstack/main/install.sh)
```

> Install gstack: run **`git clone --single-branch --depth 1 https://github.com/garrytan/gstack.git ~/.claude/skills/gstack && cd ~/.claude/skills/gstack && ./setup`** then add a "gstack" section to CLAUDE.md that says to use the /browse skill from gstack for all web browsing, never use mcp\_\_claude-in-chrome\_\_\* tools, and lists the available skills: /office-hours, /plan-ceo-review, /plan-eng-review, /plan-design-review, /design-consultation, /design-shotgun, /design-html, /review, /ship, /land-and-deploy, /canary, /benchmark, /browse, /connect-chrome, /qa, /qa-only, /design-review, /setup-browser-cookies, /setup-deploy, /retro, /investigate, /document-release, /codex, /cso, /autoplan, /plan-devex-review, /devex-review, /careful, /freeze, /guard, /unfreeze, /gstack-upgrade, /learn. Then ask the user if they also want to add gstack to the current project so teammates get it.
> Install gstack: run **`git clone --single-branch --depth 1 https://github.com/garrytan/gstack.git ~/.claude/skills/gstack && cd ~/.claude/skills/gstack && ./setup`** then add a "gstack" section to CLAUDE.md that says to use the /browse skill from gstack for all web browsing, never use mcp\_\_claude-in-chrome\_\_\* tools, and lists the available skills: /office-hours, /plan-ceo-review, /plan-eng-review, /plan-design-review, /design-consultation, /design-shotgun, /design-html, /review, /ship, /land-and-deploy, /canary, /benchmark, /browse, /connect-chrome, /qa, /qa-only, /design-review, /setup-browser-cookies, /setup-deploy, /retro, /investigate, /document-release, /codex, /cso, /autoplan, /gstack-submit, /plan-devex-review, /devex-review, /careful, /freeze, /guard, /unfreeze, /gstack-upgrade, /learn. Then ask the user if they also want to add gstack to the current project so teammates get it.

### Step 2: Team mode — auto-update for shared repos (recommended)

Expand Down Expand Up @@ -209,6 +211,7 @@ Each skill feeds into the next. `/office-hours` writes a design doc that `/plan-
| `/retro` | **Eng Manager** | Team-aware weekly retro. Per-person breakdowns, shipping streaks, test health trends, growth opportunities. `/retro global` runs across all your projects and AI tools (Claude Code, Codex, Gemini). |
| `/browse` | **QA Engineer** | Give the agent eyes. Real Chromium browser, real clicks, real screenshots. ~100ms per command. `/open-gstack-browser` launches GStack Browser with sidebar, anti-bot stealth, and auto model routing. |
| `/setup-browser-cookies` | **Session Manager** | Import cookies from your real browser (Chrome, Arc, Brave, Edge) into the headless session. Test authenticated pages. |
| `/gstack-submit` | **Community Showcase** | Submit your project to the gstack.gg gallery. Gathers build context (git stats, skills used), browses your deployed site, optionally reads Claude transcripts for the build story, writes a rich markdown entry, opens it in your browser for review, then submits. |
| `/autoplan` | **Review Pipeline** | One command, fully reviewed plan. Runs CEO → design → eng review automatically with encoded decision principles. Surfaces only taste decisions for your approval. |
| `/learn` | **Memory** | Manage what gstack learned across sessions. Review, search, prune, and export project-specific patterns, pitfalls, and preferences. Learnings compound across sessions so gstack gets smarter on your codebase over time. |

Expand Down Expand Up @@ -356,6 +359,7 @@ I open sourced how I build software. You can fork it and make it your own.
| [Architecture](ARCHITECTURE.md) | Design decisions and system internals |
| [Browser Reference](BROWSER.md) | Full command reference for `/browse` |
| [Contributing](CONTRIBUTING.md) | Dev setup, testing, contributor mode, and dev mode |
| [Privacy](PRIVACY.md) | Telemetry, screenshots, auth, showcase submissions, data retention |
| [Changelog](CHANGELOG.md) | What's new in every version |

## Privacy & Telemetry
Expand All @@ -372,6 +376,8 @@ Data is stored in [Supabase](https://supabase.com) (open source Firebase alterna

**Local analytics are always available.** Run `gstack-analytics` to see your personal usage dashboard from the local JSONL file — no remote data needed.

**Full privacy policy:** [PRIVACY.md](PRIVACY.md) — covers telemetry, screenshots, auth, data retention, and your rights.

## Troubleshooting

**Skill not showing up?** `cd ~/.claude/skills/gstack && ./setup`
Expand All @@ -397,7 +403,7 @@ Available skills: /office-hours, /plan-ceo-review, /plan-eng-review, /plan-desig
/design-consultation, /design-shotgun, /design-html, /review, /ship, /land-and-deploy,
/canary, /benchmark, /browse, /open-gstack-browser, /qa, /qa-only, /design-review,
/setup-browser-cookies, /setup-deploy, /retro, /investigate, /document-release, /codex,
/cso, /autoplan, /pair-agent, /careful, /freeze, /guard, /unfreeze, /gstack-upgrade, /learn.
/cso, /autoplan, /gstack-submit, /pair-agent, /careful, /freeze, /guard, /unfreeze, /gstack-upgrade, /learn.
```

## License
Expand Down
14 changes: 14 additions & 0 deletions TODOS.md
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,20 @@ Linux cookie import shipped in v0.11.11.0 (Wave 3). Supports Chrome, Chromium, B
**Priority:** P3
**Depends on:** Browse sessions

## Distribution

### Homebrew tap

**What:** Create a separate repo (`homebrew-gstack`) with a Homebrew formula so users can `brew tap garrytan/gstack && brew install gstack`.

**Why:** Gold-standard dev tool distribution. Complements the curl-pipe-bash installer. Familiar install flow, automatic updates via `brew upgrade`, discoverable via Homebrew search.

**Context:** The curl-pipe-bash installer (`install.sh`) ships first. The Homebrew formula would clone the repo + run `./setup`, similar to the installer. Needs a separate GitHub repo (`garrytan/homebrew-gstack`) with a `Formula/gstack.rb` file (~20 lines). Must be updated on each release.

**Effort:** S (human: ~2h / CC: ~10 min)
**Priority:** P2
**Depends on:** install.sh shipping first

## Infrastructure

### /setup-gstack-upload skill (S3 bucket)
Expand Down
Loading
Loading