cli: Instructions file for Codex

AGENTS.md

cli AGENTS.md is an instructions file for Codex, OpenCode from halo-dev/cli. It costs 2,704 tokens per session, scanned A, original, MIT.

Repository instructions for Halo CLI, a TypeScript command-line program for managing Halo content-management-system instances.

In plain words
What is it for?
Use them when installing dependencies, running or building the CLI, or changing features such as posts, themes, plugins, search, backups, and comments.
Why use it?
They explain the project structure, required Node.js version, approved package commands, and available command areas.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/halo-dev/cli/agents-md"><img src="https://agentmods.dev/badge/instructions/halo-dev/cli/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,704 This file is loaded in full into every session.
When invoked 2,704 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.02704 $0.02704
Opus 5.5 $0.01082 $0.01082
Sonnet 5.5 $0.00541 $0.00541
Haiku 4.5 $0.00270 $0.00270

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

Security

Grade A, and why

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 3d 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 · 266 lines

How it starts

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

AGENTS.md

This file follows the open AGENTS.md convention from https://agents.md. Treat it as the agent-facing README for this repository: use it to get oriented, make changes in the existing style, and run the right checks before handing work back.

Project Overview

@halo-dev/cli is a TypeScript, ESM-based CLI for managing Halo instances.

  • Runtime: Node.js >= 22
  • Published binary: halo
  • Source entry: src/cli.ts
  • Local development entry: tsx src/cli.ts
  • Build output: dist/cli.mjs
  • Package manager: Vite+ wraps the underlying package manager; prefer vp commands for project tooling.

The root CLI currently exposes these business areas:

  • auth
  • post
  • single-page
  • search
  • plugin
  • theme
  • attachment
  • backup
  • moment
  • comment
  • notification
  • shop
  • completion

Setup Commands

  • Install dependencies after pulling changes: vp install
  • Run the CLI from source: vp exec tsx src/cli.ts --help
  • Run a command from source: vp exec tsx src/cli.ts <command> ...
  • Build the published CLI: vp run build

Do not use pnpm, npm, or yarn directly for dependency management unless the user explicitly asks for it. Vite+ is the project toolchain wrapper.

Validation Commands

Use the smallest useful check while iterating, then run broader checks before finishing a meaningful change.

  • Fast TypeScript regression check: pnpm typecheck
  • Lint: vp lint
  • Full project check: vp check
  • Tests: vp test
  • Build: vp run build

pnpm typecheck is intentionally kept here because it is currently the fastest way to catch TypeScript regressions in this CLI. For Vite+, do not run commands such as vp vitest or vp oxlint; use vp test and vp lint.

Vite+ Rules

This project uses Vite+, a unified toolchain built on top of Vite, Rolldown, Vitest, tsdown, Oxlint, Oxfmt, and Vite Task.

  • Run vp help or vp <command> --help for command details.
  • Use vp run <script> when you need a package.json script whose name conflicts with a Vite+ built-in command.
  • Use vp dlx for one-off package binaries.
  • Import Vite+ APIs from vite-plus, for example import { defineConfig } from "vite-plus";.
  • Import test APIs from vite-plus/test, for example import { expect, test, vi } from "vite-plus/test";.
  • Do not add direct dependencies on Vitest, Oxlint, Oxfmt, or tsdown just to use their CLIs or APIs.
  • Type-aware linting is available through vp lint --type-aware; do not add oxlint-tsgolint for that purpose.

Read the full file on GitHub · 266 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. 3d ago Changed · +5 lines · +74 tokens per session 3ecc1194d34b
  2. 8d ago Changed · +32 lines · +539 tokens per session c3b761928b00
  3. 2mo ago First seen · 229 lines · 2,091 tokens per session scan A 9634f288f948

Subscribe to this mod's changes

cli AGENTS.md is an instructions file published in the GitHub repository halo-dev/cli (30 stars, last pushed 3d ago), licensed MIT. It adds 2,704 tokens to every session, about $0.0108 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-30.

Related

cli AGENTS.md compared with instructions from other repositories

cli AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cli AGENTS.mdhalo-dev/cliInstructions file303d agoMITA2,704Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode