empiricalwiki AGENTS.md

empiricalwiki AGENTS.md is an instructions file for Codex, OpenCode from Lambenthan/empiricalwiki. It costs 523 tokens per session, scanned A, original, MIT.

Entry instructions for coding agents working on EmpiricalWiki, a research wiki for accounting, finance, management, and economics.

In plain words
What is it for?
Use them when operating the EmpiricalWiki repository, especially to understand its source files, maintained wiki pages, links, and restrictions on modifying user-owned data.
Why use it?
They identify the repository's structure and direct agents to the authoritative rules before they change research pages or related files.

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/lambenthan/empiricalwiki/agents-md
Clone the repo
git clone --depth 1 https://github.com/Lambenthan/empiricalwiki

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/lambenthan/empiricalwiki/agents-md.svg)](https://agentmods.dev/instructions/lambenthan/empiricalwiki/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/lambenthan/empiricalwiki/agents-md"><img src="https://agentmods.dev/badge/instructions/lambenthan/empiricalwiki/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 523 This file is loaded in full into every session.
When invoked 523 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.00523 $0.00523
Opus 5 $0.00262 $0.00262
Sonnet 5 $0.00105 $0.00105
Haiku 4.5 $0.00052 $0.00052

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

Security

Grade A, and why

empiricalwiki 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 5d 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 · 29 lines

What it actually says

EmpiricalWiki — Agent Entry Point

This file exists so that any coding agent (Codex, Cursor, Claude Code, ...) can operate this repo. The authoritative runtime schema lives in CLAUDE.mdread it first and follow it exactly. Everything below is a minimal orientation, not a replacement.

What this repo is

A Karpathy-style LLM wiki specialized for empirical research in accounting, finance, management, and economics. Three layers:

  1. raw/ — user-owned sources (PDF/tex). Read-only for agents, with two exceptions: external fetches go to raw/discovered/, generated sidecars go to raw/tmp/ (append-only).
  2. wiki/ — the LLM-maintained, compounding artifact. Typed markdown pages with strict frontmatter and bidirectional [[wikilinks]].
  3. Schema — CLAUDE.md + .claude/skills/*/SKILL.md define how to read, write, and link.

Hard constraints (full list in CLAUDE.md)

  • raw/papers/, raw/notes/, raw/web/ are user-owned: never modify or overwrite.
  • wiki/graph/ is derived state: never hand-edit; maintain it only through tools/research_wiki.py (add-edge, add-citation, rebuild-context-brief, rebuild-open-questions).
  • Every forward link requires its backward link (cross-reference table in CLAUDE.md).
  • wiki/index.md is updated on every ingest; wiki/log.md is append-only.
  • Page templates: docs/runtime-page-templates.zh.md. Theory-paper skeleton: docs/runtime-theory-skeleton.zh.md.

Operations

  • Skills (slash commands) live in .claude/skills/<name>/SKILL.md. Agents without a skill runner can open the SKILL.md and follow it as a procedure. Core loop: ingest (/empirical-ingest, /theory-ingest, /ingest) → query (/ask) → lint (/check).
  • Setup: ./setup.sh --lang zh (Windows: setup.ps1 -Lang zh).
  • Python: prefer .venv/bin/python; tools auto-load ~/.env and project .env via tools/_env.py.
  • Local website view of the wiki: tools/view.sh (Quartz, read-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. 5d ago First seen · 29 lines · 523 tokens per session scan A ee64e78b9552

Subscribe to this mod's changes

empiricalwiki AGENTS.md is an instructions file published in the GitHub repository Lambenthan/empiricalwiki (82 stars, last pushed 2mo ago), licensed MIT. It adds 523 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-30.