Protodog
What this is
Protodog is an execution protocol for agent-assisted engineering: one engineer's working
methodology encoded as installable machinery for Claude Code and local Codex — skills as entry points, hooks and
validators as enforcement, Markdown artifacts in the repository as the only execution state. It
does not orchestrate models or generate code; it constrains how delegated work enters,
progresses, and reaches main, so every session runs under the same contract instead of whatever
the model woke up believing.
The concepts, in one pass. The engineer enters the Task profile — a bounded objective, one
agent — never the protocol itself. Context
moves through a provenance chain: inputs/ (unvalidated material, including anything an external
model produced), specs/ (reconciled intent, premises verified against the repository, immutable
once a plan binds it), plan/ (live
state — steps, acceptance criteria, gates, decisions, all under stable IDs). Gates are the
human-in-the-loop core — decision, authorization, evidence — and authority is explicit:
model capability, tool access, and prior success never create permission. Cadence —
interactive by default, continuous by explicit override — sets how often the engineer is
consulted, and changes nothing else. Assurance scales
with risk, and an audit means independent, adversarial, and undirected within scope — executed
by a different vendor's model through a hash-pinned read-only launcher, never by the author
grading itself.
The discipline is mechanical wherever it can be: hooks deny engineer-owned Git (anything
that publishes or syncs main, forces, or rewrites published history); validators reject malformed plans, marker/status drift,
unmapped acceptance, edits to bound specs or audit reports, terminal plans still carrying live
obligations or unsettled acceptance, and lifts whose destination row does not exist. Enforcement
sits at the host's Write, Edit, and Bash tools: shell commands are checked after they run against
a snapshot of plan/ and specs/, ids are held stable against HEAD once execution begins, and a new register id may not collide with one already landed on origin/main. Prose is reserved for judgment. Git is a split contract — the agent checkpoints
freely inside its managed worktree, the engineer owns the commit to main, and one Task, or a
declared line of Tasks, reaches main as exactly one commit. Plans die on schedule: obligations close or lift to
a register, committed directories are swept, Git history is the archive.
What that buys: no per-session variance in how delegation works; no silent agent overreach; no
state rotting in chat scrollback — resumption is the plan plus the repository, nothing else; no
"done" without evidence — acceptance maps to checks, and a pass cannot be manufactured by
weakening one; no self-graded review; contained Git blast radius; no plan archaeology — the
working tree carries only what still decides something.
This file is the install and operations guide; the normative authority is protodog/core/, and
this README never overrides it.
Contents
Prerequisites
- .NET SDK ≥ 11 (hooks, validators, and the audit launcher are file-based apps; no packages, no Node)
- bash, git
- Claude Code or local Codex CLI/desktop for Task execution
- An authenticated opposite-vendor CLI when an independent audit is selected: Codex for Claude
execution, Claude Code for Codex execution
The Codex adapter targets local tool execution (tested against CLI 0.163.0 hook payloads).
The Claude audit backend uses the --safe-mode and restricted-tool CLI surface available in
Claude Code 2.1.304. Older clients must be checked for those flags before use. Concurrent writer
support remains Claude-only.
Install
Claude Code
Once per engineer — the plugin follows you across repositories. This repository is a Claude Code
plugin marketplace (kennel) serving the protodog plugin. In Claude Code:
/plugin marketplace add <path-or-git-url-of-this-repo>
/plugin install protodog@kennel
That single install gives every repository you open the skills, the pinned challenge agent type,
and the enforcement hooks — no per-repo copies, no settings merges. Per-repo opt-out: /plugin disable protodog@kennel in
that project. (protodog/hooks/settings-fragment.json remains only as the wiring fallback for a
repository that vendors protodog/ directly.)
Codex
Build a self-contained local marketplace from the same core, validators, and skills. The output
must be a new directory; use a new versioned destination when updating. Generated packages are
not maintained source copies. From this repository: