agentleFS
codegobrrrr9codegobrrrr9/cheapskate/AGENTS.md

cheapskate

AGENTS.md2 starsChanged 2 months agoMITView on GitHub

You are reading this because a user pasted something like: Install the cheapskate skill from https://github.com/codegobrrrr9/cheapskate, refer to the repo's AGENTS.md. Do the install for the agent you are, confirm in one line, and then follow the rules below for the rest of the session. Do not explain what cheapskate is unless asked. <repo> is a clone of this repository, or the raw files fetched from https://raw.githubusercontent.com/codegobrrrr9/cheapskate/main/. Any agent: npx skills add codegobrrrr9/cheapskate installs the skill directory for every agent…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 33,398 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository3 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

11 rules. About 0 are common, 8 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do the install for the agent you are, confirm in one line, and then follow the rules below for the rest of the session.

    line 7
  2. Very specific:

    After installing, say: cheapskate on.

    line 30
  3. Distinctive:

    Read ranges, not files: Use offset and limit. More than 200 lines at once needs a reason.

    line 39
  4. Distinctive:

    Never read a file over 1,000 lines whole.

    line 40
  5. Distinctive:

    Never re-read what is in context: Read once. After an edit, re-read only the changed range.

    line 41
  6. Distinctive:

    Tail, do not cat: Never dump more than 100 lines of command output into context.

    line 45
  7. Distinctive:

    Edit, do not rewrite: Write is for new files.

    line 47
  8. Distinctive:

    Do what was asked: No unrequested refactors, tests or docs.

    line 48
  9. Distinctive:

    Read everything you need to be correct.

    line 52
  10. Very specific:

    Run node <path-to>/meter.js from the project root (it finds the newest transcript for this project.

    line 56
  11. Distinctive:

    Never skip a read you need to be correct.

    line 64

≈ “Common” is an estimate: at least 1 in 5 of the 43,423 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

cheapskate — instructions for coding agents

You are reading this because a user pasted something like:

Install the cheapskate skill from https://github.com/codegobrrrr9/cheapskate, refer to the repo's AGENTS.md.

Do the install for the agent you are, confirm in one line, and then follow the rules below for the rest of the session. Do not explain what cheapskate is unless asked.

Install

<repo> is a clone of this repository, or the raw files fetched from https://raw.githubusercontent.com/codegobrrrr9/cheapskate/main/.

AgentDo this
Claude CodeRun /plugin marketplace add codegobrrrr9/cheapskate then /plugin install cheapskate@cheapskate. If plugins are unavailable, copy <repo>/skills/cheapskate/ to ~/.claude/skills/cheapskate/ (all projects) or .claude/skills/cheapskate/ (this project only).
CodexCopy <repo>/skills/cheapskate/ to ~/.codex/skills/cheapskate/, or run npx skills add codegobrrrr9/cheapskate. Append the Rules section below to the project's AGENTS.md.
CursorCopy <repo>/.cursor/rules/cheapskate.mdc to .cursor/rules/cheapskate.mdc in the project.
Gemini CLIRun gemini extensions install https://github.com/codegobrrrr9/cheapskate.
GitHub CopilotCopy <repo>/.github/copilot-instructions.md into the project's .github/ (merge if one exists).
Windsurf, Cline, Roo, Kilo, Amp, OpenCode, Zed, anything elseAppend the Rules section below to whatever instruction file the agent reads.

Any agent: npx skills add codegobrrrr9/cheapskate installs the skill directory for every agent the skills CLI supports.

The meter (skills/cheapskate/scripts/meter.js) reads Claude Code transcripts. On other agents the rules still apply; the meter does not.

After installing, say: cheapskate on. Ask "where did my tokens go" or /cheapskate for the meter.

Rules

The user pays for every token you read and every turn you take. Most of the bill is the whole conversation being re-sent on every turn, so everything you read is paid for again on every call after it. Follow these without being asked:

  1. Grep before read. Find the symbol first, then read the range around it.
  2. Read ranges, not files. Use offset and limit. More than 200 lines at once needs a reason. Never read a file over 1,000 lines whole.
  3. Never re-read what is in context. Read once. After an edit, re-read only the changed range.
  4. Batch independent calls in one turn. Every extra turn re-sends the entire context.
  5. Stop exploring once you can act. Once you know what changes and why, edit. More reading is cost without information.
  6. Narrate decisions, not steps. A line when you pick an approach or change course; no play-by-play, no text-only turns that add nothing.
  7. Tail, do not cat. Never dump more than 100 lines of command output into context.
  8. Run the one test, not the suite. Whole suite once, at the end, if asked.
  9. Edit, do not rewrite. Write is for new files.
  10. Do what was asked. No unrequested refactors, tests or docs. Offer them in one line.
  11. Long session, fresh start. Past about 100K context at a task boundary, write a five-line handoff and suggest a new session.

Read everything you need to be correct. Read nothing twice.

When the user asks about usage, or /cheapskate

Run node <path-to>/meter.js from the project root (it finds the newest transcript for this project; --last N, --all, --session <id>, --json are available). Then report: verdict first, the three biggest line items, one thing to change. No preamble.

Overrides

  • The user says correctness over cost, or asks for a full audit or full test run: do that.
  • Reading a whole file is right when you are about to rewrite it, or it is under 200 lines.
  • Never skip a read you need to be correct. A wrong edit costs more than a read.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.