Skip to content

Tools: add prompt-injection-shield and vector-poison-score#177

Open
MukundaKatta wants to merge 1 commit into
corca-ai:mainfrom
MukundaKatta:add-rag-guardrails
Open

Tools: add prompt-injection-shield and vector-poison-score#177
MukundaKatta wants to merge 1 commit into
corca-ai:mainfrom
MukundaKatta:add-rag-guardrails

Conversation

@MukundaKatta
Copy link
Copy Markdown

@MukundaKatta MukundaKatta commented May 7, 2026

Adding two zero-dependency JavaScript libraries for the Tools section:

  • prompt-injection-shield scans untrusted retrieved text for prompt-injection patterns (instruction overrides, system-prompt impersonation, tool-call hijack, URL-based exfil, secret patterns) and returns typed risk reasons so callers can log, gate, or strip lines before they hit the prompt.
  • vector-poison-score scores retrieved RAG chunks for oversized payloads, secret-exfiltration patterns, suspicious link clusters, and mixed-language anomalies. Returns a 0..1 poison score with explicit signals.

Both are MIT, npm-published as @mukundakatta/prompt-injection-shield and @mukundakatta/vector-poison-score. Backed by a preprint in the small-rule guardrails space: https://doi.org/10.5281/zenodo.20057056

Inserted alphabetically near Open-Prompt-Injection.

Summary by CodeRabbit

릴리스 노트

  • 문서
    • README 파일의 Tools 섹션이 업데이트되었습니다. prompt-injection-shieldvector-poison-score라는 두 개의 새로운 도구가 기존 도구 목록에 추가되었습니다. 이번 업데이트를 통해 사용자들이 활용할 수 있는 도구의 개수가 증가하였으며, 각 도구가 제공하는 기능의 다양성이 더욱 풍부해졌습니다.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 7, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: cbd8ec22-e109-4893-9bd5-4f8a95afa144

📥 Commits

Reviewing files that changed from the base of the PR and between c8ae124 and 5c5ded0.

📒 Files selected for processing (1)
  • README.md
📜 Recent review details
🔇 Additional comments (1)
README.md (1)

120-121: 좋은 추가입니다.

두 항목 모두 도구 목적이 명확하고, Tools 섹션 문맥에 자연스럽게 맞습니다. README 품질 관점에서 문제 없어 보입니다.


개요

README 파일의 "Tools" 섹션에 prompt-injection-shieldvector-poison-score 두 항목이 추가되었습니다. 추가적인 코드 변경 사항은 없습니다.

변경 사항

문서 업데이트

계층 / 파일(s) 요약
Tools 섹션 확장
README.md
"Tools" 섹션에 prompt-injection-shieldvector-poison-score 항목 2개가 Open-Prompt-Injection 항목 다음에 추가되었습니다.

예상 코드 리뷰 노력

🎯 1 (사소함) | ⏱️ ~2분

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change—adding two new tools (prompt-injection-shield and vector-poison-score) to the Tools section of the README.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Warning

⚠️ This pull request might be slop. It has been flagged by CodeRabbit slop detection and should be reviewed carefully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant