Skip to content
| Marketplace
Sign in
Visual Studio Code>Machine Learning>CodeMentor - Socratic AI TutorNew to Visual Studio Code? Get it now.
CodeMentor - Socratic AI Tutor

CodeMentor - Socratic AI Tutor

CodeMentorAI

|
5 installs
| (0) | Free
Learnability-Focused AI Programming Mentor with Desirable Friction
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CodeMentor AI 🧠⚡

Learnability-Focused AI Programming Mentor with Desirable Friction

👨‍💻 Author & Lead Developer: Miftahul Islam Tashfin
🎓 Course: CSE428: Human-Computer Interaction (Group C)
Version License Powered by

CodeMentor is a pedagogical VS Code extension engineered to solve the cognitive atrophy caused by modern AI code generation. Instead of allowing passive copy-pasting or unearned AI solutions, CodeMentor enforces Desirable Friction and Active Cognitive Engagement based on cognitive science learning theories (Chi's ICAP Framework & Vygotsky's Scaffolding).


🌟 Key Pedagogical Features

1. 🔒 Reactive Interception & Verification Challenge (MCQ)

  • Intercepts pasted code snippets and AI agent buffer insertions.
  • Temporarily locks the code with visual red highlighting and generates a context-aware Multiple-Choice Verification Challenge (MCQ) targeting the core logic, time complexity, or edge case.
  • Answering correctly dynamically unlocks the editor with glowing emerald confirmation.

2. 🗣️ "Explain Back" Mode (Self-Explanation)

  • After unlocking code, prompts students to provide a 1-sentence plain-English explanation of the logic.
  • Employs Gemini Flash to provide real-time accuracy scoring (0–100%) and conceptual feedback.

3. 📊 Learning Independence Meter

  • A live, real-time cognitive metric in the sidebar tracking your autonomous problem-solving performance.
  • Rewards active explanations and correct predictions while penalizing excessive hint-taking.
  • Features progressive mastery ranks: Level 1: Explorer ➔ Level 2: Architect ➔ Level 3: Master.

4. 🧠 "Lead-and-Reveal" Progressive Scaffolding

  • Prevents raw code dumps by breaking complex algorithmic problems into multi-tier progressive hints.
  • Provides high-level pseudocode first, with interactive buttons to reveal Step 1, Step 2, and Full Solution code progressively.

5. 🔮 Predict Output Before Run (Mental Simulation)

  • Challenges students to mentally trace execution and predict return values or terminal outputs under specific variable test cases before executing.

6. 🐛 "Socratic Bug Hunter" (Diagnostic-Aware Mentoring)

  • Integrates directly with VS Code language diagnostics (vscode.languages.getDiagnostics).
  • Targets compiler and syntax errors without handing out the fix, asking guiding Socratic questions to lead students to the root cause.

7. 🛡️ 1-Click Active / Pause Toggle

  • Toggle CodeMentor on/off instantly via the sidebar header pill or the bottom VS Code status bar item (CodeMentor: ON / Paused).

8. ⚡ 1-Click Gemini API Setup

  • Integrated setup modal with 1-click browser navigation directly to Google AI Studio for instant free API key configuration.

🚀 Quick Start Guide

  1. Open the CodeMentor tab from your left Activity Bar.
  2. Click the ⚙️ Settings icon in the top header.
  3. Click 🌐 1-Click: Open Google AI Studio to generate your free Gemini API Key, paste it into the box, and click Save Key.
  4. Start coding! Paste code or trigger 🧠 Lead & Reveal, 🔮 Predict Output, or 🐛 Debug Guide from the quick action chips.

⚙️ Extension Settings

This extension contributes the following settings:

  • codementor.enabled: Enable or disable active code interception and desirable friction.
  • codementor.geminiApiKey: Your Google Gemini API Key.

📄 License

This project is licensed under the MIT License.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft