storyai: Instructions file for Codex

AGENTS.md

storyai AGENTS.md is an instructions file for Codex, OpenCode from jedikim/storyai. It costs 735 tokens per session, scanned A, original, MIT.

Project instructions for using storyai with a novel manuscript and its story graph, a structured record of story facts and links.

In plain words
What is it for?
Guiding agents that write or review manuscripts stored in the project, especially when they need to inspect story state or propose graph changes.
Why use it?
They define how an agent should start and end a writing session, gather context, record proposed changes, handle contradictions, and protect character knowledge boundaries.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/jedikim/storyai/agents-md"><img src="https://agentmods.dev/badge/instructions/jedikim/storyai/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 735 This file is loaded in full into every session.
When invoked 735 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.00735 $0.00735
Opus 5.5 $0.00294 $0.00294
Sonnet 5.5 $0.00147 $0.00147
Haiku 4.5 $0.00073 $0.00073

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

Security

Grade A, and why

storyai 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 2mo 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 · 48 lines

What it actually says

storyai — 에이전트 지침

이 저장소는 소설 원고와 그 서사 그래프입니다. 원고는 manuscript/에 마크다운으로, 그래프는 store/story.db에 있고 storyai MCP 서버로만 접근합니다.

세션 시작 시 반드시

  1. project(mode="current") — 현재 선택된 소설이 작업 대상인지 확인한다. 다르면 project(mode="list") 후 project(mode="select", name="…")로 먼저 전환한다.
  2. get("story://session/latest") — 이전 세션의 open_threads와 next를 읽는다.
  3. check(scope="book", severity="error") — 미해결 진단을 먼저 확인한다.
  4. promises(status=["eligible"]) — 회수 가능한 복선을 컨텍스트에 올린다.

이 넷을 건너뛰고 집필을 시작하지 마세요. 이전 턴이 다른 호스트였을 수 있고, 그쪽 대화 이력은 남아 있지 않습니다.

세션 종료 시 반드시

propose로 새 session/ 노드를 남깁니다. open_threads와 next를 비워두지 마세요 — 적지 않은 의도는 다음 세션에 존재하지 않는 것과 같습니다.

그래프를 다루는 규칙

  • 원고 전문을 툴 결과로 받지 마세요. outline → get(include="brief") → 정말 필요한 하나만 get(include="body") 순서로 좁혀 들어갑니다.
  • 쓰기는 전부 propose입니다. read_set에 근거로 읽은 노드와 리비전을 반드시 담으세요. 빈 read_set은 거부됩니다.
  • locked 노드(세계관 규칙)는 수정 제안할 수 없습니다. 모순을 발견하면 contradicts 간선을 남기고 사람에게 넘기세요.
  • 산문 속 이름을 임의로 고치지 마세요. mentioned_in은 soft 간선이라 보고 대상이지 자동 편집 대상이 아닙니다.
  • 잘 모르겠으면 graph_schema()로 타입 체계를 확인하고, 손으로 빚은 툴로 안 풀리면 query(sql)로 직접 질의하세요.

집필 규칙

  • 인물의 인지 시점을 어기지 마세요. 어떤 사실을 인물이 아는지는 visible_to가 결정합니다. 모르는 사실을 발화시키면 연속성 버그입니다.
  • 복선은 eligible 상태인 것만 회수하세요. hypothetical인 복선을 회수하면 "근거 없는 해결"로 표시됩니다.
  • 씬의 pre 조건이 만족되지 않으면 그 씬을 쓰지 마세요. 먼저 선행 씬을 확인하세요.

금지

  • store/story.db를 직접 열거나 수정하지 마세요. 반드시 MCP 서버를 경유합니다.
  • manuscript/ 원문을 그래프 갱신 없이 고치지 마세요. 인덱스가 어긋납니다.
  • 시나리오·씬 텍스트를 LLM에 넘길 때 임의로 자르지 마세요.
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. 2mo ago First seen · 48 lines · 735 tokens per session scan A 3485df751c8b

Subscribe to this mod's changes

storyai AGENTS.md is an instructions file published in the GitHub repository jedikim/storyai (0 stars, last pushed 2mo ago), licensed MIT. It adds 735 tokens to every session, about $0.0029 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-31.

Related

storyai AGENTS.md compared with instructions from other repositories

storyai AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
storyai AGENTS.mdjedikim/storyaiInstructions file02mo agoMITA735Codex, 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