worked: add opencode TypeScript corpus (406 files, 12.6x reduction, honest review)#400
Open
sdeonvacation wants to merge 1 commit intosafishamsi:v4from
Open
worked: add opencode TypeScript corpus (406 files, 12.6x reduction, honest review)#400sdeonvacation wants to merge 1 commit intosafishamsi:v4from
sdeonvacation wants to merge 1 commit intosafishamsi:v4from
Conversation
Real production run on opencode/packages/opencode/src (406 TS/TSX files). 12.6x token reduction. Honest review calling out 3 bugs: - Generic method names dominate god nodes (push/get/set useless) - INFERRED edges appearing in AST-only update run - TypeScript barrel file re-exports not resolved Score: 4.3/10 overall. Useful as search index, misleading as arch map.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
A new worked example in
worked/opencode/— a real production run on the opencode codebase (packages/opencode/src/, 406 TypeScript/TSX files).Why opencode
Results
Bugs found and documented in review.md
Generic method names dominate god nodes —
push(),get(),set()with 40–72 edges each. Useless for TypeScript codebases with functional patterns. All 10 god nodes are JavaScript built-in method names, none are architectural concepts.INFERRED edges appear in AST-only
graphify updaterun — 34% of 2,958 edges are INFERRED (avg confidence 0.8) after an AST-only update. Expected: 0% INFERRED. At least one verified false positive:killTree()--calls-->sleep().TypeScript barrel file re-exports not resolved — Modules using
index.tsre-exports appear as isolated single-file communities. 175 of 213 communities are single-file isolates.Checklist
README.md,GRAPH_REPORT.md,graph.json,review.mdall present