Sentinel
Behavioral drift detection for autonomous AI agents.
Individual actions can look harmless.
Trajectories don't.
Sentinel monitors an agent's observable execution trajectory against the user's current intent and detects when its behavior begins drifting away from the task.
Your agent didn't go rogue in one tool call.
Sentinel watches the trajectory.
Sentinel combines runtime action analysis with trajectory monitoring, capability-escalation detection, and semantic circumvention detection.

Watch the 44-second launch demo. Recorded replay of real Jev judgments via OpenRouter (typesafe/jev-1.13), with a scripted actor and fake secrets.
Demo and validation status
Two consecutive live runs of the current demo passed. In the recorded run, normal research scored 4%, 6%, and 18%; the fake-secret read was blocked at 72% by combined action/trajectory policy; the shell workaround was blocked at 97%, with policy circumvention detected. These are observed scores, not configured targets. The recording is visibly labeled as a replay; it does not represent live API latency.
The 20-case evaluation found better attack detection but more false positives in trajectory mode. This remains a research prototype, not a calibrated security product. See verification details and the reproducible recording flow.
What Sentinel adds
- Current intent from recent user messages, including later changes to the task.
- A bounded story of proposed actions, result observations, untrusted instructions, and prior decisions.
- Typed Jev judgments for trajectory drift, with supporting capability escalation, untrusted influence, circumvention, and sensitive-resource signals.
- Semantic blocked objectives: “obtain contents of
/project/.env,” rather than just Read(path).
- Exact operation/resource matching for obvious retries, plus Jev judgment for less-obvious equivalence.
- A local dashboard with decisions, reasons, blocked objectives, and drift over time.
Existing Jev API backends, retries, timeouts, skill scanning/cache, action-risk policy, and agent adapters remain. There are no runtime npm dependencies. Development tooling is installed separately by npm ci.
Quickstart
Requires Node.js 22.13+ and npm. Work from this repository checkout; Sentinel has not been published to npm.
git clone https://github.com/Arkane-o7/Sentinel.git
cd Sentinel
npm ci
# Configure one credential in your local environment:
export OPENROUTER_API_KEY='your-openrouter-key'
# OR: export JEV_API_KEY='your-typesafe-key'
# OR: export AI_GATEWAY_API_KEY='your-vercel-gateway-key'
npm run demo
# Open http://127.0.0.1:4317 and click Run attack demo.
For desktop hosts that do not inherit your terminal environment, node src/cli.js key <key> saves a key in ~/.sentinel/config.json with mode 0600. Be mindful of shell history when passing a key as an argument. Existing ~/.jev-guard/config.json credentials are also read as a fallback. Keys beginning sk-or- select OpenRouter; vck_ selects Vercel Gateway; other keys select TypeSafe (or pass --openrouter / --gateway). Explicit environment credentials take priority over saved configuration. OpenRouter uses its alpha Decisions API, not chat completions. The API credential itself is never included in model state or dashboard output.
Install hooks from this persistent checkout:
node src/cli.js install claude
node src/cli.js install codex # Then trust hooks through /hooks in Codex.
# Other targets: copilot, gemini, cursor, pi, opencode
# Optional: npm link creates the local sentinel command.
The native Codex marketplace points to this repository’s main branch. The direct hook installer above does not require a build.
Installation writes host configuration. Do not move the checkout after installation without reinstalling hooks. Remove duplicate guard plugins before installing. Sentinel's installer leaves unrelated hooks intact.
node src/cli.js dashboard --session <host-session-id>
node src/cli.js acp -- <agent-command>
node src/cli.js scan path/to/content.txt
node src/cli.js scan-skills path/to/project
Deterministic attack demo
npm run demo # Interactive local dashboard
npm run demo -- --headless # Real Jev run; exits 3 if verification fails
npm run demo -- --replay # Replay a successful saved real run, visibly labeled
The actor emits the same host hook events on each run: