Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/davidmatousek/tachinpx agentmods add agents/davidmatousek/tachi/prompt-injectionWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/davidmatousek/tachi/prompt-injection)<a href="https://agentmods.dev/agents/davidmatousek/tachi/prompt-injection"><img src="https://agentmods.dev/badge/agents/davidmatousek/tachi/prompt-injection/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/davidmatousek/tachi/prompt-injection"><img src="https://agentmods.dev/badge/agents/davidmatousek/tachi/prompt-injection.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00043 | $0.01856 |
| Opus 5 | $0.00022 | $0.00928 |
| Sonnet 5 | $0.00009 | $0.00371 |
| Haiku 4.5 | $0.00004 | $0.00186 |
Grade B, and why
tachi-prompt-injection scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Instruction-override phrasingmediumPrompt injection
Text telling the model to disregard its earlier instructions or safety rules is the shape of a prompt injection, whoever wrote it.
mitigation: "Implement rate limiting on prompt submissions per user session. Deploy a prompt classifier that flags known jailbreak patterns (role-play requests, 'ignore previous instructions' variants, DAN-style prompts) Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
How it starts
The opening of the file, as written. The whole thing — 163 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Metadata
category: llm
threat_class: LLM
dfd_targets: [Process]
owasp_references: [OWASP LLM01:2026, OWASP LLM08:2026]
output_schema: ../../../schemas/finding.yaml
Prompt Injection Threat Agent
Purpose
Detects prompt injection vulnerabilities in LLM-integrated components. Prompt injection is the most prevalent and highest-impact threat class for LLM applications: an attacker manipulates model behavior by embedding adversarial instructions in user input, retrieved context, or upstream data sources. This agent identifies direct injection (user-supplied malicious prompts), indirect injection (adversarial payloads embedded in data the model consumes), and jailbreaking (systematic attempts to override model safety constraints).
Detection Scope
Trigger Keywords
This agent activates when a DFD element name or description matches any of the following patterns (case-insensitive):
LLMmodelGPTClaudelanguage modelcompletionchatinferencepromptgenerative AI
Applicable DFD Element Types
- Process: Any process node that invokes, wraps, or orchestrates an LLM. This includes API gateway processes that forward prompts, orchestration layers that compose multi-step LLM calls, and application logic that interpolates user input into prompt templates.
Detection Patterns
-
Direct Prompt Injection: User-facing input fields whose contents are concatenated into LLM prompts without sanitization, boundary enforcement, or input classification. Look for:
- Chat interfaces that pass raw user text to model APIs
- Search bars or form fields whose values are interpolated into system prompts
- API endpoints that accept freeform text and forward it to LLM completions
- Absence of input validation or prompt boundary markers between system instructions and user content
-
Indirect Prompt Injection: Data flows where external or semi-trusted content is retrieved and injected into the model context window. Look for:
- RAG pipelines that retrieve documents from user-contributed or web-scraped sources
- Email or message processing where attacker-controlled content enters the prompt
- Database records, CMS content, or API responses that are embedded in LLM context
- Tool outputs that are fed back into the model without sanitization
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 6d ago First seen · 163 lines · 43 tokens per session scan B 262cd18cae82
tachi-prompt-injection is an agent published in the GitHub repository davidmatousek/tachi (91 stars, last pushed 28d ago), licensed Apache-2.0. It adds 43 tokens to every session and 1,856 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (instruction-override phrasing). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other agents, from other repositories
token
Optimizes LLM context windows through token budgeting, chunking strategy, and truncation design. Use when you need to control token spend, design a chunking pipeline, or audit token usage in a production AI system. Trigger with "design my token budget", "fix my context overflow".
RAG Pipeline Engineer
Production RAG specialist focused on chunking strategy, retrieval quality, hybrid search, re-ranking, and eval-driven iteration. Builds pipelines that actually retrieve the right context — not just pipelines that run.
ai-engineer
AI/ML Engineer (Reza Tehrani) - LLM seçimi, prompt engineering, RAG, AI agent mimarisi, fine-tuning.
ai-engineer
Build LLM applications, RAG systems, and prompt pipelines. Implements vector search, agent orchestration, and AI API integrations. Use PROACTIVELY for LLM features, chatbots, or AI-powered applications.
agent-developer
Expert in agent architecture, persona design, and multi-agent systems. Designs agents using ReAct/Plan-Execute/Reflection patterns, implements RAG and tool integration, creates evaluation frameworks. Use for agent design decisions, system architec...
llm-integrator
LLM integration specialist in RAG, embeddings, prompt engineering. Use PROACTIVELY for LLM features.