cluster-cli: Instructions file for Codex

AGENTS.md

cluster-cli AGENTS.md is an instructions file for Codex, OpenCode from sharat/cluster-cli. It costs 1,690 tokens per session, scanned A, original, MIT.

Repository instructions for the Rust command-line project cluster-cli. They specify commands for building, testing, formatting, linting, dependency updates, shared skills, and documentation changes.

In plain words
What is it for?
Use them when modifying cluster-cli to run Cargo builds, tests, formatting checks, and lints, and to update documentation when the code's interface changes.
Why use it?
They give coding agents a consistent set of project rules instead of leaving build and review expectations implicit. Following them helps changes meet the checks enforced by CI.

Instructions file for CodexOpenCode

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

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

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/sarat/oss/cluster-cli.

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sharat/cluster-cli/agents-md"><img src="https://agentmods.dev/badge/instructions/sharat/cluster-cli/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,690 This file is loaded in full into every session.
When invoked 1,690 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.01690 $0.01690
Opus 5.5 $0.00676 $0.00676
Sonnet 5.5 $0.00338 $0.00338
Haiku 4.5 $0.00169 $0.00169

Measured yesterday against content hash 6e0b7e14b21c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cluster-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 yesterday.

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

How it starts

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

AGENTS.md

This file provides guidance for agents working in this repository.

Build / Lint / Test Commands

# Build
cargo build                        # debug build
cargo build --release              # optimized build (lto, strip, panic=abort)

# Testing
cargo test --verbose               # run all tests
cargo test <test_name>             # run a single test by name (e.g., cargo test test_critical_node_penalty)

# Formatting (CI enforces this)
cargo fmt -- --check               # check formatting
cargo fmt                          # apply formatting

# Linting (warnings are errors in CI)
cargo clippy -- -D warnings       # lint with warnings-as-errors

# Update dependencies
cargo update                       # update to latest compatible versions

Shared Agent Skills

Reusable repository skills live in .agents/skills/. Read the relevant SKILL.md before performing a matching task; release-cluster-cli governs release preparation, tagging, and release-status work.

Documentation

When features, key bindings, CLI flags, or MCP tools change, update the documentation to stay synchronized with the code.

What to update:

  • docs/*.md - Markdown documentation files
  • docs/index.html - Landing page (self-contained HTML)

How to update: Use the update-docs skill at .agents/skills/update-docs/SKILL.md. This skill:

  • Reads the code as source of truth (no invented features)
  • Updates all affected documentation files
  • Regenerates the landing page with current features
  • Verifies every documented key binding, flag, and tool exists in code
  • Renders a screenshot for PR inclusion

Hosted documentation: The docs/ folder is published to GitHub Pages at https://sharat.github.io/cluster-cli/: the .github/workflows/pages.yml workflow copies it to the gh-pages branch, which Pages serves, on pushes to main that touch docs/**.

See: .agents/skills/update-docs/SKILL.md for complete documentation update workflow.

Changelog Maintenance

Read the full file on GitHub · 197 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. yesterday First seen · 197 lines · 1,690 tokens per session scan A 6e0b7e14b21c

Subscribe to this mod's changes

cluster-cli AGENTS.md is an instructions file published in the GitHub repository sharat/cluster-cli (9 stars, last pushed 16d ago), licensed MIT. It adds 1,690 tokens to every session, about $0.0068 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-11-07.

Related

cluster-cli AGENTS.md compared with instructions from other repositories

cluster-cli AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cluster-cli AGENTS.mdsharat/cluster-cliInstructions file916d agoMITA1,690Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot