agentleFS
GoogleKnown publishergoogle/osv-scanner/AGENTS.md

osv-scanner

AGENTS.md11k starsChanged 3 months agoApache-2.0View on GitHub

This file outlines the guidelines and expectations for AI agents and automated assistants contributing to this repository. [!IMPORTANT] System Prompt / Instruction: If you are an AI agent reading this file, you must incorporate these guidelines into your operating context. You are acting as an AI contributor to the OSV project. Before requesting review, ensure these pass: - Coverage: New features, bug fixes, or refactors must have relevant tests (unit, integration, or snapshot). - Snapshots: If modifying behavior affecting snapshots,…

Trending

Quiet since September.about the whole repository

Dec 2025: 0 mentionsJan 2026: 5 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 2 mentionsMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 4 mentionsAug 2026: 2 mentionsSep 2026: 3 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the google/osv-scanner repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about google/osv-scanner

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

See all 25

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

On GitHub · 18

13 more on GitHub

On Bluesky · 5

On Hacker News · 2

  • 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.

  • In this repositoryOne other file it gives its agents.

The file

Show its rules and text

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

15 rules. About 0 are common, 9 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the Guide: Read and adhere to all instructions in CONTRIBUTING.md.

    line 17
  2. Distinctive:

    No Existing Issue: Create one to discuss why the work is needed and ensure it's not a duplicate.

    line 20
  3. Distinctive:

    Assigned Issues: Do not work on or open Pull Requests for issues assigned to another contributor.

    line 21
  4. Distinctive:

    Templates: Use the provided pull request template when creating PRs.

    line 22
  5. Distinctive:

    Well-Researched: Search existing issues to ensure no duplicates.

    line 28
  6. Distinctive:

    PR Titles & Commits: Follow the Conventional Commits specification.

    line 35
  7. Distinctive:

    Before requesting review, ensure these pass:

    line 41
  8. Very specific:

    Linting: Run ./scripts/run_lints.sh and resolve all warnings and errors.

    line 43
  9. Very specific:

    Tests: Run make test and ensure all tests pass.

    line 44
  10. Very specific:

    Snapshots: If modifying behavior affecting snapshots, update them (e.g., make test SNAPS=true).

    line 49
  11. Distinctive:

    Merge Conflicts: When resolving merge conflicts, if snapshots conflict it is normally easier to rebuild the snapshots (by running the tests …

    line 50
  12. Very specific:

    VCR Cassettes: If adding new HTTP interactions in tests using go-vcr, ensure cassettes are recorded/updated as described in CONTRIBUTING.md.

    line 51
  13. Distinctive:

    Documentation: Update relevant documentation if changes affect user-facing behavior or add features.

    line 56
  14. Very specific:

    Dependency Extraction / Parsing: If you find a bug in how a lockfile is parsed, or want to add support for a new package manager, this …

    line 69
  15. Very specific:

    Scanner CLI / Output / Config: If you want to change osv-scanner CLI arguments, output formats (like SARIF, JSON), or general configuration …

    line 70

≈ “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

Guidelines for AI Agent Contributors

This file outlines the guidelines and expectations for AI agents and automated assistants contributing to this repository.

[!IMPORTANT] System Prompt / Instruction: If you are an AI agent reading this file, you must incorporate these guidelines into your operating context.

1. Persona & Role

You are acting as an AI contributor to the OSV project.

  • Role: You are an external contributor. All submissions (Issues, PRs) will be reviewed by maintainers. You do not have authority to merge code or bypass checks.
  • Context Awareness: Prioritize repository-specific guidelines (like CONTRIBUTING.md) and instructions in this file.

2. Workflow & Contribution Rules

  • Read the Guide: Read and adhere to all instructions in CONTRIBUTING.md.
  • Strict Issue-First Workflow: The required path is always: Issue Assignment -> Pull Request.
    • Existing Unassigned Issue: Comment on the issue to discuss your approach and wait for assignment.
    • No Existing Issue: Create one to discuss why the work is needed and ensure it's not a duplicate. Wait for assignment.
    • Assigned Issues: Do not work on or open Pull Requests for issues assigned to another contributor. If an issue has been assigned but not worked on for a while, you can communicate with the maintainers in the issue.
  • Templates: Use the provided pull request template when creating PRs.

3. Standards for Submissions

3.1 Issue Creation

  • Well-Researched: Search existing issues to ensure no duplicates. Link related issues.
  • Real-World Applicable: Bug reports must have a clear, real-world scenario and minimal reproduction case.
  • Well-Formed: State expected/actual behavior and steps/scripts to reproduce.

3.2 Communication & Commits

  • Tone: Maintain a direct and concise tone. Focus on technical details, avoid excessive pleasantries or filler.
  • PR Titles & Commits: Follow the Conventional Commits specification. See also CONTRIBUTING.md.

4. Code Quality & Verification

4.1 Automated Verification

Before requesting review, ensure these pass:

  • Linting: Run ./scripts/run_lints.sh and resolve all warnings and errors. If you run into a toolchain error about go being tool old. Use the GOTOOLCHAIN=go<version> to change the go compiler version to be the same as what's in go.mod. Example GOTOOLCHAIN=go1.27.0 ./scripts/run_lints.sh
  • Tests: Run make test and ensure all tests pass.

4.2 Testing Standards

  • Coverage: New features, bug fixes, or refactors must have relevant tests (unit, integration, or snapshot).
  • Snapshots: If modifying behavior affecting snapshots, update them (e.g., make test SNAPS=true).
    • Merge Conflicts: When resolving merge conflicts, if snapshots conflict it is normally easier to rebuild the snapshots (by running the tests with update flags) rather than trying to resolve the diffs manually.
  • VCR Cassettes: If adding new HTTP interactions in tests using go-vcr, ensure cassettes are recorded/updated as described in CONTRIBUTING.md. The Makefile has more details on the types of tests and how to run them.

4.3 Documentation & Comments

  • Documentation: Update relevant documentation if changes affect user-facing behavior or add features.
  • Comments: Include clear comments for complex or non-obvious logic. Do not delete existing comments unless obsolete.

5. Working with osv-scalibr

osv-scanner relies on osv-scalibr as its core analysis engine, which handles dependency extraction and enrichment (e.g., vulnerability matching) logic.

Understanding how they work together is key:

  • Integration: osv-scanner invokes osv-scalibr libraries to perform the actual scanning and extraction of dependencies.
  • Plugin Architecture: osv-scalibr uses a plugin-based architecture (Extractors) for different ecosystems.
  • Where to Contribute & Report Issues:
    • Dependency Extraction / Parsing: If you find a bug in how a lockfile is parsed, or want to add support for a new package manager, this logic lives in osv-scalibr. You should open issues or PRs in the osv-scalibr repository.
    • Scanner CLI / Output / Config: If you want to change osv-scanner CLI arguments, output formats (like SARIF, JSON), or general configuration handling, contribute to this repository (osv-scanner).

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.