procoder README

The project's README from github.com/azrtydxb/procoder. As one markdown file: README.md.

Procoder — senior dev wisdom, automated

Make your AI coder work like a senior developer. One Go binary gives the agent a commit gate it cannot talk its way past, quality controllers that refuse to call unfinished work done, and a self-learning loop that turns every escaped bug into a permanently closed class. The agent stays in control — nothing ever touches your code behind its back.

CI Version License Agents

Quick start

/plugin marketplace add azrtydxb/procoder
/plugin install procoder
/procoder:init          # installs the tools this repository needs

That's Claude Code; Procoder also ships adapters for every agent — Cursor, Windsurf, Cline, Kilo Code, Roo, Kiro, Codex CLI, Copilot CLI, Gemini, OpenCode, and anything that reads AGENTS.md. See Every agent.

Before / after

Without Procoder, "done" is whatever the agent last said. With it, done has to survive the gate — this is a real run, verbatim, on a demo repo with an unformatted file, a conflict marker, and a staged junk file:

$ procoder check
unformatted  main.go  (run `procoder format "main.go"` for the result)
BLOCKING     notes.md:1  merge conflict marker left in the file
BLOCKING     notes.md:5  merge conflict marker left in the file
BLOCKING     .DS_Store  junk file staged — caches and garbage never belong in a commit
...
procoder gate: 0 clean, 2 unformatted, 0 unchecked, 1 out of scope, 8 hygiene finding(s) (3 blocking)

The agent gets the findings and the fixed content in the same turn; the binary never edits a file itself. And a tool that failed is never reported as clean — "unchecked" counts as failing, said out loud.

How it works

agent writes code ──► hook fires ──► binary computes findings
        ▲                                    │
        └──── agent reviews and implements ◄─┘

Two modes, one principle:

What's inside

