GBot AI logoGBot AI

Get feedback on your code before anyone else sees it

Feedback is how developers improve, but waiting for a teacher or a senior reviewer is slow, and a short “needs work” teaches little. GBot AI reads code you paste or upload and explains what it would question, why it matters, and what to read next.

Feedback you can learn from

Every comment should answer three questions: what is the problem, why is it a problem, and where is it in your code. Ask GBot AI to quote the line it is talking about and to explain the reasoning behind each point. A comment you understand is one you will not need again.

Ask it to sort feedback into “will break”, “could break later”, and “style”. Beginners often fix style first because it is easy. The first list is the one that matters.

Common things it catches in learning projects

Missing checks for empty input or missing values, loops that change the list they are looping over, variables named after what they were instead of what they are, user input that reaches a database query without validation, and functions that do four jobs at once.

None of these are exotic. They are the patterns reviewers point out again and again, and learning to spot them yourself is a large part of becoming a stronger developer.

Use it before human review, not instead of it

Run your own checks first: does it compile, do the tests pass, does it do what the task asked? Then ask for feedback. Fix what you agree with, and write down what you do not understand so you can ask a person.

A clean report is not proof that code is correct. It means no problem was named in the code you sent. Security-sensitive code, payments, and anything touching other people’s data still need review by someone responsible for that system.

Worked example: reviewing a small function

Here is a short Python function from a learning project, and the review sorted the way this page recommends: what will break, what could break later, then style.

def average_rating(db, product_id):
    rows = db.execute(
        f"SELECT rating FROM reviews WHERE product_id = {product_id}"
    ).fetchall()
    return sum(r[0] for r in rows) / len(rows)
  1. Will break: a product with no reviews returns no rows, so len(rows) is 0 and the last line raises ZeroDivisionError. Decide what “no rating” should be, for example return None, and check for it first.
  2. Could break later: product_id is pasted straight into the SQL text. If it ever comes from a URL or a form, someone can change the query. Use a parameter instead, for example db.execute("SELECT rating FROM reviews WHERE product_id = ?", (product_id,)).
  3. Could break later: SQL can calculate the average for you with SELECT AVG(rating), which also avoids loading every row into memory for a popular product.
  4. Style: r[0] is fine for one column, but a short comment or a named row makes the intent clearer to the next reader.

The first two points are patterns, not one-off mistakes. Once you have seen an empty-input crash and a query built from raw input, you will start spotting them in your own code before anyone else does.

Example prompt

This is my solution to a to-do list exercise. Review it like a patient mentor: list what will break first, then what could break later, then style. Quote the line and explain why for each point.

Questions

Will it rewrite my whole project?

Only if you ask. For learning, ask for comments and explanations first, then make the changes yourself.

Does it connect to GitHub?

No. Paste the code or upload the files you want reviewed. GBot AI does not open or comment on pull requests.

Start with GBot AI