agentleFS
agentic-mcpsagentic-mcps/go/AGENTS.md

go

AGENTS.md2 starsChanged 2 months agoApache-2.0View on GitHub

agentic-go check is the product: a done-gate that runs when a coding agent tries to stop (or on pre-push and in CI) and blocks only on problems the change introduced. Read docs/design/check-gate.md before changing gate behavior, and validation/gate/README.md before changing the evaluation, its baselines, or any claim about the gate. The MCP server (go_context, Change Contracts, guarded refactor, retrieval, source views) is maintenance-only. Its frozen v1 surface stays as documented in docs/contracts.md and docs/v0.9.0-release-scope.md: fix defects, add no tools, resources,…

  • 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 repository5 other files it gives its agents.

The file

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

5 rules. About 0 are common, 3 are distinctive, and 2 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.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When test evidence is incomplete (time budget, closure too large, tooling failure) the verdict is unknown, never pass.

    line 26
  2. Distinctive:

    All filesystem access stays within the configured, symlink-resolved workspace.

    line 45
  3. Very specific:

    Before handoff, run go build ./..., go test -race ./..., go vet ./..., golangci-lint run (the version pinned in …

    line 58
  4. Distinctive:

    Use short Conventional Commit subjects.

    line 62
  5. Distinctive:

    Create no tag, release, or remote push without explicit maintainer approval.

    line 63

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

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

Agentic-go contributor contract

Start here

agentic-go check is the product: a done-gate that runs when a coding agent tries to stop (or on pre-push and in CI) and blocks only on problems the change introduced. Read docs/design/check-gate.md before changing gate behavior, and validation/gate/README.md before changing the evaluation, its baselines, or any claim about the gate.

The MCP server (go_context, Change Contracts, guarded refactor, retrieval, source views) is maintenance-only. Its frozen v1 surface stays as documented in docs/contracts.md and docs/v0.9.0-release-scope.md: fix defects, add no tools, resources, prompts, or schema fields.

For an analyzer rule change, read the matching archived specification: docs/archive/phase-4a-concurrency.md or docs/archive/phase-4a-errors.md.

Invariants

  • The gate reports problems the change introduced. A failure it can attribute to the base (fails there too) or to flakiness (passes on rerun) is a warning, never a block.
  • When test evidence is incomplete (time budget, closure too large, tooling failure) the verdict is unknown, never pass. Analyzer failures are reported as a note and do not change the verdict. Blocking items found before the evidence ran out still block.
  • In hook mode the process always exits 0 and speaks only through the hook's JSON. A gate failure never blocks an agent. A repeated stop with an unchanged fingerprint is allowed and disclosed to the human, never blocked again.
  • Text output and hook reasons stay within 2048 bytes, keep whole lines and valid UTF-8, and rank blocking entries and their fixes above detail and notes.
  • Integrity rules (deleted, skipped, hidden, or weakened tests; stubs; gate configuration edits) favor precision. A rule ships with a positive fixture, a meaningful near miss, and a stated limitation. A block on a common legitimate refactor is a defect.
  • Claims about the gate come only from recorded runs of the pre-registered evaluation. Do not claim model parity, speedups, or real-world prevalence the evidence does not show. Held-out evaluation variants must not inform detector changes before a run is recorded; if they do, disclose it in the results.
  • The agentic.verify/v1 report schema stays frozen. Engine changes made for the gate keep agentic-go verify output compatible.
  • All filesystem access stays within the configured, symlink-resolved workspace. Subprocess work shares cancellation, deadlines, concurrency limits, and bounded output. Describe these controls as containment, never as sandboxing. The gate compiles and runs trusted target-repository code.
  • Protocol errors fail loudly. Clean results use non-nil empty collections.

Work loop

  1. Locate the smallest relevant implementation and its governing contract.
  2. State the behavior and failure modes the change must preserve.
  3. Make one coherent change; widen a public surface only when the design document calls for it.
  4. Inspect the diff and run the smallest relevant verification first.
  5. Before handoff, run go build ./..., go test -race ./..., go vet ./..., golangci-lint run (the version pinned in .github/workflows/verify.yml), and git diff --check when the environment supports them.

Use short Conventional Commit subjects. Preserve the configured Git author. Create no tag, release, or remote push without explicit maintainer approval.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.