epistemic-protocols AGENTS.md

epistemic-protocols AGENTS.md is an instructions file for Codex, OpenCode from jongwony/epistemic-protocols. It costs 3,196 tokens per session, scanned A, original, MIT.

Repository instructions for Epistemic Protocols, a framework for structuring communication between people and AI systems.

In plain words
What is it for?
Use them when working with the project’s AGENTS.md, northstar, settled directions, protocol index, and runtime contract.
Why use it?
They define the project’s terminology, decision rules, and documentation conventions so changes remain consistent.

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/jongwony/epistemic-protocols/agents-md
Clone the repo
git clone --depth 1 https://github.com/jongwony/epistemic-protocols

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 epistemic-protocols AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jongwony/epistemic-protocols/agents-md.svg)](https://agentmods.dev/instructions/jongwony/epistemic-protocols/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/jongwony/epistemic-protocols/agents-md"><img src="https://agentmods.dev/badge/instructions/jongwony/epistemic-protocols/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,196 This file is loaded in full into every session.
When invoked 3,196 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.03196 $0.03196
Opus 5 $0.01598 $0.01598
Sonnet 5 $0.00639 $0.00639
Haiku 4.5 $0.00320 $0.00320

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

Security

Grade A, and why

epistemic-protocols 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 · 99 lines

How it starts

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

AGENTS.md

This file provides always-loaded guidance for coding agents when working in this repository. Keep it short: put orientation, decision rules, and verification commands here; use linked docs and rg for recoverable detail.

Northstar

Epistemic Protocols is a domain-free metalanguage of structured types and morphisms for human-AI collaboration: it reduces cognitive load by eliciting unknowns into utterance, constraining AI attention without bias, and resolving interaction deficits at their root within bounded loops before local misalignment hardens into system-wide rework.

Settled Directions

Citable registry of conventions whose resolution direction is already constituted. The option-set relay test (defined in premise/interaction-factorization.md) cites a clause here to collapse settled-direction option-set entropy — a finding whose direction a clause below already determines is presented as relay, not gated. Maintained by /steer: a direction recurringly constituted the same way graduates into a clause here.

  • Count-free protocol cardinality: do not hardcode the protocol count in prose, comments, test names, or metadata descriptions — use count-free phrasing ("all core protocols", "every protocol plugin"). Completeness-sensitive code and tests compare exact protocol identities against the canonical registry (scripts/load-protocols.js CANONICAL_PROTOCOL_SET, the full identity set; CANONICAL_PRECEDENCE is the presentation-order subset it is built from) or derive displayed counts from it; a deliberate subset (e.g. the Codex submission set) states its inclusion policy explicitly.
  • Multi-skill plugin description scope: a plugin bundling more than one skill (currently: epistemic-cooperative only) is not required to enumerate every skill's /command in its top-level plugin description to satisfy artifact-self-containment.js's hasRoutingCue check; single-skill plugin descriptions must still name their one skill's /command, enforced unchanged.
  • Checkpoint policy stays at the meta layer: SKILL.md inscribes only when a checkpoint fires, what it presents, and each branch's state transition — never which branch is correct; silence therefore carries Stop rather than auto-selecting a branch. General form: premise/tiering-and-scope.md §Checkpoint Policy Stays at the Meta Layer.
  • Conditional-load cut criterion: what leaves a SKILL.md for its references/ surface is decided by structural belonging and the earliest loading tier the clause's need requires, never by length. A clause moved without a precise pointer that reaches it just before it binds is a defect rather than an optimization.
  • Surface authority order: instruction surfaces rank premise/AGENTS.md.claude/rules/.claude/principles/docs/, and where two disagree the higher one governs while the lower one is the thing to correct. A static check is an enforcement channel rather than a surface: it can block a commit, and a block whose basis contradicts a higher surface is a defect in the check — not a reason to abandon the work it stopped. A surface below AGENTS.md describes and explains; none of them establishes its own tier or another's, so a tier claim written inside the surface it grades carries no authority. Contributor and governance surfaces are never runtime dependencies of a packaged SKILL.md; artifact-self-containment enforces that against the packaged runtime-contract view.
  • Assertion needs an enforcement channel: a state surface carries why a thing is shaped as it is, not a present-tense claim about what the repo currently contains. A coverage roster, a count, an inventory of which files carry what, a restatement of what a check enforces — each is admitted only where a channel re-runs it. Without one it keeps asserting an earlier reading with present authority, and being correct today is not the test: what fails is the day it silently stops being correct and blocks work that contradicts it. Where such a claim is worth keeping, give it a guard; otherwise state what it was guarding against and point at the source a reader can check.
  • Static verification boundary: compile into static checks only predicates whose verdict follows mechanically from authoritative artifact state — schema, identity, exact reference resolution, or deterministic producer/consumer wiring. Context-dependent meaning, including whether an answer type is realized as the right user-facing gate under the accumulated context and utterance, routes to /realize or review. Static checks may verify that those channels are wired and fail closed; they do not stand in for the judgment.
  • Ledger binding: this project's canonical ledger is the commit-message history on the default branch. "Then"-records (narrative, provenance, trade-offs, rejected alternatives) route there at write time; state surfaces carry only now-asserting operative content, strictest in always-loaded instruction files. Issues and pull requests are where a proposal is raised and deliberated, not ledger surfaces — what a deliberation settles reaches the ledger through the commit that lands it, so a record left only in an issue or a PR body has not been written down.
  • Academic grounding: the protocols take their motive from Stoic epistemology (katalēpsis), Husserlian phenomenology (synthesis of identification, horizon), Gadamerian hermeneutics (fusion of horizons), and cognitive psychology (generation effect, retrieval practice, structure-mapping). Which literature grounds which protocol — and whether that grounding ever reached a shipped surface — is a then-record and lives in the git record, not on a state surface here. When grounding a claim in literature, check the primary source rather than answering from recall, and carry the verification strength with the claim: verified (primary source checked in this session), mostly (core claim checked, surrounding detail synthesized), or reconstructed (volume/issue/pagination came from recall and needs a spot-check before publication). Name the weakest link explicitly. An effect that failed replication is a design warning, never a quantitative law — and an absence claim reaches exactly as far as the search that grounds it, so state the scope searched rather than concluding from a partial read.
  • Session-handoff routing: work crossing a session boundary is handed over as a pointer into the canonical record, never as a re-authored copy of it. The author supplies purpose/frame and entry points only; what to carry over is derived by the recipient from that purpose, grounded with /inquire where available or its equivalent grounding pass — the moment the author selects the items, the corruption a pointer avoids re-enters at small scale.
  • Harness boundary: this project unfolds the epistemic layer only. Harness concerns — tool schema limits, permission models, execution channels, state mutation — fall outside what these instruction surfaces govern: no rule is authored here for them, and no claim is made here about where they are settled instead, which would assign a responsibility this project has no means to discharge. A protocol names its delegation point — where execution hands off — and stops there, naming the capability the handoff requires rather than a tool that could supply it, so a contract stays readable where that tool is absent. The reasoning behind the handoff lives in this clause, not in the protocol.
  • Premise surface boundary: premise/ carries the general principle; this project's instance of it, and any claim whose meaning depends on this repository's artifacts or conventions, stays on a project surface. Both directions of crossing and how a crossing is detected are stated in premise/README.md §Adapting — read them there rather than mirrored here. What this clause settles is that a crossing found on this repository's surfaces is repaired rather than kept.

Read the full file on GitHub · 99 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 · 99 lines · 3,196 tokens per session scan A 63b684988e9f

Subscribe to this mod's changes

epistemic-protocols AGENTS.md is an instructions file published in the GitHub repository jongwony/epistemic-protocols (160 stars, last pushed yesterday), licensed MIT. It adds 3,196 tokens to every session, about $0.0160 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-30.

Related

Other instructions, from other repositories