book-genesis-v4: Instructions file for Codex

AGENTS.md

book-genesis-v4 AGENTS.md is an instructions file for Codex, OpenCode from felipelobomotta-blip/book-genesis-v4. It costs 993 tokens per session, scanned A, original, MIT.

Repository instructions for working on Book Genesis, a collection of files and workflows for creating, reviewing, and packaging books with AI agents. They define which current pipeline and reference files agents should use.

In plain words
What is it for?
Use them when planning, drafting, auditing, scoring, revising, or packaging a book, including work aimed at publication or simulated reader feedback.
Why use it?
They keep book-production work consistent across different agents and make important decisions, project state, assumptions, and requested quality levels explicit.

Instructions file for CodexOpenCode

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

This is felipelobomotta-blip/book-genesis-v4's own configuration. It tells Codex and OpenCode how to work on book-genesis-v4 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 book-genesis-v4 configures →

Reuse

Borrowing it

Nothing to install: this file belongs to felipelobomotta-blip/book-genesis-v4. 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/felipelobomotta-blip/book-genesis-v4/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/felipelobomotta-blip/book-genesis-v4

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 book-genesis-v4 AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/felipelobomotta-blip/book-genesis-v4/agents-md"><img src="https://agentmods.dev/badge/instructions/felipelobomotta-blip/book-genesis-v4/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 993 This file is loaded in full into every session.
When invoked 993 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.00993 $0.00993
Opus 5 $0.00496 $0.00496
Sonnet 5 $0.00199 $0.00199
Haiku 4.5 $0.00099 $0.00099

Measured 4d ago against content hash 55908adb8e91, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

book-genesis-v4 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 4d 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 · 55 lines

How it starts

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

Agent Instructions

This repository is Book Genesis: a Python runner that turns one idea into a manuscript, chapter by chapter, using Markdown prompt templates in agents/ and phase prompts in skills/book-genesis-codex/references/.

Default Behavior

When asked to create, plan, draft, judge, revise, or package a book, use the runner. Do not orchestrate the phases by hand and do not grade prose yourself.

book-genesis setup                              # once: providers, keys, models (or python runner/cli.py setup)
book-genesis new --idea "..." --language <code> # the whole pipeline with progress
python runner/cli.py doctor                     # what is installed; how roles will be assigned
python runner/cli.py init <project> --idea "..." --language <code>
python runner/cli.py run-phase <project>        # repeat for intake, foundation, architecture
python runner/cli.py book <project>             # every chapter; chapter 1 judged by the reader panel
python runner/cli.py judge <file.md> --genre "..."   # blind-read any chapter
python runner/cli.py panel <project> <n>        # the whole panel on a written chapter
book-genesis review <project> [--open]          # inspect the generated project report
book-genesis export <project> --format markdown|epub [--output PATH] [--overwrite]

The design is recorded in docs/adr/0001-runner-orquestra-juiz-cego.md and docs/adr/0002-autonomia-painel-adaptadores.md. The short version:

  • the runner owns project writes and consumes text responses. Claude tools are disabled; Codex uses an ephemeral read-only sandbox. Generic adapters follow their declared CLI capabilities;
  • the judge (agents/book-judge.md) is blind: prose only, no outline, no foundation, no writer notes; it compares drafts instead of scoring them;
  • the writer does not know any rubric; agents/book-evaluator.md is a diagnostic for the editor, not a gate;
  • the guided terminal session pauses for agreement on the brief, outline and chapter 1; --yes or noninteractive input runs autonomously. The panel consists of model readers with different personas, and different families when configured. --human additionally requires the explicit approval command;
  • the runner uses whatever CLI is installed (claude, codex, anything declared in runner/config/adapters.yaml) or --manual prompt files; a single-family run is allowed and carries a warning in RUN_REPORT.md;
  • Claude is invoked in safe mode with tools disabled. Codex is invoked for text-only output; that input contract does not prove every Codex tool is disabled in every host environment.
  • constants live in runner/config/genre-profiles.yaml, runner/config/models.yaml and runner/config/adapters.yaml; prompts reference them and never restate numbers.

Read the full file on GitHub · 55 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. 4d ago Changed · -12 lines · +388 tokens per session 55908adb8e91
  2. 10d ago First seen · 67 lines · 605 tokens per session scan A 0a4cadd0173d

Subscribe to this mod's changes

book-genesis-v4 AGENTS.md is an instructions file published in the GitHub repository felipelobomotta-blip/book-genesis-v4 (114 stars, last pushed 4d ago), licensed MIT. It adds 993 tokens to every session, about $0.0050 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.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens