Repair Contract

Repair contract is a chat UX pattern that structures retries by showing what changed between attempts, what constraints remain fixed, and why the new run should be better. It turns blind regeneration into an auditable, user-directed repair flow. This helps users debug output quality faster and builds trust by making retry behavior legible rather than stochastic.

Share

When to use

Important for high-stakes chat workflows where users iterate on drafts, analysis, or decisions and need predictable, explainable retries instead of random variation.

Use this pattern in your project

Copy this prompt to generate a production-ready implementation in Cursor, Claude Code, Lovable, or any AI coding agent.

Generate a production-ready implementation of the "Repair Contract" AI interface design pattern.

Pattern Definition:
Interactive Demo
Restart demo

Last answer used the wrong account. Prefer Acme Corp billing for invoice questions.

Get new patterns by email

Weekly AI interface UX notes and resources on Substack, no spam, unsubscribe anytime.

Subscribe on Substack