upgradelens: Instructions file for Codex

AGENTS.md

upgradelens AGENTS.md is an instructions file for Codex, OpenCode from mattpicone/upgradelens. It costs 730 tokens per session, scanned A, original, MIT.

A set of project instructions for UpgradeLens, a read-only service that checks npm and PyPI dependency upgrades. npm is JavaScript's package registry, and PyPI is Python's package registry.

In plain words
What is it for?
Finding possible upgrade targets, checking a chosen version, and producing ordered migration steps. It only allows dependency-file edits when its checks explicitly permit them.
Why use it?
It helps check whether a dependency upgrade is compatible and whether it has security, end-of-life, or breaking-change concerns before changing project files.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: positional $N argument.

This is mattpicone/upgradelens's own configuration. It tells Codex and OpenCode how to work on upgradelens 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 upgradelens configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mattpicone/upgradelens. 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/mattpicone/upgradelens/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/mattpicone/upgradelens

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 upgradelens AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mattpicone/upgradelens/agents-md/github.svg)](https://agentmods.dev/instructions/mattpicone/upgradelens/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/mattpicone/upgradelens/agents-md"><img src="https://agentmods.dev/badge/instructions/mattpicone/upgradelens/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 upgradelens AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/mattpicone/upgradelens/agents-md"><img src="https://agentmods.dev/badge/instructions/mattpicone/upgradelens/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 730 This file is loaded in full into every session.
When invoked 730 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.00730 $0.00730
Opus 5.5 $0.00292 $0.00292
Sonnet 5.5 $0.00146 $0.00146
Haiku 4.5 $0.00073 $0.00073

Measured 1mo ago against content hash ce87afc147e3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

upgradelens 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 1mo 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 · 63 lines

How it starts

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

UpgradeLens v0.4 operating charter

UpgradeLens is a machine-only, read-only dependency-upgrade intelligence service for npm and PyPI. Version 0.4.3 is additive: every v0.3.1 tool and REST route remains compatible. The service never executes caller commands, clones repositories, follows caller-supplied URLs, or edits a caller's dependency files.

Current deployment is the existing Cloudflare Worker at https://upgradelens.mattpicone.workers.dev (/mcp and /v1/*). Start local work with npm ci; use npm run dev for a Worker preview or npm run build for a Cloudflare bundle check.

Contract

  • review_dependency_upgrade: preferred exact-version entry point; returns a compact cited decision and ordered migration actions, or detail: "full".
  • check_dependency_upgrade: known current and target versions; returns a cited proceed/review/block/unknown decision.
  • find_safe_upgrade_target: target unknown; returns ranked candidates only.
  • plan_dependency_upgrade: target selected; returns ordered migration actions.
  • Every business result has next_action, billing, decision or candidates, action_allowed, freshness, coverage, and evidence near the top.
  • Errors use {error:{code,message,retryable,details?}}.
  • The only supported ecosystems are npm and PyPI.

Access and payment

Health, discovery, schemas, pricing, initialize, and tools/list are free. Each pseudonymous normalized-network identity receives one shared MCP/REST business unit per rolling 30 days. A unit is exactly $0.01 / 10,000 atomic USDC. Additional units use x402 v2; there are no subscriptions, prepaid credits, checkout pages, API-key sales, or human approvals. Existing legacy keys are compatibility identifiers only and never bypass payment.

Validation, testnet, mainnet, and paused are explicit payment modes. Mainnet must fail closed unless a verified recipient, facilitator credentials, recovery secret, release fingerprints, and matching testnet rollout attestation exist. Only a verified, settled, eligible Base-mainnet payment counts as revenue. Testnet, owner, duplicate, replayed, failed, refunded, or synthetic activity counts as zero revenue.

Read the full file on GitHub · 63 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. 1mo ago Changed ce87afc147e3
  2. 1mo ago Changed e0d15ed399f9
  3. 1mo ago Changed · +5 lines · +82 tokens per session a04ff131d7a7
  4. 1mo ago Changed · +38 lines · +373 tokens per session f0533a8b5f0c
  5. 1mo ago First seen · 20 lines · 275 tokens per session scan A ec60cea48df7

Subscribe to this mod's changes

upgradelens AGENTS.md is an instructions file published in the GitHub repository mattpicone/upgradelens (0 stars, last pushed 1mo ago), licensed MIT. It adds 730 tokens to every session, about $0.0029 per session on Opus 5.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-08-31.

Related

Other instructions, from other repositories

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 · 9,715 tokens

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,581 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, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 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,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens