Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/deepset-ai/haystack/agents-mdgit clone --depth 1 https://github.com/deepset-ai/haystackWhat 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 | $0.00412 | $0.00412 |
| Opus 5 | $0.00206 | $0.00206 |
| Sonnet 5 | $0.00082 | $0.00082 |
| Haiku 4.5 | $0.00041 | $0.00041 |
Grade A, and why
haystack AGENTS.md scanned grade A with 0 findings 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 2d 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Haystack Guidelines for AI Agents
Environment
Haystack uses Hatch for environment and dependency management.
Do not run python or pip directly.
Before running code on this project, you must be able to run hatch --version and get a correct output.
If not, ask the user where Hatch is or if they want to install it. For installation instructions, refer to https://hatch.pypa.io/latest/install/#installation.
Run scripts with test dependencies
hatch -e test run python SCRIPT.py
Open a shell with test dependencies
hatch -e test shell
Install temporary dependencies (for experiments only)
uv pip install PACKAGE
Delete the environment
hatch env prune
Tests
Tests run via Hatch and support pytest arguments.
Prefer running tests on a specific module or using -k, since the full suite is large.
Run unit tests
hatch run test:unit
Run integration tests
hatch run test:integration
Quality Checks
Type checking with mypy
hatch run test:types
Type checking targets Python 3.12, above the 3.10 floor in requires-python, because numpy's stubs use PEP 695 type statements that mypy rejects below 3.12. So mypy will not catch code that breaks on 3.10; the unit test matrix runs on 3.10 and covers that.
To fix type issues, avoid type: ignore, casts, or assertions when possible. If they are necessary, explain why.
Format and lint
hatch run fmt
Release Notes
Every user-facing PR (not docs, not CI) must include a release note:
hatch run release-note SHORT_DESCRIPTION
Edit the generated file in releasenotes/notes/. Release notes use reStructuredText formatting; see the release notes section in CONTRIBUTING.md for details.
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.
- 2d ago First seen · 62 lines · 412 tokens per session scan A 95839b791fe9
haystack AGENTS.md is an instructions file published in the GitHub repository deepset-ai/haystack (26,366 stars, last pushed 2d ago), licensed Apache-2.0. It adds 412 tokens to every session, about $0.0021 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
PentestGPT CLAUDE.md
Instructions for GreyDGL/PentestGPT, covering claude guide, active project map, runtime contract, commands and documentation map.
redis-vl-python CLAUDE.md
Instructions for redis/redis-vl-python, covering claude.md - redisvl project context, frequently used commands, development workflow, redis setup and documentation.
kernel-lore-mcp CLAUDE.md
Claude Code instructions for mjbommar/kernel-lore-mcp, covering kernel-lore-mcp — project state, pointers, standards, original goal and non-negotiable product constraints.
vecgrep CLAUDE.md
Instructions for jeffbai996/vecgrep, covering vecgrep — claude code working notes, what this is, architecture cheat sheet, design rules and don'ts.
omni-lpr AGENTS.md
Instructions for habedi/omni-lpr, covering agents.md, mission, core rules, writing style and repository layout.
TechShorts AGENTS.md
AGENTS.md instructions for LarsenCodeLabs/TechShorts, covering repository structure, core product constraints, development and verification, security and configuration and solana/anchor protocol rules.