epistemic-graph AGENTS.md

epistemic-graph AGENTS.md is an instructions file for Codex, OpenCode from Knuckles-Team/epistemic-graph. It costs 25,669 tokens per session, scanned A, original, MIT.

A project instruction file for agents working on epistemic-graph, a Rust-based computation and graph database engine. It documents the project’s concepts, commands, services, and Python access method.

In plain words
What is it for?
It helps agents understand the architecture, use the correct commands, and connect to the engine through its separate service rather than treating it as an in-process Python library.
Why use it?
It gives coding agents the project-specific context they need before changing code or operating the engine.

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/knuckles-team/epistemic-graph/agents-md
Clone the repo
git clone --depth 1 https://github.com/Knuckles-Team/epistemic-graph

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/knuckles-team/epistemic-graph/agents-md.svg)](https://agentmods.dev/instructions/knuckles-team/epistemic-graph/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/knuckles-team/epistemic-graph/agents-md"><img src="https://agentmods.dev/badge/instructions/knuckles-team/epistemic-graph/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 25,669 This file is loaded in full into every session.
When invoked 25,669 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.25669 $0.25669
Opus 5 $0.12835 $0.12835
Sonnet 5 $0.05134 $0.05134
Haiku 4.5 $0.02567 $0.02567

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

Security

Grade A, and why

epistemic-graph 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 · 993 lines

How it starts

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

AGENTS.md — Epistemic Graph Compute Engine

Claude Code loads this file via CLAUDE.md (@AGENTS.md import) — the two stay in sync. Edit this file, not CLAUDE.md.

Project Name: epistemic-graph Ecosystem Prefix: EG / EPG Key Concepts: CONCEPT:EG-KG.compute.graph-compute-engine (High-Performance Graph Compute Engine), CONCEPT:EG-KG.query.wire-protocol (Tokio Service Layer), CONCEPT:AU-KG.memory.mementified-context (Rust-Native Finance), CONCEPT:EG-KG.compute.rust-native-training-loss (Data Science Primitives), CONCEPT:AU-KG.domains.legal-automation (Rust-Accelerated Reasoning), CONCEPT:EG-KG.txn.per-graph-write-isolation (Lock-Free Compute + Engine Observability)


Overview

Unified Rust-native computation engine for the agent-packages ecosystem. Consolidates graph operations, quantitative finance, data science, AST analysis, and OWL reasoning into a single high-performance binary.

Transport (important — this changed): the engine is exposed to Python out-of-process via a long-running Tokio service speaking length-prefixed MessagePack over Unix Domain Sockets (default) or TCP, authenticated with HMAC-SHA256. eg2. is the sole request envelope: every served request carries a verified principal, tenant, audience, effective agent, policy version, scopes, timestamp, nonce, and idempotency key. The server MUST NOT open a listener without the security feature, a non-empty signing secret, deployment policy values, a durable replay ledger, and a signer-key registry (see docs/service_mode.md#authentication-protocol).

Two deployment shapes, one performance discipline (this edict evolved — see history). (a) Out-of-process (the horizontal-scale default): Python talks to a long-running Tokio engine over the socket — GIL-free, so one engine backs many graph-os clients and scales independently; the wheel ships the epistemic-graph-server binary + a pure-Python client (bindings = "bin"). (b) Unified single binary (the self-contained default — EVOLVING): for a self-contained deployment (one graph-os, no horizontal fan-out) the engine is embedded in-process via PyO3 — one binary, one lifecycle, no socket serialize/round-trip, no cross-image drift — and is preferred wherever it consolidates with no hot-path cost. The rule that keeps BOTH shapes fast is the same and non-negotiable: engine calls MUST stay BATCHED (one call = one batch op over graph-resident data, never a per-element Python loop) and the engine's tokio/compute internals MUST stay pure Rust — so Python never bottlenecks the hot path in either shape. Rust-native/optimized is the default; PyO3 MUST sit only at that batched boundary, and MUST NOT appear in a per-op inner loop. (History: PyO3 was originally removed outright to stay GIL-free and horizontally scalable — the right call for a shared, scaled engine. It is now restored as the OPT-IN unified path because a self-contained deployment gains a single consolidated binary with no measured downside, and the batching discipline preserves the original performance goal that motivated the removal. scripts/check_no_pyo3.sh therefore scopes to the scale-out build, not the unified one.)

Read the full file on GitHub · 993 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 · 993 lines · 25,669 tokens per session scan A eb366915aab7

Subscribe to this mod's changes

epistemic-graph AGENTS.md is an instructions file published in the GitHub repository Knuckles-Team/epistemic-graph (10 stars, last pushed 6d ago), licensed MIT. It adds 25,669 tokens to every session, about $0.1283 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.