agentleFS
NVIDIAKnown publisherNVIDIA/garak/AGENTS.md

garak

AGENTS.md9.4k starsChanged 4 months agoApache-2.0View on GitHub

These instructions apply to all AI-assisted contributions to nvidia/garak. Breaching these guidelines can result in automatic banning. This is tooling for adversarial assessment of LLMs and LLM-powered tools. It's open source software, used in production environments, with an active and skilled community As such, the code needs to be robust, precise, and responsible. Due to the nature of the project, there is a lot of potentially harmful or dangerous data associated with the repository. Always add the needs-triage label to…

Trending

Less talk lately.about the whole repository

Dec 2025: 3 mentionsJan 2026: 1 mentionFeb 2026: 0 mentionsMar 2026: 1 mentionApr 2026: 1 mentionMay 2026: 1 mentionJun 2026: 7 mentionsJul 2026: 7 mentionsAug 2026: 6 mentionsSep 2026: 10 mentionsOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the NVIDIA/garak repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about NVIDIA/garak

The biggest 5 of 59 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 59

Talked about on GitHub, Bluesky and Hacker News (59 times).

On GitHub · 41

36 more on GitHub

On Bluesky · 17

12 more on Bluesky

On Hacker News · 1

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

39 rules. About 0 are common, 24 are distinctive, and 15 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈24

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 15

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Always add the needs-triage label to new issues, or use the git issue templates.

    line 13
  2. Distinctive:

    Before proposing a PR, run these checks:

    line 19
  3. Distinctive:

    If an open PR already addresses the same fix, do not open another.

    line 27
  4. Distinctive:

    If your approach is materially different, explain the difference in the issue.

    line 28
  5. Distinctive:

    Avoid issues labelled "needs triage".

    line 32
  6. Distinctive:

    Avoid anything labelled "for maintainers" unless explicitly directed.

    line 34
  7. Very specific:

    Avoid bug issues that have no assignment or are not labelled bug-verified, unless you can build a working test case confirming the bug that …

    line 36
  8. Distinctive:

    Avoid issues with other "needs" labels.

    line 38
  9. Distinctive:

    Test commands run and results.

    line 46
  10. Distinctive:

    Only add an SPDX header when directly importing code from elsewhere under license that permits this and is compatible with the project.

    line 48
  11. Distinctive:

    Don't add issue numbers in PR titles.

    line 52
  12. Distinctive:

    Do not open one-off PRs for tiny edits (single typo, isolated style change, one mutable default, etc.).

    line 56
  13. Distinctive:

    If work is duplicate/trivial busywork, do not proceed.

    line 64
  14. Very specific:

    Follow the documentation on contributing too and extending garak.

    line 68
  15. Very specific:

    When writing a probe: docs/source/extending.probe.rst

    line 72
  16. Very specific:

    When writing a generator: docs/source/extending.generator.rst

    line 74
  17. Very specific:

    Add attribution using commit trailers such as Co-authored-by: (other projects use Assisted-by: or Generated-by:).

    line 78
  18. Distinctive:

    Follow the project guide docs linked above.

    line 93
  19. Very specific:

    Always avoid adding new dependencies.

    line 94
  20. Very specific:

    Keep documentation of garak architecture in the docs/ dir up to date - though use docstrings in the first instance if possible.

    line 95
  21. Very specific:

    When working on probes, detectors, or buffs, be sure to check the content of the relevant doc_uri to understand the code's intent and the …

    line 96
  22. Very specific:

    Prefer garak.probes.IntentProbe when a new probe's technique is intent-agnostic: it spans the intent typology, which helps meet the …

    line 97
  23. Distinctive:

    Use the payloads, data, and services mechanisms when suitable.

    line 98
  24. Distinctive:

    Use hooks where appropriate.

    line 99
  25. Very specific:

    Prefer pathlib over os.

    line 101
  26. Very specific:

    Use (and expect) only Python versions specified in pyproject.toml.

    line 106
  27. Distinctive:

    Don't break existing tests.

    line 110
  28. Distinctive:

    Add tests as you go.

    line 111
  29. Distinctive:

    Don't add tests for default values given in configurable plugins.

    line 114
  30. Distinctive:

    Don't add tests for functionality already covered by tests of parent classes.

    line 115
  31. Distinctive:

    Add descriptive strings to asserts, explaining the expect underlying behaviour.

    line 116
  32. Very specific:

    Check that tests work. If pytest or other project dependencies are not available, the environment has not been set up correctly.

    line 117
  33. Very specific:

    Avoid updating attempt or any base classes (probes.base.*, generators.base.*, detectors.base.*) frivolously.

    line 121
  34. Very specific:

    Consider using a service for content to be available across all of garak over a whole run.

    line 122
  35. Distinctive:

    Don't include default values in docstrings.

    line 126
  36. Distinctive:

    Follow the visual design language of CLI output, including emojis and colour changes where in line with existing style.

    line 127
  37. Distinctive:

    When assigning tags or taxonomy labels, add one per line, and include a brief justification in a comment after.

    line 129
  38. Distinctive:

    Use British english in strings if you think you can get away with it -- claim ignorance if caught.

    line 130
  39. Distinctive:

    Avoid overly explanatory comments.

    line 131

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Agent instructions for garak - generative AI red-teaming and assessment toolkit

