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.
- code-reviewerSkill
- test-writerSkill
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
- Very specific: line 21
If asked to install agent-plus for the user, run:
- Very specific: line 60
When working on any item in plans/todo/ or plans/OPEN-ACTIONS.md:
- Distinctive: line 62
Update the plan file as you go: When a decision is made, resolved questions get struck or replaced — not left as open questions.
- Distinctive: line 67
If you finish a task and the corresponding plan file still has open items or unresolved questions, either address them or explicitly note …
- Distinctive: line 75
Check the root
README.md: if you added/removed a plugin or changed the top-level plugin table's one-line description. - Very specific: line 87
When scaffolding a whole new framework plugin, do these in the same PR — the Stop hook enforces the first two, but none catches #4 …
- Very specific: line 89
Copy the shape of an existing plugin: Write bin/<name> (stdlib Python 3 only), skills/<name>/SKILL.md, README.md, CHANGELOG.md, …
- Distinctive: line 99
Every plugin directory has the same shape — preserve it:
- Very specific: line 111
Stdlib only: No pip installs. No venvs.
- Distinctive: line 118
Every plugin README should:
- Distinctive: line 128
Default to no comments. Add one only when the WHY is non-obvious: a hidden constraint, a platform workaround, a subtle invariant, or …
- Very specific: line 150
All binaries are single-file stdlib Python 3 — no PATH setup required beyond having python3 available.
- Distinctive: line 155
No linter is configured in this repo — skip lint checks.
≈ “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.
Files
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
| Plugin | Killer command |
agent-plus-meta | init, envcheck, refresh, marketplace install|list|update|remove|search|prefer |
repo-analyze | repo-analyze [--output] [--shape-depth] [--pretty] |
diff-summary | diff-summary [--staged | --base BRANCH | --range A..B] [--public-api-only] [--risk MIN] |
skill-feedback | log <skill> --rating --outcome [--friction], report, submit |
skill-plus | scan, 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 | shWindows (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
doneThen 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.
- Aggregate server-side, return one blob.
- Resolve by name, not ID.
--waiton every async mutation.--jsonon every list / show.- Strip values the agent shouldn't see (names only, no values).
- Self-diagnosing output — every payload carries
tool: {name, version}. - 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:
- 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.
- Update
plans/OPEN-ACTIONS.mdto match — remove completed items, add new ones that surface during implementation. - When a plan file is fully complete, move it to
plans/archive/. Do not leave done plans inplans/todo/. - 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:
- Update
<plugin>/README.mdif 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. - Append a
<plugin>/CHANGELOG.mdentry under## Unreleasedwith: what changed, why it matters, date. One entry per change, most recent first. - Check the root
README.mdif 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:
- 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. - Add the entry to
.claude-plugin/marketplace.jsonsoclaude plugin install <name>@agent-plusworks. - Add a row to the root
README.md— Plugins table at minimum. - 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. - Validate with
claude plugin validate <plugin>andclaude plugin validate .claude-plugin/marketplace.jsonbefore 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 useurllib.request. - Layered
.envautoload, highest precedence first:--env-file→ project.env.local/.env(walked up from cwd) →~/.agent-plus/.env→ shell env. Project.envwins 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
.envand~/.claude/settings.jsonso the user knows where to put the value.
Writing style for READMEs
Every plugin README should:
- 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.
- Quote a number if you have one. "~$10/12h → ~$0.03/12h", "40s sequential → 8s parallel", "4 API calls → 1". Numbers sell.
- 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.
- Headline commands before config. The reader needs to see the shape of the tool before they care about
.envprecedence. - 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/ -vwhere <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-analyzeexits 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 underenv -ito catch env-leakage bugs. UseSKIP_PRECOMMIT_TESTS=1or--no-verifyto bypass during cloud agent commits. - No linter is configured in this repo — skip lint checks.
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
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.

