Skip to content

ShowcasedPath twoDeveloper & ops tooling

The Code Exorcist

A bug-triage app where an AI diagnoses pasted errors and code, and a human approves or rejects the fix.

by Vidisha Gupta

What it does

A developer pastes a stack trace. The agent proposes a fix for review.

A developer submits an error trace together with the code that caused it. An LLM reads both, names the bug category, sets a threat level, explains the root cause, and writes a fix.

A reviewer then opens the case in Sanity Studio and either approves the fix or sends it back for another pass. Each decision is logged with a timestamp, and the public page updates live with stats and a per-case timeline.

The problem

New bug reports need a quick first read before anyone spends review time.

When a bug report arrives, teams want a structured first pass before committing an engineer's time. Diagnosing from the error text alone often misses the real cause, so the model has to see the code too. And an AI fix should not ship without a person signing off, with a record of who decided and why.

What they built

Each bug links to a separate workflow state document.

  • haunting

    One submitted bug: error trace, code snippet, category, threat level, root cause, and proposed fix.

  • workflowState

    The bug's current stage plus a history log of actor, action, timestamp, and notes.

The stack

Next.js routes call the model; Studio holds the decision.

  • Content Lake
  • Sanity Studio v3
  • Next.js
  • React
  • TypeScript
  • Groq API
  • gpt-oss-20b
  • Tailwind CSS
  • Vercel
  • Claude

The hard part

Custom Studio actions replace publish, so approval and rejection share one workflow.

Workflow status lives in its own referenced document with stages from uncontained to pending review to banished, rather than a flat field. The agent moves a case forward; two custom document actions let a reviewer approve or reset it, and both directions write to the same history.

Because the workflow is separate from the bug content, it can be queried on its own. A GROQ listener pushes every change to the frontend without reloads.

Live app ↗

More from path two

See the full showcase