agentleFS
osouthgateosouthgate/agent-plus/AGENTS.md

agent-plus

AGENTS.md4 starsChanged 5 months agoMITView on GitHub

Durable instructions for any coding agent (Claude Code, Codex, Cursor, Aider) working in this repo. If you're Claude Code, treat this as memory. For context on what this repo is and why it exists, see README.md. This file is operational rules only. Service wrappers (github-remote, vercel-remote, supabase-remote, railway-ops, linear-remote, openrouter-remote, langfuse-remote, hermes-remote, coolify-remote, hcloud-remote) moved to osouthgate/agent-plus-skills. If asked to install agent-plus for the user, run: macOS / Linux: Windows (PowerShell): Then register the plugins with Claude Code so they're…

  • Pipes a download into a shell
  • Reads credentials
  • Installs packages
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,638 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 repository2 other files it gives its agents.

The file

Show its rules and text

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

13 rules. About 0 are common, 7 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

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

    If asked to install agent-plus for the user, run:

    line 21
  2. Very specific:

    When working on any item in plans/todo/ or plans/OPEN-ACTIONS.md:

    line 60
  3. Distinctive:

    Update the plan file as you go: When a decision is made, resolved questions get struck or replaced — not left as open questions.

    line 62
  4. Distinctive:

    If you finish a task and the corresponding plan file still has open items or unresolved questions, either address them or explicitly note …

    line 67
  5. Distinctive:

    Check the root README.md: if you added/removed a plugin or changed the top-level plugin table's one-line description.

    line 75
  6. Very specific:

    When scaffolding a whole new framework plugin, do these in the same PR — the Stop hook enforces the first two, but none catches #4 …

    line 87
  7. Very specific:

    Copy the shape of an existing plugin: Write bin/<name> (stdlib Python 3 only), skills/<name>/SKILL.md, README.md, CHANGELOG.md, …

    line 89
  8. Distinctive:

    Every plugin directory has the same shape — preserve it:

    line 99
  9. Very specific:

    Stdlib only: No pip installs. No venvs.

    line 111
  10. Distinctive:

    Every plugin README should:

    line 118
  11. Distinctive:

    Default to no comments. Add one only when the WHY is non-obvious: a hidden constraint, a platform workaround, a subtle invariant, or …

    line 128
  12. Very specific:

    All binaries are single-file stdlib Python 3 — no PATH setup required beyond having python3 available.

    line 150
  13. Distinctive:

    No linter is configured in this repo — skip lint checks.

    line 155

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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

AGENTS.md

Durable instructions for any coding agent (Claude Code, Codex, Cursor, Aider) working in this repo. If you're Claude Code, treat this as memory.

For context on what this repo is and why it exists, see README.md. This file is operational rules only.

Plugins in this repo

PluginKiller command
agent-plus-metainit, envcheck, refresh, marketplace install|list|update|remove|search|prefer
repo-analyzerepo-analyze [--output] [--shape-depth] [--pretty]
diff-summarydiff-summary [--staged | --base BRANCH | --range A..B] [--public-api-only] [--risk MIN]
skill-feedbacklog <skill> --rating --outcome [--friction], report, submit
skill-plusscan, propose, scaffold <name> --from-candidate <id>, inquire <tool> [--audit], list, feedback, promote <name>

Service wrappers (github-remote, vercel-remote, supabase-remote, railway-ops, linear-remote, openrouter-remote, langfuse-remote, hermes-remote, coolify-remote, hcloud-remote) moved to osouthgate/agent-plus-skills.

Installing agent-plus

If asked to install agent-plus for the user, run:

macOS / Linux:

curl -fsSL https://github.com/osouthgate/agent-plus/releases/latest/download/install.sh | sh

Windows (PowerShell):

powershell -c "irm https://github.com/osouthgate/agent-plus/releases/latest/download/install.ps1 | iex"

Then register the plugins with Claude Code so they're callable as tools:

claude plugin marketplace add osouthgate/agent-plus
for p in agent-plus-meta repo-analyze diff-summary skill-feedback skill-plus; do
  claude plugin install $p@agent-plus
done

Then reload: /reload-plugins in the current session, or open a new one.

The install script chains into agent-plus-meta init automatically — the workspace wizard runs as part of install. If the user skipped that, they can run agent-plus-meta init manually.

The seven design patterns

Any change must reinforce one of these. Full rationale: README.md.

  1. Aggregate server-side, return one blob.
  2. Resolve by name, not ID.
  3. --wait on every async mutation.
  4. --json on every list / show.
  5. Strip values the agent shouldn't see (names only, no values).
  6. Self-diagnosing output — every payload carries tool: {name, version}.
  7. Stay in your lane — each plugin's SKILL.md says when to drop to raw CLI.

Keeping plans current (READ THIS)

When working on any item in plans/todo/ or plans/OPEN-ACTIONS.md:

  1. Update the plan file as you go. When a decision is made, resolved questions get struck or replaced — not left as open questions. When a step completes, mark it done or remove it. Plans should reflect current reality, not the state when they were written.
  2. Update plans/OPEN-ACTIONS.md to match — remove completed items, add new ones that surface during implementation.
  3. When a plan file is fully complete, move it to plans/archive/. Do not leave done plans in plans/todo/.
  4. PLANS.md is the active strategic backlog — update it when decisions from planning files change the scope or approach of an item there.

If you finish a task and the corresponding plan file still has open items or unresolved questions, either address them or explicitly note why they're being deferred before stopping.

Keeping the docs honest (READ THIS)

