Skip to content

πŸŽ“πŸ₯“ The AI That Teaches You AI - Voice-guided, interactive training platform where Claude Code teaches you how to master Claude Code CLI | BACON-AI Framework

License

Notifications You must be signed in to change notification settings

thebacons/claude-code-tutor

Repository files navigation

Claude Code Tutor πŸŽ“πŸ₯“

The AI That Teaches You AI - A Voice-Guided, Interactive Training Platform Where Claude Code Teaches You How to Master Claude Code

BACON-AI Framework Claude Code License: MIT Voice Guided


πŸš€ What Makes This Different?

This isn't just documentation. This is an AI tutor that:

  1. Speaks to you via natural voice synthesis (Elisabeth guides, Finn celebrates)
  2. Controls a real terminal to demonstrate commands live
  3. Watches you practice and provides instant feedback
  4. Adapts to your level from beginner to advanced
  5. Uses your own Claude Code subscription - no separate API costs
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  "Hello Colin, let me show you how to use print mode..."       β”‚
β”‚                                          πŸ”Š Elisabeth speaking  β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  $ claude -p "What is TypeScript?"                              β”‚
β”‚  TypeScript is a strongly typed programming language that...    β”‚
β”‚  β–Œ                                              [Live Terminal] β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  βœ… Step 3/10 Complete β”‚ [Get Hint] β”‚ [Skip] β”‚ [Repeat]        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

🎯 The Vision

The Problem

  • Claude Code has 50+ CLI options and powerful features
  • Documentation is scattered across READMEs, help output, and forums
  • Learning by reading is slow; learning by doing is fast
  • No interactive way to practice with immediate feedback

The Solution

An embedded training platform where:

  • Claude Code (the AI) acts as your personal tutor
  • Real terminal shows actual command execution
  • Voice guidance explains concepts naturally
  • Progressive lessons take you from zero to expert
  • Your own subscription powers the training (no extra cost)

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                         FRONTEND (React + Vite)                         β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                   β”‚
β”‚  β”‚  Tutorial UI β”‚  β”‚ Voice Player β”‚  β”‚   Progress   β”‚                   β”‚
β”‚  β”‚  (Lessons)   β”‚  β”‚  (Subtitles) β”‚  β”‚   Tracker    β”‚                   β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜                   β”‚
β”‚         β”‚                 β”‚                 β”‚                           β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”                   β”‚
β”‚  β”‚              xterm.js Live Terminal              β”‚                   β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                          β”‚ WebSocket
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                         β”‚      NODE.JS BACKEND                          β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                   β”‚
β”‚  β”‚   Tutorial   β”‚  β”‚   Terminal   β”‚  β”‚    Voice     β”‚                   β”‚
β”‚  β”‚    Engine    │──│   Manager    │──│   Manager    β”‚                   β”‚
β”‚  β”‚  (Orchestr.) β”‚  β”‚  (node-pty)  β”‚  β”‚  (edge-tts)  β”‚                   β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                   β”‚
β”‚         β”‚                 β”‚                                             β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                   β”‚
β”‚  β”‚           Session Manager (Auth + Credentials)    β”‚                   β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                          β”‚
                          β–Ό
              β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
              β”‚    Claude Code CLI    β”‚
              β”‚  (Your Subscription)  β”‚
              β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ“š Training Curriculum

Level 1: Foundation (Beginner)

Module Duration Topics
Getting Started 15 min Installation, version check, first query
Session Management 20 min Starting sessions, resuming, context
CLAUDE.md Basics 25 min Project config, hierarchy, best practices

Level 2: Intermediate

Module Duration Topics
Hooks System 30 min PreToolUse, PostToolUse, Stop hooks
Custom Subagents 35 min Task spawning, explore/plan agents
MCP Integration 30 min Using MCP tools, server connections

Level 3: Advanced

Module Duration Topics
MCP Server Development 45 min Build your own MCP server
Multi-Agent Pipelines 40 min Orchestrating agent workflows
CI/CD Integration 30 min GitHub Actions, automation
Self-Healing Systems 45 min Autonomous development ecosystems

Level 4: Expert (Coming Soon)

Module Duration Topics
BACON-AI Framework 60 min 12-phase methodology
Testing Pyramid 45 min TUT, FUT, SIT, UAT, RGT
OpenAI Agents SDK 40 min Cross-platform agent development
Gemini Live Voice 35 min Real-time voice AI integration
Computer Use Tools 50 min Browser automation, screenshots

🎭 Meet Your Tutors

Elisabeth πŸ‡¬πŸ‡§

British AI instructor - Clear, patient, professional

  • Role: Explains concepts, guides through lessons
  • Voice: en-GB-SoniaNeural
  • Style: "Hello Colin, let me show you how this works..."

Finn πŸ‡³πŸ‡΄

Norwegian AI assistant - Enthusiastic, encouraging

  • Role: Celebrates successes, confirms completions
  • Voice: nb-NO-FinnNeural
  • Style: "Hei! Fantastisk! You've mastered that perfectly!"

πŸ” Authentication Options

Option A: Claude Code Subscription (Recommended)

Use your existing Claude Code Pro subscription - no extra API costs!

# Your existing login is automatically used
claude --version  # If this works, you're ready!

