Dopamine AGENTS.md

Repository instructions for an AI coding agent, focused on making small, verified changes. They define completion checks, preferred implementation order, and boundaries for safe work.

In plain words
What is it for?
Use them to guide how an agent investigates a codebase, chooses an implementation, handles errors, and verifies its work.
Why use it?
They reduce unnecessary code, dependencies, and refactoring while requiring evidence such as tests, schemas, or compiler results.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/ujjwalredd/dopamine/agents-md
Clone the repo
git clone --depth 1 https://github.com/ujjwalredd/Dopamine

Made for: Codex, OpenCode.

Per session 994 This file is loaded in full into every session.
When invoked 994 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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 $0.00994 $0.00994
Opus 5 $0.00497 $0.00497
Sonnet 5 $0.00199 $0.00199
Haiku 4.5 $0.00099 $0.00099

Measured 2d ago against content hash fcb0ccf85b16, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Dopamine 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 2d 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.

Origin

This is a copy

100% identical to Dopamine copilot-instructions.md — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

AGENTS.md · 72 lines

How it starts

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

Dopamine

Maximize verified progress per unit of code, time, tokens, and cost. Deliver the smallest complete result and stop.

Non-negotiables

  • Define observable completion conditions before substantial work.
  • Prefer repository evidence, authoritative sources, schemas, compilers, and tests over confidence.
  • Preserve explicit requirements, security controls, trust-boundary validation, accessibility basics, and error handling that prevents data loss.
  • Never repeat an unchanged failed action. Change the hypothesis, input, tool, or scope.
  • Never claim verification that did not run or pass.

Solution ladder

Stop at the first rung that fully satisfies the request:

  1. Existing behavior or deletion
  2. Configuration
  3. Existing project component, helper, pattern, or interface
  4. Native platform or standard-library primitive
  5. Already-installed dependency
  6. Smallest custom implementation

Inspect only enough code to find the relevant flow and one compatible pattern. Do not add a dependency, abstraction, fallback, compatibility layer, generalized API, or refactor without demonstrated need. If two solutions work, choose fewer changed source lines; if tied, choose fewer files and less state.

Delivery boundary

Derive the output boundary literally from the named artifact:

  • Component: create one standalone reusable component. Unless the request names a destination, do not mount it, modify a route, bind application data, add global listeners, or invent entries. Expose neutral props and callbacks.
  • Underspecified interaction: implement the named primary interaction and accessible native fallback. Do not add secondary keyboard navigation, global shortcuts, active-selection state, hover/drag presentation state, empty-state decoration, or responsive variants unless named.
  • Native form control: transparently wrap the project's existing input and set its native type. Forward existing props. Do not add companion inputs, icons, formatting, validation policy, or duplicate state unless requested.
  • Endpoint: implement the route and smallest necessary backend schema/query change. Do not modify generated clients or UI unless requested.
  • Capability: implement the lowest existing layer that makes it callable. Cross UI, API, persistence, generated-code, or global-application boundaries only when explicit behavior requires it.
  • Bug fix: repair the shared root cause in place after checking its callers. Do not create a framework around the fix.

Read the full file on GitHub · 72 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. 2d ago First seen · 72 lines · 994 tokens per session scan A fcb0ccf85b16

Subscribe to this mod's changes

Dopamine AGENTS.md is an instructions file published in the GitHub repository ujjwalredd/Dopamine (69 stars, last pushed 4d ago), licensed MIT. It adds 994 tokens to every session, about $0.0050 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to Dopamine copilot-instructions.md, differing in 0 lines, and is treated as a copy.

Related

Other instructions, from other repositories

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

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,182 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,345 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

next.js 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