← Catalog

@xoxoai/checkmate

The QA system of record for an agent software factory

Package

Install

Install with PiG

pig install npm:@xoxoai/checkmate

Install with Pi

pi install npm:@xoxoai/checkmate
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "skills": [
    "./plugin/pi/skills"
  ],
  "extensions": [
    "./plugin/pi/checkmate.mjs"
  ]
}

README

Written by the package's publisher, shown as published in version 0.8.4 (README.md). PiG does not review it.

□ □ ■ □

Checkmate

The QA system of record for an agent software factory.

npm version

Checkmate turns a ticket into tests that an agent can run. It records the open questions, guides each test run, and keeps the evidence and every decision in one database. Agents and people read and write that record.

The QA loop on ticket SHOP-12: QA explores build b1 and finds 3 gaps and 2 defects. The oracle answers, the planner saves plan@2, and QA follows up. The oracle hands the defects to the factory. Build b2 has 1 defect and 2 new gaps; the oracle escalates the gaps to a human, the planner saves plan@3, and the factory delivers build b3. QA finds nothing new, the oracle accepts and promotes the tests, and a permanent run confirms them.

The Human review UI shows what waits for you: the evidence, findings and gaps. You can also chat with your harness directly.

The review UI on sample records: the plans list with rules on two builds, the checkout plan on Needs you, a finding with its screenshot and JSON evidence accepted as a defect, a gap answered, a chat turn that saves a gap answer, and a list of more features.

In one minute

  • The planner turns a ticket into rules, tests, and open gaps.
  • The oracle answers gaps, approves plans, and accepts results. It is an agent or a person.
  • QA tests each build. Code compares each check with its expected value.
  • The factory builds the code and starts the app.
  • Checkmate starts the planner and the testers through Claude Code or Pi. It does not change code or start the app.
  • The QA record is kept in one SQLite file, .checkmate/checkmate.db. Share project tool recipes in Git.

Core Idea

Traditional control systems might regulate temperature, aircraft altitude or motor speed. The Checkmate-enabled factory attempts to regulate something much more abstract: the alignment of software behavior with human intent.

QA sits at the center of the agentic dev lifecycle and indirectly drives each iteration through contracts, policies and a system of record, instead of being an afterthought at the end.

Two diagrams. Conventional agentic development is a line: intent, planning, coding, testing, with a loop from testing back to coding to fix failures. Checkmate-enabled development puts Checkmate in the centre, holding contracts, policies, evidence, decisions and the system of record. Human intent flows to the oracle, and the oracle connects to Checkmate. The planner and the QA agents connect to Checkmate on its sides. The factory connects below it, and its builds go to the QA agents.

Early evidence shows that it helps the agentic loops to self-align better with true intent.

A closed-loop control analogy. Intent is the reference value. The factory is the controller. The software is the actual state. Checkmate and QA measure the divergence from evidence, failures and coverage, and feed it back to the controller. The oracle can clarify the reference. It is a conceptual analogy, not a formal model of Checkmate.

At core it is a double-loop system. It is inspired by TDD/BDD concepts applied with a twist specific to the agentic era.

A conventional control system usually attempts to minimize the difference between its output and a given reference value. But software development is different: often we discover that the reference value itself is wrong, and sometimes only after probing the system with tests and experiments. Chris Argyris and Donald Schön described a similar distinction in organizational learning. Single-loop learning corrects actions against existing objectives, whereas double-loop learning also questions the assumptions and objectives themselves.

Checkmate's distinction between defects and gaps maps onto this concept.

Two feedback loops. The traditional TDD loop goes red (a failing test), green (implementation), refactor (improve code), and back to red. Checkmate's broader loop goes: express intent as requirements, question intent for gaps and ambiguities, establish a contract with the oracle and planner, implement in the factory, observe reality with QA and evidence, and reconcile whether it is a defect or an intent gap. Reconcile feeds back into the contract. Validated behavior is accepted and promoted.

Front-loading QA like this has clear benefits:

  • Catches gaps and ambiguities early: Defects and missing edge cases surface where agentic development is most critical, as the core idea becomes exponentially harder to adjust for agents with each commit.
  • Sharpens requirements, reduces friction: Planned features often become simpler - or some even turn out to be redundant - keeping the intent that matters.
  • Lowers delivery costs: Teams stay focused on real business needs and waste less time on late-stage or post-release fixes.

Limitations

  • CLI runs with --allow don't inherit host tools: In the Claude Code plugin, testers inherit the tools of your host session, including its integrations (such as a Jira MCP server); only the clerk is limited to Read and Write. In Pi, explorers use the tools and MCP servers configured in your host. In a CLI run that passes --allow, explorers only get the tools you explicitly pass and cannot ask for more.
  • Plan first, unless you accept the above limitations: Because of those tool limits, start by running the planner. It runs directly in your host environment, so it can read Jira tickets and other external sources before handing tasks off to explorers and testers.

Solo mode: Claude Code or Pi

Claude Code:

/plugin marketplace add dawiddiwad/checkmate
/plugin install checkmate@checkmate
/checkmate:test the change in JIRA-123 at http://127.0.0.1:4173
/checkmate:ui

Pi:

pi install npm:@xoxoai/checkmate -l
/checkmate test the change using checkmate in JIRA-123 at http://127.0.0.1:4173
/checkmate-ui

You are the oracle. The plugin and the extension ship the CLI. See Start Checkmate.

Team mode: the CLI in a factory or CI

npm i -g @xoxoai/checkmate
checkmate setup --url http://127.0.0.1:4173 --target shop \
  --data environment --policy "Each run gets fresh data."
checkmate plan open checkout --target shop@1 \
  --objective "Verify checkout totals." --source JIRA-123
checkmate delegate plan checkout --allow Read --allow Bash
checkmate status checkout

For pipelines, see Exit codes. Both modes need Node.js 24.12.0 or later, and Claude Code or Pi: Requirements.

Documentation

TopicRead
Install and a first testStart Checkmate
Local QA as the oracleLocal QA with a human oracle
Factories and CIUse Checkmate from a factory
Commands, states, recordsCLI and record reference
ContributingDevelop Checkmate

License

MIT