mauhpr

Constraintloop — Development skill for Claude Code

Development community

Evidence-driven completion contracts and bounded convergence loops for coding agents.

How to install Constraintloop

This entry records only its repository, not the path inside it, so there is no exact command to give. Open mauhpr/constraintloop and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Constraintloop does

Evidence-driven completion contracts and bounded convergence loops for coding agents.

Alternatives in Development

  • PaperSpine — PaperSpine is a motivation-driven skill for learning from strong academic papers, building a paper’s central a 5k ★
  • TokenEconomizer — Experience-Driven Black-Box Cost Control for Coding Agents 3.4k ★
  • Domain Driven Design — Apply DDD patterns and bounded contexts 663 ★

README

ConstraintLoop

[![CI](https://github.com/mauhpr/constraintloop/actions/workflows/ci.yml/badge.svg)](https://github.com/mauhpr/constraintloop/actions/workflows/ci.yml) [![codecov](https://codecov.io/gh/mauhpr/constraintloop/branch/main/graph/badge.svg)](https://codecov.io/gh/mauhpr/constraintloop) [![PyPI](https://img.shields.io/pypi/v/constraintloop)](https://pypi.org/project/constraintloop/) [![Python](https://img.shields.io/pypi/pyversions/constraintloop)](https://pypi.org/project/constraintloop/) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

ConstraintLoop is an evidence-based completion gate for AI coding agents. Instead of relying on a human to inspect every generated line, it requires the agent's work to pass an explicit, versioned contract of tests, static checks, metrics, artifacts, and independent model rubrics.

The central distinction is deliberate:

  • Deterministic constraints produce reproducible evidence: exit codes, parsed metrics, and validated artifacts. Required deterministic failures block autonomous completion. A human may explicitly waive an exact local evidence snapshot with a non-empty reason; CI ignores every waiver and remains blocking.
  • Non-deterministic constraints apply a written rubric through OpenAI, Anthropic, or any command that speaks ConstraintLoop's JSON protocol. They are advisory by default. A required rubric must run at least twice and declare a majority quorum.

ConstraintLoop supports Claude Code, Codex, and Gemini CLI through their hook lifecycles. CI is the final authority: it ignores local caches and human waivers.

Bounded convergence loops are implemented. The design keeps ConstraintLoop in control of evidence, budgets, and stopping while native Claude or Codex loops perform at most one requested repair per transition. See [docs/convergence-loops.md](docs/convergence-loops.md).

Completion loops can also require the current coding ses