← Back to library

Turn user bug reports into clean, de-duplicated tickets

In a Hacker News thread about production uses of MCP, a developer described an AI tool in their product that takes bug reports and feature requests from users, searches the tracker for duplicates, writes the ticket and submits it, using a low-cost model and the issue tracker's MCP server rather than a custom API adapter.

  • OutcomeLet users describe a problem in plain words; an agent checks for duplicates, writes the ticket and files it.
  • SetupAn afternoon+
  • LevelIntermediate
  • Creditmuzani on Hacker News
View original
Works with
ClaudeCustom agent

Published Oct 20, 2026Updated Oct 20, 2026AI dry run on sample input: passed Oct 20, 2026Source verified Oct 23, 2026

When should you use it?

  • Users report bugs by email or chat in free text
  • The tracker fills with duplicates
  • Support staff rewrite reports into tickets by hand

Not for: Security vulnerability reports, which need a private channel; Auto-closing or prioritizing tickets without review

What do you need, and what do you get?

You need

  • Issue tracker with an MCP server or API (e.g. Linear, Jira)
  • A ticket template
  • A user's report

You get

  • A filed ticket or a link to the existing duplicate
  • A reply to the user

How does it work, step by step?

  1. Connect the trackerUse its MCP server with a token that can search and create, not delete.
  2. Search firstLook for open issues with the same symptom before writing anything.
  3. Write to templateTitle, steps to reproduce, expected vs actual, environment.
  4. Confirm and replyFile it or add to the duplicate, then tell the user what happened.

The prompt

Our own prompt, inspired by muzani on Hacker News and written to work in Claude and Custom agent. Values in lime are placeholders.

Fill in the blanks (optional; the copied prompt uses your values)

Prompt2 variables
You turn user reports into tickets in {tracker}.
Report: {user_report}
1) Remove secrets, passwords and personal data; note what you removed.
2) Search open issues for the same symptom or area. If one matches, show it and draft a comment adding this report's new details. Stop there.
3) Otherwise write a ticket: title (symptom + area), steps to reproduce, expected vs actual, environment, user impact.
4) If steps to reproduce are missing, draft one short question to the user instead of guessing.
5) Show me the ticket or comment before filing. Never close, merge or reprioritize issues.

Inspired by muzani on Hacker News: Comment in Ask HN: Who is using MCP in production?. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.

What can go wrong?

  • Duplicate matching misses reports phrased differently; search by symptom and by area.
  • Users paste secrets and personal data; redact before filing.

Our take

This is a short comment, but it describes something running in production with a clear scope: search, write, submit. That narrowness is why it works. The details we would copy are the search-before-create step, which cuts duplicates, and the choice of the cheapest model that is accurate enough, which keeps cost per report predictable. We would add two things the comment does not mention: redaction, because users paste API keys and customer data into bug reports, and a review queue for the first weeks so you can measure duplicate detection on real traffic. In our dry run with a mock tracker of 30 open issues and four sample user reports, our prompt matched two reports to existing issues, wrote two new tickets in the template, removed an email address from one, and asked one clarifying question when a report had no steps to reproduce. For SaaS teams and MSPs this is a low-risk first agent because it never changes production systems.

Where the time goes back: Support staff stop rewriting reports into tickets, and engineers see one well-formed ticket instead of five vague duplicates.

FAQ

Why use a cheap model?
The developer runs it in production for every report, so cost per run matters and the task is narrow. Test accuracy on your own past tickets before choosing.
Why MCP rather than the tracker's API?
Their view was that an API integration ends up needing a natural-language adapter anyway, and a well-designed MCP server already provides one.

Source and credit

Inspired by muzani on Hacker News. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.

Inspired by
Comment in Ask HN: Who is using MCP in production?
Creator
muzani on Hacker News
Published on
Hacker News
Original date
Sep 3, 2026
License
Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
Originally for
Custom agent
AI dry run
Oct 20, 2026: passed. Dry-run tested by our AI test agent on sample input. Search-before-create worked; redaction applied; asked instead of guessing.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Oct 23, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

Are you the creator? Claim or correct this page.

More in Customer Support

All 28 Customer Support playbooks →

Related playbooks

Customer SupportPrompt✓ AI dry run

Clean up saved support replies before your bot reuses them

Read every saved answer your support bot can pull from as if it were about to be sent to a stranger, rewrite the risky ones into generic answers and set rules so new ones are written that way.

Credit: Pierre-Laurent Medori

Under an hour
Customer SupportPrompt✓ AI dry run

Find the bugs in your intake chatbot with one test chat per rule

Write a small set of test chats, each aimed at one rule in your bot's field spec with the stored values you expect written down first, and catch errors a large pile of happy-path chats misses.

Credit: Adam (Adam13y)

Under an hour
Customer SupportWorkflow✓ AI dry run

File orphaned customer replies into Freshdesk

Support questions sent to the wrong address reach your help desk, while everything else stays out of the queue.

Credit: u/flexrc on r/n8n

An afternoon+
Customer SupportWorkflow✓ AI dry run

Stop a booking agent from double-booking after a timeout

Change an appointment agent so that a timed-out booking call counts as unknown rather than done, the agent tells the customer a person will confirm instead of saying they are booked, every write carries a request key so a retry cannot create a second appointment, and a forced-timeout test runs after every workflow change.

Credit: ccch713

An afternoon+