agentleFS
GoogleKnown publishergoogle/osv-scanner/llms.txt

osv-scanner

llms.txt11k starsChanged 3 months agoApache-2.0View on GitHub

A high-performance vulnerability scanner for Open Source Vulnerabilities (OSV), written in Go. osv-scanner acts as the presentation and orchestration layer, while osv-scalibr (https://github.com/google/osv-scalibr) provides the core analysis engine.

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

  • In this repositoryOne other file it gives its agents.

The file

We split this llms.txt into the rules it gives an agent

4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    Place the extractor in the appropriate subdirectory under extractor/filesystem/language/ (or similar).

    line 29
  2. Very specific:

    Add thorough tests within osv-scalibr.

    line 31
  3. Very specific:

    Update dependencies: Run go get github.com/google/osv-scalibr@v...

    line 35
  4. Very specific:

    Experimental features: If the feature is experimental, instead of adding it to a preset, add logic in pkg/osvscanner/scan.go to enable it …

    line 37

≈ “Common” is an estimate: at least 1 in 5 of the 1,484 llms.txt 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
llms.txt
# osv-scanner

> A high-performance vulnerability scanner for Open Source Vulnerabilities (OSV), written in Go.

## Overview & Role
`osv-scanner` is a user-facing command-line interface (CLI) tool and the primary consumer of the `osv-scalibr` library. It handles user interaction, parses arguments, configures the scan, and formats results.

## Scan Workflow
`osv-scanner` relies on the rich set of built-in plugins available within `osv-scalibr`. When a user runs `osv-scanner`, it:
1.  Determines the scan targets.
2.  Initializes `osv-scalibr` with a configuration.
3.  Selects the appropriate `osv-scalibr` plugins to enable based on the scan type and user flags. This typically includes various Extractors for different ecosystems.
4.  Executes the scan using `osv-scalibr`.
5.  Receives the structured `ScanResults` from `osv-scalibr`.
6.  Formats these results for display to the user.

## Integration with osv-scalibr

`osv-scanner` acts as the presentation and orchestration layer, while `osv-scalibr` (https://github.com/google/osv-scalibr) provides the core analysis engine.

- **Explicit Enablement:** Plugins from `osv-scalibr` are NOT automatically used by `osv-scanner`. They must be explicitly imported and added to the `Plugins` slice within the `scalibr.ScanConfig`.
- **Plugin Configuration:** The primary logic for configuring which osv-scalibr plugins to run is within `pkg/osvscanner/scan.go` (and related files like `pkg/osvscanner/osvscanner.go`). Look for where `scalibr.ScanConfig` is created and populated.
- **Default Plugins:** `osv-scanner` maintains a list of default `osv-scalibr` extractors and enrichers it considers essential for a good baseline scan. This list is hardcoded in the `osv-scanner` codebase.
- **Experimental Plugins:** New or less stable plugins from `osv-scalibr` might be gated behind `osv-scanner` CLI flags (e.g., an `--x` flag) before being enabled by default.

### Example Workflow: Adding a new osv-scalibr plugin and using it in osv-scanner
1.  **Develop in `osv-scalibr`:**
    *   Implement your new Extractor (e.g., `MyLangExtractor`) within the `google/osv-scalibr` repository, following its contribution guidelines and plugin interface.
    *   Place the extractor in the appropriate subdirectory under `extractor/filesystem/language/` (or similar).
    *   Register the new extractor in `osv-scalibr/plugin/list/list.go` so it can be enabled by name.
    *   Add thorough tests within `osv-scalibr`.
    *   Get the changes merged into `osv-scalibr`.

2. **Enable in `osv-scanner`:**
    *   **Update dependencies:** Run `go get github.com/google/osv-scalibr@v...` to pull in the new version containing your plugin. This might already be done automatically by dependabot.
    *   **Register in presets:** Open `internal/scalibrplugin/presets.go`, import the new plugin, and add it to the preset map if appropriate using its name and constructor.
    *   **Experimental features:** If the feature is experimental, instead of adding it to a  preset, add logic in `pkg/osvscanner/scan.go` to enable it based on a CLI flag.

## Development & Testing Tips
- **Test Data:** Mock lockfiles and test fixtures are typically located in `testdata/` directories within the relevant packages.

## Repository Map
- [/cmd/osv-scanner](https://github.com/google/osv-scanner/tree/main/cmd/osv-scanner): Main CLI entry point.
- [/pkg/osvscanner](https://github.com/google/osv-scanner/tree/main/pkg/osvscanner): Public programmatic API.
- [/internal/output](https://github.com/google/osv-scanner/tree/main/internal/output): Result rendering (JSON, Table, SBOM).
- [/pkg/osvscanner/testdata](https://github.com/google/osv-scanner/tree/main/pkg/osvscanner/testdata): Test fixtures for scanner tests.

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.