# install
npm install crossagent-memory
# scan any AI response for injection before trusting it
import { Crossagent } from 'crossagent-memory'
const engram = new Crossagent({ apiKey: 'your-key' })
// scan before acting on AI output
const scan = await engram.memory.scan(aiResponse)
if (scan.verdict !== 'clean') {
console.warn('Injection detected', scan.flags)
}