4 views

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

TypeScript★ 140,083+612 that day#2 on trending

Analyzed November 6, 2026 at 8d712d6 (main) with jscpd v5 in 7.7s. Code duplication went from 1.09% on Oct 5 to 0.9% on Nov 6.

C65.1/100
Project health745,549 lines of code (L)
Duplication80
2.7% in typescript, bash, javascript, swift, c, objectivec, powershell, python, sql, awk, docker, ruby, tsx, c-header, jq, vue
Dead code89
1.2%
Complexity39
67.7%

The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.

0.9%duplicated code · 2,257 of 251,527 lines
183clones in code
855code files of 4,720 scanned
7.46%duplicated over all files · 3,990 clones

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
Largest clones over all files, tests and data included
By format, code only
FormatFilesLinesClonesDuplicated linesDuplication
typescript696207,5911261,4570.7%
bash13636,854415031.36%
javascript114,800122585.38%
c47554395.17%
swift2711000%
powershell3351000%
python2340000%
awk1125000%
By format, all files
FormatFilesLinesClonesDuplicated linesDuplication
typescript2,691695,2102,12319,1512.75%
markdown560144,57079236,90725.53%
json510108,56837711,62510.71%
bash32446,0602743,2497.05%
txt988,3511262,91334.88%
yaml10710,3221051,29012.5%
text1958,527961,15913.59%
markup574,3244056413.04%
javascript515,875345569.46%
diff662,388131968.21%

Trending appearances

DayRankStarsFilesLinesClonesAll filesCodeHealthCommit
Nov 6, 2026#2140,083 (+612)4,7201,041,6453,9907.46%0.9%C 65.18d712d6
Nov 5, 2026#6139,458 (+290)4,6761,033,7533,9457.47%0.88%C 65.14a2e208
Oct 5, 2026#7135,219 (+125)3,157711,3612,8048.1%1.09%C 66857466f

Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.