Agentmetry
Free · Open source
SOC and DevSecOps teams
You set a breakpoint, you read the logits, you stare at the output — and you still have no idea what the model was 'thinking' between prompt and token. Subtext exists for that gap.
Subtext is an open-source, self-hosted tool that surfaces a local language model's internal representations — specifically the J-space global workspace identified in Anthropic research — as the model reads and generates, before output tokens appear. You get a browser-based live view and the ability to record, export, and replay sessions for later analysis. The stack is Python-based and runs against local models, so there is no cloud dependency and no data leaves the machine. The ceiling appears quickly: Subtext has no API, no integration hooks, and no support for models it cannot instrument directly — which means anything running behind a remote endpoint stays opaque.
Bottom line: Pick this if you are a researcher or developer running local models and want to see internal states that logs will never show you — but plan a different approach the moment your model lives on a remote server or you need to pipe observations into a broader evaluation pipeline.
Find your fit
More options in LLM Observability. Compare pricing, platforms, and features side by side.
Free · Open source
SOC and DevSecOps teams
Freemium
Developers building GenAI apps and agents
Most debugging tools for language models show you what came in and what came out. Subtext shows you what happened in between. The tool attaches to a locally-running language model and streams its J-space representations — internal states the model uses for multi-step reasoning — to a browser-based dashboard in real time. You can watch the verbal workspace shift as the model reads the prompt and before it commits to output tokens. Sessions can be recorded via `record_session.py`, exported, and replayed in the browser, so you can step through a conversation after the fact and inspect state at each turn.
The differentiating feature is the J-space instrumentation itself. Grounded in Anthropic research identifying a small set of internal representations that behave like a global workspace — contents that the model can verbally report, deliberately modulate, and causally use for reasoning — Subtext makes those representations observable rather than inferred. That is a different class of visibility than attention weights or token probabilities, and the repo includes a reference implementation and a paper link for teams who want to validate or extend the methodology.
Subtext fits tightly into one workflow: a researcher or developer with a local model who wants ground-truth visibility into reasoning steps, not just output quality. It breaks equally fast in two directions: any model running behind a remote API is outside its reach, and there are no hooks to feed observations into an external evaluation framework, a database, or a CI pipeline. Teams doing one-off debugging sessions will find it self-contained. Teams who need to track internal states across hundreds of runs and correlate them with downstream metrics will hit the export-and-do-it-yourself wall immediately.
The project ships with `server.py`, `test_client.py`, `test_multiturn.py`, and `verify_accuracy.py` alongside a `requirements.txt`, with Windows batch start support via `start.bat`. The interface is a single `index.html` served locally. There is no packaged binary and no install wizard — you clone, install dependencies, and run the server against a compatible local model.
Sign in to rate this tool or suggest an edit.