aidev-clis
AGENTS.md0 starsChanged 11 days agoMITView on GitHub
You're iterating on aidev-clis: a suite of atomic-capability CLIs that let an AI agent read/observe/operate on running systems, with credentials injected by the CLI rather than passed through the agent's context (not a sandbox; see docs/SECURITY-MODEL.md). This file is the entry point for that work. Humans start at README.md; agents using a CLI at runtime read the matching skills/aidev-<cli>/SKILL.md; this file is for changing the repo itself. - AI-first output. Every command defaults to a JSON envelope. --output raw is…
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 repository7 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- aidev-dbcliSkill
- aidev-httpcliSkill
- aidev-jcliSkill
- aidev-logcliSkill
- aidev-tcliSkill
- use-aidevSkill
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
AI-first output: Every command defaults to a JSON envelope.
- Very specific: line 14
Adapter isolation: No cross-CLI Go imports, with the single sanctioned exception that aidev reads httpcli's config package (read-only) for …
- Very specific: line 54
A db driver: create adapters/db/<name>/, register it in cmd/dbcli/register.go.
- Very specific: line 57
A log adapter: create adapters/log/<name>/, register it in the logcli command wiring (mirror an existing adapter).
≈ “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.
Files
AGENTS.md
You're iterating on aidev-clis: a suite of atomic-capability CLIs that let an
AI agent read/observe/operate on running systems, with credentials injected by the CLI
rather than passed through the agent's context (not a sandbox; see docs/SECURITY-MODEL.md).
This file is the entry point for that work. Humans start at
README.md; agents using a CLI at runtime read the matching
skills/aidev-<cli>/SKILL.md; this file is for changing the repo itself.
Iron laws (do not violate)
- AI-first output. Every command defaults to a JSON envelope.
--output rawis opt-in human form, never the default. See docs/OUTPUT-CONTRACT.md. - Adapter isolation. No cross-CLI Go imports, with the single sanctioned
exception that
aidevreads httpcli's config package (read-only) for discovery. Themake checkisolation guard checks the five standalone CLIs. See docs/ADAPTER-ISOLATION.md and docs/ARCHITECTURE.md. - Concurrent-session isolation. Multiple sessions share this working tree and
branch. Implement in a sibling git worktree (
aidev-clis-<feature>convention), never edit the live tree directly, or commits interleave. -his the truth source for flags. Docs describe the durable model and gotchas; they must not re-enumerate flags. If you add or change a flag, update-h/code — not a flag table in prose.- Specs and plans are optional local notes in the gitignored
docs/superpowers/directory. Contributors may skip them.
Build / test / run
go build ./... # build all CLIs
go test ./... # full test suite
make check # crossbuild, gofmt, vet, tests and isolation guards
make hooks # install the pre-commit hook once, after cloning
make install # build + install binaries, skills, completionsCI (.github/workflows/ci.yml) runs go test on Linux/macOS/Windows. Before
adding tests or platform-specific code, read the cross-platform
contract — POSIX perms, path separators in YAML/shell,
.exe on exec, and the bash/PowerShell install-script parity. You can't run the
Windows leg on a Mac/Linux box; make check crossbuilds all three GOOS.
Where things live
cmd/<cli>/— CLI entry, flag wiring, command registration.internal/<cli>/— per-CLI logic.internal/core/— shared:envelope,audit,config,cred,allow,diag,errs,exec.adapters/db/<driver>/andadapters/log/<adapter>/— self-contained backends.docs/— stable contracts + thin per-CLI pages.skills/— agent runtime docs (kept out of Go on purpose: goreleaser shipsskills/**verbatim). Their frontmatter is validated bytest/skill_frontmatter_test.go— quote anydescriptioncontaining": ".
How to add X
- A db driver: create
adapters/db/<name>/, register it incmd/dbcli/register.go. Keep credential injection, arg validation, secondary allowlist, and error codes inside the adapter. - A log adapter: create
adapters/log/<name>/, register it in the logcli command wiring (mirror an existing adapter). - An httpcli app: configured, not coded — an entry under
apps:inhttpcli.yamlplus its auth flow; see docs/cli-httpcli.md.
Deleting a capability should be cheap: remove the adapter directory and its one registration line.
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.

