llm-wiki AGENTS.md

llm-wiki AGENTS.md is an instructions file for Codex, OpenCode from cobusgreyling/llm-wiki. It costs 1,811 tokens per session, scanned A, original, MIT.

Instructions for maintaining LLM Wiki, a structured Markdown knowledge base. They explain where to store source material, wiki pages, entities, concepts, answers, and related records.

In plain words
What is it for?
Use them when adding or updating wiki pages, ingesting sources, maintaining indexes, recording contradictions, or developing the wiki’s content rules.
Why use it?
They keep raw sources separate from editable pages and make wiki updates consistent and traceable.

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/cobusgreyling/llm-wiki/agents-md
Clone the repo
git clone --depth 1 https://github.com/cobusgreyling/llm-wiki

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 llm-wiki AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/cobusgreyling/llm-wiki/agents-md.svg)](https://agentmods.dev/instructions/cobusgreyling/llm-wiki/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/cobusgreyling/llm-wiki/agents-md"><img src="https://agentmods.dev/badge/instructions/cobusgreyling/llm-wiki/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,811 This file is loaded in full into every session.
When invoked 1,811 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.1 $0.01811 $0.01811
Opus 5 $0.00905 $0.00905
Sonnet 5 $0.00362 $0.00362
Haiku 4.5 $0.00181 $0.00181

Measured 5d ago against content hash 9e707d787204, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

llm-wiki 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 · 211 lines

How it starts

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

LLM Wiki Agent Instructions

You are the wiki maintainer for this knowledge base. Your job is to compile, cross-reference, and keep current a structured markdown wiki. The human curates sources and asks questions. You do the bookkeeping.

"Obsidian is the IDE; the LLM is the programmer; the wiki is the codebase." — Andrej Karpathy

Architecture

Layer Path Rules
Raw sources raw/ Read-only. Never modify.
Wiki wiki/ You own this. Create and update all pages.
Schema AGENTS.md This file. Co-evolve with the human.
Templates templates/ Starting points for new pages.

Page types

Type Location Purpose
Entity wiki/entities/ Named things: people, orgs, products, places
Concept wiki/concepts/ Ideas, frameworks, definitions
Source wiki/sources/ One summary per ingested raw document
Answer wiki/answers/ Filed responses to queries
Synthesis wiki/synthesis.md Evolving thesis across all sources
Contradictions wiki/contradictions.md Conflicting claims ledger

Special files

  • wiki/index.md — Content catalog. Update on every ingest and when adding pages.
  • wiki/log.md — Append-only timeline. Never edit past entries.

Log entry format

## [YYYY-MM-DD] <operation> | <detail>

Operations: ingest, query, lint, answer-filed, synthesis-update, init

Operation: Ingest

Triggered when the human adds a file to raw/ and asks you to ingest it.

Steps

  1. Read the raw source completely (text first; view images separately if present).
  2. Discuss key takeaways with the human before writing (unless they prefer batch mode).
  3. Create a source page in wiki/sources/ using templates/source.md.
  4. Update every entity and concept page the source touches — create new pages if needed.
  5. Revise wiki/synthesis.md if the source shifts the overall picture.
  6. Flag contradictions in wiki/contradictions.md when new data conflicts with existing claims.
  7. Update wiki/index.md with all new/changed pages.
  8. Append to wiki/log.md:
    ## [YYYY-MM-DD] ingest | <source title>
    

Read the full file on GitHub · 211 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. 5d ago First seen · 211 lines · 1,811 tokens per session scan A 9e707d787204

Subscribe to this mod's changes

llm-wiki AGENTS.md is an instructions file published in the GitHub repository cobusgreyling/llm-wiki (43 stars, last pushed 2mo ago), licensed MIT. It adds 1,811 tokens to every session, about $0.0091 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.