agent-cli: Instructions file for Codex

AGENTS.md

agent-cli AGENTS.md is an instructions file for Codex, OpenCode from VictorTomaili/agent-cli. It costs 950 tokens per session, scanned A, original, MIT.

A project instruction guide for agent-cli, a Node.js command-line tool that manages AGENTS.md instruction files and syncs them across coding tools.

In plain words
What is it for?
Onboarding coding agents, documenting the checkout, and explaining installation, initialization, update, and upgrade workflows.
Why use it?
It explains the repository's structure, commands, and important differences between updating the installed package and updating its managed instruction content.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 agent-cli AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/victortomaili/agent-cli/agents-md"><img src="https://agentmods.dev/badge/instructions/victortomaili/agent-cli/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 950 This file is loaded in full into every session.
When invoked 950 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.00950 $0.00950
Opus 5.5 $0.00380 $0.00380
Sonnet 5.5 $0.00190 $0.00190
Haiku 4.5 $0.00095 $0.00095

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

Security

Grade A, and why

agent-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 2mo 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 · 68 lines

How it starts

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

AGENTS.md

Instructions for any AI coding agent (Claude Code, Codex, Cursor, etc.) working in this repo. Humans: see README.md for the user-facing docs and ARCHITECTURE.md for the full layer-by-layer map.

What this is

agent-cli (npm: @victortomaili/agent-cli, bin: agent-cli) manages AGENTS.md-style instruction files and syncs them across every AI coding tool a user has installed. Node.js

= 22, ESM ("type": "module"), zero build step — src/cli.js runs directly.

Install / update / init

These are the commands a user (or an agent driving npm/agent-cli on a user's behalf) runs against the published package, not this checkout:

npm install -g @victortomaili/agent-cli        # install
npm update -g @victortomaili/agent-cli          # update to latest published version
agent-cli init                                  # bootstrap ~/AGENTS.md + pointer stubs (idempotent)

Don't confuse that npm update with agent-cli update / agent-cli upgrade — the latter apply shipped-default content (seed files, managed instruction blocks) to an already-installed user's ~/.agents/ brain and are unrelated to the package version.

Working in this checkout

npm install     # dependencies
npm link        # global `agent-cli` command backed by this checkout (for manual testing)
npm run check   # syntax-check every src/*.js file (= npm run lint = npm run build)
npm test        # node --test test/*.test.js

Run npm run check && npm test before considering any change done — CI (.github/workflows/ci.yml) runs the same two commands on the ubuntu/windows × Node 22/24 matrix, and .github/workflows/publish.yml publishes to npm automatically on every main push whose package.json version isn't on the registry yet, so a broken check/test blocks a real release, not just a PR.

Conventions to preserve

  • Layering (src/cli.js → src/commands/*.js → src/*.js lib; src/api/index.js is a read-only SDK over lib; src/skills/** is self-contained). Enforced by test/import-boundaries.test.js — read it before adding a new cross-module import.
  • DI pattern: every command module exports registerXCommands(program, deps); src/cli.js builds deps once. Keep command files thin — parse options, call lib functions, format output.
  • Cross-cutting invariants (see ARCHITECTURE.md's "do not weaken these"): atomic writes (util.js), locked config writes (cross-process CAS in config.js), path containment on any write/delete driven by untrusted input, pointer-only deletion in unlink, secrets never synced/snapshotted/searched.
  • npm publish surface: only what's listed in package.json's "files" array (src, seed, README.md, LICENSE, docs/contract.md) ships in the tarball. Note the allowlist names docs/contract.md as a single path, not the docs/ folder: everything else under docs/ is a local working analysis (gitignored, see .gitignore) and must never ship. ARCHITECTURE.md and .spec/ never do — don't assume a new root-level doc is visible to an installed user.
  • .spec/ — single local-only folder for the project's spec-driven-dev workflow AND internal planning notes (README.md, constitution.md, specs/, plans/, tasks/, templates/, ROADMAP.md, findings.md). Gitignored, never committed, never shipped in the tarball. The CLI's spect command points here. Don't recreate these docs at the repo root.

Read the full file on GitHub · 68 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. 2mo ago First seen · 68 lines · 950 tokens per session scan A bfe9987f6b98

Subscribe to this mod's changes

agent-cli AGENTS.md is an instructions file published in the GitHub repository VictorTomaili/agent-cli (1 stars, last pushed 7d ago), licensed MIT. It adds 950 tokens to every session, about $0.0038 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,461 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,750 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