• You report a bug, and five AI agents take it from there: triage, investigation, fix, testing and review.

  • Every step is visible on the ticket page, with evidence attached: the line that crashed, the patch, the test results.

  • The agents cannot merge anything. A person reads the diff and the test evidence, then presses approve.

  • In our demo, a ticket goes from "reported" to "ready for review" in 40 seconds.

We built a cozy town where AI agents fix your bugs

Ticket2fix: from support ticket to reviewed fix, with a human in charge. Built for the Switch hackathon.

Here is the sample ticket we use in our demo: "Payment page crashes on invalid coupon."

What you see on the website

  • A progress bar that shows which stage a ticket is in.

  • An agent activity feed, a timeline of every message and handoff, with the evidence each agent attached.

  • A code diff viewer, with added lines in green and removed lines in red.

  • A test results panel, with pass or fail for every test and a tag on the new ones.

  • A decision card where you approve or request changes.

  • An interactive town: click a character to report a bug, watch the agents, review a fix or read the guide.

You can view the demo below:

The problem: bugs take a whole relay race

Ever reported a bug and then waited... and waited? We have too.

Behind the scenes, fixing one bug is a relay race. Someone reads the report. Someone digs through the code. Someone finds the cause, writes a fix, runs the tests and reviews the change. Finally someone approves it. Every handoff costs time, and a little context gets lost each time the baton is passed.

For the Switch hackathon we asked ourselves: what if a small team of AI agents could do the boring detective work, and a human only had to make the final call?

That is how Ticket2fix was born.

Each character is an agent with one job:

Triage AgentUnderstands the report, finds the affected feature and opens the investigation task.

Code Investigation AgentReads the code and logs and points to the likely root cause.

Fix Agent Writes a patch and explains why it should solve the problem.

Testing AgentRuns the tests in an isolated Docker sandbox and reports the evidence.

Reviewer AgentChallenges the fix and either approves it or sends it back.

The one rule we never broke: agents propose, humans approve

On day one we agreed on a single rule, and it settled a lot of arguments before they started:

The agents can investigate, write code and run tests. Only a person can approve a change.

Test results come from a real Docker run, not from an AI saying "looks good". Nothing becomes a pull request until you have read the code diff, checked the test evidence and pressed Approve & create PR. If something looks wrong, you write feedback, press Request changes, and the ticket goes back to the Fix Agent. Agents propose, humans approve

Our idea: a town where every character has a job

A real run, step by step

  1. Triage: the agent works out that the problem is in checkout and coupons, and opens an investigation task.

  2. Investigation: the root cause is that apply_coupon() assumes the coupon lookup always returns an object. An invalid code returns None, which raises an AttributeError at payments/coupons.py:42.

  3. Fix: the agent proposes a patch that validates the coupon before using it and raises a friendly InvalidCouponError. The patch is +6 lines and −1 line.

  4. Testing: the suite runs in Docker. 25 passed, 0 failed, including a new regression test for this bug.

  5. Review: the reviewer agrees that the change is minimal, scoped to coupon handling, and breaks nothing else.

  6. You: the ticket status becomes awaiting approval. You read the diff, check the tests and decide.

They talk to each other through Switch, hand work over, and show their evidence before anything reaches you.How a ticket becomes a fix

Five agents work in turn. If the tests fail or the reviewer objects, the ticket goes back to the Fix Agent.

How Ticket2fix is built

  • Website: React with Vite and Tailwind CSS. React Query keeps the ticket page fresh by polling the backend.

  • Backend: Python with FastAPI, storing tickets and agent events in SQLite.

  • Testing: the Testing Agent runs code inside Docker, so a broken patch can never touch our own machines.

  • GitHub: a GitHub service prepares the pull request once a human approves.

  • Switch: an adapter lets the agents share a team room and hand work to each other.

What we learned

  1. Decide who decides. "Agents propose, humans approve" ended arguments before they started.

  2. Show the evidence. An activity feed with the failing line and the test output made the agents feel trustworthy instead of magical.

  3. Integration is the real work. Joining a frontend and a backend that were built separately, fixing Git merge conflicts, and chasing a stubborn 502 error taught us more than building either piece alone.

  4. Honest status beats big claims. Saying what works and what does not made our project easier to trust.

  5. Design matters even in a hackathon. A friendly town with mascots made a technical tool feel approachable.

What it still gets wrong

Passing tests do not prove a fix is right. A patch can pass every test and still miss the real problem.

That is exactly why a person has the last word, and why the reviewer agent challenges the test evidence instead of just counting passes.

  • Small, clear bugs work best. A crash with an error message is easy to investigate. A vague “it feels slow” ticket is much harder, and the agents will often need more detail from you.

  • The test sandbox only covers Python projects for now. It runs standard pytest suites in an isolated container. Other languages would need their own test images.

  • One reviewer, one shared secret. Approval uses a single token held by the human reviewer. That is fine for a demo and a small team, but a real deployment needs proper accounts and permissions.

  • Everything runs one request at a time. Analysis, testing and publishing each happen in a single request, so a very long job could time out. Streaming progress live would be the next step.

  • We stop at a draft pull request. There is deliberately no merge button. A person reviews the pull request on GitHub and merges it.

Try it

Built for the Switch hackathon by team HallucaNation. Agents propose, humans approve.

Create a free website with Framer, the website builder loved by startups, designers and agencies.