u/theov666

Built a small library to keep LLM outputs consistent with project constraints
▲ 3 r/OpenSourceeAI+1 crossposts

Built a small library to keep LLM outputs consistent with project constraints

Built a small library to keep LLM outputs consistent with project constraints

I kept running into cases where models would forget earlier decisions (e.g. suggesting new frameworks, rebuilding modules, etc.).

This is a simple approach:

  • extract decisions into structured rules (JSON)
  • retrieve only relevant ones per prompt
  • inject them as system context

Example rules:

  • “JSON storage only”
  • “no new frameworks”
  • “extend existing modules”

This reduced most of the drift in my workflows.

Repo (early but usable):
https://github.com/TheoV823/mneme

Curious if others are doing something similar or handling this differently.

u/theov666 — 6 days ago