Skip to content

blackhashcode/AntiVibe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

AntiVibe

SAY RIP TO VIBE CODING

Antivibe.ai VS Code Extension

🚀 Learn to code, don't just copy-paste! Antivibe.ai helps you understand programming concepts instead of relying on AI to write code for you.

Features

  • 🎯 Smart Hints: Get guided hints instead of complete solutions
  • 💡 Progressive Assistance: Choose hint levels from conceptual nudges to implementation guidance
  • 🤔 Thought-Provoking Questions: Learn to think like a programmer
  • 📚 Relevant Resources: Get pointed to learning materials
  • 🔍 Problem Detection: Automatically recognizes problem types (Two Sum, Binary Search, String Reversal, etc.)

Quick Start

Prerequisites

  • Node.js (for VS Code extension)
  • Python 3.8+ (for backend server)

Installation & Setup

  1. Clone the repository
git clone <your-repo-url>
cd AntiVibe
  1. Setup Backend Server
cd antivibe-backend
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -r requirements.txt
  1. Setup VS Code Extension
cd antivibe-ai
npm install

Running the Application

  1. Start the Backend Server (Terminal 1):
cd antivibe-backend
source venv/bin/activate
uvicorn main:app --reload --host 0.0.0.0 --port 8000
  1. Run the VS Code Extension (Terminal 2):
cd antivibe-ai
npm run compile
Press F5 to launch extension development window

Usage

  1. Select code in your editor
  2. Right-click and choose "Antivibe: Get Hint" or use Ctrl+Shift+H
  3. Choose hint level:
    • 🚀 Level 1: Conceptual nudge
    • 💡 Level 2: Algorithm suggestion
    • 🔧 Level 3: Implementation hint
    • 🎯 Level 4: Code structure
  4. Describe your problem when prompted
  5. Get guided hints that help you learn!

Supported Problem Types

  • Two Sum: Find pairs that add to target
  • Binary Search: Search in sorted arrays
  • String Reversal: Reverse strings efficiently
  • General: Fallback for other problems

API Endpoints

  • POST /api/hint - Get hints for your code
  • GET /api/health - Check server status
  • GET /api/problem-types - List supported problems

Project Structure

AntiVibe/
├── antivibe-backend/     # FastAPI server
│   ├── main.py          # Server code
│   └── requirements.txt # Python dependencies
└── antivibe-ai/         # VS Code extension
    ├── src/             # TypeScript source
    └── package.json     # Extension config

Development

Backend Development:

cd antivibe-backend
uvicorn main:app --reload --host 0.0.0.0 --port 8000

Extension Development:

cd antivibe-ai
npm run watch  # Auto-compile on changes
Press F5 to debug

Troubleshooting

Server not connecting?

  • Check if backend is running on port 8000
  • Verify curl http://localhost:8000/api/health works
  • Ensure no firewall blocking the connection

Extension not working?

  • Check Developer Tools (Help → Toggle Developer Tools)
  • Verify npm run compile succeeds
  • Check backend server is running

What's Next

  • More problem types and algorithms
  • Code analysis for better hints
  • Learning progress tracking
  • Multiple programming languages

Contributing

This is an early prototype! Feel free to suggest features or report issues.


Remember: The goal is understanding, not just solving! 🧠

Backend server must be running for hints to work!

About

### SAY RIP TO VIBE CODING

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published