kleosrules AGENTS.md

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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/kleosr/kleosrules/agents-md
Clone the repo
git clone --depth 1 https://github.com/kleosr/kleosrules

Made for: Codex, OpenCode.

Per session 417 This file is loaded in full into every session.
When invoked 417 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00417 $0.00417
Opus 5 $0.00209 $0.00209
Sonnet 5 $0.00083 $0.00083
Haiku 4.5 $0.00042 $0.00042

Measured yesterday against content hash 53db69b9bb32, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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 · 37 lines

What it actually says

AGENTS.md map of this pack

LAW vs MAP

  • Law: rules paste + rules + registered hook scripts
  • This file: navigation only

Overview kleosrules V2 Bash hooks + local NOW.md memory. Brain equals NOW.md (local). Muscle equals four registered hook scripts. No Rust. No Python pack tooling. No MCP core dependency.

Install scope Local install is global-only: FORCE=1 bash scripts/install.sh writes ~/.cursor (hooks, GLOBAL rules, skills, hunter/cut/prove). sync is opt-in via empty-by-default shared/config/scan.roots. Never install Lane-A into this pack.

Where to look

  • Paste: shared/rules/USER-RULES.paste.txt
  • Hooks: shared/hooks/session_start.sh before_submit_prompt.sh before_shell.sh before_read_file.sh
  • Hook lib: shared/hooks/lib/common.sh shell_gate.sh shell_fleet.sh
  • Install: shared/hooks/fleet_sync.sh install → ~/.cursor
  • Agents: shared/agents/hunter.md cut.md prove.md
  • Platform installers: MacOS/install.sh Linux/install.sh Windows/install.ps1 (+ Windows/hooks/wsl-shim.ps1)
  • Scripts: scripts/doctor.sh scripts/install.sh scripts/sync.sh
  • Tests: tests/run.sh + tests/fixtures/
  • Architecture: docs/ARCHITECTURE.md
  • Curator: docs/CURATOR.md
  • Verify: docs/TOOLCHAIN.md
  • NOW.md: bounded session state (compaction protocol)
  • SECURITY.md: pnpm + cybersecurity SSOT

Done chmod +x shared/hooks scripts then bash -n on hook scripts + bash scripts/doctor.sh

Hard stops

  • Never reintroduce Rust kleos-gate or pack Python
  • Never emit updated_input (this pack does not register preToolUse); inject via additional_context (sessionStart) or continue (beforeSubmitPrompt)
  • Secrets never in paste hooks or chat
  • Never make MCP a core dependency (optional only)
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 · 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 (2 stars, last pushed yesterday), licensed MIT. It adds 417 tokens to every session, about $0.0021 per session on Opus 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