Thanks for helping make unfamiliar codebases easier to understand.
Use Node.js 20 or newer:
npm ci
npm run typecheck
npm test
npm run buildTo exercise the complete flow:
node packages/cli/dist/cli.js examples/simple-agent --no-openAgent Runtime Map separates code facts from human interpretation:
- The analyzer records deterministic facts in
RawCodeGraph. - The Logic Compiler selects, connects, and labels human-scale logic nodes.
- The Viewer consumes
LogicGraphonly; it must not parse source code.
Any new inference rule must:
- attach one or more source locations;
- state the inference method;
- assign a calibrated confidence;
- avoid creating a fact when the evidence is absent;
- include a focused fixture and regression test.
Do not send an entire repository to an LLM as a substitute for static analysis. Model-assisted features must be optional, disclose what data leaves the machine, and preserve evidence for every conclusion.
- Keep changes scoped and explain the user-visible behavior.
- Add or update tests for analyzer, compiler, schema, CLI, and security changes.
- Run
npm run release:checkbefore requesting review. - Update the changelog for user-facing changes.
- Avoid generated
dist/,.logic-map/, and coverage files.
Prefer a small adapter or detector with explicit conventions over adding framework-specific behavior to the Viewer. Include both positive and negative examples so ordinary functions are not over-classified.
Include the Agent Runtime Map version, Node.js version, framework, minimal reproduction, expected flow, actual flow, and relevant diagnostics. Remove secrets and proprietary source before attaching generated graph files.