agentleFS
CodevetterCodevetter/codevetter/AGENTS.md

codevetter

AGENTS.md1 starsChanged 25 days agoMITView on GitHub

This repository is independently operable. Its tracked instructions and commands are authoritative; no sibling Fleet checkout is required. Protect production stability, keep changes scoped, verify work with repo-local checks, and record durable follow-up in this repository's GitHub Issues. Do not run XCUITest, desktop runtime comparison, AppleScript, accessibility control, or any automation that can launch apps, take focus, type, click, or manage windows while the operator is using the Mac. Foreground automation requires fresh authorization for an idle-screen window on that…

  • Installs packages
  • 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,196 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.

The file

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

10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not run XCUITest, desktop runtime comparison, AppleScript, accessibility control, or any automation that can launch apps, take focus, …

    line 10
  2. Distinctive:

    Prefer depth in TypeScript/Node web tasks with browser and API behavior before adding languages or domains.

    line 42
  3. Very specific:

    Use these skills automatically for matching tasks, without waiting for the owner to name CodeVetter.

    line 113
  4. Very specific:

    DB is rusqlite, not @tauri-apps/plugin-sql: Do not re-add plugin-sql (removed in the 2026-07-11 desloppification sweep).

    line 127
  5. Very specific:

    Single package manager: pnpm: Do not reintroduce package-lock.json — dual-lockfile drift broke Cloudflare Pages in May 2026.

    line 128
  6. Very specific:

    Keep reusable cross-project automation in saas-maker/tooling/ and private portfolio metadata in Site Health, not SaaS Maker.

    line 139
  7. Distinctive:

    Do not use the retired SaaS Maker task queue or API as a system of record.

    line 143
  8. Very specific:

    Prefer free/local AI paths for routine development and analysis: the free-ai gateway, local models, provider free tiers, and cached context.

    line 148
  9. Distinctive:

    One canonical home per fact: Don't re-explain what a doc already covers — link to it.

    line 168
  10. Distinctive:

    Use git mv: when reorganizing so history is preserved, then update inbound links.

    line 175

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

agents.md — CodeVetter

Repository operating rules

This repository is independently operable. Its tracked instructions and commands are authoritative; no sibling Fleet checkout is required. Protect production stability, keep changes scoped, verify work with repo-local checks, and record durable follow-up in this repository's GitHub Issues.

Do not run XCUITest, desktop runtime comparison, AppleScript, accessibility control, or any automation that can launch apps, take focus, type, click, or manage windows while the operator is using the Mac. Foreground automation requires fresh authorization for an idle-screen window on that invocation; never infer or persist approval. Prefer the background-safe native lane and offscreen render gates. Use a dedicated graphical macOS runner for unattended interaction qualification.

Purpose

CodeVetter is an execution-backed verification and evaluation system for coding agents. It determines whether an agent completed a software task correctly using reproducible runtime evidence, not another LLM opinion. CLI/MCP and the machine-readable verification bundle are the primary product surfaces; the desktop app is a local viewer.

Product focus

  • The core loop is: task → agent change → executable verification → evidence → measurable verdict.
  • Enter Core Mode when the owner says core, focus, verification, evals, or asks for the next core priority. In Core Mode, only advance the benchmark corpus, evaluation harness, deterministic graders, sandbox/runtime evidence, failure taxonomy, regression comparisons, or reliability/cost/ latency measurement.
  • In Core Mode, actively redirect feature accumulation: no Agent Island, general agent chat/mission control, usage dashboards, audience simulation, generic history explanation, model-picker polish, new visual surfaces, or generic static-review work unless it is required by the verification loop.
  • Enter Side Quest Mode when the owner explicitly says side quest or asks for non-core work. Side quests are allowed: keep them bounded, label them as side work, and do not let them silently change the core roadmap. Return to Core Mode only when the owner signals it.
  • Prefer depth in TypeScript/Node web tasks with browser and API behavior before adding languages or domains.

Stack

  • Framework: SwiftUI/AppKit native macOS app + Rust verification core
  • Language: Swift (desktop), Rust (core/CLI/MCP), TypeScript (automation and landing page)
  • Styling: shared SwiftUI evidence components, true-black surfaces, muted bronze accent
  • DB: SQLite via rusqlite in the Rust backend (local only, no server)
  • Auth: None (local desktop app; LLM API keys stored in user settings)
  • Testing: Swift Testing + XCUITest + Rust tests + deterministic Node contract tests
  • Deploy: signed/notarized GitHub Releases with Sparkle appcast updates
  • Package manager: pnpm (workspaces root; packageManager: pnpm@10.33.2 in package.json)

Repo structure

apps/
  macos/                # SwiftUI/AppKit desktop app (the active product)
    CodeVetter/         # Minimal app target, assets, updater host
    CodeVetterPackage/  # Feature code and unit tests
    CodeVetterUITests/  # XCUITest qualification
  landing-page-astro/   # Astro marketing site → Cloudflare Pages (codevetter.com)
crates/
  codevetter-core/      # Rust verification engine, CLI, MCP server, SQLite
docs/                   # Canonical knowledge system — see docs/index.md
docs-site/              # Blume presentation layer for docs/ (NOT the source of truth)
benchmarks/             # Evaluation corpora — public-catch-rate/, agent-prs/,
                        #   agent-tasks/, runtime-challenges/, context-*/, performance-lab/
