releases-cli AGENTS.md

A repository instruction guide for Releases CLI, a command-line program that reads from the Releases registry through a web API. It documents the TypeScript and Bun setup, commands, project structure, and development rules; a monorepo is a single repository that contains multiple related projects.

In plain words
What is it for?
Use it when developing, checking, testing, or building Releases CLI. It covers running commands from source, compiling the Bun executable, linting and type-checking, and understanding where the CLI and API client code belong.
Why use it?
It gives coding agents the local conventions needed to work safely in this repository. It also makes clear that the CLI uses a remote API rather than a local database.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/buildinternet/releases-cli/agents-md
Clone the repo
git clone --depth 1 https://github.com/buildinternet/releases-cli

Made for: Codex, OpenCode.

Per session 5,090 This file is loaded in full into every session.
When invoked 5,090 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.05090 $0.05090
Opus 5 $0.02545 $0.02545
Sonnet 5 $0.01018 $0.01018
Haiku 4.5 $0.00509 $0.00509

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

Security

Grade A, and why

releases-cli 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 · 91 lines

How it starts

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

Agents guide — releases-cli

This repo is the public, client-only CLI for the Releases registry. It talks to api.releases.sh over HTTP. Ingest, database access, and AI pipelines live in a separate open-source backend monorepo, buildinternet/releases.

Stack

  • Runtime: Bun (required for bun --compile)
  • Language: TypeScript (strict mode)
  • CLI: Commander
  • MCP: @modelcontextprotocol/sdk on stdio
  • HTTP client: src/api/client.ts is the only data-access layer. No Drizzle, no SQLite, no local DB.

Commands

bun src/index.ts <command>    # run from source
bun run build                 # compile binary to dist/releases
bun run check                 # oxlint (lint + type-check) + oxfmt check — CI gate
bun run lint                  # oxlint only (`typecheck` is an alias)
bun test                      # bun test (not part of check)

Architecture

  • src/index.ts — entry point. Validates config, sets up telemetry, rewrites legacy aliases, hands off to Commander.
  • src/cli/program.ts — Commander program wiring. Public reader commands at the top level; operator workflows under admin.
  • src/cli/commands/ — one file per command. Every command goes through src/api/client.ts for data access.
  • src/api/client.ts — single HTTP boundary. apiFetch() auto-attaches Authorization: Bearer ${RELEASES_API_KEY} when admin mode is active, and (via src/lib/mutation-log.ts) records mutating requests when RELEASES_RUN_DIR is set.
  • src/lib/mode.tsgetApiUrl() / getApiKey() / isAdminMode() / validateConfig(). Always remote.
  • src/lib/mutation-log.ts — admin-mutation audit log for the ~/.releases/work/ maintenance workspace. When RELEASES_RUN_DIR is set, each non-GET request (minus telemetry/heartbeat plumbing) appends a {timestamp, command, target, result} JSONL line to $RELEASES_RUN_DIR/mutations.jsonl. Unset → no-op; fully fail-open.
  • src/lib/trace.ts — managed-session traces. Writes <dir>/<id>/{trace.json,summary.md} for terminal sessions/workflows; dir precedence is explicit flag > RELEASES_RUN_DIR > ~/.releases/work/runs. Used by --trace-dir (onboard, source fetch --wait, overview batch --wait) and task get --save. summary.md mirrors the monorepo's docs/architecture/maintenance-workspace.md run-summary template.
  • src/lib/telemetry.ts — anonymous usage pings to api.releases.sh/v1/telemetry. First-run notice shown once. Opt out via RELEASES_TELEMETRY_DISABLED=1 or DO_NOT_TRACK=1.
  • src/lib/update-check.ts — npm-registry poll for newer CLI versions (24h cache in ~/.releases/update-check.json). Prints a one-line stderr nag after command output when stale. src/lib/skills-update-check.ts mirrors it for the bundled skills: GitHub git/trees/main poll for the skills/ subtree SHA, cached in ~/.releases/skills-check.json. Baseline is written on successful releases skills install; the nag fires only if a baseline exists and diverges. Defense in depth: when the skills CLI's lock file ($XDG_STATE_HOME/skills/.skill-lock.json or ~/.agents/.skill-lock.json) is present and parses cleanly with zero buildinternet/releases-cli entries, the nag is suppressed (user uninstalled via skills). A missing/unreadable lock file falls through to the baseline check so manual installers aren't penalized. Opt out via RELEASES_DISABLE_SKILL_UPDATE_CHECK=1. Both checks skip non-TTY callers and --help/--version.
  • src/mcp/server.ts — local stdio MCP bridge. Exposes read-only tools (search, get_latest_releases, list_catalog, get_catalog_entry, get_source, list_organizations, get_organization) that proxy to api.releases.sh. Mirrors the canonical tool names served by the hosted server at mcp.releases.sh. get_catalog_entry inlines a CHANGELOG slice for source entries via include_changelog / changelog_path / changelog_offset / changelog_limit / changelog_tokens (products have none — degrades with a clear message). The former get_source_changelog tool was removed in 0.72.0 — use get_catalog_entry with the changelog_* params instead.
  • @buildinternet/releases-core — runtime-neutral helpers (schema, categories, slicing, IDs, slugs, tokens, CLI contracts). Published from the private buildinternet/releases monorepo (canonical source in packages/core/), consumed here as a regular npm dependency. Bump the pin in package.json when adopting a new schema.
  • packages/lib/ (@buildinternet/releases-lib) — logger, errors, trimmed config.
  • skills/ — single source of truth for the three user-facing agent skills (releases-mcp, releases-cli, analyzing-releases); there is no generated copy and no npm wrapper (@buildinternet/releases-skills is retired/deprecated). Operator skills live in the backend monorepo's .claude/skills/ tree — do not re-add copies here. The Claude plugin references these folders directly through .claude-plugin/marketplace.json (the plugin's skills array lists ./skills/<name> paths, resolved against the repo root via source: "./"), so editing a skill is the whole change — nothing to re-sync. Cross-agent install runs through releases skills install, which shells out to npx skills add buildinternet/releases-cli (the vercel-labs/skills ecosystem). Wiring is in src/cli/commands/skills.ts; pure argv construction in src/cli/skills/build-args.ts.
  • plugins/claude/releases/ — Claude Code plugin. Bundles the hosted MCP connection + the skills referenced from skills/ via marketplace.json.
  • npm/ — meta package (@buildinternet/releases) + five platform binary packages. CI writes the compiled binary into each platform package before publishing.

Read the full file on GitHub · 91 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 First seen · 91 lines · 5,090 tokens per session scan A d63a00f616b6

Subscribe to this mod's changes

releases-cli AGENTS.md is an instructions file published in the GitHub repository buildinternet/releases-cli (4 stars, last pushed 2d ago), licensed MIT. It adds 5,090 tokens to every session, about $0.0255 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-08-31.

Related

Other instructions, from other repositories