When you modify <plugin>/bin/* or <plugin>/skills/*/SKILL.md, you MUST before stopping:

  1. Update <plugin>/README.md if the change adds/removes a command, flag, env var, or changes a headline behaviour. The README's "Headline commands" / "Usage" section must match what the CLI actually supports. The "What it doesn't do" section (if present) must not claim something is missing that you just shipped.
  2. Append a <plugin>/CHANGELOG.md entry under ## Unreleased with: what changed, why it matters, date. One entry per change, most recent first.
  3. Check the root README.md if you added/removed a plugin or changed the top-level plugin table's one-line description.

This is the single biggest source of drift in this repo. If you skipped these steps in a previous turn, fix it now.

Enforcement. A Stop hook at .claude/hooks/check-readme-drift.sh runs before every session ends. It diffs the branch against origin/main and exits non-zero (with a message back to Claude) if any plugin's bin/ or SKILL.md changed without a matching README.md and CHANGELOG.md update. If you see that message, update the docs and try again — don't bypass.

When you change a SKILL.md, re-read the README: the SKILL teaches Claude, the README teaches the human. They should agree on the headline commands even if the SKILL has more detail.

Adding a new plugin (checklist)

This applies to framework plugins added to this repo (rare — the framework is intentionally small). Service-wrapper plugins go in osouthgate/agent-plus-skills and follow that repo's marketplace.json schema instead.

When scaffolding a whole new framework plugin, do these in the same PR — the Stop hook enforces the first two, but none catches #4 automatically:

  1. Copy the shape of an existing plugin. Write bin/<name> (stdlib Python 3 only), skills/<name>/SKILL.md, README.md, CHANGELOG.md, .claude-plugin/plugin.json.
  2. Add the entry to .claude-plugin/marketplace.json so claude plugin install <name>@agent-plus works.
  3. Add a row to the root README.md — Plugins table at minimum.
  4. Remind the user to run gh repo edit osouthgate/agent-plus --add-topic <name> so the plugin shows up in GitHub's topic search. You cannot do this yourself without auth; flag it explicitly in your completion summary.
  5. Validate with claude plugin validate <plugin> and claude plugin validate .claude-plugin/marketplace.json before committing.

The Stop hook catches missing root README / marketplace entries on a new-plugin commit. It cannot catch missing GitHub topics — that's on you.

Per-plugin conventions

Every plugin directory has the same shape — preserve it:

<plugin>/
├── .claude-plugin/plugin.json
├── bin/<plugin>                  # stdlib Python 3, single file
├── skills/<plugin>/SKILL.md      # how Claude uses it
├── README.md                     # how a human understands it
├── CHANGELOG.md                  # pain points and wins, most-recent-first
└── LICENSE (or inherits root)
  • Stdlib only. No pip installs. No venvs. If you reach for requests, stop and use urllib.request.
  • Layered .env autoload, highest precedence first: --env-file → project .env.local / .env (walked up from cwd) → ~/.agent-plus/.env → shell env. Project .env wins over shell — this is deliberate, don't flip it.
  • Scoped env prefixes (where applicable). Only pick up the plugin's own prefix to avoid cross-pollution.
  • Missing-config errors point to both .env and ~/.claude/settings.json so the user knows where to put the value.

Writing style for READMEs

Every plugin README should:

  1. Open with the counterfactual, not the feature list. "Without this, Claude would do N round-trips and burn M tokens." The opening paragraph answers what breaks without this.
  2. Quote a number if you have one. "~$10/12h → ~$0.03/12h", "40s sequential → 8s parallel", "4 API calls → 1". Numbers sell.
  3. Name the gotcha you're collapsing. E.g. coolify-remote's "env vars visible in UI but not in container (needed a redeploy)". These are the hard-won bits that justify the plugin's existence.
  4. Headline commands before config. The reader needs to see the shape of the tool before they care about .env precedence.
  5. No emoji decorations. No feature-table fluff. Terse voice, one idea per line.

Code comments

Default to no comments. Add one only when the WHY is non-obvious: a hidden constraint, a platform workaround, a subtle invariant, or behaviour that would surprise a future reader. Never describe WHAT the code does — clear names already do that.

_subcommands/init.py is the one exception where # ── N. topic ── section markers add navigation value; preserve that pattern there.

Philosophy

Deterministic work belongs in scripts, not prompts. The LLM orchestrates; the code does. If you catch yourself adding LLM-call-driven logic to a plugin's bin/ script, stop — that's a smell. The CLI is deterministic; the prompting belongs in the calling agent or a Hermes cron.

Cursor Cloud specific instructions

This is a stdlib-only Python 3 project. The only external test dependency is pytest (installed via pip install --user pytest). No databases, Docker, or API keys are needed for testing.

Running tests (mirrors CI):

python3 -m pytest <plugin>/test/ -v

where <plugin> is one of: agent-plus-meta, repo-analyze, diff-summary, skill-feedback, skill-plus.

Running a plugin binary directly:

python3 <plugin>/bin/<plugin-name> [args]

All binaries are single-file stdlib Python 3 — no PATH setup required beyond having python3 available.

Gotchas:

  • repo-analyze exits with code 120 (not 0) on success — this is intentional (it signals "envelope written" to the caller). Tests and the envelope contract expect this.
  • The pre-commit hook (.githooks/pre-commit) runs tests under env -i to catch env-leakage bugs. Use SKIP_PRECOMMIT_TESTS=1 or --no-verify to bypass during cloud agent commits.
  • No linter is configured in this repo — skip lint checks.

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.