agentleFS
schollzschollz/croc/AGENTS.md

croc

AGENTS.md41k starsChanged 3 months agoMITView on GitHub

Use Git for all version-control operations. When explicitly asked to push changes, use the repository workflow helper with a semantic/conventional commit message: For example, use messages such as fix: handle interrupted transfers or feat: add configurable relay timeouts. Do not run git push directly; the helper owns the commit, push, and pull-request workflow. GitHub Actions and release operations continue to use the GitHub CLI (gh) as documented below. Releases are prepared by the Prepare Release GitHub Actions workflow. Do not…

  • Commits and pushes

We split this AGENTS.md into the rules it gives an agent

9 rules. About 0 are common, 3 are distinctive, and 6 are very specific to this project.

  • ≈0

    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
  1. Distinctive:

    Use Git for all version-control operations.

    line 5
  2. Distinctive:

    When explicitly asked to push changes, use the repository workflow helper with a semantic/conventional commit message:

    line 7
  3. Very specific:

    Wait for every job to succeed.

    line 29
  4. Very specific:

    Before publishing, verify that the workflow's native binary checks report both croc version X.Y.Z and croc-web version X.Y.Z for the …

    line 38
  5. Distinctive:

    Run these commands from this repository.

    line 43
  6. Very specific:

    If it fails, inspect it with gh run view "${RELEASE_RUN_ID}" --log-failed.

    line 69
  7. Very specific:

    After correcting a transient problem, either run gh run rerun "${RELEASE_RUN_ID}" --failed or dispatch the same tag again.

    line 70
  8. Very specific:

    After a successful run, verify that the release is a draft and contains 34 assets: 19 croc platform archives, the croc-web archive, the …

    line 74
  9. Very specific:

    Use gh run watch RUN_ID --exit-status to follow the downstream run.

    line 96

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Repository instructions

Version control with Git

Use Git for all version-control operations.

When explicitly asked to push changes, use the repository workflow helper with a semantic/conventional commit message:

~/dotfiles/git-pr '<commit message>'

For example, use messages such as fix: handle interrupted transfers or feat: add configurable relay timeouts. Do not run git push directly; the helper owns the commit, push, and pull-request workflow.

GitHub Actions and release operations continue to use the GitHub CLI (gh) as documented below.

Releasing croc

Releases are prepared by the Prepare Release GitHub Actions workflow. Do not create or move a release tag manually: source-based package managers such as Homebrew build the tagged source and require it to contain the release version.

  1. Open Actions → Prepare Release → Run workflow on the default branch.
  2. Enter a stable semantic-version tag such as v11.2.5.
  3. Wait for every job to succeed. The workflow stamps src/version/version.go, commits it, creates the annotated tag, builds and signs all artifacts, and creates a draft GitHub release containing those artifacts and their checksums.
  4. Review the generated notes and asset list, then publish the draft release.

Publishing the draft triggers the Docker workflow. A failed workflow may be rerun with the same tag while the release is absent or still a draft; the workflow rejects a mismatched tag or a release that has already been published.

Before publishing, verify that the workflow's native binary checks report both croc version X.Y.Z and croc-web version X.Y.Z for the requested tag.

Command-line release with gh

Run these commands from this repository. The authenticated account must have permission to run Actions and publish releases:

gh auth status
gh repo view --json nameWithOwner,defaultBranchRef

Choose the new stable tag, dispatch the release workflow against the default branch, and list the resulting run:

RELEASE_TAG=v11.2.5
gh workflow run release.yml --ref main -f tag="${RELEASE_TAG}"
gh run list --workflow release.yml --event workflow_dispatch --limit 5 \
  --json databaseId,displayTitle,status,url

The run's display title is Prepare vMAJOR.MINOR.PATCH. Copy its databaseId from the list and wait for it to finish:

RELEASE_RUN_ID=123456789
gh run watch "${RELEASE_RUN_ID}" --exit-status

If it fails, inspect it with gh run view "${RELEASE_RUN_ID}" --log-failed. After correcting a transient problem, either run gh run rerun "${RELEASE_RUN_ID}" --failed or dispatch the same tag again. A rerun is permitted only while the release is absent or still a draft.

After a successful run, verify that the release is a draft and contains 34 assets: 19 croc platform archives, the croc-web archive, the source archive, the twelve Linux DEB/RPM packages, and the checksum file.

gh release view "${RELEASE_TAG}" --json isDraft,url,assets \
  --jq '{isDraft: .isDraft, url: .url, assets: [.assets[].name]}'
test "$(gh release view "${RELEASE_TAG}" --json isDraft --jq .isDraft)" = true
test "$(gh release view "${RELEASE_TAG}" --json assets --jq '.assets | length')" -eq 34

Download the draft assets and run python3 packaging/release.py verify-assets --version "${RELEASE_TAG}" --artifacts DIRECTORY to validate their exact names and checksums.

Review the generated notes and asset names before publishing. Publishing is the point that triggers the Docker workflow:

gh release edit "${RELEASE_TAG}" --draft=false --latest
gh run list --workflow deploy.yml --limit 3 \
  --json databaseId,displayTitle,status,conclusion,url

Use gh run watch RUN_ID --exit-status to follow the downstream run. Never use gh release create or manually create or move the release tag with Git. The Prepare Release workflow owns the version commit, tag, artifacts, and draft.

Download now (ZIP)

Trending

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Aug 30: 0 new projectsWeek of Sep 6: 0 new projectsWeek of Sep 13: 0 new projectsWeek of Sep 20: 0 new projectsWeek of Sep 27: 0 new projectsWeek of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projects
Aug 2026Sep 2026Oct 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Who's talking about schollz/croc

The biggest 5 of 110 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 110

Talked about on GitHub, Bluesky, YouTube, Hacker News and the web (110 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 23

18 more on Bluesky

On YouTube · 18

13 more on YouTube

On Hacker News · 14

9 more on Hacker News
  • 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.

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

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.