Skip to content

Chalk Protocol

An open-source command-line tool that makes AI coding assistants prove their work, with tests and checks they cannot edit, before a change moves forward.

Role
Lead Engineer
Organisation
Chalk Agents
When
2026 - Present
Status
Beta

Results at a glance

enforceable gates
7
From acceptance criteria through held-out regression audits.
Source: Protocol specification
first-party agent CLIs
4
Claude Code, OpenCode, Codex CLI, and Gemini CLI.
Source: Provider matrix
runtime dependencies
0
A portable Node.js CLI with an offline one-minute demo.
Source: Published package

The problem

Coding agents can weaken visible tests, silently make product decisions, and still declare themselves done. Teams need a control layer outside the model that preserves intent and makes progress depend on evidence.

What David did

At Chalk Agents, where David is co-founder and CTO, he led the product and protocol architecture and built the CLI, the state model and the integrations himself.

  • Led the product and protocol architecture
  • Built the CLI, state model, lifecycle commands, and refusal gates
  • Implemented provider-neutral adapter contracts and first-party integrations
  • Authored the public demo, research-backed specification, and operating documentation

How it fits together

  1. A coding assistant starts the work

    Claude Code, OpenCode, Codex CLI, Gemini CLI

  2. P1 Criteria

  3. P2 Spec

  4. P3 Break-it

  5. P4 Verify

  6. P5 Review

  7. P6 Integrity

  8. P7 Audit

  9. The change moves forward only with evidence

Illustration of the order of checks. Every change passes all seven in sequence; step heights do not show effort.

Key decisions

  1. The record of the work lives outside the AI

    Specifications, decisions, test evidence and review notes are kept in a .chalk folder in the project, so progress does not depend on the assistant saying it is done.

  2. Tests the assistant cannot weaken

    Acceptance tests are locked. Held-out audits then check the work against test cases the assistant never saw, which catches work that only passes the visible tests.

  3. The tool refuses unsafe steps

    Its commands refuse to move work forward without evidence. Product decisions go to a person instead of being made silently by the assistant.

  4. Works with several coding assistants

    One integration contract, not tied to a single AI provider, with first-party support for Claude Code, OpenCode, Codex CLI and Gemini CLI.

  5. Nothing extra to install

    A portable Node.js command-line tool with zero runtime dependencies and a one-minute demo that runs offline. Chalk Protocol is developed using its own checks.

Summarised from the published project record and case study.

What happened

Chalk Protocol now drives a provider-neutral development lifecycle across four first-party agent integrations, refuses unsafe progress at the command boundary, and dogfoods the same gates on its own development.

The numbers and their sources are listed at the top of this page.

Tools and links

Have a project like Chalk Protocol?

The guided planner will start from this project and suggest related work.

What happens next

  1. You send a short brief

    The problem, who it’s for and your timing. A few lines is enough.

  2. I read it myself

    Usually within 24 hours, with the most useful next step.

  3. We agree the next move

    A Blueprint, a scoped build, or a simpler path if that’s the better answer.