epistemic-protocols: Instructions file for Codex

AGENTS.md

epistemic-protocols AGENTS.md is an instructions file for Codex, OpenCode from jongwony/epistemic-protocols. It costs 3,866 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

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions subagents; mentions AGENTS.md.

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

Reuse

Borrowing it

Nothing to install: this file belongs to jongwony/epistemic-protocols. 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/jongwony/epistemic-protocols/main/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/github.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/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 epistemic-protocols AGENTS.md

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,866 This file is loaded in full into every session.
When invoked 3,866 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.03866 $0.03866
Opus 5.5 $0.01546 $0.01546
Sonnet 5.5 $0.00773 $0.00773
Haiku 4.5 $0.00387 $0.00387

Measured 4d ago against content hash c74094bb7425, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 · 109 lines

How it starts

The opening of the file, as written. The whole thing — 109 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 that moves the cognitive load of human-AI collaboration from recall to recognition. Instead of recalling and writing up front every unknown, decision, and condition a task turns on, the person answers or recognizes each where it binds: unknowns are elicited into utterance, AI attention is constrained without bias, and interaction deficits are resolved at their root within bounded loops, before local misalignment hardens into system-wide rework.

Entry Path

For a reader who is understanding or evaluating the project rather than changing it — the sections after this one govern changing it:

  • README.md orients: what the project is for, when to reach for each protocol, and how to install it.
  • A protocol's skills/*/SKILL.md is that protocol's contract, its formal blocks included.
  • route/ and premise/ are optional layers a user may install; premise/README.md names route as what delivers the premise index.
  • lean/, .claude/, design/, and scripts/ are maintainer machinery for checking, packaging, and revising the contracts; using a protocol does not require reading them.
  • When exploring a directory, read its AGENTS.md if present.

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 hand: 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. 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. A declared policy is not such a claim and this does not reach it: a sentence fixing what this project treats as true — what counts as consent, which reading governs, what a default means — is made true by standing on the surface. The test is whether the sentence could be false while the surface is unchanged; where it could, it is an assertion and needs a channel, and where it could not, nothing re-runs it because there is nothing to re-run. Declaring a policy buys no exemption for a state claim made alongside it — what else exists, what nothing else does, what every adopter holds — and that half answers here like any other.
  • Static verification boundary: a verdict goes to the channel that can see what it judges. Contract structure — what a protocol's Definition block declares and what follows from it — goes to Lean: declarations carry it, theorem modules prove its consequences, and the audit enforces declaration policy. Text-level static checks hold only predicates whose verdict follows mechanically from authoritative state of artifacts Lean does not see — schema, identity, exact reference resolution, or deterministic producer/consumer wiring — and of the bridge that hands those artifacts to Lean. A text check retires only when its replacement rejects the same counterexamples, or when the requirement it guards is deliberately withdrawn. 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. A "then"-record — narrative, provenance, a trade-off, a rejected alternative — routes there at write time, in the commit that lands the change it explains. 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. What a change in flight is being built toward is not a then-record and does not route here; Intent binding below states where it goes.
  • Intent binding: a change in flight carries its direction — what is wanted, why, under which constraints, and what is still open — in the record that anchors its unit, never in the tree. This repository's home for that record is the issue the branch or pull request names, and the pull request body where no issue anchors the change; where that issue lives in a tracker a reader of this repository cannot reach, the pull request body carries the record's current text as well, with the issue named as its source. Where an issue anchors the unit, the branch names it by carrying its identifier, so a session resolves the record from the branch name alone rather than through this repository's name, and that branch carries one unit — every pull request opened from it is filed under the identifier it carries. Where none does, there is no identifier to carry and the record is reached through the pull request the branch opens. The record's shape and lifecycle are in docs/intent-record.md. Before changing anything on a branch, read the record the branch points at.
  • 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. A utility skill that delegates to an external CLI may carry that CLI's invocation in its own references/ as platform realization, outside its contract, while a protocol still names only its delegation point.
  • 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 · 109 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 Changed · -14 tokens per session c74094bb7425
  2. 7d ago Changed · -11 tokens per session 74e1425c2a6d
  3. 15d ago Changed · +40 tokens per session 128f7c8f56d0
  4. 22d ago Changed · +10 lines · +215 tokens per session cc76d9ec014b
  5. 24d ago Changed · +2 tokens per session a47b2bc7fe1f
  6. 27d ago Changed · +79 tokens per session b8cc6b0f9693
  7. 29d ago Changed · +140 tokens per session 40a18c36fa54
  8. 1mo ago Changed · +133 tokens per session 2fdfd3943cba
  9. 1mo ago Changed · -2 tokens per session 7179c19bcb49
  10. 1mo ago First seen · 99 lines · 3,284 tokens per session scan A c15ffe0963c0

Subscribe to this mod's changes

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

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,649 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,257 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,159 tokens