ai-cli-utils: Instructions file for Codex

AGENTS.md

ai-cli-utils AGENTS.md is an instructions file for Codex, OpenCode from sergeiwallace/ai-cli-utils. It costs 561 tokens per session, scanned A, original, MIT.

Development guidance for a public Python package containing command-line tools and utilities. It sets rules for readable open-source code, generic examples, privacy, portability, and testing.

In plain words
What is it for?
Use it when writing or reviewing code, documentation, tests, configuration, and commit messages for the package.
Why use it?
It helps keep the package suitable for a broad audience without exposing private names, paths, or platform-specific assumptions.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sergeiwallace/ai-cli-utils/agents-md"><img src="https://agentmods.dev/badge/instructions/sergeiwallace/ai-cli-utils/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 561 This file is loaded in full into every session.
When invoked 561 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.00561 $0.00561
Opus 5.5 $0.00224 $0.00224
Sonnet 5.5 $0.00112 $0.00112
Haiku 4.5 $0.00056 $0.00056

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

Security

Grade A, and why

ai-cli-utils 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 4d 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 · 30 lines

How it starts

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

Lean configuration

Public Open-Source Package Standards

This is a public open-source package. All code, docs, comments, tests, and commit messages must be written for a general audience.

  • No proprietary names — never reference ai-core, aido, or private platform/tool names in code, docs, comments, or tests.
  • No personal identifiers — no personal names (first or last), usernames, private server IPs/hostnames, or account-specific paths. Use generic placeholders: user, myproject, example.com, 192.0.2.x.
  • No private project names or prefixes — do not hardcode personal-workflow project names or session prefixes in source, docs, or tests. Use only generic names such as myproject, myapp, session-1, and test-session.
  • Generic examples throughout — all session names, project names, and configuration values in tests/docs must be obvious placeholders, not possible real personal-workflow artifacts.
  • OS portability — account for Windows, macOS, and Linux differences. Do not assume macOS-only locations or tools (for example ~/Library/, pbcopy, or open). Use sys.platform, pathlib, and os abstractions. Flag unavoidable platform-specific code with a comment.
  • Commit messages are public — the same rules apply to git commit messages.
  • If an existing violation is found while working, flag it immediately rather than letting it accumulate.

CLI Conventions

  • All options must have both short and long forms — for example -f/--force, -d/--dry-run. Do not add long-only flags, except hidden internal SUPPRESS flags passed machine-to-machine.
  • When adding a new CLI option, add both forms simultaneously. Do not ship long-only flags.
  • Name every command {verb}-{noun} (migrate-session, not session-migrate). A command group is a noun and its subcommands are verbs. A new command that does not fit this form is raised with the maintainer for review before it ships.

Test Requirements

Python

  • Test names: test_{given}_{when}_{then}
  • Use pytest fixtures for shared setup.
  • A reviewer role audits test quality on every review; see .claude/agents/reviewer.md.
  • Run: pytest
  • # pragma: no cover is a hard human gate — never add it autonomously. If a line cannot be covered, document the specific line, why it cannot be mocked, and options in the UAT report. Wait for explicit user approval before adding a pragma.

Read the full file on GitHub · 30 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. 4d ago Changed · +1 lines · +54 tokens per session f5d8a7e1d6df
  2. 1mo ago First seen · 29 lines · 507 tokens per session scan A c1b46be3f26e

Subscribe to this mod's changes

ai-cli-utils AGENTS.md is an instructions file published in the GitHub repository sergeiwallace/ai-cli-utils (2 stars, last pushed today), licensed MIT. It adds 561 tokens to every session, about $0.0022 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