PyRIT
Copilot instructions4.6k starsChanged 4 months agoMITView on GitHub
PyRIT (Python Risk Identification Tool for generative AI) is an open-source framework for security professionals to proactively identify risks in generative AI systems. PyRIT uses a modular pluggable-brick design. doc/code/framework.md is the canonical reference for how these pieces fit together. It defines each component's responsibilities — what it owns and, critically, what it does not own — and how scenarios, attack techniques, executors, and the core/shared layers relate. Read it before adding or reviewing components so new code lands in…
Trending
Quiet since September.about the whole repository
Who's talking about microsoft/PyRIT
- keyuraghao/aisrf“deps(pip): update pyrit requirement from >=0.5 to >=1.1.0”GitHub · Sep 27, 2026
- oubliettesecurity/oubliette-dungeon“Prepare release 1.0.3 (license fail-closed, Trusted Publishing, Node 24)”GitHub · Sep 24, 2026
- aspire488/PyRIT“FIX use canonical technique names in scenario run summaries”GitHub · Sep 23, 2026
- 0din-ai/0din-JEF“build(deps): update pyrit requirement from <1.1,>=0.14 to >=0.14,<1.2”GitHub · Sep 16, 2026
- adrian-gavrila/PyRIT“[DRAFT] MAINT: Decouple CoPyRIT code and infrastructure deployments”GitHub · Sep 14, 2026
The biggest 5 of 16 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 16
Talked about on GitHub (16 times).
On GitHub · 16
- Sep 27, 2026deps(pip): update pyrit requirement from >=0.5 to >=1.1.0 — keyuraghao/aisrf0 reactions · 1 comment
- Sep 24, 2026Prepare release 1.0.3 (license fail-closed, Trusted Publishing, Node 24) — oubliettesecurity/oubliette-dungeon0 reactions
- Sep 23, 2026FIX use canonical technique names in scenario run summaries — aspire488/PyRIT0 reactions
- Sep 16, 2026build(deps): update pyrit requirement from <1.1,>=0.14 to >=0.14,<1.2 — 0din-ai/0din-JEF0 reactions
- Sep 14, 2026[DRAFT] MAINT: Decouple CoPyRIT code and infrastructure deployments — adrian-gavrila/PyRIT0 reactions
11 more on GitHub
- Aug 12, 2026CI/CD gate for superred, with the LLM attacker as an opt-in add-on — sunblaze-ucb/superred0 reactions
- Aug 2, 2026実践 AIエージェント開発―マルチエージェントシステムの設計と実装 — jagijagijag1/Article-Paper-Summary0 reactions
- Jul 28, 2026Proposed case studies: Evaluator Trust Boundary (ETB) defect class — 3 submissions — mitre-atlas/atlas-data0 reactions
- Jul 16, 2026chore: audit and refresh agent catalog — 0xNyk/awesome-agent-cortex0 reactions · 1 comment
- Jun 6, 2026[Add] PyRIT (microsoft/PyRIT) — PyTorchKR/landscape0 reactions
- Jun 4, 2026Hawestra/scenario blog — hannahwestra25/PyRIT0 reactions
- Jun 3, 2026feat(content): add pyrit — JSONbored/awesome-claude0 reactions · 2 comments
- May 26, 2026feat(v0.2): RampartAttackRunner for XPIA coverage ([agentic] extra) — pardamike/pytest-wardenbot0 reactions
- May 23, 2026maintenance: weekly update 2026-05-23 — pleasedodisturb/llm-safe-haven0 reactions · 1 comment
- Apr 28, 2026[Report issue] Pyrit — linuxfoundation/insights0 reactions · 1 comment
- Mar 28, 2026Python: fix: update PyRIT repository link from Azure/PyRIT to microsoft/PyRIT — microsoft/agent-framework0 reactions
The file
We split this copilot-instructions.md into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
When performing a code review, be selective.
- Distinctive: line 20
Do NOT leave comments about:
- Very specific: line 30
BEFORE editing or code-reviewing any file, you MUST read the .github/instructions/ files whose applyTo patterns match the files you are …
- Distinctive: line 41
Follow every rule in the applicable instruction files.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
PyRIT - Repository Instructions
PyRIT (Python Risk Identification Tool for generative AI) is an open-source framework for security professionals to proactively identify risks in generative AI systems.
Architecture
PyRIT uses a modular pluggable-brick design.
doc/code/framework.md is the canonical reference for how these pieces fit together. It defines each component's responsibilities — what it owns and, critically, what it does not own — and how scenarios, attack techniques, executors, and the core/shared layers relate. Read it before adding or reviewing components so new code lands in the right place.
Code Review Guidelines
When performing a code review, be selective. Only leave comments for issues that genuinely matter:
- Bugs, correctness, logic errors, or security concerns
- Component responsibilities — Each component should do its job and only its job, per
doc/code/framework.md. Flag responsibility bleed: e.g. an executor assembling prepended/system prompts or role-play framing (that's an attack technique), a converter or target making branching decisions (that's an attack/scorer), a scorer acting on its own result (the attack branches), or business logic living in memory/output. If logic belongs in a different brick, say so. - Unclear code that would benefit from refactoring for readability
- Violations of the critical coding conventions above (async suffix, keyword-only args, type annotations)
Do NOT leave comments about:
- Style nitpicks that ruff/isort would catch automatically
- Missing docstrings or comments — we prefer minimal documentation. Code should be self-explanatory.
- Suggestions to add inline comments, logging, or error handling that isn't clearly needed
- Minor naming preferences or subjective "improvements"
Aim for fewer, higher-signal comments. A review with 2-3 important comments is better than 15 trivial ones.
Instruction Files
BEFORE editing or code-reviewing any file, you MUST read the .github/instructions/ files whose applyTo patterns match the files you are about to edit. For example:
- Editing/code-reviewing
pyrit/**/*.py→ readstyle-guide.instructions.mdanduser-custom.instructions.md - Editing/code-reviewing database models, Alembic migrations, or memory migration tests → also read
database.instructions.md - Editing/code-reviewing
pyrit/scenario/**→ also readscenarios.instructions.md - Editing/code-reviewing
pyrit/setup/initializers/techniques/**→ also readsetup-techniques.instructions.md - Editing/code-reviewing
pyrit/converter/**→ also readconverters.instructions.md - Editing/code-reviewing
tests/**→ also readtest.instructions.md - Editing/code-reviewing
doc/**/*.pyordoc/**/*.ipynb→ also readdocs.instructions.md - Editing/code-reviewing
frontend/**/*.{ts,tsx}→ also readfrontend-style-guide.instructions.md - Editing/code-reviewing
frontend/**/*.test.{ts,tsx}→ also readfrontend-test.instructions.md
Follow every rule in the applicable instruction files. Do not skip this step.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

