DEV Community

Cover image for AI powered code debugging extensions
Brian Douglas
Brian Douglas

Posted on

AI powered code debugging extensions

GitHub Copilot is nice for autocompletion, but 80% of the coding is debugging. @musabshakil shares a quick demo in his DEV post, which I encourage you to watch.

header image was generated using midjourney

What is MusabShakeel576/

The TLDR; is you can copy the error message and get a suggested solution from the AI. Quickfix AI is also in its alpha phase, so expect bugs and report them to the author via the GitHub repo.

GitHub logo MusabShakeel576 /

Two powerful AI-powered extensions to simplify your browsing and coding experience. is an ambitious project made up of two powerful AI-powered extensions, VS Code and chrome. Both simplify your developer experience and speed up debugging.

How does it work?

Quickfix AI uses GPT and Vector Index to provide instant solutions for errors in your code within the code editor using AI.

The code seems straightforward, but I did not install and run the alpha build locally. I am going off the demo provided by the author in their post. I also focus on understanding the code, and the backend/src/ seems to be powered by a single python package to manage the model. Python has been the premier language to support NLP for some time, so it makes sense that the developer experience packaged through one interaction.

# /backend/src/
from pathlib import Path
from gpt_index import GPTSimpleVectorIndex, Document

def generate_index(workspace):
    file ='.json'
    path = Path.cwd() / "storage" / file

    if path.is_file():
        index = GPTSimpleVectorIndex.load_from_disk(path)
        documents = [Document(document) for document in workspace.documents]
        index = GPTSimpleVectorIndex(documents)
        with open(path, 'w'):

    return index

def generate_solution(workspace) -> str:
    index = generate_index(workspace)
    response = index.query(workspace.input)
    return response
Enter fullscreen mode Exit fullscreen mode

If you understand Python and are interested in supporting it, it is open-sourced. Support the author with feedback and a star on their GitHub project.

Also, if you have a project leveraging OpenAI or similar, leave a link in the comments. I'd love to take a look and include it in my 30 days of OpenAI series.

Find more AI projects using OpenSauced

Stay saucy.

Top comments (3)

ben profile image
Ben Halpern

Loving this series

musabshakil profile image

Thank you, @bdougieyo, for exploring and writing about my project. I'm really excited to see your journey and all the projects you'll be going to introduce in your series.

bdougieyo profile image
Brian Douglas

Thank you for sharing. Look forward to seeing your project evolve and even get contributors.