tale: Instructions file for Codex

AGENTS.md

tale AGENTS.md is an instructions file for Codex, OpenCode from tale-project/tale. It costs 2,504 tokens per session, scanned A, original, MIT.

A shared set of instructions for coding assistants working in the Tale repository. It points them to the repository's own contract and explains how to classify and approach different kinds of changes.

In plain words
What is it for?
It helps plan changes, follow Bun workspace and Turborepo commands, find repository rules, add regression tests, and make reversible migrations.
Why use it?
It prevents agents from guessing project conventions and helps them choose the right checks for bugs, refactors, features, reviews, and migrations.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions Claude Code; mentions Codex.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/tale-project/tale/agents-md"><img src="https://agentmods.dev/badge/instructions/tale-project/tale/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,504 This file is loaded in full into every session.
When invoked 2,504 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.02504 $0.02504
Opus 5.5 $0.01002 $0.01002
Sonnet 5.5 $0.00501 $0.00501
Haiku 4.5 $0.00250 $0.00250

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

Security

Grade A, and why

tale 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 6d 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 · 154 lines

How it starts

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

Working in this repository

The shared contract for every coding agent in every tale-project repository. Read it, then read .agents/repo.md — the repo-specific contract — before your first change.

Repositories are Bun workspaces (with Turborepo where there is more than one workspace); a workspace script runs through bun run --filter <workspace> <script>.

Read the repo contract next

.agents/repo.md is the per-repo file: layout, stack, domain rules, extra gates, and the debt ledger. This shared file never carries repo facts — if a fact is specific to one repository, it belongs there. When the two seem to disagree, the repo contract wins.

How to work

The biggest quality lever is deciding well, not typing fast. Work in this order:

  1. Classify the task and follow its discipline end-to-end: a defect (find the root cause, lock it with a regression test); structure-not-behaviour (refactor without changing behaviour); new behaviour (a feature, screen, endpoint, or flag); a review (an adversarial read before merge). Exploring is read-only and returns the conclusion; a migration is phased and reversible, each phase green.
  2. Write a short planning note first — capture intent, status quo, and plan before any edit; keep scratch files in your global notes directory, never in the clone.
  3. Unknowns outside the repo? Research before deciding — questions first, sources in order, evidence in the note.
  4. Search before you write — orient, find the concept to reuse, enumerate the blast radius. The request names one site; the task is the concept.
  5. UI in scope? Learn the repo's design system first — where it lives is in .agents/repo.md — then build to it.
  6. Too big for one thread? Split it into disjoint units with complete briefs; you keep the done-gate.
  7. Do the work thin and reversible, following the discipline you classified — ask the moment a fork or roadblock appears; never guess.
  8. Prove it — tests carry the change; observe the real outcome; drive web UIs in a real browser.
  9. Review your own diff — adversarial read, then the automated reviewers.
  10. Land it — meet the shared definition of done, atomic commits, pushed straight to main; no branch and no PR unless the repo contract says otherwise. The autonomous development cycle's tasks ride the repo's merge train instead, where it runs one.

Read the full file on GitHub · 154 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. 6d ago Changed · +6 lines · +138 tokens per session 7117f5d8b331
  2. 1mo ago Changed · +5 lines · +132 tokens per session 2875ef85642c
  3. 1mo ago Changed · +43 lines · +733 tokens per session 72a32e447a0a
  4. 2mo ago First seen · 100 lines · 1,501 tokens per session scan A 0a2c1da31f67

Subscribe to this mod's changes

tale AGENTS.md is an instructions file published in the GitHub repository tale-project/tale (42 stars, last pushed today), licensed MIT. It adds 2,504 tokens to every session, about $0.0100 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

tale AGENTS.md compared with instructions from other repositories

tale AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tale AGENTS.mdtale-project/taleInstructions file42todayMITA2,504Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,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