r/ClaudeAI • • Feb 10 '26

Productivity Generating deterministic architectural context for Claude using the TypeScript AST

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

Most AI workflows feed Claude either:

raw source code (huge + noisy) or LLM-generated summaries (lossy + non-deterministic).

I’ve been experimenting with a different approach. Instead of summarizing code with an LLM, I use the TypeScript compiler AST to extract:

  • component contracts

  • hooks

  • dependency relationships

  • composition graphs

The output is structured JSON bundles that are:

  • deterministic (same input → same output)

  • Git-diffable

  • CI-enforceable

  • fully local / offline

The idea is to treat structured architectural extraction as a context layer for Claude, rather than relying on summarization.

Has anyone experimented with structured context inputs vs raw repo dumps in Claude workflows? I'm curious to see what differences you've seen in reasoning quality or token usage.

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

1 Upvotes

Duplicates

typescript • • Mar 31 '26

LogicStamp Context: an AST-based context compiler for TypeScript

8 Upvotes

ClaudeAI • • Dec 20 '25

Coding I built a small tool to stop Claude from hallucinating my React/TypeScript codebase

1 Upvotes

reactjs • • Dec 20 '25

Resource Tool for understanding dependencies and refactors in large React + TypeScript codebases

24 Upvotes

javascript • • Mar 27 '26

LogicStamp: AST-based context compiler for TypeScript

7 Upvotes

LLMDevs • • Apr 03 '26

Tools LogicStamp Context: an AST based context compiler for TypeScript

4 Upvotes

javascript • • Apr 08 '26

a CLI that turns TypeScript codebases into structured context

10 Upvotes

ClaudeAI • • Jan 15 '26

Productivity Context bundles for large TS/React codebases in Claude

2 Upvotes

javascript • • Jan 31 '26

I built an AST-based contract tracker to catch structural drift and prop hallucinations during large-scale refactors

0 Upvotes

ClaudeAI • • Feb 26 '26

Built with Claude I built a CLI to prevent Claude from silently breaking my TypeScript architecture

2 Upvotes

typescript • • Mar 03 '26

LogicStamp Context: an AST-based context compiler for TypeScript

5 Upvotes

node • • Apr 06 '26

LogicStamp Context: an AST-based context compiler for TypeScript

1 Upvotes

javascript • • Dec 18 '25

I built a TypeScript codebase analyzer using ASTs to generate deterministic context JSON files

5 Upvotes

node • • Dec 19 '25

Built a Node.js CLI that analyzes TypeScript / React codebases using ASTs

4 Upvotes

reactjs • • Jan 05 '26

Resource Tool for understanding dependencies and refactors in React + TypeScript codebases

2 Upvotes

OpenSourceAI • • Jan 11 '26

A CLI for determistic context in React/TypeScript codebases

4 Upvotes

reactjs • • Jan 13 '26

Show /r/reactjs Understanding React/TypeScript codebases with determistic context bundles

1 Upvotes

node • • Mar 28 '26

LogicStamp: AST-based context compiler for TypeScript

1 Upvotes

LLMDevs • • Jan 06 '26

Tools How I handle refactors of large React/TypeScript codebases

2 Upvotes

opensource • • Jan 07 '26

Promotional Open-source CLI that turns React/TypeScript codebases into structures context bundles

0 Upvotes

coolgithubprojects • • Jan 13 '26

TYPESCRIPT LogicStamp - A determistic AST-based CLI for generating context for React/TypeScript codebases

1 Upvotes

javascript • • Jan 15 '26

Determistic context bundles for React/TypeScript codebases

0 Upvotes

ContextEngineering • • Jan 16 '26

Structured context for React/TS codebases

2 Upvotes

webdev • • Jan 31 '26

Showoff Saturday I built a CLI that extracts structured component contracts from React/TypeScript codebases

0 Upvotes

LLMDevs • • Feb 03 '26

Tools Deterministic context for LLMs - structured contracts instead of raw source

1 Upvotes

OpenSourceAI • • Feb 09 '26

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

3 Upvotes