kleosrules: Instructions file for Codex

AGENTS.md

kleosrules AGENTS.md is an instructions file for Codex, OpenCode from kleosr/kleosrules. It costs 476 tokens per session, scanned A, original, MIT.

Project instructions for Kleosrules, a Cursor setup containing user rules, skills, shell hooks, and local handoff notes. Cursor is an AI coding editor.

In plain words
What is it for?
Maintaining or installing the Kleosrules pack, its Cursor hooks, shared rules, helper agents, platform installers, tests, and diagnostic tools.
Why use it?
They explain where the rules and automation live and how the pack is installed, synchronized, tested, and checked.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 kleosrules AGENTS.md

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

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

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

Security

Grade A, and why

kleosrules 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 1mo 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 · 41 lines

What it actually says

AGENTS.md — kleosrules (navigator)

kleosrules is a Cursor user harness: charter, always-on law, skills, and four Bash hooks around the host loop. It is not a second agent runtime.

Init: bash scripts/ready.sh
Inventory: DOCTOR_SKIP_LIVE=1 bash scripts/doctor.sh
Verify: the behavior this change can break; gauntlet bash tests/run.sh
Windows: Git Bash.

First reads

  1. This file.
  2. shared/config/harness.json — runtime contract (commands, limits, extension points).
  3. shared/config/features.json — one in_progress. passing only via bash scripts/feature.sh pass <id>.
  4. state/handoff.json if present — continuity, not authority.
  5. SECURITY.md before security-sensitive work.

Law (priority order)

  1. User Rules paste: shared/rules/USER-RULES.paste.txt
  2. Boundary: SECURITY.md
  3. Always-on: core.mdc, testing.mdc
  4. Glob companions: inert unmatched
  5. Skills on match: debugging, testing, handoff
  6. Specialists: hunter / cut / prove — invoke only

Loop

understand → change → verify → correct. Done means the listed verification ran. stop.sh is advisory. It does not run the suite.

Config

  • Extend via skills.txt and glob companions. Do not add hook events.
  • evals/tasks.json — structural coverage (bash scripts/eval.sh check). Live scoring is out of band.
  • Hooks: four events. No sessionStart, no preToolUse, no updated_input.

Docs

docs/ARCHITECTURE.md, docs/TOOLCHAIN.md, docs/DECISIONS/hooks.md, docs/DECISIONS/engineering-os.md, docs/host-capability.md.

Install

FORCE=1 bash scripts/install.sh

Cloud: CLOUD=1 TARGET_REPO=<other-repo> bash shared/hooks/fleet_sync.sh project-hooks. Never into this pack.

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. 1mo ago Changed · +5 lines · +46 tokens per session 8ffbdce54b28
  2. 1mo ago Changed · -8 lines · -259 tokens per session 826a03cd315d
  3. 1mo ago Changed · +6 lines · +97 tokens per session 6da037f26652
  4. 1mo ago Changed · -42 tokens per session 28ba6a7f7ad9
  5. 1mo ago Changed · +10 tokens per session 66f9a42840f6
  6. 2mo ago Changed · +6 tokens per session ee5a51805b8d
  7. 2mo ago Changed · +13 tokens per session b4dbaaa16a6f
  8. 2mo ago Changed · +1 lines · +188 tokens per session 2c15a045f19f
  9. 2mo ago First seen · 37 lines · 417 tokens per session scan A 53db69b9bb32

Subscribe to this mod's changes

kleosrules AGENTS.md is an instructions file published in the GitHub repository kleosr/kleosrules (0 stars, last pushed 1mo ago), licensed MIT. It adds 476 tokens to every session, about $0.0019 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

kleosrules AGENTS.md compared with instructions from other repositories

kleosrules AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kleosrules AGENTS.mdkleosr/kleosrulesInstructions file01mo agoMITA476Codex, 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