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
What XERJ indexed
Snapshot
The whole repository at commit 9104c4d584 (2026-09-21). main is 50 commits ahead.
Selected work

“taint-correct guard, memory lineage, sub-agent handoff, …”. 37 files, 2,223 lines in src/guard, tests, bench.
Licence
The repository
LICENSE file checked at the pinned commit; the author agreed to inclusion.
The XERJ corpus
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
- How does prompt-protection implement ai?
- What does src/guard do in prompt-protection?
- Show the artificial-intelligence code in prompt-protection.
Inside the indexed corpus
- 244 files, 4.6 MB in total, about 19.4 KB per file.
- The selected commit changed 37 of those files (15.2%).
- Languages by size: TypeScript 87.6%, Python 6.8%, JavaScript 5.4%, Makefile 0.2%.
- On GitHub since 2026-04-22, last push 2026-10-29, 138 commits on main.
- The pin is 50 commits behind main; the corpus answers from the pinned code, not the newest.
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
- Batch lookup CVE and GHSA IDs offline in one query prompt-protection is tagged security on GitHub.
- RAG without a vector database: one hybrid index The hub files it under AI, prompts and agents.
- ripgrep vs a code index for coding agents: 30 tasks
- Best MCP servers for local code search in 2026, compared
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
Muhammad ZiaAI, prompts and agents corporagarak12-factor-agentsgotsahilmathur254/guardtrellisaggrete/aggretesaintparish4/openscript
Stats: GitHub API, fetched 2026-10-31. Snapshot: the git tree at the pinned commit. Selected work and consent: the XERJ registry.