no-mistakes AGENTS.md

no-mistakes AGENTS.md is an instructions file for Codex, OpenCode from kunchenguid/no-mistakes. It costs 5,771 tokens per session, scanned A, original, MIT.

Repository instructions for the no-mistakes Go command-line application. They describe its code layout and the commands used to check, test, build, and run end-to-end tests.

In plain words
What is it for?
Use them when changing no-mistakes, especially its command-line interface, background service, agent integrations, terminal interface, or GitLab backend.
Why use it?
They give coding agents project-specific rules instead of making them infer how this repository is organized or verified.

Instructions file for CodexOpenCode

About the project

no-mistakes is a local Git proxy that validates changes in an isolated worktree before forwarding a push to the real remote and opening a pull request. It is for developers and coding agents that want automated checks, safe fixes, CI repair, and human review before changes are published.

kunchenguid/no-mistakes · 8,294 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/kunchenguid/no-mistakes/agents-md
Clone the repo
git clone --depth 1 https://github.com/kunchenguid/no-mistakes

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for no-mistakes AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/kunchenguid/no-mistakes/agents-md.svg)](https://agentmods.dev/instructions/kunchenguid/no-mistakes/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/kunchenguid/no-mistakes/agents-md"><img src="https://agentmods.dev/badge/instructions/kunchenguid/no-mistakes/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 5,771 This file is loaded in full into every session.
When invoked 5,771 The same file — it is already loaded in full.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.05771 $0.05771
Opus 5 $0.02885 $0.02885
Sonnet 5 $0.01154 $0.01154
Haiku 4.5 $0.00577 $0.00577

Measured today against content hash 0c4932428b35, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

no-mistakes AGENTS.md scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- `.github/actions/require-no-mistakes/verify.py` reads the PR body/head SHA it verifies from a **live** GitHub REST API lookup first (via `live_pr_facts`, a direct `urllib.request` GET to `{GITHUB_API_URL}/repos/{repo}/
AGENTS.md · 110 lines

How it starts

The opening of the file, as written. The whole thing — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

This file is for agentic coding tools working in this repo.

This repository is a Go CLI app named no-mistakes. The binary entrypoint is cmd/no-mistakes; implementation code lives under internal/, and the package names there are the layout map (CLI in internal/cli, daemon in internal/daemon, pipeline and steps in internal/pipeline, agent adapters in internal/agent, terminal UI in internal/tui, shared infrastructure in internal/git, internal/ipc, internal/config, internal/db, internal/paths, internal/types). Build, test, and release commands are owned by the Makefile; read it for the full target list instead of relying on a copy here.

Safest local verification sequence after non-trivial changes:

  • gofmt -w .
  • make lint (generated-skill drift check plus go vet)
  • go test -race ./... (the e2e suite is behind the e2e build tag and excluded)
  • make e2e when touching agent integrations, the e2e harness, or recorded fixtures
  • go build -o ./bin/no-mistakes ./cmd/no-mistakes

GitLab Backend (internal/scm/gitlab)

  • The backend is pinned against glab v1.5x, whose flag surface drifts between versions: the auth check must be host-scoped (--hostname <host>, falling back to unscoped only when the host is unknown), glab mr list no longer accepts --state opened, glab mr update has no -y/--yes flag at all (unlike mr create, which does, so UpdatePR must not pass it), and the daemon's detached-HEAD worktree breaks glab ci get, so pipeline jobs are read via the branch-independent glab api .../pipelines/<id>/jobs REST endpoint.
  • The comments in internal/scm/gitlab/gitlab.go own the full rationale for each trap; extend them there when you hit new glab version drift.

Gitea Backend (internal/scm/gitea)

  • Verified empirically against a real tea 0.15.1 CLI and a real Gitea 1.27.2 + Actions instance (Docker/Podman gitea/gitea + gitea/act_runner), not guessed from docs. tea whoami has no --login flag (unlike every other tea entity subcommand), so Host.Available scopes its check through tea api --login <name> /user instead - the same host-scoping purpose as glab's --hostname.
  • tea actions runs view --jobs --output json does NOT emit clean structured JSON: --output json renders the run header as plain text and only the trailing jobs array is real JSON, and that array carries status (queued/in_progress/completed) but no conclusion (success/failure/...) at the job level. Job-level pass/fail is read from the REST endpoint (GET /repos/{owner}/{repo}/actions/runs/{run}/jobs, which does carry status + conclusion) reached through tea api, which reuses tea's own stored login/token - no separate HTTP client or credential needed.
  • tea pulls list --output json renders every field (including index and mergeable) as a JSON string, while tea pulls <idx> --output json (single-PR view) renders the same fields with native JSON types (index an int, mergeable/hasMerged bools). The two response shapes are genuinely different structs in gitea.go; do not unify them.
  • tea pulls create has no --output json flag and echoes the PR body into its human-readable stdout, so a body containing an http(s):// URL can defeat a naive "first URL line" scrape. CreatePR re-lists the PR by head branch via tea pulls list for a structured result instead of parsing create's own output; scraping stdout is only a last-resort fallback.
  • tea pulls edit has no --base flag (unlike tea pulls create --base). Retargeting uses tea api --method PATCH --field base=<branch> on /repos/{owner}/{repo}/pulls/{index}; omitting --method would POST because a body defaults tea api to POST. FindPR copies item.Base onto scm.PR.BaseBranch so a per-run override can see the live forge base.
  • tea infers "which Gitea instance" from the current directory's git remote, which the daemon's detached bare-gate repo never has, so every invocation carries --login <name> explicitly. The login name is resolved from tea's own config.yml by host (scm.ResolveGiteaLogin), mirroring glabKnowsHost/ghKnowsHost for detection.
  • Capabilities().MergeableState is declined (matching Bitbucket): Gitea's PR mergeable field has a documented upstream bug (go-gitea/gitea#25849) that can stick false after a conflict is actually resolved.
  • tea actions runs list's array order is not documented as newest-first, and a branch can have more than one run sharing the same head SHA (e.g. a manual UI re-run), so GetChecks/FetchFailedCheckLogs select the run via mostRecentRun (highest numeric run ID) rather than trusting list order or index [0].
  • The comments in internal/scm/gitea/gitea.go own the full rationale for each trap.

Read the full file on GitHub · 110 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +5 lines · +377 tokens per session 0c4932428b35
  2. yesterday Changed · +1 lines · +99 tokens per session c7244be96cea
  3. 3d ago Changed · +16 lines · +928 tokens per session 1cc8abf3014e
  4. 5d ago First seen · 88 lines · 4,367 tokens per session scan A 0b1dc0f72de2

Subscribe to this mod's changes

no-mistakes AGENTS.md is an instructions file published in the GitHub repository kunchenguid/no-mistakes (8,294 stars, last pushed today), licensed MIT. It adds 5,771 tokens to every session, about $0.0289 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens