K-Ops AGENTS.md

K-Ops AGENTS.md is an instructions file for Codex, OpenCode from arnaudgelas/K-Ops. It costs 518 tokens per session, scanned A, original, MIT.

A set of repository instructions describing the roles, files, and working rules for an agent-driven knowledge vault. The vault stores source evidence, durable topic pages, answers, and research work separately.

In plain words
What is it for?
It helps agents ingest sources, compile knowledge pages, check and repair the vault, answer questions from stored material, and render it into reports or other formats.
Why use it?
It gives agents a shared map of the repository so they know where information belongs and which workflow handles each kind of work.

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/arnaudgelas/k-ops/agents-md
Clone the repo
git clone --depth 1 https://github.com/arnaudgelas/K-Ops

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 K-Ops AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/arnaudgelas/k-ops/agents-md.svg)](https://agentmods.dev/instructions/arnaudgelas/k-ops/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/arnaudgelas/k-ops/agents-md"><img src="https://agentmods.dev/badge/instructions/arnaudgelas/k-ops/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 518 This file is loaded in full into every session.
When invoked 518 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.00518 $0.00518
Opus 5 $0.00259 $0.00259
Sonnet 5 $0.00104 $0.00104
Haiku 4.5 $0.00052 $0.00052

Measured 4d ago against content hash 44464734c9cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

K-Ops 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 4d 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 · 48 lines

How it starts

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

AGENTS.md

This repo is designed for agentic CLI workflows.

Canonical rules: see OPERATING_RULES.md.

Roles

Source Ingestor

Goal: transform new raw sources into normalized source summaries.

Wiki Compiler

Goal: merge source summaries into durable concept pages and indexes.

Lint + Heal

Goal: detect contradictions, weak structure, missing backlinks, and unsupported claims.

Q&A Agent

Goal: answer using the vault, then file durable insights back into the vault.

Render Agent

Goal: convert the current vault into memos, briefings, slide outlines, diagrams, and plot specs.

Repo Contract

  • data/raw/ holds source evidence
  • notes/Sources/ holds per-source summaries
  • notes/Concepts/ holds durable knowledge pages
  • notes/Answers/ holds generated answer memos
  • notes/Home.md is the Obsidian entry point
  • notes/TODO.md tracks gaps and healing tasks
  • notes/Runbooks/Agent_Workflow_Quick_Reference.md is the compact operator map for cross-CLI workflows
  • research/ holds resumable research-run artifacts and stays separate from curated vault notes
  • kops bootstrap --target <dir> creates a new blank starter vault with the same file structure and tooling

Behavioral Guardrails

  • Prefer modifying a small number of files with high signal.
  • Prefer precise edits over broad rewrites.
  • Preserve provenance from source summaries into concept pages.
  • When uncertain, mark uncertainty explicitly.

Codex-Specific Notes

  • Use uv run kops install-agent-assets to sync canonical skills/templates to the Codex runtime directory.
  • Use uv run kops validate to confirm config loads before running workflows.
  • Prefer uv run kops compile --agent codex when you want Codex to do the compilation pass.
  • Use uv run kops extract-claims, extract-contradictions, and scorecard to keep the machine-readable quality layer current.
  • After extract-claims, run uv run kops verify-spans to confirm claim quote anchors exist in their sources, and uv run kops review-queue to surface everything awaiting human review.
  • Use uv run kops next-action for the single next repair + convergence verdict, and uv run kops consequence-gate --tier <...> before backing a high-stakes answer or render with the vault's claims.

Read the full file on GitHub · 48 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. 4d ago First seen · 48 lines · 518 tokens per session scan A 44464734c9cd

Subscribe to this mod's changes

K-Ops AGENTS.md is an instructions file published in the GitHub repository arnaudgelas/K-Ops (1 stars, last pushed 15d ago), licensed MIT. It adds 518 tokens to every session, about $0.0026 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.