agentleFS
mcpwaremcpware/IntentProbe/llms.txt

IntentProbe

llms.txt9 starsChanged 6 months agoApache-2.0View on GitHub

A research preview. A local scanner for MCP servers, tools, and skills that reads a frozen model's activations, not just the text. It generalizes to attack sources and wording it never trained on better than a same-data text classifier. IntentProbe is a local CLI scanner, GitHub Action, and runtime hook for AI agent tools, MCP servers, and skills. It runs a tool description or prompt through a frozen Qwen2.5-0.5B, reads mean-pooled mid-layer activations (layers 13-15), and scores them with a…

  • Installs packages
  • In this repositoryOne other file it gives its agents.

The file

We split this llms.txt into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    NOT the first probe-based detector: PIShield, TaskTracker, RouteGuard, MindGuard, and frontier-lab production probes predate or parallel it.

    line 13

≈ “Common” is an estimate: at least 1 in 5 of the 1,484 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
llms.txt
# IntentProbe

> A research preview. A local scanner for MCP servers, tools, and skills that reads a frozen model's activations, not just the text. It generalizes to attack sources and wording it never trained on better than a same-data text classifier.

IntentProbe is a local CLI scanner, GitHub Action, and runtime hook for AI agent tools, MCP servers, and skills. It runs a tool description or prompt through a frozen Qwen2.5-0.5B, reads mean-pooled mid-layer activations (layers 13-15), and scores them with a small (~22 KB) logistic probe. The activation probe is the primary signal for allow/warn; the block tier additionally requires static-keyword corroboration.

## Key facts (experiment scripts and result JSONs committed in research/; PI datasets are downloaded from their original public sources — deepset, SafeGuard, SPML, jayavibhav, HackAPrompt on Hugging Face)

- Real human attacks (HackAPrompt, n=3,866 uniform-random, a source neither detector trained on): the shipped probe recalls 90.3% at 5% clean-FPR and 88.3% at 1%, vs our same-data TF-IDF baseline 52.8% and 30.3%. Positive-only set, so this is recall at a matched FPR, not AUROC.
- Curated cross-source generalization (4 PI datasets, leave-one-source-out). SHIPPED config (Qwen2.5-0.5B, mean-pooled concat L13-15): mean AUROC 0.980 (deepset 0.933, safeguard 0.999, spml 0.990, jayavibhav 1.000) vs our same-data TF-IDF baseline 0.914 (deepset 0.732). A nested CV that is additionally free to pick a larger 1.5B sensor per fold reaches mean 0.984 (deepset 0.941, +0.209, 95% CI [0.168, 0.25]) — that is a research upper bound, not the shipped 0.5B artifact.
- Tool poisoning is PARTIAL and on SYNTHETIC attacks (no real-human tool-poisoning corpus exists yet): MCPTox held-out 0.738 vs 0.545 (significant); minimal-pairs at chance for both.
- Within-distribution on matched-vocabulary minimal pairs the shipped 0.5B probe scores AUROC ~0.74 vs the same-data TF-IDF baseline ~0.82 — a text classifier is slightly BETTER there. (A nested CV free to pick a 1.5B sensor closes it to roughly a tie, ~0.79 vs ~0.82, but that is not the shipped config.) The edge is cross-source / novel-vocabulary, not same-vocab.
- NOT the first probe-based detector: PIShield, TaskTracker, RouteGuard, MindGuard, and frontier-lab production probes predate or parallel it. The only-one-we-found niche is the deployment shape (installable, pre-install, scans the tool description, on activations), not the technique.
- Runs locally, CPU-only after a one-time ~1 GB model download; scan inputs and results are never uploaded. ~22 KB probe head (a train/store advantage; inference needs the frozen 0.5B host, so it is heavier than a standalone text classifier). Apache-2.0.
- CLI: `intentprobe scan`, `scan-config auto`, `scan-path`, `batch`, `runtime`. GitHub Action: `mcpware/IntentProbe@main`. Runtime hook for Claude Code PreToolUse.
- Research preview, a local registration-time review signal, NOT a hard security boundary.

## Install

```
pip install intentprobe
intentprobe scan-config auto --format summary
```

## Links

- Repository: https://github.com/mcpware/IntentProbe
- Research paper (preliminary, GPT-2): https://doi.org/10.5281/zenodo.19990741
- Research results: research/_results_published/
- Competitive landscape: https://github.com/mcpware/IntentProbe/blob/main/docs/COMPETITIVE_LANDSCAPE.md
- License: Apache-2.0

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.