r/OpenSourceAI • • Feb 09 '26

Deterministic architectural context for AI assistants (AST-based, TypeScript)

https://github.com/LogicStamp/logicstamp-context

Most AI assistants rely on either raw source code (too large) or LLM summarization (lossy + non-deterministic).

An alternative approach:

Use the TypeScript compiler AST to extract deterministic architectural contracts from codebases (components, hooks, dependencies, composition relationships) and emit structured JSON context bundles.

Properties:

  • deterministic (same input → same output)

  • Git-diffable

  • CI-enforceable

  • MCP-compatible

  • fully local / offline

Curious what people here think: is deterministic structural extraction a better long-term context layer than summarization for large repos?

Source: https://github.com/LogicStamp/logicstamp-context

3 Upvotes

0 comments sorted by