garrytan/gstack
Use Garry Tan's exact Claude Code setup: 23 opinionated tools that serve as CEO, Designer, Eng Manager, Release Manager, Doc Engineer, and QA
The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.
Most complex files
- setup1410 cx
- lib/cso/state.ts1040 cx
- test/eng-first-review.test.ts1006 cx
- test/gen-skill-docs.test.ts895 cx
- test/ceo-mode-option.test.ts846 cx
- scripts/cso-eval.ts834 cx
- test/helpers/ceo-mode-option.ts784 cx
- test/helpers/plan-skill-questions.ts783 cx
- scripts/test-free-shards.ts770 cx
- lib/cso/cli.ts728 cx
Dead code 1.23% unused · 220 findings
- extension/sidepanel.jsunused-file
- extension/sidepanel-terminal.jsunused-file
- lib/ship-release.tsunused-file
- extension/background.jsunused-file
- lib/ship-budget-cli.tsunused-file
- extension/content.jsunused-file
- lib/capy-review-pass.jsunused-file
- lib/ship-preflight.tsunused-file
- lib/runaway.tsunused-file
- lib/ship-queue-land-direct.tsunused-file
The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code, and 12 generated files: bin/gstack-doctor-components.sh, browse/test/server-route-auth-blackbox.test.ts, scripts/skill-bin-drift.ts, test/fixtures/health-detect-legacy.sh, test/fixtures/ios-qa/FixtureApp/Sources/DebugBridgeCore/DebugBridgeManager.swift, test/fixtures/ios-qa/FixtureApp/Sources/DebugBridgeCore/StateServer.swift, test/fixtures/ios-qa/FixtureApp/Sources/DebugBridgeUI/Bridges.swift, test/fixtures/ios-qa/FixtureApp/Sources/DebugBridgeUI/DebugOverlay.swift, test/helpers/exercised-prototype.ts, test/memory-ingest-include-gitignored.test.ts, test/section-manifest-consistency.test.ts, test/uninstall-windows-copies.test.ts.
Largest clones in the code
- 235 lines in 2 placestypescript1,895 tokens
34import * as fs from 'fs'; 35import * as path from 'path'; 36import * as cp from 'child_process'; 37 38export interface BrowseClientOptions { 39 /** Override port. Default: GSTACK_PORT env or state file. */ 40 port?: number; 41 /** Override token. Default: GSTACK_SKILL_TOKEN env, then state file root token. */ 42 token?: string; 43 /** Tab id to target (every command can scope to a tab). Default: BROWSE_TAB env or undefined (active tab). */First 10 of 235 lines.
- 62 lines in 2 placesjavascript435 tokens
158for (const prop of BASIC_KEY_PROPERTIES) { 159 computedStyles[prop] = computed.getPropertyValue(prop); 160} 161 162const boxModel = { 163 content: { width: rect.width, height: rect.height }, 164 padding: { 165 top: parseFloat(computed.paddingTop) || 0, 166 right: parseFloat(computed.paddingRight) || 0, 167 bottom: parseFloat(computed.paddingBottom) || 0,195for (const prop of KEY_PROPERTIES) { 196 computedStyles[prop] = computed.getPropertyValue(prop); 197} 198 199// Box model from computed 200const boxModel = { 201 content: { width: rect.width, height: rect.height }, 202 padding: { 203 top: parseFloat(computed.paddingTop) || 0, 204 right: parseFloat(computed.paddingRight) || 0,First 10 of 62 lines, the second copy on the right.
- 75 lines in 2 placesjavascript380 tokens
617 reason: 'initial', 618 })); 619 } catch {} 620 } 621 }); 622} catch {} 623// v1.44 eager spawn: send {type:"start"} so the agent boots claude 624// without requiring the user to type a keystroke. Pre-v1.44 the 625// lazy-binary-spawn pattern made forceRestart look stuck for ~2-3s 626// until the user pressed any key.835 reason: 'restart', 836 })); 837 } catch {} 838 } 839 }); 840} catch {} 841// Eager spawn — fresh claude prompt visible without user keystroke. 842try { ws.send(JSON.stringify({ type: 'start' })); } catch {} 843if (keepaliveInterval) clearInterval(keepaliveInterval); 844keepaliveInterval = setInterval(() => {First 10 of 75 lines, the second copy on the right.
7 more
- 52 lines in 2 placesbash327 tokens
- 12 lines in 4 placesbash80 tokens
- 16 lines in 3 placestypescript109 tokens
- 8 lines in 3 placestypescript105 tokens
- 19 lines in 3 placesbash101 tokens
- 6 lines in 4 placestypescript66 tokens
- 6 lines in 2 placestypescript193 tokens
Largest clones over all files, tests and data included
- 255 lines in 46 placesmarkdowndocs and examples4,250 tokensautoplan/sections/preamble.md:1–255canary/sections/preamble.md:1–255captain/sections/preamble.md:1–255codex/sections/preamble.md:1–255context-restore/sections/preamble.md:1–255and 41 more
1<!-- AUTO-GENERATED from scripts/resolvers/preamble-hoist.ts — do not edit directly --> 2<!-- Regenerate: bun run gen:skill-docs --> 3# gstack shared preamble 4e82fa4c839f 4 5## Plan Mode Safe Operations 6 7Host and system plan-mode restrictions and the user's current scope take precedence over any skill; a skill cannot grant itself an exception to read-only mode.… 8 9## Skill Invocation During Plan Mode 10First 10 of 255 lines.
- 56 lines in 27 placesmarkdowndocs and examples813 tokensautoplan/SKILL.md:37–92canary/SKILL.md:22–77captain/SKILL.md:29–84context-restore/SKILL.md:24–79context-save/SKILL.md:24–79and 22 more
37This skill follows gstack shared preamble `4e82fa4c839f` (AskUserQuestion format, voice, writing, completeness and completion rules). If your Read of that file… 38 39## Preamble (run first) 40 41```bash 42~/.claude/skills/gstack/bin/gstack-skill-start --skill "autoplan" --model "claude" 43``` 44 45Read the echoed `KEY: value` STATUS lines — they drive every preamble rule 46below. **Degraded mode:** if `SKILL_START_PROTO: 1` is missing from the output22This skill follows gstack shared preamble `4e82fa4c839f` (AskUserQuestion format, voice, writing, completeness and completion rules). If your Read of that file… 23 24## Preamble (run first) 25 26```bash 27~/.claude/skills/gstack/bin/gstack-skill-start --skill "canary" --model "claude" 28``` 29 30Read the echoed `KEY: value` STATUS lines — they drive every preamble rule 31below. **Degraded mode:** if `SKILL_START_PROTO: 1` is missing from the outputFirst 10 of 56 lines, the second copy on the right.
- 393 lines in 2 placesmarkdowndocs and examples20,860 tokensdocs/designs/MULTI_AGENT_WAVE_2026_10_10.md:1–393test/fixtures/multi-agent-wave/reference-run/plan.md:1–393
1<!-- /autoplan restore point: "/workspace/gstack/.gstack/tmp/autoplan/main-autoplan-restore-20261010-203029.md" --> 2# gstack multi-agent wave (October 10, 2026): honest install, unattended autoplan, queue-aware ship, cheap-first gates 3 4## URGENT, outside this plan 5 6None. Six reviewer passes (CEO, DX, Eng; native Claude and outside gpt-6-astra each) raised no security or data-loss finding the plan does not own. The one liv… 7 8## Implementation plan 9 10### ContextFirst 10 of 393 lines.
- 132 lines in 10 placesmarkdowndocs and examples1,455 tokens
- 950 lines in 2 placesmarkdowndocs and examples12,293 tokens
By format, code only
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| typescript | 696 | 207,591 | 126 | 1,457 | 0.7% |
| bash | 136 | 36,854 | 41 | 503 | 1.36% |
| javascript | 11 | 4,800 | 12 | 258 | 5.38% |
| c | 4 | 755 | 4 | 39 | 5.17% |
| swift | 2 | 711 | 0 | 0 | 0% |
| powershell | 3 | 351 | 0 | 0 | 0% |
| python | 2 | 340 | 0 | 0 | 0% |
| awk | 1 | 125 | 0 | 0 | 0% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| typescript | 2,691 | 695,210 | 2,123 | 19,151 | 2.75% |
| markdown | 560 | 144,570 | 792 | 36,907 | 25.53% |
| json | 510 | 108,568 | 377 | 11,625 | 10.71% |
| bash | 324 | 46,060 | 274 | 3,249 | 7.05% |
| txt | 98 | 8,351 | 126 | 2,913 | 34.88% |
| yaml | 107 | 10,322 | 105 | 1,290 | 12.5% |
| text | 195 | 8,527 | 96 | 1,159 | 13.59% |
| markup | 57 | 4,324 | 40 | 564 | 13.04% |
| javascript | 51 | 5,875 | 34 | 556 | 9.46% |
| diff | 66 | 2,388 | 13 | 196 | 8.21% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Nov 6, 2026 | #2 | 140,083 (+612) | 4,720 | 1,041,645 | 3,990 | 7.46% | 0.9% | C 65.1 | 8d712d6 |
| Nov 5, 2026 | #6 | 139,458 (+290) | 4,676 | 1,033,753 | 3,945 | 7.47% | 0.88% | C 65.1 | 4a2e208 |
| Oct 5, 2026 | #7 | 135,219 (+125) | 3,157 | 711,361 | 2,804 | 8.1% | 1.09% | C 66 | 857466f |
Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.