uv-sbom: Instructions file for Codex

AGENTS.md

uv-sbom AGENTS.md is an instructions file for Codex, OpenCode from Taketo-Yoda/uv-sbom. It costs 2,891 tokens per session, scanned A, original, MIT.

A project guide for uv-sbom, a command-line tool that creates a software bill of materials from Python projects managed by uv. It documents the codebase, architecture, data structures, commands, and development conventions for AI coding agents.

In plain words
What is it for?
It is for working on dependency listing, license and vulnerability checks, output formats, and the Rust code behind uv-sbom.
Why use it?
It gives an agent the project context it needs instead of making it infer the repository structure and rules.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; mentions AGENTS.md.

This is Taketo-Yoda/uv-sbom's own configuration. It tells Codex and OpenCode how to work on uv-sbom itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything uv-sbom configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Taketo-Yoda/uv-sbom. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Taketo-Yoda/uv-sbom/develop/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/Taketo-Yoda/uv-sbom

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for uv-sbom AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/taketo-yoda/uv-sbom/agents-md/github.svg)](https://agentmods.dev/instructions/taketo-yoda/uv-sbom/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/taketo-yoda/uv-sbom/agents-md"><img src="https://agentmods.dev/badge/instructions/taketo-yoda/uv-sbom/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for uv-sbom AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/taketo-yoda/uv-sbom/agents-md"><img src="https://agentmods.dev/badge/instructions/taketo-yoda/uv-sbom/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,891 This file is loaded in full into every session.
When invoked 2,891 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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

ModelPer sessionOnce invoked
Fable 5.1 $0.02891 $0.02891
Opus 5 $0.01445 $0.01445
Sonnet 5 $0.00578 $0.00578
Haiku 4.5 $0.00289 $0.00289

Measured 2d ago against content hash 3d5b034b737d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

uv-sbom AGENTS.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 2d 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.

AGENTS.md · 280 lines

How it starts

The opening of the file, as written. The whole thing — 280 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md - Codebase Context for AI Agents

1. Project Overview

Project: uv-sbom Purpose: CLI tool to generate SBOM (Software Bill of Materials) from Python projects managed by uv.

Key Features:

  • Parse uv.lock and extract dependency information
  • Fetch license info from PyPI API (with retry logic)
  • Check known vulnerabilities via OSV API (Markdown format only)
  • Output formats: CycloneDX 1.6 JSON, Markdown (with direct/transitive dependency separation)
  • Standalone Rust binary, progress display, robust error handling

Distribution:

  • Cargo: cargo install uv-sbom
  • PyPI: pip install uv-sbom-bin
  • GitHub Releases: macOS / Linux / Windows binaries

Tech Stack: Rust 2021 edition, Hexagonal Architecture + DDD


2. Directory Structure

uv-sbom/
├── src/
│   ├── main.rs                    # Entry point (DI wiring only)
│   ├── lib.rs                     # Library root (public API)
│   ├── cli.rs                     # CLI parsing (clap)
│   ├── config.rs                  # YAML config file support
│   ├── sbom_generation/           # Domain layer (pure business logic)
│   │   ├── domain/
│   │   │   ├── package.rs         # Package, PackageName, Version
│   │   │   ├── license_info.rs    # LicenseInfo value object
│   │   │   ├── dependency_graph.rs # DependencyGraph aggregate
│   │   │   ├── sbom_metadata.rs   # SbomMetadata (timestamp, UUID)
│   │   │   ├── vulnerability.rs   # Vulnerability, Severity, CvssScore
│   │   │   ├── enriched_package.rs    # EnrichedPackage struct
│   │   │   ├── uv_lock_simulator.rs   # UvLockSimulator trait (domain-owned port), SimulationResult
│   │   │   └── services/
│   │   │       └── vulnerability_checker.rs  # Threshold evaluation
│   │   ├── services/              # Domain services (pure functions)
│   │   │   ├── dependency_analyzer.rs  # Dependency analysis, cycle detection
│   │   │   ├── package_filter.rs       # Package filtering
│   │   │   └── sbom_generator.rs       # SBOM metadata generation
│   │   └── policies/
│   │       └── license_priority.rs     # License selection rules
│   ├── application/               # Application layer (use cases)
│   │   ├── use_cases/
│   │   │   ├── generate_sbom/     # Main use case + tests
│   │   │   └── check_vulnerabilities.rs
│   │   ├── dto/                   # Data transfer objects
│   │   │   ├── output_format.rs   # OutputFormat enum (Json/Markdown)
│   │   │   ├── sbom_request.rs    # SbomRequest + builder
│   │   │   └── sbom_response.rs   # SbomResponse
│   │   ├── factories/             # Factory pattern implementations
│   │   │   ├── formatter_factory.rs
│   │   │   └── presenter_factory.rs
│   │   └── read_models/           # CQRS read models
│   │       ├── component_view.rs
│   │       ├── dependency_view.rs
│   │       ├── vulnerability_view.rs
│   │       ├── sbom_read_model.rs
│   │       └── sbom_read_model_builder.rs
│   ├── ports/                     # Port interfaces (traits)
│   │   ├── outbound/
│   │   │   ├── lockfile_reader.rs          # LockfileReader trait
│   │   │   ├── project_config_reader.rs    # ProjectConfigReader trait
│   │   │   ├── license_repository.rs       # LicenseRepository trait
│   │   │   ├── vulnerability_repository.rs # VulnerabilityRepository trait
│   │   │   ├── formatter.rs               # SbomFormatter trait
│   │   │   ├── output_presenter.rs        # OutputPresenter trait
│   │   │   └── progress_reporter.rs       # ProgressReporter trait
│   │   └── inbound/               # (reserved for future use)
│   ├── adapters/                  # Infrastructure implementations
│   │   └── outbound/
│   │       ├── filesystem/
│   │       │   ├── file_reader.rs   # FileSystemReader (LockfileReader + ProjectConfigReader)
│   │       │   └── file_writer.rs   # FileSystemWriter, StdoutPresenter
│   │       ├── network/
│   │       │   ├── pypi_client.rs          # PyPiLicenseRepository
│   │       │   ├── caching_pypi_client.rs  # CachingPyPiLicenseRepository
│   │       │   └── osv_client.rs           # OsvClient
│   │       ├── formatters/
│   │       │   ├── cyclonedx_formatter.rs  # CycloneDX JSON output
│   │       │   └── markdown_formatter.rs   # Markdown output
│   │       └── console/
│   │           └── progress_reporter.rs    # StderrProgressReporter
│   └── shared/                    # Shared kernel
│       ├── error.rs               # Domain errors, ExitCode enum
│       ├── result.rs              # Result type alias
│       └── security.rs            # Security validation
├── tests/
│   ├── integration_test.rs        # Use case-level integration tests
│   ├── e2e_test.rs                # Fixture-based E2E tests
│   ├── e2e_vulnerability_threshold.rs  # Vulnerability threshold E2E
│   ├── test_utilities/mocks/      # Mock objects
│   └── fixtures/                  # Test fixtures (sample projects)
│       ├── sample-project/
│       ├── safe_project/
│       ├── vulnerable_project/
│       └── expected-outputs/
├── python-wrapper/                # PyPI distribution wrapper
├── .github/workflows/             # CI/CD (ci.yml, release.yml)
├── .claude/                       # Claude Code config & skills
├── docs/                          # Additional documentation
├── ARCHITECTURE.md                # Architecture details (English)
├── DEVELOPMENT.md                 # Development guide
├── README.md                      # User documentation (English)
└── AGENTS.md                      # This file

Read the full file on GitHub · 280 lines

Changes

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.

  1. 2d ago Changed · +12 tokens per session 3d5b034b737d
  2. 4d ago First seen · 280 lines · 2,879 tokens per session scan A 6ef2190b1fa2

Subscribe to this mod's changes

uv-sbom AGENTS.md is an instructions file published in the GitHub repository Taketo-Yoda/uv-sbom (6 stars, last pushed today), licensed MIT. It adds 2,891 tokens to every session, about $0.0145 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-09-04.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 3,735 tokens