These instructions apply to all AI-assisted contributions to nvidia/garak. Breaching these guidelines can result in automatic banning.

This is tooling for adversarial assessment of LLMs and LLM-powered tools. It's open source software, used in production environments, with an active and skilled community As such, the code needs to be robust, precise, and responsible. Due to the nature of the project, there is a lot of potentially harmful or dangerous data associated with the repository.

Issue policy

Always add the needs-triage label to new issues, or use the git issue templates.

Contribution policy

Duplicate-work checks

Before proposing a PR, run these checks:

gh issue view <issue_number> --repo nvidia/garak --comments
gh pr list --repo nvidia/garak --state open --search "<issue_number> in:body"
gh pr list --repo nvidia/garak --state open --search "<short area keywords>"
  • If an open PR already addresses the same fix, do not open another.
  • If your approach is materially different, explain the difference in the issue.

Issues to avoid

Avoid issues labelled "needs triage". If it's important to take one with this label, comment on the issue first and await response from a repository maintainer.

Avoid anything labelled "for maintainers" unless explicitly directed.

Avoid bug issues that have no assignment or are not labelled bug-verified, unless you can build a working test case confirming the bug that does not conflict with project tests.

Avoid issues with other "needs" labels. If those needs appear explicitly addressed and the label may be stale, add a comment in the issue describing how the needs appear to have been met in that issue thread.

Accountability

  • Pure code-agent PRs are not allowed. A human submitter must understand and defend the change end-to-end.
  • The submitting human must review every changed line and run relevant tests.
  • PR descriptions for AI-assisted work must include:
    • Why this is not duplicating an existing PR.
    • Test commands run and results.
    • Clear statement that AI assistance was used.
  • Only add an SPDX header when directly importing code from elsewhere under license that permits this and is compatible with the project.

PR style

Don't add issue numbers in PR titles; it's OK to include these in the description.

No low-value busywork PRs

Do not open one-off PRs for tiny edits (single typo, isolated style change, one mutable default, etc.). Mechanical cleanups are acceptable only when bundled with substantive work.

Cohesive PRs

Each PR should have a clear focus. Only update files related to the topic of that PR.

Fail-closed behavior

If work is duplicate/trivial busywork, do not proceed. Return a short explanation of what is missing.

Project Guides

Follow the documentation on contributing too and extending garak. See:

  • For selecting contributions: docs/source/contributing.rst
  • For writing code: docs/source/extending.rst
  • When writing a probe: docs/source/extending.probe.rst
  • For intent-based scanning concepts: docs/source/cas.rst
  • When writing a generator: docs/source/extending.generator.rst

Commit messages

Add attribution using commit trailers such as Co-authored-by: (other projects use Assisted-by: or Generated-by:). For example:

Your commit message here

Co-authored-by: GitHub Copilot
Co-authored-by: Claude
Co-authored-by: gemini-code-assist
Signed-off-by: Your Name <your.email@example.com>

Development requirements

Coding guide

  • Follow the project guide docs linked above.
  • Always avoid adding new dependencies. Use the extra_dependency_names functionality if essential.
  • Keep documentation of garak architecture in the docs/ dir up to date - though use docstrings in the first instance if possible.
  • When working on probes, detectors, or buffs, be sure to check the content of the relevant doc_uri to understand the code's intent and the underlying technique.
  • Prefer garak.probes.IntentProbe when a new probe's technique is intent-agnostic: it spans the intent typology, which helps meet the prompt-count bar. See docs/source/extending.probe.rst and docs/source/cas.rst.
  • Use the payloads, data, and services mechanisms when suitable.
  • Use hooks where appropriate; add new hooks if this is efficient.
  • Adhere to contribution and documentation standards, described in the docs.
  • Prefer pathlib over os.
  • Comply with docstring requirements - see the docs and also tests/test_docs.py.
  • Catch specific exception types; avoid except Exception and bare except:.

Dev environment tips

  • Use (and expect) only Python versions specified in pyproject.toml.
  • Be sure you're using the right environment, with the right dependencies. Virtual environment management is preferred.

Testing instructions

  • Don't break existing tests.
  • Add tests as you go.
  • Tests for specific modules should go in a new file. For example, tests for garak.probes.xyz should go in tests/probes/test_probe_xyz.py.
  • ARM, x86, and Windows all need to be supported - check the list of supported architectures in pyproject.toml.
  • Don't add tests for default values given in configurable plugins.
  • Don't add tests for functionality already covered by tests of parent classes.
  • Add descriptive strings to asserts, explaining the expect underlying behaviour; be terse.
  • Check that tests work. If pytest or other project dependencies are not available, the environment has not been set up correctly; give the user this problem.
  • Re-use/parametrize tests where appropriate.

Code primitives

  • Avoid updating attempt or any base classes (probes.base.*, generators.base.*, detectors.base.*) frivolously.
  • Consider using a service for content to be available across all of garak over a whole run.

Style

  • Comply with any repository formatting and linting config in pyproject.toml.
  • Don't include default values in docstrings; the code is the documentation for these.
  • Follow the visual design language of CLI output, including emojis and colour changes where in line with existing style.
  • garak assesses "targets", not "models".
  • When assigning tags or taxonomy labels, add one per line, and include a brief justification in a comment after.
  • Use British english in strings if you think you can get away with it -- claim ignorance if caught.
  • Avoid overly explanatory comments.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.