prompt-protection

Tool-call guard for JavaScript agents: tainted tool results never reach a network, email, exec, file or payment sink. Pinned tools, budgets, fail-closed, zero dependencies, benchmark numbers published

A new way for AI to search for data
View on GitHub
3GitHub stars
138commits on main
0forks
v4.3latest release, 2026-10-29

TypeScript 87.6%, Python 6.8%, JavaScript 5.4%, Makefile 0.2% · created 2026-04-22 · last push 2026-10-29

What XERJ indexed

Snapshot

244 files · 4.6 MB

The whole repository at commit 9104c4d584 (2026-09-21). main is 50 commits ahead.

Selected work

Muhammad Zia
@mughalhere

“taint-correct guard, memory lineage, sub-agent handoff, …”. 37 files, 2,223 lines in src/guard, tests, bench.

Licence

The repository

MIT

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

The XERJ corpus

MIT, with credit

The author agreed by email on 2026-10-13. 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

aiartificial-intelligenceprompt-engineeringprompt-injectionsecurityai-safetyai-securityexpress

Example questions

Inside the indexed corpus

Licence on GitHub and in the corpus

GitHub reported MIT for mughalhere/prompt-protection on 2026-10-31, and the LICENSE file at commit 9104c4d584 was reviewed as MIT. They match, so answers from this corpus carry the same terms as the live repository.

Contributors

Muhammad Zia (@mughalhere) has 1 selected repository on the hub.

Using XERJ with prompt-protection

The prompt

Paste it into your AI agent. It clones mughalhere/prompt-protection at the pinned commit and indexes it on your machine.

Search the GitHub repository mughalhere/prompt-protection with XERJ (https://hub.xerj.org/corpus/mughalhere--prompt-protection).
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/mughalhere/prompt-protection prompt-protection && git -C prompt-protection checkout 9104c4d584b4fb3985c1760fe53cf422a7f4b640
3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data
4. xerj autoindex ./prompt-protection --url http://127.0.0.1:9200 --prefix prompt-protection --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: MIT. Keep the copyright notice and credit the authors.

Related

Stats: GitHub API, fetched 2026-10-31. Snapshot: the git tree at the pinned commit. Selected work and consent: the XERJ registry.