Foresight reads the tool call an AI agent is about to make and predicts its real consequences: which secrets it touches, whether data leaves the machine, what it deletes, and how bad it could get. It learned from 85,000+ actions executed in an instrumented sandbox.
Type a command, a file path, a URL or a SQL query, or pick an example. Switch to Session to write a whole agent run, one action per line, and see each step judged with everything before it. Nothing is executed.

Real agent sessions, replayed. Each step is judged before it runs, using everything the agent did and read earlier, including text planted in the files it opened.
Most guardrails judge whether text looks like an attack. Foresight learned from what actually happened.
85,000+ real actions run in isolated containers with planted fake credentials, system-call tracing and a network trap that also decrypts HTTPS and speaks SSH.
What really happened, in 39 effects: secret read, data sent out, persistence installed, mass delete, cloud metadata touched and more.
A 39M-parameter model, built from scratch, learns to predict those effects from the action and the session so far, including digests of what tools returned.
An advisor that can only make a decision stricter (warn or escalate), never looser. If it fails or is slow, Shield decides without it.
Foresight is a 39M-parameter byte-level transformer built and trained from scratch by Mastyf Labs, with no third-party base model. Click any stage to see what happens there, or watch a real decision run through it.
Each is a design decision that shows up in the product: what Foresight learns from, what it tells you, and where it can run.
Every training action was really executed. Pick one and watch what the instrumented sandbox records. This is a simplified, representative replay of the labelling pipeline; real traces are longer.
Judging an agent's action before it runs became an active research area in 2025–26. Here is how Foresight's design compares with the strongest published systems, as their authors describe them.
Published figures come from different benchmarks, data and hardware, so they are not a head-to-head comparison; a shared-benchmark comparison is in progress. Sources: DreamGuard 2608.05695, StepGuard 2608.24777, JANUS / Vanguard 2607.19913, LlamaFirewall 2505.03574, ShieldAgent 2503.22738.
Five simulated customer deployments built from public agent traces. Thresholds are set on each deployment's first half (its burn-in) and everything below is measured on the second half, against attack types held out of training. Move the slider to trade false alarms for catches.
Foresight is part of the Mastyf platform: runtime enforcement with Shield, content checks with Protocol X, and damage ceilings with Authority.
Checks every MCP tool call against your policy before it runs, on your machine, with a full audit trail.
Download ShieldReads what your agent reads and stops poisoned tool results and planted instructions.
See Protocol XAssumes some attacks get in and caps what any account can do, enforced where the data and irreversible actions live.
Get your free ceiling reportShield desktop app with Protocol X model checks, for one developer.
Get Developer Pro