crabbox
AGENTS.md1.4k starsChanged 2 months agoMITView on GitHub
Edit AGENTS.md directly; do not add CLAUDE.md aliases. Crabbox is a Go CLI with an optional coordinator on Cloudflare Workers or Node.js with PostgreSQL. Use docs/source-map.md for the detailed code map. Generated outputs such as bin/, dist/, worker/dist/, and worker/node_modules/ should not be edited by hand. Crabbox is a generic remote software testing and execution tool. New code, docs, tests, and examples should not mention OpenClaw, Peter, or other project/person-specific workflows unless the file is explicitly about legacy compatibility or…
- Reads credentials
- Installs packages
Trending
Quiet since September.thin dataabout the whole repository
Who's talking about openclaw/crabbox
- zozo123/ariflow-swfactory“RSVP: Open-Source AI Software Factory — Airflow × Crabbox | Open Source AI Week 2026”GitHub · Sep 14, 2026 · 3 reactions
- openclaw/openclaw“fix: harden cloud worker admission and remote turns”GitHub · Jul 14, 2026 · 2 reactions
- openclaw/clownfish“Fork-per-issue from one warmed repo box”GitHub · Jun 21, 2026 · 2 reactions
- @yug1224.com“開発中のコードをクラウド上のリモート環境へ同期してテストやビルドを実行するツールらしい ローカルの性能に縛られず手軽にリモートリソースを使えそうなので試したい yug1224 starred …”Bluesky · Jul 6, 2026 · 1 likes
The biggest 4 of 4 mentions linking to the repository that our crawl found. Each line is their own headline.
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,773 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 repository6 other files it gives its agents.
- .agents/skills/autoreview/AGENTS.mdAGENTS.md
- autoreviewSkill
- crabbox-quickstartSkill
- crabboxSkill
- crabbox-quickstartSkill
- crabboxSkill
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 1 is common, 0 are distinctive, and 2 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Use docs/source-map.md for the detailed code map.
- Very specific: line 32
Run from the repository root.
- Common: line 76
Keep provider and broker tokens out of the repository.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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
Edit AGENTS.md directly; do not add CLAUDE.md aliases.
Project Structure & Module Organization
Crabbox is a Go CLI with an optional coordinator on Cloudflare Workers or Node.js with PostgreSQL.
| Area | Location |
| CLI entrypoint and command behavior | cmd/crabbox, internal/cli |
| Go provider adapters | internal/providers/<name> |
| Shared coordinator and Node.js runtime | worker/src, worker/node |
| Coordinator tests | worker/test |
| Command and feature documentation | docs/commands, docs/features |
| CI and release configuration | .github/workflows, .goreleaser.yaml |
Use docs/source-map.md for the detailed code map. Generated outputs such as bin/, dist/, worker/dist/, and worker/node_modules/ should not be edited by hand.
Product Positioning
Crabbox is a generic remote software testing and execution tool. New code, docs, tests, and examples should not mention OpenClaw, Peter, or other project/person-specific workflows unless the file is explicitly about legacy compatibility or release history. Prefer neutral examples such as example-org, alice@example.com, my-app, test:live, and generic repository workflows.
Architecture Boundaries
Keep core provider-neutral. Core may pass generic request/lease context and call provider capabilities for defaults, access, provision, images, release, cleanup, and diagnostics. Provider-specific reconciliation, firewall/security-group semantics, labels, snapshots, hosts, regions, rollout compatibility, and resource naming live behind provider adapters. No provider == aws/gcp/... logic in core unless it is unavoidable routing/config glue and no provider hook fits.
Provider contracts and extension points are documented in docs/features/provider-authoring.md and docs/provider-backends.md; coordinator runtime boundaries are described in docs/architecture.md.
Build, Test, and Development Commands
Run from the repository root. Use the Go toolchain declared in go.mod and the Node version in .node-version.
go build -trimpath -o bin/crabbox ./cmd/crabbox: build the local CLI.go vet ./...: run Go static checks.go test -race -timeout=20m ./...: run the Go test suite with the race detector and CI's race-test package timeout.gofmt -w path/to/changed.go: format changed Go files; substitute their actual paths.npm ci --prefix worker: install coordinator dependencies.npm run format:check --prefix worker: verify TypeScript formatting.npm run lint --prefix worker: runoxlint.npm run check --prefix worker: run TypeScript typechecking.npm run check:node --prefix worker: typecheck the Node.js coordinator.npm test --prefix worker: run Vitest tests.npm run build --prefix worker: dry-run the Worker build through Wrangler.npm run build:node --prefix worker: build the Node.js coordinator.node scripts/build-docs-site.mjs: generate the docs site intodist/docs-site.
Coding Style & Naming Conventions
Use standard Go formatting and keep package names short and lowercase. Prefer table-driven Go tests where behavior has multiple cases, and keep command behavior close to the matching file in internal/cli (for example, cache behavior in cache.go). Worker code is TypeScript ESM; use existing module boundaries in worker/src and rely on oxfmt, oxlint, and tsc.
Testing Guidelines
Name Go tests *_test.go beside the code they cover. Name Worker tests *.test.ts under worker/test. Add regression tests for bug fixes when practical. Before handoff, run the relevant subset; before release or broad changes, run the full CI-equivalent gate from the README.
Commit & Pull Request Guidelines
History uses Conventional Commit prefixes such as feat:, fix:, docs:, and ci:. Keep commits focused and mention user-visible behavior changes. Pull requests should include a clear summary, verification commands, config or secret implications, and screenshots only for generated docs or UI changes. Issue/PR references: always use full GitHub URLs, every time.
Maintainers and agents add user-visible fixes and features to CHANGELOG.md as work lands, normally under ## Unreleased; contributor PR authors leave changelog edits to maintainers. Use concise one-line bullets, full PR links, and contributor thanks by @login. Release preparation finalizes the accumulated section's version and date; do not defer changelog maintenance until release time.
Releasing
Follow docs/RELEASING.md exactly. One explicit full release/publish request authorizes the complete normal sequence: preparation/tagging/build/signing, private draft/upload, native dispatch/proof, publication, ordinary Homebrew tap update, independent public/native/Go installation smokes, and closeout, without renewed chat approval at each stage. Narrow requests stay narrow. The original request is the authorization; GitHub events alone do not authorize a release. Sequential technical gates, identity binding, credential isolation, immutability, exact frozen inputs, immediate publication readbacks, and cancellation boundaries remain mandatory. Publication does not require a particular PR-approval ruleset or an administrative writer freeze; existing GitHub merge protections still apply. The final read and publication are not atomic, and a detected post-publication mismatch is an incident rather than permission to rewrite the release. Explicit cancellation requires renewed direction before mutations resume. Publication establishes tap eligibility; public smoke results are not an approval gate. Dispatch the existing ordinary tap updater explicitly and retry Homebrew alone after failure, never production or publication. Tap maintainers own executable formulae; evaluate them only credential-free. Cancellation cannot stop independent reconciliation of an already-public release. Pitfalls that have broken past releases:
- Before tagging on any maintainer Mac, that machine's SSH signing key must BOTH be in
.github/release-allowed-signersAND be registered on the maintainer's GitHub account as a signing key. GitHub evaluates SSH tag-signature verification at push time only; a tag pushed before its key is registered is permanentlyunknown_keyand can never passscripts/publish-release.sh'sverification.verifiedgate. Checkgh api repos/openclaw/crabbox/git/tags/<tag-object> --jq .verificationimmediately after pushing the tag, before building anything. - The signed tag annotation must be exactly the bare version (
git tag -s v0.39.0 -m "v0.39.0"), never a descriptive message.scripts/verify-release-source.shrequires the tag subject to equal the version, and the protected tag ruleset blocks deleting or recreating a wrong tag. - Bump every version-carrying file, not just the changelog: the
CHANGELOG.mdsection heading plusworker/package.jsonand both root entries inworker/package-lock.json. See the Release Checklist indocs/operations.md. - The producer requires a merged authorize-source record at
release/records/vX.Y.Z.json(binding the tag object and source commit) onmainbeforescripts/build-release-candidate.shwill build; if the tag is recreated, update the record'stagObject. - The producer is credential-free and refuses to run if any release credential is present; unset every variable in the check at the top of
scripts/build-release-candidate.sh(the GitHub, Homebrew-tap, and Actions tokens plus the codesign identity and notary profile), not justGH_TOKEN/GITHUB_TOKEN.
Security & Configuration Tips
The authentication and isolation model is documented in SECURITY.md and docs/security.md.
Keep provider and broker tokens out of the repository. Do not pass secrets as command-line arguments. Local config belongs in ~/.config/crabbox/config.yaml, ~/Library/Application Support/crabbox/config.yaml, crabbox.yaml, or .crabbox.yaml as documented.
Tenki provider SSH uses tenki sandbox ssh-proxy with Tenki-managed key/cert files under ~/.config/tenki; do not use Crabbox per-lease keys for gateway auth.
OpenComputer provider auth: Crabbox reads the API key from CRABBOX_OPENCOMPUTER_API_KEY/OPENCOMPUTER_API_KEY or the oc CLI config (~/.oc/config.json) and sends it only in the X-API-Key header — never persist osb_ keys in Crabbox config or place them on argv.
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.

