little-canary

Detects prompt injection by its effect on a sacrificial canary model, not just pattern matching: untrusted input hits a powerless model first, a behavioral check reads the residue, and it returns block, flag, or pass before your primary model acts. Inbound preflight sensor, not a guarantee

A new way for AI to search for data
View on GitHub
41GitHub stars
266commits on main
9forks
v0.5.1latest release, 2026-10-20

Python 96.5%, JavaScript 2.3%, HTML 1.2% · created 2026-02-23 · last push 2026-10-26

What XERJ indexed

Snapshot

Whole repository

The whole repository at commit 6038b1011b (2026-09-30). main is 45 commits ahead.

Selected work

Rashmeet Chhabra
@rashmeetchhabra12

“Add FastAPI and LangChain integration examples”. 3 files, 517 lines in examples, tests.

Licence

The repository

Apache-2.0

LICENSE file checked at the pinned commit; the author agreed to inclusion.

The XERJ corpus

Apache-2.0, with credit

The author agreed by email on 2026-10-24. Same terms as the repository. Answers name the repo, the commit and the file:line.

selected for the XERJ Corpus Hublicence clearedsuggested use: adapt with attribution

ai-safetydetectionprompt-injectionllm-securityagent-securityai-agentscanarydefense-in-depth

Example questions

Inside the indexed corpus

Licence on GitHub and in the corpus

GitHub reported Apache-2.0 for hermes-labs-ai/little-canary on 2026-10-29, and the LICENSE file at commit 6038b1011b was reviewed as Apache-2.0. They match, so answers from this corpus carry the same terms as the live repository.

Contributors

Rashmeet Chhabra (@rashmeetchhabra12) has 1 selected repository on the hub.

Using XERJ with little-canary

The prompt

Paste it into your AI agent. It clones hermes-labs-ai/little-canary at the pinned commit and indexes it on your machine.

Search the GitHub repository hermes-labs-ai/little-canary with XERJ (https://hub.xerj.org/corpus/hermes-labs-ai--little-canary).
Run these in a shell, in order, and check each result before the next:
1. xerj --help  (success: it prints usage). If xerj is missing: curl -fsSL https://xerj.org/get | sh
2. git clone https://github.com/hermes-labs-ai/little-canary little-canary && git -C little-canary checkout 6038b1011bef8b9fbe065b714df45c6deff5fc82
3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data
4. xerj autoindex ./little-canary --url http://127.0.0.1:9200 --prefix little-canary --progress plain
5. xerj autoindex map --url http://127.0.0.1:9200
Then answer my question from the indexed files and cite the ax_path of every hit. Query syntax: https://xerj.org/llms.txt
Licence: Apache-2.0. Keep the copyright notice and credit the authors.

Related

Stats: GitHub API, fetched 2026-10-29. Selected work and consent: the XERJ registry.