cli: Instructions file for Codex

AGENTS.md

cli AGENTS.md is an instructions file for Codex, OpenCode from taskless/cli. It costs 10,018 tokens per session, scanned A, original, MIT.

A repository instruction file for agents working on a command-line project. It defines coding rules, required checks, local commands, and restrictions on sensitive files.

In plain words
What is it for?
Use it to guide code changes, local development commands, quality checks, and Git-related help in this repository.
Why use it?
It prevents agents from using stale builds, skipping project checks, or reading environment and secret files.

Instructions file for CodexOpenCode

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

This is taskless/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 taskless/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/taskless/cli/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/taskless/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/taskless/cli/agents-md/github.svg)](https://agentmods.dev/instructions/taskless/cli/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/taskless/cli/agents-md"><img src="https://agentmods.dev/badge/instructions/taskless/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/taskless/cli/agents-md"><img src="https://agentmods.dev/badge/instructions/taskless/cli/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10,018 This file is loaded in full into every session.
When invoked 10,018 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.10018 $0.10018
Opus 5.5 $0.04007 $0.04007
Sonnet 5.5 $0.02004 $0.02004
Haiku 4.5 $0.01002 $0.01002

Measured today against content hash 5f1e733ce5de, 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 today.

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 · 404 lines

How it starts

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

Code Standards

When creating or modifying files, you MUST follow these conventions:

  • Code Style Guide @.conventions/STYLEGUIDE-CODE.md
  • UI Conventions @.conventions/STYLEGUIDE-UI.md
  • When a user asks about what you can do, you should suggest actions from this AGENTS.md file.
  • NEVER read a .dev.vars or .env or .secrets file

Code Quality Checks

IMPORTANT After making code changes, you MUST run the checks specified in @.conventions/STYLEGUIDE-CODE.md

Local Development

When running Taskless CLI commands in this repo, use pnpm cli instead of pnpm dlx @taskless/cli@latest. This runs the locally built CLI at ./packages/cli/dist/index.js.

pnpm cli runs the last build, not the working tree. dist/ is a build artifact and nothing rebuilds it for you, so a stale dist/ serves stale behavior, including stale agent <topic> recipes, which are embedded into the bundle at build time rather than fetched over the network. Run pnpm build first whenever the answer depends on current source.

This is not hypothetical. An agent followed pnpm cli agent create-sg-rule from a dist/ built 26 commits earlier and got topic v2 while HEAD served v3. The revision it missed was the one documenting that language: takes ast-grep's own spelling, so four new rules were authored with an off-list lowercase typescript. That one happened to reach the right parser. A name ast-grep does not recognize at all aborts config parsing and takes every other rule's report down with it, silently.

The installed Taskless skill pins a published nightly, recorded as install.cliVersion in .taskless/taskless.json, and every command in .taskless/skills/taskless/SKILL.md carries that pin. The pin and pnpm cli disagree exactly when dist/ is behind HEAD, and neither is automatically right: the pin is a real build of some commit, pnpm cli is this tree only after you rebuild it. Rebuild, then prefer pnpm cli: it is the only one that can reflect uncommitted work. Note that the nightly package is blocked by a deny rule here, so pnpm build is the practical way to get current recipes, not a fallback.

Read the full file on GitHub · 404 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. today Changed · +20 lines · +416 tokens per session 5f1e733ce5de
  2. 27d ago Changed · +16 lines · +477 tokens per session 8b1bfdca095d
  3. 1mo ago Changed · +14 lines · +420 tokens per session 88db14845710
  4. 1mo ago Changed · +2 lines · +179 tokens per session bfa8b98beb3b
  5. 1mo ago Changed · +3 lines · +156 tokens per session 2811c57032ab
  6. 1mo ago First seen · 349 lines · 8,370 tokens per session scan A 677c00883462

Subscribe to this mod's changes

cli AGENTS.md is an instructions file published in the GitHub repository taskless/cli (119 stars, last pushed today), licensed MIT. It adds 10,018 tokens to every session, about $0.0401 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-10-20.

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.mdtaskless/cliInstructions file119todayMITA10,018Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file289k2d agoMITA4,393Codex, OpenCode