World-Forge: Instructions file for Codex

AGENTS.md

World-Forge AGENTS.md is an instructions file for Codex, OpenCode from AndreiNicu/World-Forge. It costs 1,935 tokens per session, scanned A, original, MIT.

An AGENTS.md instruction file for World Forge, a multi-agent pipeline that builds roleplay-world packages for SillyTavern. It routes coding agents to the correct workflow for running or maintaining the pipeline.

In plain words
What is it for?
Use it when running World Forge commands or editing its workflows, stages, presets, and pipeline behavior.
Why use it?
It prevents agents from loading unrelated instructions and helps them follow the right stage or maintenance process.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions subagents; mentions AGENTS.md.

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

Reuse

Borrowing it

Nothing to install: this file belongs to AndreiNicu/World-Forge. 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/AndreiNicu/World-Forge/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/AndreiNicu/World-Forge

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 World-Forge AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/andreinicu/world-forge/agents-md/github.svg)](https://agentmods.dev/instructions/andreinicu/world-forge/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/andreinicu/world-forge/agents-md"><img src="https://agentmods.dev/badge/instructions/andreinicu/world-forge/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 World-Forge AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/andreinicu/world-forge/agents-md"><img src="https://agentmods.dev/badge/instructions/andreinicu/world-forge/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,935 This file is loaded in full into every session.
When invoked 1,935 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.01935 $0.01935
Opus 5.5 $0.00774 $0.00774
Sonnet 5.5 $0.00387 $0.00387
Haiku 4.5 $0.00194 $0.00194

Measured 2d ago against content hash 0083c416e2da, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

World-Forge 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.

AGENTS.md · 118 lines

How it starts

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

AGENTS.md — standing instructions for agentic tools

Read this first. It applies to Kilo Code, Cline, and any other agentic IDE tool opening this workspace. It is deliberately short — it routes you to the right document for your session type instead of duplicating them.


First: which kind of session is this?

A. Running the pipeline (most sessions)

The user typed /worldforge brainstorm, /worldforge start, /worldforge revise, /worldforge resync-preset, /worldforge convert, or a resume/skip/status variant.

  • Open workflows/world-forge.md and follow it. It is the router and the source of truth for what runs when: it dispatches build runs to four stage files (world-forge-discovery.md → world-forge-drafting.md → world-forge-validation.md → world-forge-construction.md). Load the router plus the active stage file only — never all of them. Revise runs live in workflows/world-forge-revise.md, convert runs in workflows/world-forge-convert.md, and preset resync / audition / post-launch routing in workflows/world-forge-postlaunch.md.
  • Kilo Code: run commands through WorldForge-Orchestrator. The user selects it in the agent picker and types /worldforge … to it. Its system prompt is the router, and its permission block lets it write only the ledger and dispatch only WorldForge-* agents. If you are Kilo's general-purpose Code agent and receive a /worldforge command, tell the user to switch to WorldForge-Orchestrator — if they want you to proceed anyway, follow the same dispatch rules below (you are not permission-restricted, so the rules are on you).
  • Interactive agents need a relay. Dispatched agents cannot ask the user questions directly; their questions come back as their result. Relay them verbatim, never answer on the user's behalf, and pass the user's reply back verbatim to the same child session (router → DISPATCH PROTOCOL rule 5).
  • Kilo Code Subagent Delegation: Whether you are the orchestrator or the Code agent, do not run the pipeline commands inline. Use your subagent delegation tool (the task tool) to route the command to the correct custom subagent:
    • /worldforge brainstorm or /world-forge brainstorm → Dispatch to WorldForge-Brainstormer (optional ideation upstream of Phase 0; writes informal Brainstorm_Notes.md, no World Seed)
    • /worldforge start or /world-forge start → Dispatch to WorldForge-Interviewer
    • /worldforge revise or /world-forge revise (with --freeform, --target, etc.) → Dispatch to WorldForge-Reviser
    • /worldforge convert or /world-forge convert → Dispatch to WorldForge-Converter
    • /worldforge resume phase[N] → Dispatch to the custom agent defined for Phase N (e.g., WorldForge-Editor for Phase 3)
  • If a dispatch or model call fails, never do the phase's work inline. Retry the dispatch; if it stays unavailable, set the Pipeline State Ledger status to BLOCKED, halt, and surface it to the user (router → DISPATCH PROTOCOL rule 1). An inline-produced phase has no agent spec, no Context Manifest, and no valid sign-off — treat its output as if the phase never ran.
  • Pipeline files are READ-ONLY at runtime: everything under agent_roles/, templates/, workflows/, plus Notes_On_functionality.md and Notes_Quick_Reference.md. You write only to the world project's Drafts/, Export/, World_Seed.md, and report files. If you find yourself about to edit a pipeline file mid-run, stop and surface it to the user — an agent went off-script.
  • Load only what each phase needs. Every agent spec begins with a 📂 CONTEXT MANIFEST listing exactly what to load. Honor it. In particular, never load Samples/, wiki/, CLAUDE.md, CHANGELOG.md, or tutorial.md during a run — they are human-facing or maintenance material and only burn context.
  • For SillyTavern runtime questions (position values, lorebook flags, token budget, prompt assembly order): consult Notes_Quick_Reference.md first. Open the full Notes_On_functionality.md only when the quick reference does not settle the question or the agent spec explicitly requires a section of it.

Read the full file on GitHub · 118 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. 2d ago Changed · +11 lines · +201 tokens per session 0083c416e2da
  2. 2mo ago First seen · 107 lines · 1,734 tokens per session scan A b0413e209d21

Subscribe to this mod's changes

World-Forge AGENTS.md is an instructions file published in the GitHub repository AndreiNicu/World-Forge (84 stars, last pushed 2d ago), licensed MIT. It adds 1,935 tokens to every session, about $0.0077 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

World-Forge AGENTS.md compared with instructions from other repositories

World-Forge AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
World-Forge AGENTS.mdAndreiNicu/World-ForgeInstructions file842d agoMITA1,935Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode