nudge: Instructions file for Codex

AGENTS.md

nudge AGENTS.md is an instructions file for Codex, OpenCode from nuudge/nudge. It costs 542 tokens per session, scanned A, original, MIT.

A repository instruction file for guiding AI agents and developers while they change code. It sets rules such as stating assumptions, choosing simple solutions and making only the requested edits.

In plain words
What is it for?
Use it to define project-wide coding behaviour, including how to handle ambiguity, limit scope, remove newly unused code and decide when comments are needed.
Why use it?
It reduces unnecessary refactoring, unclear decisions and unrelated changes during coding work. It also tells the agent when to stop and ask for clarification.

Instructions file for CodexOpenCode

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

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

View source ↗ nuudge/nudge
Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/nuudge/nudge/agents-md"><img src="https://agentmods.dev/badge/instructions/nuudge/nudge/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 542 This file is loaded in full into every session.
When invoked 542 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.00542 $0.00542
Opus 5.5 $0.00217 $0.00217
Sonnet 5.5 $0.00108 $0.00108
Haiku 4.5 $0.00054 $0.00054

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

Security

Grade A, and why

nudge 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 today.

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

How it starts

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

Agent Instructions

Instructions for AI agents (and humans) working in this repo.

Think before coding

  • State your assumptions. If a request has several readings, say which you picked, or ask.
  • If a simpler approach exists, say so and push back.
  • If something is unclear, stop and name what is confusing.

Simplicity

Write the least code that solves the problem.

  • No features, options, or abstractions that weren't asked for. Three similar lines beat a premature helper.
  • No error handling for cases that can't happen. Validate at boundaries (user input, network, parsed data) and trust internal code and the type system.
  • No backwards-compat shims or dead code kept "just in case". Git history is the record.
  • If 200 lines could be 50, rewrite it.

Surgical changes

  • Touch only what the task needs. Every changed line should trace back to the request.
  • Don't refactor, reformat, or "improve" adjacent code. Mention unrelated problems instead of fixing them.
  • Remove imports, variables, and functions your change made unused. Leave pre-existing dead code unless asked.

Comments

Default to no comment. Well-named code says what it does.

  • Write a comment only for a non-obvious why: a hidden constraint, a subtle invariant, a workaround, behavior that would surprise the next reader.
  • Keep it to one or two lines. If it needs a paragraph, the code or the design probably needs fixing instead.
  • Never restate the code, narrate history ("previously", "now"), or reference the task, issue, or caller that motivated it. That belongs in the commit message.
  • Older code in this repo is commented more heavily than this. Don't copy that density.

Docs

  • Write like a human expert. Cut hedging, filler, and prose that restates the code.
  • Describe the current state of the system. Leave out how it was built, what was tried, and future work; link an issue instead.

Verify

Turn the task into a check you can run, then loop until it passes: a bug fix gets a test that reproduces it, a refactor keeps the tests green before and after.

Read the full file on GitHub · 48 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. today First seen · 48 lines · 542 tokens per session scan A dc2d8f618fda

Subscribe to this mod's changes

nudge AGENTS.md is an instructions file published in the GitHub repository nuudge/nudge (5 stars, last pushed today), licensed MIT. It adds 542 tokens to every session, about $0.0022 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-11-14.

Related

nudge AGENTS.md compared with instructions from other repositories

nudge AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nudge AGENTS.mdnuudge/nudgeInstructions file5todayMITA542Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,680Codex, OpenCode
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file281kyesterdayMITA4,335Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,086GitHub Copilot