Lasimeri

Xks Id — AI skill for Claude Code

AI community

Heuristic intrusion-detection engine for prompt injection in AI agent harnesses.

How to install Xks Id

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Lasimeri/xks-id and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Xks Id does

Heuristic intrusion-detection engine for prompt injection in AI agent harnesses. Reads the turns XKS-Memory records (Claude Code, omp), flags injected instructions, tells the model. Deterministic C on the CPU, no GPU; Rust TUI.

Alternatives in AI

  • Surface — Show ranked attack surface for a target from its recon manifest + hunt memory 3.8k ★
  • Herdr Agent Usage — Credential-scoped AI quota, context, and cache in Herdr for Claude, Codex, Grok, Agy, OpenCode, Pi, omp, Devin 131 ★
  • Tma1 — Local-first observability your agent reads back 116 ★

README

xks-id

A heuristic intrusion-detection engine for prompt injection in AI agent harnesses. It works from the turns that [XKS-Memory](https://github.com/Lasimeri/XKS-Memory) records.

XKS-Memory logs every turn of the harnesses it is attached to (Claude Code, omp, and any other): what the operator typed, what the model answered, every tool call and every tool result. `xks-id` reads those recorded turns all day, flags tool output that reads like instructions to the model, tells the model which turns of its own session were flagged so it can correct itself, and shows the operator everything in a terminal interface.

XKS-Memory is not modified. `xks-id` never opens its store and writes nothing under its directory. No language model runs at detection time and no GPU is needed: the engine is deterministic C on the CPU.

**Decision vectors:** [huggingface.co/Lasimeri/xks-id-vectors](https://huggingface.co/Lasimeri/xks-id-vectors). Optional, about 1 GB, fetched and checked by `make fetch-vectors`.

How it works

╔══ one host, no GPU at run time: XKS-Memory records, xksid reads, the model is told ══════════════╗
║ ┌─ agent harnesses ────┐ every turn       ┌─ XKS-Memory, unmodified ─────┐                       ║
║ │ Claude Code, omp     │─────────────────▶│ stores each turn as one file │                       ║
║ └──────────────────────┘                  └──────────────────────────────┘                       ║
║ ┌─ decision model ─────┐ once, offline    ┌─ xksid-distil, xksid-fit ────┐                       ║
║ │ LiquidAI d1-2B BF16  │─────────────────▶│ table 128,000 x 2,048 F32,   │                       ║
║ │ never run again      │                  │ tokenizer bundle, head       │                       ║
║ └──────────────────────┘                  └──────────────┬───────────────┘                       ║
║                                                          ▼                                       ║
║ ┌─ turn files ─────────┐ read-only, 2 s   ┌─ xksid watch, al