Axi Series
Axion
Agent cognitive middleware - a proxy layer that inspects, detects, and verifies agent reasoning in real time.
Problem
Agents make decisions developers cannot understand, get stuck in loops they cannot break, and take actions they cannot verify. Existing observability tools (Langfuse, Arize, Braintrust) show what happened but never explain why. There is no stack trace for agent reasoning.
Solution
Axion is a proxy that sits between any AI agent and the outside world. It intercepts model responses through SSE streaming, extracts beliefs and reasoning chains using a rule-based parser, builds a belief DAG across the session, and visualizes every decision point. Three layers: observe (Lens), detect (Loop), block (Gate). Zero code changes - just set base_url.
How it works
01
SSE Proxy
02
TransformStream Tee
03
Belief Extraction
04
Belief DAG
05
Timeline Dashboard
When to use
- - Debugging agents that silently change their mind or repeat themselves across a session.
- - Auditing agent decisions after a failed deployment - trace which belief caused the wrong action.
- - Inspecting live reasoning in long-running agent sessions (Claude Code, Codex, Cursor).
- - Building trust in agent workflows by making every decision visible and explainable.
Not for
- - Single-shot completions where there is no agent loop to observe.
- - Environments that cannot route traffic through a proxy (some enterprise networks).
- - Replacing observability dashboards - Axion supplements them with belief-level insight.
Features
Belief extraction (regex + NLP, no model dep, <1ms)
Belief DAG per session with root-cause backtracking
SSE streaming via TransformStream tee (zero added latency)
Agent-agnostic (works with any base_url-compatible agent)
Confidence scoring from linguistic markers (0.0-1.0)
Dark-theme React dashboard with timeline, filters, stats
waitUntil() extraction - agent never waits
Open-source MIT, deploy on CF Workers Free plan
Install / usage
# Point any agent at Axion - zero code changes
export ANTHROPIC_BASE_URL=https://your-axion-worker.dev
export OPENAI_BASE_URL=https://your-axion-worker.dev
# Deploy your own instance
git clone https://github.com/LatticeAG/Axion.git
cd axion
npm install
npx wrangler deploy
# Open the dashboard
# https://your-axion-worker.dev/dashboardArchitecture
Problem
Agents make decisions developers cannot understand, get stuck in loops they cannot break, and take actions they cannot verify. Existing observability tools (Langfuse, Arize, Braintrust) show what happened but never explain why. There is no stack trace for agent reasoning.
Solution
Axion is a proxy that sits between any AI agent and the outside world. It intercepts model responses through SSE streaming, extracts beliefs and reasoning chains using a rule-based parser, builds a belief DAG across the session, and visualizes every decision point. Three layers: observe (Lens), detect (Loop), block (Gate). Zero code changes - just set base_url.