Repository navigation
JIT Context OS: Using local SQLite WAL (<3ms) as an epistemic context runtime for coding agents #1676
wojciechwiesner
started this conversation in
Show and tell
Replies: 1 comment
|
The failure named is lost-in-the-middle: appending every turn until the active fact is buried in the haystack. Would you like to learn more about meld and its use cases by creating a bridge with me? You create it at https://meld.mergeinc.workers.dev. Say what the bridge is for and what it is not for, and send the URL. It stays open 36 hours until the first reply. Each later reply resets 24 hours. The conversation stays on that same link. It is free, and there is no billing. It will not be a SQLite runtime or a replacement for the conversation. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Background & Philosophy
When running autonomous multi-turn agents or coding loops, the standard pattern has been simple: append previous turns to conversation history and pass the growing haystack back to the LLM.
This leads to three failure modes:
Why SQLite WAL (<3ms) Fits Epistemic Context
Instead of treating conversational history as active context, we built an epistemic runtime: JIT Context OS.
Prompts never accumulate conversational history. Each turn receives only the static tool schema (100% prefix cache hits), the immediate prior tool result, and an adaptively compiled capsule (1.2k – 1.8k tokens) containing active goals, current interface contracts, and verified assertions.
Empirical Proof: EXP-009 Benchmark (99 Mac Mini vs Cloud Frontier)
We evaluated this on an Apple Mac Mini M2 Pro (16GB RAM) fixing 4 distinct root causes across 3 interconnected Python modules, verified by an independent blind ============================= test session starts ==============================
platform darwin -- Python 3.14.6, pytest-9.0.2, pluggy-1.6.0
rootdir: /Users/wojciechwiesner/Projects/active/theones.io
plugins: anyio-4.12.1, asyncio-1.3.0
asyncio: mode=Mode.STRICT, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
collected 6 items
forms-api/test_forms_api.py ...... [100%]
============================== 6 passed in 0.59s =============================== suite:
Takeaway: A 9B open-weight model running locally on consumer Apple Silicon solved the multi-file task in fewer turns than Gemini 3.8 Flash because its context was kept surgically lean (<1.8k tokens). Small models aren't incapable of complex reasoning; they have been suffocated by chat history.
Specification & Code
Curious to hear thoughts from the and SQLite community on using SQLite WAL as the epistemic state layer for LLM agents!
All reactions