Weekend Annoying Task Challenge: FixBug
FixBug is an AI-powered error diagnosis tool. You paste any error message from any programming language or platform and it tells you exactly why it happened and exactly how to fix it. Not a generic suggestion. Not a list of links. An actual diagnosis, specific to your error.
Vision & What the App Does
I am a CS student. And like every CS student, I write code that breaks constantly.
For a long time my debugging workflow looked like this — hit an error, copy it, paste it into ChatGPT, get an answer, paste the fix, move on. Repeat. Again and again.
It worked. But I was not learning anything.
The error went away but I had no idea why it happened. Next week, the same error would appear in a slightly different form and I would be back to copying and pasting like nothing had changed. I was outsourcing my understanding, not building it.
That is the annoying task FixBug is built to solve — not just the time spent googling errors, but the cycle of fixing without understanding that keeps you dependent on AI tools forever.
FixBug is a web application where you paste any error message from any language or platform and get back three things:
What went wrong — the root cause, explained clearly and specifically to your error.
Why it happened — the context behind the error so it actually makes sense, not just a surface level fix.
A pro tip — something actionable you can carry forward so this class of error never slows you down again.
The difference between FixBug and pasting into ChatGPT is intentional. ChatGPT gives you the answer. FixBug gives you the answer and makes sure you understand it. One makes the error go away. The other makes you a better developer.
Supported platforms include Python, JavaScript, Java, AWS, Docker, Kubernetes, SQL, and more. Language is auto-detected from the error — no extra input needed.
How I Built It
I wanted to keep the architecture as simple as possible — one specific problem, one clean solution, no unnecessary complexity.
The frontend is deliberately minimal — vanilla HTML, CSS and JavaScript, no framework, no build step. The entire UI is one screen: a text area for the error, language selector pills, and an Analyze button. Friction at this stage kills the whole product. If pasting an error and getting a diagnosis takes more than ten seconds, it is already slower than Google.
Key Decisions and Why
AWS Lambda with Function URL instead of API Gateway
One Lambda function handles the entire backend — it receives the error text, constructs the prompt, calls Amazon Bedrock, and returns the structured response. I chose a Lambda Function URL over API Gateway because this is one endpoint doing one job. The Function URL gave me a callable HTTPS endpoint with zero extra configuration — less surface area, less to explain, one less service in the architecture.
Amazon Bedrock with Claude
The AI core of FixBug. The decision to use Bedrock over calling an external AI API directly came down to one thing — keeping everything inside AWS. Bedrock provides access to powerful foundation models through a single API call without managing any model infrastructure. For a serverless application that needs to be fast and cost-efficient, this was the right choice.
Prompt Engineering Was the Real Work
Setting up Lambda and connecting it to Bedrock took under an hour. Getting the prompt right took significantly longer.
The challenge with error diagnosis is specificity. A model optimising to seem helpful will return a long, confident, generic explanation that sounds correct but is not specific to the exact error. That is worse than useless — it is the same problem I was trying to solve.
The fix came from constraint engineering, not description. Instead of telling the model what I wanted, I told it explicitly what I did not want — no generic explanations, no padding, every point must trace back to the specific error provided. I structured the output strictly: three sections always — what went wrong, why it happened, pro tip. If it cannot fill a section from the error alone, it keeps it short. A short accurate answer is better than a long padded one.
Lowering the temperature reduced creative embellishment. The biggest quality improvement came not from describing the output I wanted, but from explicitly forbidding the behaviour I did not want.
Challenges
CORS was the first confusing moment. The browser call to the Lambda Function URL failed while the same request worked fine in curl. The Function URL CORS configuration needed the CloudFront origin explicitly allowed. A quick fix, but a confusing five minutes.
The model's tendency to invent pro tips was the harder problem. Given a simple syntax error, it would return a confident pro tip about memory management or async patterns — completely unrelated to the actual error. The fix was an explicit instruction: the pro tip must relate directly to the error provided. If there is no relevant tip, return one sentence maximum. Telling the model that a short answer is the correct output was more effective than asking for a good answer.
AWS Services Used & Architecture Overview
Service | Role |
|---|---|
Amazon S3 | Hosts the static frontend — vanilla HTML, CSS and JavaScript |
Amazon CloudFront | HTTPS delivery and global caching in front of S3 |
AWS Lambda | Single function — receives error, calls Bedrock, returns diagnosis |
Lambda Function URL | Public HTTPS endpoint, no API Gateway needed |
Amazon Bedrock (Claude) | AI diagnosis — what went wrong, why it happened, pro tip |
Architecture Flow
User pastes error message ↓Vanilla HTML Frontend(Amazon S3 + CloudFront) ↓Lambda Function URL ↓AWS Lambda(prompt construction + Bedrock call) ↓Amazon Bedrock — Claude(structured diagnosis returned) ↓Three-part result displayed to user:What went wrong → Why it happened → Pro tipThe entire backend is serverless. Lambda only runs when someone submits an error — zero cost at zero usage, scales automatically under load, and stays entirely within AWS Free Tier.
What I Learned
The real value of AI tools is teaching, not just answering.
Building FixBug changed how I think about what AI assistance should look like for someone learning to code. Copy-pasting errors into ChatGPT creates a dependency loop — you fix the error but you do not understand it, so the same class of error keeps appearing. The pro tip section in FixBug came directly from this realisation. The goal is not just to fix the error. It is to make sure you are a slightly better developer than you were before you hit it.
Prompt engineering is constraint engineering.
The biggest quality improvement came not from describing what I wanted the model to return, but from explicitly forbidding what I did not want. No inventing, no padding, every point must come from the error itself. A model trying to be helpful will fill empty space unless you explicitly tell it that empty space is the correct output.
Serverless is the right architecture for this use case.
FixBug only needs to do work when someone submits an error. Lambda with a Function URL means there is no server running when no one is using the application — which is most of the time. The architectural simplicity also meant I could focus entirely on what mattered: getting the diagnosis right.
Vanilla HTML is underrated.
No build step. No configuration. One folder, upload to S3, done. For a focused single-purpose tool, a framework would have added more complexity than value.
Link to App & Repo
🌐 Live App: TBA
💻 GitHub: TBA
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article