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/swe-agent/mini-swe-agent/copilot-instructionsgit clone --depth 1 https://github.com/SWE-agent/mini-swe-agentWhat 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.00378 | $0.00378 |
| Opus 5 | $0.00189 | $0.00189 |
| Sonnet 5 | $0.00076 | $0.00076 |
| Haiku 4.5 | $0.00038 | $0.00038 |
Grade A, and why
mini-swe-agent copilot-instructions.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 3d 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.
Copies of this mod
2 near-identical copies found in the catalogue:
- agents copilot-instructions.md — 100% identical, 0 lines differ
- swe-pruner copilot-instructions.md — 88% identical, 18 lines differ
What it actually says
Style guide
- Target python 3.10 or higher
- Use python with type annotations. Use
listinstead ofList. - Use
pathlibinstead ofos.path. UsePath.read_text()overwith ...open()constructs. - Use
typerto add interfaces - Keep code comments to a minimum and only highlight particularly logically challenging things
- Do not append to the README unless specifically requested
- Use
jinjafor formatting templates - Use
dataclassfor keeping track config - Do not catch exceptions unless explicitly told to.
- Write concise, short, minimal code.
- Not every exception has to be caught. Exceptions are a good way to show problems to a user.
- This repository rewards minimal code. Try to be as concise as possible.
- Do NOT warn about print messages in tests, print statements in tests are OK!
Test style
- Use
pytest, notunittest. - Do not mock/patch anything that you're not explicitly asked to do
- Avoid writing trivial tests. Every test should test for at least one, preferably multiple points of failure
- Avoid splitting up code in multiple lines like this:
a=func()\n assert a=b. Instead, just doassert func() == b - The first argument to
pytest.mark.parametrizeshould be a tuple (not a string! not a list!), the second argument must be a list (not a tuple!). - Do NOT warn about print messages in tests, print statements in tests are OK!
Here's an example for rule 4:
# bad
result = func()
assert result == b
# good
assert func() == b
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.
- 3d ago First seen · 37 lines · 378 tokens per session scan A 6a868fc1a4fd
mini-swe-agent copilot-instructions.md is an instructions file published in the GitHub repository SWE-agent/mini-swe-agent (6,905 stars, last pushed 2d ago), licensed MIT. It adds 378 tokens to every session, about $0.0019 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
agentinsight-sdk-python AGENTS.md
Instructions for AgentInsight/agentinsight-sdk-python, covering agentinsight python sdk — 智能体执行规则, 1. 项目基本信息, 1.1 技术栈, 1.2 项目关键特征 and 1.3 项目目录结构.
python-instructions
Rules for all Python files: strict typing, async-first, error wrapping, imports organization, no print(). Use when: modifying src/ files, adding agents, tools, or utility functions.
agent-framework python.instructions.md
Instructions for microsoft/agent-framework: See AGENTS.md for project structure and package documentation. Detailed conventions are in the agent skills under .github/skills/.
intelligent-terminal copilot-instructions.md
Copilot instructions for microsoft/intelligent-terminal, covering copilot instructions for windows terminal, build, running, test and code formatting.
intelligent-terminal rust-wta.instructions.md
File-scoped conventions for the WTA Rust crate.
intelligent-terminal rust.instructions.md
Concise Rust coding conventions for this repository.