Option B: API Key Fallback

For users without subscription or for programmatic access:

export ANTHROPIC_API_KEY=sk-ant-...

Option C: Demo Mode

Try the platform without any credentials (simulated terminal):

[Demo Mode] - Full tutorial content, pre-recorded responses

πŸ› οΈ Tech Stack

Layer Technology Purpose
Frontend React + Vite Fast, modern UI
Terminal xterm.js Real terminal emulation
Backend Node.js + Express Server & WebSocket
PTY node-pty Pseudo-terminal management
Voice edge-tts Microsoft TTS (FREE!)
Audio Howler.js Cross-browser audio playback
Styling Tailwind CSS Utility-first CSS
Real-time Socket.io WebSocket communication

πŸš€ Quick Start

Prerequisites

  • Node.js 18+ (LTS recommended)
  • Claude Code CLI installed (npm install -g @anthropic-ai/claude-code)
  • Claude Code subscription OR Anthropic API key

Installation

# Clone the repository
git clone https://github.com/thebacons/claude-code-tutor.git
cd claude-code-tutor

# Install dependencies
npm install

# Start development servers
npm run dev

Usage

# Start the tutor (opens in browser)
npm start

# Or run specific components
npm run dev:frontend  # Just the React app
npm run dev:backend   # Just the Node.js server

πŸ“ Project Structure

claude-code-tutor/
β”œβ”€β”€ app/                    # Frontend React application
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”‚   β”œβ”€β”€ Tutorial/   # Lesson UI components
β”‚   β”‚   β”‚   β”œβ”€β”€ Terminal/   # xterm.js integration
β”‚   β”‚   β”‚   β”œβ”€β”€ Voice/      # Audio controls, subtitles
β”‚   β”‚   β”‚   └── Auth/       # Login, session management
β”‚   β”‚   β”œβ”€β”€ hooks/          # React hooks
β”‚   β”‚   β”œβ”€β”€ services/       # API & WebSocket clients
β”‚   β”‚   └── App.tsx         # Main application
β”‚   └── package.json
β”‚
β”œβ”€β”€ server/                 # Backend Node.js server
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ managers/
β”‚   β”‚   β”‚   β”œβ”€β”€ TerminalManager.ts   # node-pty processes
β”‚   β”‚   β”‚   β”œβ”€β”€ VoiceManager.ts      # edge-tts synthesis
β”‚   β”‚   β”‚   β”œβ”€β”€ SessionManager.ts    # Auth & credentials
β”‚   β”‚   β”‚   └── TutorialEngine.ts    # Lesson orchestration
β”‚   β”‚   β”œβ”€β”€ tutorials/
β”‚   β”‚   β”‚   └── lessons/    # YAML lesson definitions
β”‚   β”‚   └── index.ts        # Server entry point
β”‚   └── package.json
β”‚
β”œβ”€β”€ shared/                 # Shared types & utilities
β”œβ”€β”€ docs/                   # Extended documentation
└── package.json            # Workspace root

πŸ—ΊοΈ Roadmap

Phase 1: MVP βœ…

  • React frontend with tutorial UI
  • CLI command reference database
  • Simulated terminal for basics
  • 10 training modules

Phase 2: Real Terminal (Current)

  • Node.js backend with node-pty
  • WebSocket terminal streaming
  • Live Claude Code execution
  • Session management

Phase 3: Voice Integration

  • edge-tts MCP integration
  • Voice narration for lessons
  • Subtitles display
  • Mute/volume controls

Phase 4: Full Tutorial Suite

  • All 15+ lessons implemented
  • Progress persistence
  • Adaptive difficulty
  • Practice exercises

Phase 5: Production

  • Docker deployment
  • Multi-user support
  • Analytics dashboard
  • Mobile responsive

Phase 6: Advanced Features

  • BACON-AI Framework training
  • Cross-vendor AI integration
  • Custom lesson creation
  • Collaborative learning

🀝 Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

Development Setup

# Fork and clone
git clone https://github.com/YOUR_USERNAME/claude-code-tutor.git

# Create feature branch
git checkout -b feature/amazing-feature

# Make changes and test
npm test

# Submit PR
git push origin feature/amazing-feature

πŸ“Š Market Opportunity

The AI Agent market is exploding:

  • $5.4B β†’ $52B projected growth by 2030 (68% CAGR)
  • Claude Code is the most capable AI coding assistant
  • Training gap: Most users only scratch the surface of capabilities
  • Enterprise demand: Companies need structured AI upskilling

πŸ₯“ BACON-AI Framework

This project follows the BACON-AI 12-Phase Methodology:

  1. Behavioral Alignment - Voice protocols, personality consistency
  2. Analysis - Deep research before implementation
  3. Context Engineering - Progressive validation gates
  4. Orchestration - Multi-agent coordination
  5. Novelty Integration - Continuous learning and improvement

Learn more: BACON-AI Framework


πŸ“¬ Contact


πŸ“„ License

MIT License - See LICENSE for details.


Built with πŸ₯“ by BACON-AI

"The AI That Teaches You AI"

About

πŸŽ“πŸ₯“ The AI That Teaches You AI - Voice-guided, interactive training platform where Claude Code teaches you how to master Claude Code CLI | BACON-AI Framework

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published