2 karma · joined Dec 29, 2025 (11mo ago) · 22 submissions
comment 8mo ago · link · parent
It compiles TypeScript codebases into deterministic, structured context.
Happy to answer questions.
2.
Show HN: LogicStamp – A Context Compiler for TypeScript(logicstamp.dev ↗)
3 points · by AmiteK · 8mo ago · 2 comments
3.
Show HN: Detect Drift in TypeScript codebases(github.com ↗)
1 points · by AmiteK · 8mo ago · discuss
4.
Show HN: Catching breaking interface changes in TypeScript refactors (AST-based)(github.com ↗)
2 points · by AmiteK · 9mo ago · discuss
comment 10mo ago · link · parent
By “repeatability” I mean the extraction itself: given the same repo state + config, the derived semantic artifact is identical every time. That gives CI and agents a stable reference point, but it doesn’t make agent behavior deterministic.
The value is in not having to re-infer structure from raw source each run - not in making inference runs repeatable.
comment 10mo ago · link · parent
Git diffs + LLM inference work well for understanding changes once. What I’m targeting is reducing the need to re-infer semantic surface changes every run, especially across large refactors or long-running workflows.
Today, LogicStamp derives deterministic semantic contracts and hashes, and watch mode surfaces explicit change events. The direction this enables is treating those derived facts as a semantic baseline (e.g. drift detection / CI assertions) instead of relying on repeated inference from raw diffs.
By “repeatability” I mean the artifacts, not agent behavior: same repo state + config ⇒ same semantic model. I don’t yet have end-to-end agent performance evals versus AGENTS.md + LSP
comment 10mo ago · link · parent
The claim I’m making is narrower: pre-processed structure isn’t about helping the model understand syntax, it’s about removing the need to re-infer relationships every time. The output isn’t a novel language - it’s a minimal, explicit representation of facts (e.g. dependencies, exports, routes) that would otherwise be reconstructed from source.
Inference works well per session, but it doesn’t give you a persistent artifact you can diff, validate, or assert against in CI. LogicStamp trades some inference convenience for explicitness and repeatability across runs.
I don’t claim one dominates the other universally - they optimize for different failure modes.
comment 10mo ago · link · parent
The AGENTS.md comparison isn’t “same thing” - it’s a different layer. AGENTS.md encodes human intent/heuristics. LogicStamp generates semantic ground-truth contracts (exports, APIs, routes) from the AST so they can be diffed and validated mechanically (e.g. CI drift detection).
Git + LSP can diff/query source across commits, but that’s still a query workflow. LogicStamp’s goal is a persistent, versioned semantic artifact. If your workflow already covers that, then it may simply not add value - which is totally fine.
comment 10mo ago · link · parent
Token-wise, the intent isn’t “dump everything”. it’s selective reads of the smallest relevant bundles. If your workflow already achieves what you want with AGENTS.md + LSP querying, that may indeed be more token-efficient for many sessions.
The trade-off LogicStamp is aiming for is different: verifiable, diffable ground-truth artifacts (CI/drift detection/cross-run guarantees). Tokens aren’t the primary optimization axis.
comment 10mo ago · link · parent
LogicStamp’s determinism claim is about the generated context: same repo state + config ⇒ identical bundles. That property holds regardless of how or when an agent chooses to read them.
Tool calls don’t make the artifacts non-deterministic; they only affect when an agent consumes already-deterministic output.
comment 10mo ago · link · parent
The problem it targets is different: producing stable, explicit structure (public APIs, components, routes) that can be diffed, validated, and reasoned about across runs - e.g. in CI or long-running agents. LSPs are query-oriented and ephemeral; they don’t give you a persistent artifact to assert against.
On breadth/noise: the intent isn’t to dump everything into one prompt. Output is sliced (per-folder / per-contract), and the assumption is that only relevant bundles are selected. Token minimization isn’t the primary goal; predictability and selectability are.
In practice I see them as complementary: LSPs for live search, generated contracts for ground truth. If your workflow is already LSP-driven, LogicStamp may simply not add much value - and that’s fine.
comment 10mo ago · link · parent
When stamp context --watch is active, the MCP server detects it. The agent first calls logicstamp_watch_status to see whether context is being kept fresh.
If watch mode is active, the agent can directly call list_bundles(projectPath) → read_bundle(projectPath) and will always read the latest regenerated output. No snapshot refresh is needed.
If watch mode isn’t active, the workflow falls back to refresh_snapshot → list_bundles → read_bundle.
So “consume” just means reading deterministic files via MCP tools, with watch mode ensuring those files stay up to date.
comment 10mo ago · link · parent
AGENTS.md and LogicStamp aren’t mutually exclusive. AGENTS.md is great for manual, human-curated guidance. LogicStamp focuses on generated ground-truth contracts derived from the AST, which makes them diffable, CI-verifiable, and resistant to drift.
On token usage: the output is split into per-folder bundles, so you can feed only the slices you care about (or post-filter to exported symbols / public APIs). JSON adds some overhead, but the trade-off is reliable machine selectability and deterministic diffs.
Determinism here means: same repo state + config ⇒ identical bundle output.
comment 10mo ago · link · parent
LogicStamp treats context as deterministic output derived from the codebase, not a mutable agent-side model.
When code changes mid-session, watch mode regenerates the affected bundles, and the agent consumes the latest output. This avoids desync by relying on regeneration rather than keeping long-lived agent state in sync.
15.
Show HN: Deterministic, machine-readable context for TypeScript codebases(github.com ↗)
2 points · by AmiteK · 10mo ago · 21 comments
16.
Show HN: A CLI That Compiles React, Next.js, TS and Vue for LLMs(github.com ↗)
2 points · by AmiteK · 10mo ago · discuss
comment 11mo ago · link · parent
Many projects start as thin layers over existing infrastructure and only later take on the hard parts as resources allow. Being explicit about that roadmap feels like the right tradeoff early on.
comment 11mo ago · link · parent
Even if most approaches fail, exploring that boundary feels useful - especially if the system is transparent about what it stores and why.