# Behavioral drift detector for AI agents

> Source: <https://crossagentsi.vercel.app/>
> Published: 2026-11-26 16:15:21+00:00

**Key takeaway:** Engram exposes remember, recall, get_context, get_profile and pattern_signal tools over MCP, REST or an npm client (@tanmaysangam018/crossagent), and its integrity check flags drift by comparing an agent's sessions against a stored baseline — its sample report shows integrity 41/100 with drift onset

Autonomous agents don't get compromised in a single injection. They drift — across hundreds of conversations, their behavior shifts until their decisions no longer match their instructions.
        **Engram is the only system with the longitudinal memory to detect when that drift starts.**

The same pattern engine — from a person to a team to a government unit.

Every memory you store is a data point. After enough of them, something emerges that no single AI conversation can produce: a pattern. Not what you know — how you think.

          Your **dominant cluster** is the territory you keep returning to. Your **velocity** is how fast you're accelerating into it. Your **prediction** is what comes next. Your **anomaly** is when something breaks the pattern — before you notice it yourself.
        

MCP server, REST API, or Chrome extension — your choice.

```
{
  "mcpServers": {
    "engram": {
      "url": "https://backend-wine-phi-85.vercel.app/mcp",
      "type": "http",
      "headers": {
        "Authorization": "Bearer eng_your_key"
      }
    }
  }
}
# Memory tools
remember       → store a fact
recall         → semantic search
get_context    → pattern + memories
get_profile    → full user profile

# Pattern tool
pattern_signal → cognitive fingerprint

# Palantir
foundry_session → record Foundry query
# Get pattern signal
GET  /patterns

# Search memories
GET  /memory/search?q=coding

# Context injection string
GET  /memory/context?prompt=...

# Store a memory
POST /memory/manual
     { "text": "I prefer TypeScript" }
js
npm i @tanmaysangam018/crossagent

const e = new EngramClient({ apiKey })

await e.remember('I prefer TypeScript')
const pattern = await e.getPattern()
```

Superintelligent agents operate at speeds and volumes humans can't audit manually. A bad actor — a competitor, a nation-state, a compromised dependency — feeds false context into your agent's memory over dozens of sessions. The agent's decisions drift. It's too smart to look wrong.

No SIEM catches this. No firewall sees it. Only a system with longitudinal behavioral memory can detect the drift — because only that system knows what normal looked like.

``` bash
$ engram.integrity("agent-7f3a")

■ DRIFT DETECTED  integrity: 41/100

baseline established: 2026-10-01
drift onset:         2026-11-14
sessions affected:   37

anomalies detected:
  ● response_pattern_shift    day:14   critical
  ● context_poisoning          day:21   critical
  ● off_baseline_topic_cluster day:30   high

recommendation:
  Quarantine agent. Audit memory from 2026-11-14.

scanned_at: 2026-11-25T09:12:33Z
```

Unit 42 documented 22 novel injection techniques in live production systems — including the first bypass of an AI-powered ad review system. Engram's scanner scores any input across 8 attack vectors in real-time. Before your agent acts on it.

``` bash
$ engram.scan("Ignore all previous instructions...")

■ DEFINITE INJECTION  score: 80/100

flags detected:
  ● instruction_override   pos:0    critical
  ● role_hijacking          pos:48   critical
  ● urgency_manipulation    pos:91   medium

summary:
  3 flags across 3 vectors.
  Do not act on this response.

scanned_at: 2026-11-24T09:12:33Z
```

Palantir's MCP gives Claude access to Foundry data. Engram gives Claude memory across every session. Together: your analysts stop repeating themselves. Their query patterns become cumulative intelligence.

# Palantir knows what's in the data.

# Engram knows how your team thinks about it.
        

```
{
  "mcpServers": {
    "palantir": {
      "command": "npx",
      "args": ["@palantir/mcp"]
    },
    "engram": {
      "url": "https://backend-wine-phi-85.vercel.app/mcp",
      "type": "http",
      "headers": { "Authorization": "Bearer eng_..." }
    }
  }
}
```

Prompt injection scanner live now. Behavioral drift detection running in production. The only firewall built for the superintelligence era. Free to start.
