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.
npx agentmods add instructions/1a7432/loreweaver/agents-mdgit clone --depth 1 https://github.com/1A7432/loreweaverWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.04279 | $0.04279 |
| Opus 5 | $0.02139 | $0.02139 |
| Sonnet 5 | $0.00856 | $0.00856 |
| Haiku 4.5 | $0.00428 | $0.00428 |
Grade A, and why
loreweaver 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 52 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md — contributor & AI-agent guide
Loreweaver is a self-hosted AI Game Master / Keeper for tabletop RPGs: a world/story-first engine (structured world + module + rules + persistent state), not a persona-chat frontend. Terminal-first over Iroh p2p, system-agnostic (D&D 5e SRD + CoC 7e), English-first with runtime en/zh i18n, MIT. This file orients humans and AI coding agents working in the repo — it is the single source of truth (CLAUDE.md just imports it). User-facing docs live in README.md; the open client protocol in docs/protocol.md; the extensibility contract in docs/plugins.md.
Architecture (layers, each with one job)
core/— deterministic engine (never AI-generated), rule-AGNOSTIC since M16: dice,resolution(pack-compiled check ladders + the QuickJSrules_scriptlane),sheets(pack-declared sheet shapes: canonical-name bridges, derived DAG — derived values are NEVER persisted — vitals, wire resources),character_rules(pack-constraint validation on every stat write path), clock,rulepacks(data-driven rule systems: resolution/sheet/subsystems/commands/expertise all pack data;tests/architecture/pins agent/ to zero system tokens),skills(SKILL.md loader), deterministic relationship tracks,modvars(deterministic module-variable trackers), worldbook,charcard(SillyTavern-card parser),table_habits— the M20 E procedural-memory type (how THIS table plays; keeper-side only, player projection returns None, index-only residency),chronicle— the M18 campaign-history types (chronicle/campaign_summary/thread: projections keep keeper annotations out of every player-grade view) plus the deterministic fold policy (0.60 trigger / 0.40 floor / 0.85 emergency, 4-turn no-future lag window), anddocuments— the M17 meta-type: ALL room content (lore/NPCs/sheets/pregens/modvars/MVU tree/notes/pools) is aDocumentin one table, and every type'sproject(doc, viewer)is THE single wire chokepoint for iron rule #3.infra/— plumbing: SQLite store (documents+room_state+ kv tables — content documents, room-scoped runtime state, non-room leftovers), pydantic-settings config + hot runtime overrides/credential book, i18n,llm/embeddings(each with aFake*offline double), vector,providers(multi-vendor LLM factory).agent/— the AI-KP brain:AgentCtx,tools(@toolschema-gen + gating),kp_tools*(the Keeper tools),forge(self-extension generators: skill/rulepack/module from a description),prompt_builder,loop(function-calling loop),services(the wiring bundle),chronicle(the M18 fold flow: batch-fold old chronicle records into the rollingcampaign_summarywhen the usage meter crosses the trigger; folded records join the embedding index for topical recall — records themselves are AUTO-WRITTEN since M21 by the Scribe, one player-grade line per material turn at zero extra model calls, so durable memory and the history trim that rides on it never depend on the Keeper rememberingrecord_chronicle; the keeper spoiler margin stays exclusive to that voluntary tool), knowledge-scopednpc/companionactors, and the three model-driven prep lanes that used to sit in core/ —module_initializer(full-text module analysis into the keeper/player pools),document_manager(chunking + RAG answers),char_from_persona(persona → rule-legal sheet; the validation half stays incore.character_rules).gateway/— platform-independent: session/events/turn/member/room state,commands/(dual-dialect + slash — a package:routerowns the spec table and dispatch, each domain is a mixin modulechecks/sheet/rules/rooms/cast/world/panels/media/llm; a new command lands in its domain module plus one spec row, never in the turn pipeline),ops(rate-limit/censor/permissions),hub(the cross-transport RoomHub),director.net/—session(transport-agnostic SessionCore),iroh_server(p2p QUIC, the DEFAULT carrier),tui_server(WebSocket, offline-test/loopback only),keystore,admin,room_backup.adapters/—clionly (the local operator REPL). The five chat-platform adapters (Discord/QQ/Telegram/Feishu/OneBot) were REMOVED 2026-07-30: the UI direction is protocol clients with a deeply customizable UI extension layer (uiframes, panels), which text-chat platforms structurally cannot render. Don't re-add platform adapters; build againstdocs/protocol.mdinstead.clients/— TypeScript:protocol(shared types +WsClient; published to npm asloreweaver-protocol, whosemajor.minortracks the wire-protocol version),tui(OpenTUI terminal client;IrohClientand the one-click host live here). Both speakdocs/protocol.md. The DESKTOP client — Loreweaver Studio, Tauri (Rust transport + React UI), play mode with tier-1/tier-2 panels and the keeper screens plus the card/pack studio — lives in the separateloreweaver-studiorepo and is the recommended player client; it consumesloreweaver-protocolfrom npm and pins itself to the engine with a cross-repo round-trip gate (bun run roundtripthere). Changing the protocol or a pack format here means that gate must be rerun there. Bumping the protocol means bumping it in all five places at once —net/session.py(the authority),protocol/src/types.ts, the npm manifest's version + description,protocol/README.md,docs/protocol.md— pinned bytests/architecture/test_protocol_version_sync.py.
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.
- 2d ago First seen · 52 lines · 4,279 tokens per session scan A 19d3fb5920d1
loreweaver AGENTS.md is an instructions file published in the GitHub repository 1A7432/loreweaver (45 stars, last pushed 7d ago), licensed MIT. It adds 4,279 tokens to every session, about $0.0214 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.
Other instructions, from other repositories
claudemon CLAUDE.md
Instructions for zamarrowski/claudemon, covering ai agent guidelines, project shape, general guidelines, general rules and guards & defensive code.
unity-code-style-guide AGENTS.md
Instructions for krogh-jacobsen/unity-code-style-guide, covering agents.md — unity 6 c, project setup — edit this block, never do these — they corrupt the project, deprecated in unity 6 and if you read nothing else.
unity-cli-skill CLAUDE.md
Instructions for niqibiao/unity-cli-skill: Project instructions are maintained in and imported from @AGENTS.md.
Nyamu AGENTS.md
Instructions for polyblank66/Nyamu, covering about mcp, nyamu mcp workflow guidelines, file operation workflows, compilation tools and error handling.
sts2-llm copilot-instructions.md
Instructions for ttxttx1111/sts2-llm, covering copilot instructions for this repository, source of truth for customizations, runtime assumptions, authoring rules for this repo and gameplay-specific expectations.
game-and-watch-retro-go-sd CLAUDE.md
Claude Code instructions for sylverb/game-and-watch-retro-go-sd, covering claude.md, what this project is, build / flash workflow, architecture and three storage tiers, one elf.