clawpatch
AGENTS.md815 starsChanged 5 months agoMITView on GitHub
clawpatch is a TypeScript CLI. Source lives in src/, with the CLI entry in src/cli.ts, workflow orchestration in src/app.ts and src/workflow.test.ts, and feature mappers under src/mappers/. Tests sit beside implementation files as *.test.ts. Build output is generated into dist/ and should not be edited. User documentation is in docs/; the static website assets are in website/. Use pnpm with Node 22.x (22.13+), 24.x, or 26+ for pnpm 11 and Vitest 5 development. The published CLI continues to support Node 22…
We split this AGENTS.md into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
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
- could be automatic: a setting could enforce it
- Very specific: line 13
Use pnpm with Node 22.x (22.13+), 24.x, or 26+ for pnpm 11 and Vitest 5 development.
- Very specific: line 15
Keep @types/node on the Node 22 major to typecheck against that runtime floor.
- Distinctive: line 30
Write ESM TypeScript. Prefer small pure helpers, explicit return values for shared functions, and existing mapper patterns before adding …
- Very specific: line 32
Use two-space indentation as enforced by Oxfmt.
- Very specific: line 56
Do not commit .clawpatch/ state, credentials, provider transcripts with secrets, or generated dist/ edits.
≈ “Common” is an estimate: at least 1 in 5 of the 36,368 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
Repository Guidelines
Project Structure & Module Organization
clawpatch is a TypeScript CLI. Source lives in src/, with the CLI entry in
src/cli.ts, workflow orchestration in src/app.ts and src/workflow.test.ts,
and feature mappers under src/mappers/. Tests sit beside implementation files
as *.test.ts. Build output is generated into dist/ and should not be edited.
User documentation is in docs/; the static website assets are in website/.
Build, Test, and Development Commands
Use pnpm with Node 22.x (22.13+), 24.x, or 26+ for pnpm 11 and Vitest 5 development. The published
CLI continues to support Node 22 or newer.
Keep @types/node on the Node 22 major to typecheck against that runtime floor.
pnpm build: clean and compile the package withtsconfig.build.json.pnpm typecheck: run TypeScript checks without emitting files.pnpm lint: run Oxlint usingoxlint.json.pnpm format: rewrite files with Oxfmt.pnpm format:check: verify formatting without writing changes.pnpm test: run the Vitest suite.pnpm test:coverage: run the full suite with V8 coverage reports incoverage/.pnpm test src/mapper.test.ts: run one focused test file.
For local CLI checks, build first, then run node dist/cli.js <command>.
Coding Style & Naming Conventions
Write ESM TypeScript. Prefer small pure helpers, explicit return values for
shared functions, and existing mapper patterns before adding new abstractions.
Use two-space indentation as enforced by Oxfmt. Name files by domain
(provider.ts, detect.ts, mappers/python.ts) and keep tests named
<module>.test.ts. Keep generated output, local state, and fixture churn out of
commits unless the change explicitly requires it.
Testing Guidelines
Vitest is the test framework. Add or update focused tests for any behavior
change, especially mapper coverage, workflow state transitions, provider command
construction, and validation behavior. Prefer targeted test runs while
developing, then run pnpm typecheck && pnpm lint && pnpm test && pnpm build
before handing off.
Commit & Pull Request Guidelines
History uses short semantic subjects such as fix(provider): quote codex exec
args correctly on Windows and feat(mapper): support monorepo Next project
mapping. Keep commits scoped and descriptive. PRs should explain the behavior
change, link related issues, mention user-facing docs or changelog updates when
needed, and include the exact checks run. Add screenshots only for website or
rendered-doc changes.
Security & Configuration Tips
Do not commit .clawpatch/ state, credentials, provider transcripts with
secrets, or generated dist/ edits. Provider output is schema-validated; keep
new provider or mapper code conservative about reading secret-bearing files.
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 28,693 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.
- crabboxSkill
- release-clawpatchSkill
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.