The commit gate (procoder check) — formatting across the popular languages (Go, Python, JS/TS/HTML/CSS, PHP, Rust, C/C++, Java, Kotlin, Swift, Ruby, Dart, C#, shell — one canonical formatter each, the project's config always wins), git hygiene (conflict markers, junk, oversized files, AI-attribution lines), secrets, lint, ci and infra hygiene, and documentation health, all through one code path so check, git, and CI can never disagree.

That full set is what a repository that has adopted procoder gets — one with a .procoder/ directory, or an AGENTS.md naming procoder. In somebody else's repository only the checks that are true anywhere run (secrets, oversized files, conflict markers, junk, AI-attribution lines), and the ones that read file content see only the lines your commit wrote. procoder does not apply its conventions to a project that never asked for them, and every run says which mode it was in.

The quality chain — thinking before code, with a refusing controller at every link: a spec interview closes design gaps before anything is built (spec check blocks while sections are missing or questions open), a plan turns the spec into tasks an engineer with zero context could execute (plan check blocks placeholders), a backlog holds larger projects as milestones → epics → user stories seeded from specs and worked in scope-boxed sprints (one active sprint, explicit carry-over, closes that refuse), and a todo list tracks standalone work (todo close refuses until every acceptance criterion is checked, evidence is recorded, and the gate is clean — story closes carry the same rigor).

The self-learning loop — a pre-PR self-review catches reviewer-class findings before a PR exists; anything that still escapes becomes a lessons ledger entry whose adaptation (a linter rule, a rubric line, a pinning test) must land before the work counts as done. Downstream bot reviewers are the fallback net, not the net — and what that net catches is not lost either: procoder copilot-leak collects GitHub Copilot's auto-review findings, strips every trace of your code from them, and — only after you say yes on a terminal — files them as issues and records them as unlearned until someone writes the adaptation that closes the class.

The test domain — procoder test runs the repository's real suite with each ecosystem's canonical runner (go test, cargo test, the package.json test script, pytest, gradle/maven): PASS with counts, FAIL with the failing tests named, and NOT run, which is never the same as green. Coverage is reported where the runner measures it natively and never enforced. Set [test] policy = "block" and a green suite becomes part of "done" — the closes refuse while it is red or unverifiable.

The release controller — procoder release is the last refusal before a tag: the version in sync across every file you list, the changelog entry present, the tree clean, the gate clean, the suite green. Every failure arrives in one list, and on success the git tag command is printed for you to run. Procoder tags nothing itself.

The ten domains — security (gitleaks, semgrep, osv-scanner), best practices (lint with curated baselines), maintainability (dead code, complexity, plus deps freshness per ecosystem), performance (bench against a saved baseline — Go only, said out loud), documentation (broken refs, drift, diagrams, badges, adr decision records, this very README's completeness), clean code (formatting), testing, ci (pinned actions, timeouts), infra (Docker, Terraform, Kubernetes, Helm), and GitOps discipline.

The code index — ctags + SCIP, the agent's fast map: find, refs, callers, impact, unused, entrypoints.

Senior habits, encoded — engineering principles injected at session start (build ladder: reuse → stdlib → platform → minimum code; delegation: parallel subagents under a contract, watched and judged; ADHD/ASD-friendly formatting for complex answers — problem cards, decisions surfaced, noise filtered; all repo-overridable), deliberate corner-cuts marked and harvested as debt with revisit triggers, and an audit command that onboards any existing codebase with a triaged scorecard.

Replaces the plugins you are already running

Procoder absorbed three earlier tools, and running them alongside it means two sets of instructions competing for the same agent:

Full provenance map, including where the serena replacement stops: Influences.

Configuration

Everything Procoder owns lives in .procoder/ — plain files, made to be edited, and the repo's version always wins over the built-in default: config.toml (policies, thresholds), PRINCIPLES.md, the github templates, the docs/security rules, the review rubric, the lessons ledger. Full reference: Configuration.

The docs

The full story lives on the site, organised the way the Divio documentation system splits it: the tutorial (Getting started), the how-to guides (Ship a change), the reference (every command), and the explanation (the quality chain, how it's built).

What the reports mean

A file that could not be checked is never called clean. A task without fresh verification evidence cannot close. This README is held to a completeness check — a feature family it stops mentioning blocks the gate. No benchmark numbers appear here because none have been run; any future number will carry its method alongside it.

Where the rigor costs more than it returns, and where a check is narrower than its name, is written down rather than left to be discovered: Honest limits. What layer procoder occupies, and what it does not try to be: Where procoder sits.

The external evidence behind each premise, and the premises that have none, are separated and labelled in Research.

Implementation

One Go binary, no runtime dependencies, cross-compiled per platform into dist/ and committed with the plugin — no npm, no network at hook time, air-gapped included. go test ./... to develop; the design contract lives in the docs and supersedes anything here that drifts from it.

procoder (azrtydxb/procoder)

Searching Database…

What is this?A discipline layer for AI coding agents: one Go binary that gives the agent a commit gate it cannot talk its way past, quality controllers that refuse to call unfinished work done, and a self-learning loop for escaped bugs.
Is Procoder a plugin inside my coding agent or a separate tool I run myself?Both: a standalone Go binary plus plugin adapters for your agent. The agent runs its self-serve tools (check, lint, index); forced hooks fire on every write and session start and cannot be skipped.
How do I get it running?Install the prebuilt Go binary (cross-compiled per platform and committed with the plugin — no npm, nothing to build) and hook it into your agent; the quick start is Claude Code, and the docs site has a Getting started tutorial.
Which coding agents does it work with?Claude Code out of the box, plus adapters for Cursor, Windsurf, Cline, Kilo Code, Roo, Kiro, Codex CLI, Copilot CLI, Gemini, OpenCode and anything that reads AGENTS.md — over 20 agents. The binary has no runtime dependencies.
Does the full rule set apply to any repository, or only ones that adopted Procoder?Only where the repo adopted it — a .procoder/ directory or an AGENTS.md naming Procoder. Elsewhere only universal checks run (secrets, oversized files, conflict markers, junk, AI-attribution), seeing just the lines your commit wrote.
Does it need network access to run?No. It is one self-contained binary: no npm install, no network calls at hook time, so air-gapped setups are covered.
Will it touch my code behind my back?No — the binary computes and reports while the agent acts; it never edits repository files itself. The one exception, procoder prune --apply, removes superseded plugin copies from your cache, and only after being asked twice.
What does the commit gate actually check?One code path covering formatting (one canonical formatter per language: Go, Python, JS/TS, PHP, Rust, C/C++, Java, Kotlin, Swift, Ruby, Dart, C#, shell), git hygiene (conflict markers, junk, oversized files, AI-attribution lines), secrets, lint, CI and infra hygiene, and documentation health. procoder test runs the real suite (go test, cargo test, pytest, gradle/maven) — NOT run is never the same as green, and a file it could not check is never called clean.
What is the quality chain?Thinking before code, with a refusing controller at every link: a spec interview closes design gaps before anything is built, the plan must be executable by an engineer with zero context, larger work lives in a backlog as milestones, epics and user stories worked in scope-boxed sprints, and a todo refuses to close until every acceptance criterion is checked and the gate is clean.
What happens when a bug escapes anyway?A pre-PR self-review catches reviewer-class findings first; whatever still escapes becomes a lessons-ledger entry whose adaptation — a linter rule, a rubric line or a pinning test — must land before the work counts as done. procoder copilot-leak can also harvest GitHub Copilot's auto-review findings, strip every trace of your code from them and file them as issues, but only after you confirm in the terminal.
I already run superpowers, ponytail or serena — do I keep them?No — Procoder absorbed all three, and running them alongside means two sets of instructions competing for the same agent. Serena's symbol navigation became procoder index (ctags + SCIP: find, refs, callers, impact) with no MCP server to keep running; its symbol-level write tools were deliberately not adopted — the binary computes the change and hands you the diff.
Creator
azrtydxb
Size
192.1 MB
Stars
211
Age
2mo
Commits · 90 Days