nAItmare: Instructions file for Codex

AGENTS.md

nAItmare AGENTS.md is an instructions file for Codex, OpenCode from ivanlucky22/nAItmare. It costs 427 tokens per session, scanned A, original, MIT.

A project guide for nAItmare, an agent system organized around shared rules, team context, specialist subagents, and reusable skills. It defines how an agent should start and which specialist to select for each kind of task.

In plain words
What is it for?
It routes backend, frontend, review, testing, and deployment work to the matching subagent and explains where project memory and skills are stored.
Why use it?
It prevents work from beginning without the required context and provides a clear priority order when project rules conflict.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ivanlucky22/naitmare/agents-md"><img src="https://agentmods.dev/badge/instructions/ivanlucky22/naitmare/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 427 This file is loaded in full into every session.
When invoked 427 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.00427 $0.00427
Opus 5.5 $0.00171 $0.00171
Sonnet 5.5 $0.00085 $0.00085
Haiku 4.5 $0.00043 $0.00043

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

Security

Grade A, and why

nAItmare 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 · 47 lines

What it actually says

AGENTS.md

READ THIS FILE FIRST. All actions must comply with this architecture.

Boot Sequence

Execute in order:

  1. Load constitution.md — immutable rules
  2. Load general-context.md — shared context for all teams
  3. Load me.md — identify user's team
    • If missing: prompt user for team or operate without team context
  4. Load .agent/memory/teams/<team>.md — team-specific context
  5. Select sub-agent based on task:

Conflict Resolution

Priority (highest to lowest):

  1. constitution.md
  2. general-context.md (shared context)
  3. Team-specific context
  4. Sub-agent instructions
  5. User instructions

Resource Index

Category Path Contents
Memory .agent/memory/ constitution, team contexts
Skills .agent/skills/ git, test, db, review-checklist
Sub-Agents .agent/sub-agents/ backend-developer, frontend-developer, tech-lead, qa, devops

Communication

Be concise. Minimize token usage:

  • No filler phrases ("I'd be happy to...", "Sure!", "Great question!")
  • No restating the request back
  • No unnecessary explanations — assume the user is technical
  • Use bullet points over paragraphs
  • Show code, not descriptions of code
  • One-line answers when one line suffices
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 · 47 lines · 427 tokens per session scan A f785816eb5c3

Subscribe to this mod's changes

nAItmare AGENTS.md is an instructions file published in the GitHub repository ivanlucky22/nAItmare (22 stars, last pushed 10mo ago), licensed MIT. It adds 427 tokens to every session, about $0.0017 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

nAItmare AGENTS.md compared with instructions from other repositories

nAItmare AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nAItmare AGENTS.mdivanlucky22/nAItmareInstructions file2210mo agoMITA427Codex, 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