evidence/               # Committed run evidence: design/, performance/, reviews/
scripts/                # Benchmark + corpus + deploy + doc-validation scripts
.github/workflows/      # ci, auto-release, release, deploy-landing, weekly, docs
STATUS.md               # Compatibility pointer
PROJECT_STATUS.md       # Current/shipped product truth (fleet source of truth)

artifacts/ is gitignored scratch for CLI runs (--out artifacts/...). Committed evidence belongs in evidence/.

Key commands

# From repo root
pnpm install           # Install all workspace deps
pnpm test:native       # Swift tests + isolated performance gates + Debug build
pnpm native:build:release # Release configuration build
pnpm core:test         # Rust core, CLI, and MCP tests
pnpm core:clippy       # Rust lint gate
pnpm lint              # Biome check . (root)
pnpm knip:strict       # Unused code and dependency gate
pnpm quality:complexity # Changed-file cognitive-complexity gate
pnpm quality:cycles    # Runtime import-cycle gate
pnpm quality:duplication # Clone-regression gate
pnpm quality:dependencies # High/critical production advisory gate
node scripts/check-docs.mjs   # Validate docs (links, frontmatter, structure)

Agent workflow skills

For implementation and bug fixes, start with skills/codevetter-engineering/SKILL.md: focused checks for small changes, independent Claude review for crucial Codex-authored changes (Codex for Claude), and measured performance checks when relevant. Review workers return findings without recursively requesting another reviewer.

For a requested agent-change review, runtime verification, or performance investigation, load the matching repo-owned skill before reconstructing the CLI workflow:

  • Review: skills/codevetter-review/SKILL.md
  • Testing: skills/codevetter-testing/SKILL.md
  • Performance: skills/codevetter-performance/SKILL.md
  • Product-value / with-without evaluation: skills/codevetter-evaluate/SKILL.md

Use these skills automatically for matching tasks, without waiting for the owner to name CodeVetter. Complete the relevant authorized flow and append a usefulness assessment (helped, did_not_help, inconclusive, or blocked) before the task handoff. Record what it contributed or failed to add, evidence references and measured overhead. The shared recorder keeps these agent-reported observations separate from canonical verdicts. Selection does not expand execution authority. Keep planning, provider-backed review, foreground browser execution, and measured benefit separate. See agent skill operations.

Architecture notes

  • Native desktop binary, no server. SwiftUI/AppKit is the only desktop UI. It calls the bundled codevetter CLI through typed JSON receipts; the Rust engine lives in crates/codevetter-core/.
  • Multi-LLM provider: Anthropic, OpenAI, OpenRouter. Keys stored in user settings.
  • Three synchronized surfaces: SwiftUI, CLI, and MCP consume the same versioned Rust-owned receipt schemas. Do not fork business rules into the UI.
  • DB is rusqlite, not @tauri-apps/plugin-sql. Do not re-add plugin-sql (removed in the 2026-07-11 desloppification sweep). See docs/architecture/data-model.md.
  • Single package manager: pnpm. Do not reintroduce package-lock.json — dual-lockfile drift broke Cloudflare Pages in May 2026. See docs/knowledge/failed-approaches.md.
  • Nav (6 sections): Explore, Review, Testing, Performance, Runs, Settings. Full surface map in docs/product/surfaces.md.
  • GH Actions: ci.yml (native + Rust + automation), auto-release.yml → release.yml (signed/notarized native app), deploy-landing.yml, weekly.yml, and docs.yml. See docs/operations/.
  • Husky pre-commit runs the staged secret scan when available; pre-push runs lint + secret scan.
<!-- FLEET-GUIDANCE:START -->

Fleet Guidance

Adding Tasks

  • Track CodeVetter work in this repository's GitHub Issues.
  • Keep reusable cross-project automation in saas-maker/tooling/ and private portfolio metadata in Site Health, not SaaS Maker.

Using SaaS Maker

  • Do not use the retired SaaS Maker task queue or API as a system of record.
  • Site Health owns private portfolio metadata; saas-maker/tooling/ owns shared automation. CodeVetter remains independently versioned and deployed.

Free AI First

  • Prefer free/local AI paths for routine development and analysis: the free-ai gateway, local models, provider free tiers, and cached context.
  • Escalate to paid models only when complexity, correctness risk, or missing capability justifies the cost.
  • Note any paid-AI use in the task or handoff when it materially affects cost, reproducibility, or future maintenance.
<!-- FLEET-GUIDANCE:END -->

Documentation

The committed Markdown under docs/ is the source of truth for product knowledge, architecture, decisions, workflows, operations, learnings, and failed approaches. Blume (docs-site/blume.config.ts) is only the presentation/search layer — generated output (.blume/) is gitignored.

  • Navigation hub: docs/index.md
  • Current/shipped product truth: PROJECT_STATUS.md
  • Open work: GitHub Issues
  • Working on docs: docs/development/docs.md (rules, validation, Blume rendering)

Documentation maintenance rules

  1. One canonical home per fact. Don't re-explain what a doc already covers — link to it.
  2. Markdown is the source of truth. Code/config stays authoritative for implementation details and schedules.
  3. Don't duplicate code-discoverable facts. Link to the file or command.
  4. Mark unresolved work explicitly in GitHub Issues — do not invent information.
  5. Prefer docs/archive/<name>.md over deletion (with a stale- prefix and a one-line supersession note) so git rename history survives.
  6. Keep pages 150–300 lines. Split catch-all pages.
  7. Validate before commit: node scripts/check-docs.mjs (CI runs it via .github/workflows/docs.yml).
  8. Use git mv when reorganizing so history is preserved, then update inbound links.

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.