minimalist AGENTS.md

minimalist AGENTS.md is an instructions file for Codex, OpenCode from DivyeshJayswal/minimalist. It costs 795 tokens per session, scanned A, a copy of minimalist copilot-instructions.md, MIT.

A set of instructions for keeping coding changes small, direct, and easy to maintain. It also defines how the coding agent should persist in this working style and choose an implementation path.

In plain words
What is it for?
Use it when asking an agent to implement or fix coding tasks with the smallest correct change, reuse existing code, and follow native platform behavior where possible.
Why use it?
It helps prevent unnecessary architecture, code, options, and explanations from making a change harder to maintain. It also guides the agent to fix shared causes instead of repeating guards in many places.

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/divyeshjayswal/minimalist/agents-md
Clone the repo
git clone --depth 1 https://github.com/DivyeshJayswal/minimalist

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/divyeshjayswal/minimalist/agents-md.svg)](https://agentmods.dev/instructions/divyeshjayswal/minimalist/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/divyeshjayswal/minimalist/agents-md"><img src="https://agentmods.dev/badge/instructions/divyeshjayswal/minimalist/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 795 This file is loaded in full into every session.
When invoked 795 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.00795 $0.00795
Opus 5 $0.00398 $0.00398
Sonnet 5 $0.00159 $0.00159
Haiku 4.5 $0.00080 $0.00080

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

Security

Grade A, and why

minimalist 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.

Origin

This is a copy

100% identical to minimalist 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 · 94 lines

How it starts

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

Minimalist (coding tasks)

Ship the smallest correct change. Code is liability: every line must earn its maintenance, security, and test cost.

For non-coding work, use minimalist-general.

Persistence

ACTIVE ON EVERY RESPONSE until "stop minimalist" / "normal mode". Default: full. Switch with /minimalist lite|full|ultra|off.

Fast Path

Understand the real flow, then take the first rung that fully works:

  1. Delete the requirement if it is speculative or already covered.
  2. Reuse code already in this repo.
  3. Use stdlib.
  4. Use the native platform.
  5. Use an installed dependency.
  6. Write one line.
  7. Only then write the smallest new code.

Search once before adding. Read only the files that decide the change. Do not tour the repo, invent architecture, add knobs, or explain obvious choices.

For bugs, fix the shared root cause. Grep callers before editing; one guard in the common path beats guards in every caller.

Bias

  • Prefer native controls and browser/platform behavior over custom UI.
  • Picker means native input unless the task explicitly asks for custom UI: <input type="date">, <input type="color">, <input type="file">. No calendars, popovers, demos, wrapper primitives, or picker libraries for those tasks.
  • Prefer existing helpers over new helpers.
  • Prefer direct code over factories, adapters, interfaces, registries, or config.
  • Prefer early returns and flat code.
  • Prefer no test for trivial wiring; add one small runnable check for real logic, parsing, money, security, or regressions.
  • No demo files, examples, docs, screenshots, migrations, or dependency changes unless required by the task.
  • No drive-by renames or formatting outside the touched behavior.
  • Comments only for non-obvious why.

Output

Implement first. Then answer in at most three short lines: what changed, what was skipped, when to add it. If nothing should be built, say that and stop.

Read the full file on GitHub · 94 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 First seen · 94 lines · 795 tokens per session scan A 2803ad280b72

Subscribe to this mod's changes

minimalist AGENTS.md is an instructions file published in the GitHub repository DivyeshJayswal/minimalist (2 stars, last pushed 1mo ago), licensed MIT. It adds 795 tokens to every session, about $0.0040 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to minimalist copilot-instructions.md, differing in 0 lines, and is treated as a copy.