openclaw-claude-agmsg-delegate
AGENTS.md0 starsChanged 5 months agoMITView on GitHub
This repository is an OpenClaw typed tool plugin plus three OpenClaw Skills. Its non-negotiable contract is paid Claude.ai subscription only, with no Anthropic API key, cloud-provider, custom endpoint, or credential fallback. 1. Read README.md, SECURITY.md, SKILL.md, and vendor/UPSTREAM.md. 2. Use a supported Node runtime: 22.22.3+, 24.15+, or 25.9+. On Homebrew Macs, prefer /opt/homebrew/opt/node@22/bin before another Node on PATH. 3. Run npm ci, then npm run check. 4. Do not install into OpenClaw or run a real Fable/Sonnet job until the…
- Reads credentials
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 35,266 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.
- llms.txtllms.txt
- claude-agmsg-delegateSkill
The file
We split this AGENTS.md into the rules it gives an agent
11 rules. About 2 are common, 3 are distinctive, and 6 are very specific to this project.
≈2
Common · estimate
Many files like this have a rule of this kind.
≈3
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 9
Read README.md, SECURITY.md, SKILL.md, and vendor/UPSTREAM.md.
- Very specific: line 10
Use a supported Node runtime: 22.22.3+, 24.15+, or 25.9+.
- Very specific: line 12
Run npm ci, then npm run check.
- Common: line 13
Do not install into OpenClaw or run a real Fable/Sonnet job until the tests, plugin validation, and repository secret scan pass.
- Very specific: line 18
Never add ANTHROPIC_API_KEY, CLAUDE_CODE_OAUTH_TOKEN, a custom base URL, Bedrock, Vertex, Foundry, Mantle, or another provider fallback.
- Very specific: line 20
Never use openclaw agent --local to test this plugin.
- Very specific: line 23
Never add --workspace-write.
- Common: line 25
Do not pass project paths, routing ids, executable paths, credentials, or write controls as model/tool-call parameters.
- Distinctive: line 28
Do not read or print broad OpenClaw configuration, environment values, agmsg databases, or team files.
- Distinctive: line 30
Never print monetary or token-usage metadata.
- Distinctive: line 44
Before calling the implementation complete:
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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
This repository is an OpenClaw typed tool plugin plus three OpenClaw Skills. Its non-negotiable contract is paid Claude.ai subscription only, with no Anthropic API key, cloud-provider, custom endpoint, or credential fallback.
Start here
- Read
README.md,SECURITY.md,SKILL.md, andvendor/UPSTREAM.md. - Use a supported Node runtime: 22.22.3+, 24.15+, or 25.9+. On Homebrew Macs,
prefer
/opt/homebrew/opt/node@22/binbefore another Node onPATH. - Run
npm ci, thennpm run check. - Do not install into OpenClaw or run a real Fable/Sonnet job until the tests, plugin validation, and repository secret scan pass.
Safety boundaries
- Never add
ANTHROPIC_API_KEY,CLAUDE_CODE_OAUTH_TOKEN, a custom base URL, Bedrock, Vertex, Foundry, Mantle, or another provider fallback. - Never use
openclaw agent --localto test this plugin. The deterministic test surface isopenclaw gateway call tools.invoke, which does not invoke the OpenClaw orchestration model. - Never add
--workspace-write. The initial public contract is advisory read-only and exposes onlyRead,Glob,Grepover a filtered Git-tracked snapshot. - Do not pass project paths, routing ids, executable paths, credentials, or write controls as model/tool-call parameters. They belong only in strict plugin config.
- Do not read or print broad OpenClaw configuration, environment values, agmsg databases, or team files. Use official OpenClaw and agmsg CLI/scripts.
- Never print monetary or token-usage metadata. Structured fields and result text containing numeric cost/token counters must discard the result.
- The wrapper SHA-256 is a release contract. Updating
vendor/delegate_claude.pyrequires reviewing the upstream diff, updating attribution and the pinned hash, and adding regression coverage.
First-time agmsg setup
install.sh never runs npx agmsg, joins a team, creates an identity, or
changes delivery mode. If official scripts or a team are missing, stop and ask
the user for explicit approval. Do not guess a team or edit agmsg state.
Verification gates
Before calling the implementation complete:
npm testnpm run plugin:validatenpm run security:scanopenclaw plugins inspect claude-agmsg-delegate --runtime --jsonopenclaw gateway call skills.statusshows eligiblefable,sonnet, andclaude-agmsg-delegateSkillsopenclaw gateway call tools.invokewith tool argdryRun: true- one bounded real subscription job, followed by collection of the same job id until terminal, and one repeated idempotent collect
- result proves
billing_mode=subscription,auth_method=claude.ai,api_provider=firstParty, paidsubscription_type, expected model family,workspace_grounded=true, and non-empty safefiles_read - no
--deliver, channel message, deploy, install, or push during runtime tests
GitHub publication is allowed only after these gates pass. Use a public repo,
verify a fresh clone, and keep generated dist/, openclaw.plugin.json, and
the package lock in sync.
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.

