Skip to content

Fix the App Advisor

ewyct edited this page Jul 4, 2026 · 1 revision

Fix-the-App Advisor

Most auto-fix tooling patches the test when it breaks. The Fix-the-App Advisor does the opposite: when a failure is a genuine product regression, it suggests a fix to your application code.


How it works

  1. A test fails and AI failure triage classifies it as a real regression (not flaky, environment, or test-maintenance).
  2. The advisor localizes the likely root cause using the failing test's error, console errors, and the list of recently changed files — preferring the changed files.
  3. It returns a structured recommendation:
    • summary — one sentence: what's broken and the fix
    • confidence — 0.0–1.0
    • files[] — repo-relative path, optional startLine / endLine, currentSnippet, suggestedSnippet, and a rationale

It never writes code

The advisor has no write access — it only describes the change and hands the suggestion back to you or your coding agent. This is deliberately distinct from the test healer (which patches test code): the healer fixes the test, the advisor points at the app.

Where to use it

  • In the app, on a failing test that's been triaged as a real regression.
  • Via MCP: the lastest_suggest_app_fix tool returns the same structured suggestion so an agent (Claude Code, Cursor, etc.) can apply it in your repo. See MCP Server.

Possible statuses: app_fix_suggested, not_a_regression, no_suggestion, ai_unavailable.


See also

Clone this wiki locally