Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ai-refactor-vscode

An AI-powered VSCode extension that analyzes and improves Python code using LLMs + static analysis.

Features

  • One-click code refactoring
  • AST-based static analysis
  • LLM-powered suggestions
  • Side-by-side results in VSCode
  • Works on full file instantly

Architecture

  • VSCode Extension (TypeScript)
  • FastAPI backend (Python)
  • OpenAI GPT-4.1

Setup

1. Backend

cd server
pip install -r requirements.txt
uvicorn api:app --reload

2. Extention

cd extension
npm install
npm run compile

API Key

Create .env file:

OPENAI_API_KEY=your_key_here

Usage

  1. Open Python file in VSCode
  2. Run command:
AI: Refactor Code
  1. See suggestions in panel

Future Work

  • Inline suggestions (Copilot-style)
  • Multi-language support
  • Diff view instead of text
  • GitHub PR integration

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages