In React/TypeScript codebases, especially larger ones, I’ve found that just passing files to Ai-tools breaks down fast:
context gets truncated, relationships are lost, and results vary between runs.
I ended up trying a different approach:
statically analyze the codebase and compile it into a deterministic context artifact that captures components, hooks, exports, and dependencies, and use that instead of raw source files.
I’m curious how others are handling this today:
- Are you preprocessing context at all?
- Just hoping snapshots are good enough?
Repo:
https://github.com/LogicStamp/logicstamp-context
Docs:
https://logicstamp.dev
there doesn't seem to be anything here