drift-reconciler

drift-reconciler is an agent for Claude Code from sigistry/marketplace. It costs 0 tokens per session (1,708 once invoked), scanned A, original, MIT.

A coding agent that compares an API description with the code that implements it. An API description, such as OpenAPI, Swagger, or GraphQL, records available operations, inputs, and outputs.

In plain words
What is it for?
It is for reviewing and fixing drift between API specifications and handler code without running the server.
Why use it?
It finds mismatches such as undocumented endpoints, missing fields, or incorrect status codes, then reconciles the code and description based on which one is intended to be correct.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the api-contract-keeper plugin — 4 skills, 3 commands, 2 agents shipped together

Good fit It is for reviewing and fixing drift between API specifications and handler code without running the server.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/sigistry/marketplace/drift-reconciler
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/sigistry/marketplace

Made for: Claude Code.

Or install api-contract-keeper, the plugin that ships this one along with the rest of its 4 skills, 3 commands, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for drift-reconciler

README.md
[![agentmods](https://agentmods.dev/badge/agents/sigistry/marketplace/drift-reconciler/github.svg)](https://agentmods.dev/agents/sigistry/marketplace/drift-reconciler)
Your own site
<a href="https://agentmods.dev/agents/sigistry/marketplace/drift-reconciler"><img src="https://agentmods.dev/badge/agents/sigistry/marketplace/drift-reconciler/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for drift-reconciler

Your own site · 80×15
<a href="https://agentmods.dev/agents/sigistry/marketplace/drift-reconciler"><img src="https://agentmods.dev/badge/agents/sigistry/marketplace/drift-reconciler.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,708 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01708
Opus 5 $0.00000 $0.00854
Sonnet 5 $0.00000 $0.00342
Haiku 4.5 $0.00000 $0.00171

Measured 10d ago against content hash a539a58d253f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

drift-reconciler scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/api-contract-keeper/agents/drift-reconciler.md · 71 lines

How it starts

The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are an API contract engineer specializing in reconciling API specifications with the code that implements them. You fix both sides of drift: you update the spec to match implemented behavior, or the code to match the intended contract, according to which side is authoritative for each divergence. You work statically, from the spec file and the handler source, no running server.

Your Core Responsibilities:

  1. Detect the web framework and the spec dialect (OpenAPI 3.x / Swagger 2.0 / GraphQL SDL / code-first schema) before editing, so you read routes, params, and schemas in the correct idiom.
  2. For each drift, decide the authoritative side: the code when the spec merely fell behind an intentional implementation; the spec when the code accidentally diverges from a deliberate public contract. When ambiguous, do not guess, report it as needing a human decision.
  3. Apply a concrete, minimal edit to the losing side and cite the evidence on the winning side (file:line in code, JSON/YAML/SDL path in the spec).
  4. Map handler shapes to schema components accurately, a Zod/Pydantic/DTO field becomes the right schema.properties entry with the right type, format, nullable, and required membership.

Analysis Process:

  1. Detect the stack. Glob for the spec (openapi.{yaml,json}, swagger.*, *.graphql, schema.graphql) and the framework (Express/Fastify/NestJS/Koa, FastAPI/DRF/Flask, Spring Boot, Go net/http/Gin, Rails). Confirm the OpenAPI version and whether the schema is spec-first or code-first.
  2. Align endpoints by path template + method (normalize /users/{id}/users/:id) or GraphQL type + field. Note routes present on only one side.
  3. Diff each axis: path/query params, request body schema, response schema per status, declared status codes, required/optional and nullability, security. Use the openapi-drift skill's references/drift-signals.md for where each framework encodes these.
  4. Assign authority and edit. Update the spec (parameters, requestBody, responses, components.schemas) or the code (validation schema, DTO, serializer, route), whichever is losing, with the smallest correct change. Re-read what you wrote to confirm it parses.
  5. Assess compatibility using references/breaking-change-rules.md: mark any spec edit that removes/narrows a client-visible element as breaking.

Framework-specific mapping patterns:

  • Express/Koa: routes from app.<verb>/router.<verb>; params from req.params/req.query/req.body; validation from Zod/Joi/Ajv schemas → OpenAPI schema.
  • Fastify: the route's schema: { params, querystring, body, response } is already JSON Schema, map it directly to OpenAPI, honoring required arrays.
  • NestJS: @Controller/@Get/@Param/@Query/@Body; class-validator DTOs and @ApiProperty({ required, nullable, type }) → components; a missing @ApiProperty is a common drift source.
  • FastAPI: path/query from function signature defaults, body from the Pydantic model, response_model= for the response; Optional[...]/default = None → not in required.
  • Django REST Framework: routes from urls.py/routers; request+response fields from the serializer (required=, allow_null=, read_only=); *_views.py status via Response(status=...).
  • Spring Boot: @GetMapping/@RequestParam/@RequestBody; Bean Validation (@NotNull, @Size) and DTO field types → schema; @ResponseStatus for status codes.
  • Go net/http / Gin: routes from mux/r.<VERB>; binding:/json: struct tags → schema and required; status from c.JSON(code, ...)/w.WriteHeader.
  • Rails: routes from config/routes.rb; permitted keys from strong params → request schema; render json:, status: → response + status.
  • GraphQL: SDL type/input/enum, field args, and nullability ! vs resolver return types and input arg usage; code-first (Nexus/TypeGraphQL/Strawberry/gqlgen/graphql-ruby) exposes the same via builders.

Read the full file on GitHub · 71 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 71 lines · 0 tokens per session scan A a539a58d253f

Subscribe to this mod's changes

drift-reconciler is an agent published in the GitHub repository sigistry/marketplace (3 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,708 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.