Quick Answer
Key takeaways
- Agents checked within a minute of stating their goal drifted 0% of the time; after 30 minutes, 67.9% drifted.
- laserbrain freezes the agent's initial goal statement where the agent cannot revise it, then scores every step against that reference.
- Returns nine verdicts—grounded, drifting, spiralling, oscillating, wrong-problem—plus distance from starting point.
- Grammar-based detection runs locally in single-digit milliseconds; no second LLM, no network calls, no training.
- Catches sequence failures invisible to single-step thresholds: agents bouncing between two goals score fine at each step but fail over time.
- Free and open source for single-machine use; hosted service available for multi-agent deployments.
Why Agents Drift Without Failing
Agentic drift is the silent token burn: agents work competently on something adjacent to your request, reporting progress at every step.
- Nothing errors—logs read like success, tool calls execute cleanly, and you discover the problem only after reading the full transcript.
- Asking the agent doesn't help: self-assessment is the one measurement a system cannot make about itself, because the faculty that would notice the drift is the one that drifted.
- Example: asked to fix one failing auth test, an agent drifts three steps into refactoring the session store—each step individually reasonable.
- laserbrain's own corpus showed the assistant chose 'advancing' 28 out of 28 times through seven flawed experimental designs that produced nothing.
- The problem is the sequence, not any single reading: an agent oscillating between two goals passes threshold checks at every individual step.
- Agents checked after 30+ minutes drifted 67.9% of the time—roughly two runs in three—while those checked under a minute drifted 0%.
How laserbrain Holds the Goal Immutable
The freezing is the product: a reference the measured thing can revise drifts along with whatever it measures.
- The agent states its goal on step one; laserbrain freezes that statement where the agent cannot reach or revise it.
- Every later step is scored against the frozen goal using a fixed algebraic grammar—four bands, XOR only—computed locally in milliseconds.
- Returns one of nine verdicts per step: grounded, drifting, spiralling, oscillating, wrong-problem, stalled, self-report:stuck, goal-drift, ungrammatical.
- Measures displacement from the starting point, not against a rolling window or average—so sequence failures become visible.
- When a subagent was allowed to reset ground in testing, the parent goal was overwritten and every later check falsely reported on-track execution.
- Install via pip install laserbrain or one line in an MCP client config; any MCP-speaking agent picks up the full toolkit.
What laserbrain Is and Isn't
- Runtime goal-alignment harness: holds the goal while the run continues, distinct from tracing (records what happened afterward) and hallucination checks (validates output truth, not task alignment).
- Observability sits across runs; laserbrain is one signal inside one run—a span-level metric if you already run continuous evaluation.
- Measures execution where the goal is fixed before the run starts; not for exploration tasks where you figure out what to build while building.
- Grammar-based, not model-based: no second LLM judging the first, no network call in your loop, nothing to train or tune.
- Free tier is the whole install; hosted service exists when you have several agents running across machines.
- laserbrain's own tool-call share is 17.6% median, measured so token-savings claims clear a documented baseline.
Frequently asked questions
How does laserbrain detect drift without a second LLM?
laserbrain uses a fixed algebraic grammar—four bands, XOR only—computed locally in single-digit milliseconds, not a model judging another model.
What happens if I check an agent after 30 minutes?
In laserbrain's corpus, agents left unchecked past 30 minutes drifted 67.9% of the time, versus 0% when checked within a minute of stating the goal.
Can an agent reset its own goal to avoid drift detection?
No—laserbrain freezes the agent's first stated goal where the agent cannot reach or revise it; attempted resets are what trigger the goal-drift verdict.
Does laserbrain work for exploratory or creative tasks?
laserbrain measures execution where the goal is fixed before the run starts; on exploration tasks it will report drift continuously, correctly, and to no purpose.
How do I integrate laserbrain into my workflow?
Install via pip install laserbrain, add one line to your MCP client config, or use the hosted API endpoint when coordinating multiple agents.
Who Should Use laserbrain
- Use laserbrain if you run agents on complex, long-duration tasks where token spend matters and you need real-time drift detection before reading transcripts.
- Skip laserbrain if your tasks are exploratory, goals change mid-run by design, or agents complete in under a minute with manual review.
- Get started by installing the open-source package or reviewing drift taxonomy and founder use cases on <a href="https://tools.launchllama.co/products/laserbrain-goal-alignment-harness-for-ai-agents">laserbrain · goal-alignment harness for AI agents on Launch Llama</a>.