gdp-wired
Agents & reference · With a coding agent

GuideAgents & reference

With a coding agent.

gdp-wired was built for agents to write: the skill teaches yours the workflow in this guide (write the rule as the code does it, state the laws a reviewer would ask about, read a refused proof, keep the broken variant).

On this page
  1. Install the skill
  2. Consult the prover via MCP
  3. Example prompts

Install the skill#

Let your agent consult the prover while it codes#

Since 0.50.4 the package installs gdp-wired-agent-consult, an MCP server (stdio, no model credentials, no network) that an agent calls in the middle of an edit instead of at the end. It sends the rule and the laws as data, never code to run, and gets checked answers back:

prove
Each law, proven and checked, or not. Only proven and checked together count as a proof; ok alone isn't one.
why_not
A real run from the start that breaks the law, in the rule's own names. Finding no run doesn't prove the law.
suggest
The helper laws that would prove it (the search of When the law needs a helper), returned only with the laws they were checked with.
check_change
The same laws on the rule before and after an edit: what newly breaks, with its run, and which proofs were lost.
status
What was checked for a revision, by its digest; never a label the caller supplies.
json
{
  "mcpServers": {
    "gdp-wired": {
      "command": "/absolute/path/to/node",
      "args": ["/absolute/path/to/node_modules/gdp-wired/dist/core/agent-consult/cli.js"]
    }
  }
}

A sixth tool, check, reads a TypeScript, JavaScript or Python file the way gdp-wired-cli check does. It is off until the server itself names trusted folders, and it may run project code, so it is not a sandbox. A proof here is about the model the agent sent: it doesn't certify that the shipping code matches it. Agent-consult setup and scope.

Ask for the claim in words#

With the skill installed, ask for the claim in words:

  • “Prove with gdp-wired that our refund flow never refunds an order twice.”
  • “Model the per-user rate limit in limits.ts as a gdp-wired rule and hold the existing code to it with compare.”
  • “This law came back stuck: 'sat'. Is it a bug or a missing helper law?”