Transform codebase onboarding from weeks to hours with AI-powered, narrative-driven guided tours.
Tour de Code AI automatically generates comprehensive, mental-model-driven guided tours of any codebase using Repomix analysis and Large Language Models. Perfect for enterprise teams, open-source projects, and developers who want to accelerate knowledge transfer.
- Open VS Code Extensions (
Cmd+Shift+X/Ctrl+Shift+X) - Search for "Tour de Code AI"
- Click Install
- Configure your LLM API key (OpenAI, Anthropic, or custom)
- Start generating tours! β¨
Or install via command:
ext install saurabh-yergattikar.tourdecode-aiWatch Tour de Code AI analyze your codebase and generate a comprehensive, narrative-driven tour that explains:
- Project Architecture - High-level component structure
- Entry Points - Where the application starts
- Data Flow - How information moves through the system
- Design Patterns - Technical decisions and trade-offs
- Key Abstractions - Core concepts and interfaces
Automatically generate comprehensive, narrative-driven code tours using Repomix analysis and LLM intelligence (OpenAI, Anthropic, or custom models). Tours explain not just what the code does, but why and how it works.
What You Get:
- β‘ 90% faster onboarding - Understand codebases in hours, not weeks
- π§ Mental model flow - Tours follow logical execution paths (entry β core β integrations)
- π Comprehensive overview - Welcome page with architecture, purpose, flows, and use cases
- π― 15-25 technical checkpoints - Each with professional descriptions
- π Parallel processing - 10x faster generation with concurrent chunks
Unlike pattern-matching tools, Tour de Code AI uses Repomix to generate a complete, AI-friendly summary of your entire codebase with actual line numbers. This ensures accurate, context-aware understanding.
Benefits:
- β Full codebase analysis - All source files with actual line numbers
- π Deep insights - Understands imports, exports, and module relationships
- π Multi-language support - 30+ languages including TypeScript, JavaScript, Python, Go, Rust, Java
- π¦ One-page summary - AI-optimized XML format for efficient processing
- π Educational quality - Generates beginner-friendly yet technically accurate explanations
Flexible, secure integration with multiple LLM providers. Works with cloud APIs or self-hosted models.
Supported Providers:
- OpenAI - GPT-4, GPT-4o, GPT-4o-mini
- Anthropic - Claude 3.5 Sonnet, Claude 3 Opus
- Custom/Self-Hosted - Any OpenAI-compatible API (Ollama, Llama, Mistral)
Security Features:
- π Secure storage - API keys encrypted in VS Code Secret Storage
- π« No data retention - Your code stays private
- π Local options - Run LLMs locally for complete privacy
- βοΈ Custom endpoints - Enterprise proxy support
Smart tour generation that creates a logical learning journey through your codebase:
Tour Structure:
-
Welcome Checkpoint - LLM analyzes codebase to generate:
- Project purpose and goals
- High-level architecture overview
- Key technical flows
- Primary use cases
- Technology stack
- Entry points
-
Sequential Checkpoints - Follow execution flow:
- Entry point (main.ts, index.ts, etc.)
- Core logic and abstractions
- Data flow and transformations
- Integration points
- Each checkpoint explains "what", "why", "how", and "next"
Smart Features:
- π§ Intelligent sorting - Entry points prioritized first
- π Connection mapping - Shows how components interact
- β‘ Chunk-based processing - 5 files per chunk to avoid rate limits
- π Progress tracking - Real-time status during generation
Open VS Code and run:
- Command Palette (
Cmd+Shift+P):Tour de Code AI: Configure LLM Settings - Settings UI: Search for "Tour de Code" in VS Code settings
Enter:
- API provider (OpenAI, Anthropic, or Custom)
- API key (stored securely)
- Model name (e.g.,
gpt-4o-mini,claude-3-5-sonnet-20241022)
Option A: Command Palette
- Press
Cmd+Shift+P(Mac) orCtrl+Shift+P(Windows/Linux) - Run
Tour de Code AI: Generate Tour (AI) - Enter optional tour title and description
- Wait 1-3 minutes for generation
- Start exploring! π
Option B: Tour de Code AI Panel
- Open Explorer sidebar
- Find Tour de Code AI panel
- Click sparkle icon (β¨)
- Follow prompts
Keyboard Shortcuts:
- Next Step:
Cmd+β(Mac) /Ctrl+β(Windows/Linux) - Previous Step:
Cmd+β(Mac) /Ctrl+β(Windows/Linux) - End Tour: Click stop button or press
Esc
UI Controls:
- Click steps in Tour de Code AI panel
- Use navigation arrows in editor
- View progress in status bar
- Sign up at platform.openai.com
- Generate API key at platform.openai.com/api-keys
- Recommended models:
gpt-4o-mini- Fast, affordable ($0.15/1M tokens)gpt-4o- Best quality ($5/1M tokens)
- Sign up at console.anthropic.com
- Generate API key from account settings
- Recommended models:
claude-3-5-sonnet-20241022- Best balanceclaude-3-opus-20240229- Highest quality
- Install local LLM server (Ollama, LM Studio, etc.)
- Set custom API URL:
http://localhost:11434/v1/chat/completions - Supported models: Llama, Mistral, CodeLlama, Qwen
Tour de Code AI uses a sophisticated multi-stage pipeline:
- Scans entire workspace for source files
- Generates comprehensive XML summary with:
- Directory structure
- File contents with line numbers
- Import/export relationships
- Language detection
- Auto-excludes tests, node_modules, build artifacts
- Prioritizes entry points (main.ts, index.ts, app.ts)
- Sorts by importance for mental model flow
- Ensures chunk 1 contains application entry point
- Splits files into chunks (5 files per chunk)
- Processes 10 chunks in parallel
- Each chunk: 25 lines per file for context
- 1-second delay between batches to avoid rate limits
- Welcome Step: Analyzes 8-10 key files to generate:
- Project purpose and architecture
- Technical flows and patterns
- Use cases and entry points
- Code Checkpoints: For each chunk:
- Identifies entry point (chunk 1) or continues flow
- Generates technical descriptions
- Explains "what", "why", "how", "next"
- Professional tone, no childish analogies
- Combines all checkpoints
- Validates file paths and line numbers
- Ensures sequential flow
- Saves as
.tourfile in.tours/directory
30+ languages supported via Repomix:
Web & Mobile:
- TypeScript, JavaScript, React (TSX/JSX)
- HTML, CSS, Vue
- Swift, Kotlin, Dart
Backend & Systems:
- Python, Java, Go, Rust
- C/C++, C#
- Node.js, Deno
Scripting & Other:
- Ruby, PHP, Bash/Shell
- Elixir, Scala, Lua
- YAML, JSON, TOML
For Welcome Page:
- 8-10 key files (first 40 lines each)
- README content (first 2000 chars)
- File structure overview
For Checkpoints:
- 5 files per chunk (first 25 lines each)
- File paths and metadata
- NOT sent: Full file contents, secrets, credentials
API Keys:
- Encrypted in VS Code Secret Storage
- Never included in tours or logs
- Only accessible by extension
Tours:
- Saved locally in
.tours/directory - Can be committed to Git or kept private
- No external storage unless exported
For maximum privacy:
- Use local LLM (Ollama, LM Studio)
- Set API URL to
localhost - Your code never leaves your machine!
- β Bad: "Tour 1"
- β Good: "Authentication Flow - OAuth2 Implementation"
Create multiple tours for different aspects:
- "Architecture Overview"
- "API Endpoints & Routing"
- "Database Models & Queries"
- "Authentication & Authorization"
- "Frontend Components & State"
- Fast & Affordable:
gpt-4o-mini(~$0.15/tour) - Best Quality:
gpt-4o,claude-3-5-sonnet(~$0.50/tour) - Free & Private: Llama 3, Mistral (local)
AI tours are starting points! Feel free to:
- Add more context or examples
- Fix any inaccuracies
- Adjust step order
- Add code snippets
| Command | Description | Shortcut |
|---|---|---|
| Generate Code Tour (AI) | Auto-generate tour with AI | - |
| Configure LLM Settings | Set up LLM provider | - |
| Start Tour | Begin playing a tour | - |
| End Tour | Stop current tour | Esc |
| Next Step | Move to next step | Cmd+β / Ctrl+β |
| Previous Step | Move to previous step | Cmd+β / Ctrl+β |
| Resume Tour | Resume paused tour | - |
| Export Tour | Export tour to file | - |
Tour de Code AI is free and open source. Contributions are welcome!
How to Contribute:
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
See CONTRIBUTING.md for guidelines.
This project is licensed under the MIT License - see LICENSE.txt for details.
Tour de Code AI is built upon the excellent CodeTour extension originally created by Microsoft Corporation.
Original Project:
- Repository: microsoft/codetour
- Copyright: Copyright (c) Microsoft Corporation
- License: MIT License
- Contributors: Jonathan Carter and the Microsoft VS Code team
We extend our deepest gratitude to Microsoft and the original CodeTour team for creating the foundational extension that made this possible.
The AI-powered tour generation features are original contributions to the tour generation ecosystem:
New Features (v1.0.0):
- β¨ Repomix integration for comprehensive codebase analysis
- π§ Mental model tour architecture (entry β core β integrations)
- π€ Multi-provider LLM integration (OpenAI, Anthropic, custom)
- β‘ Parallel chunk processing with rate limit protection
- π LLM-powered welcome page with architectural overview
- π― Professional, technical tour descriptions
- π Enhanced security and privacy features
AI Features:
- Copyright: Copyright (c) 2024-2025 Saurabh Yergattikar
- License: MIT License (same as original)
- Repository: github.com/Tour-de-Code-AI/Tour-de-Code-AI
Special thanks to:
- π Microsoft and the original CodeTour team for the foundational extension
- π¦ Repomix project for AI-friendly codebase summarization
- π€ OpenAI and Anthropic for their LLM APIs
- π» The VS Code team for their excellent extension API
- π The open-source community for inspiration and support
- π¦ VS Code Marketplace: Install Tour de Code AI
- π» GitHub Repository: Tour-de-Code-AI/Tour-de-Code-AI
- π Report Issues: GitHub Issues
- π Original CodeTour: microsoft/codetour
- π¦ Repomix: Repomix Project
Q: Is this free?
A: Yes! The extension is free and open source. You only pay for LLM API usage (typically $0.15-$0.50 per tour).
Q: Can I use it offline?
A: Yes! Use a local LLM provider (Ollama, LM Studio) for 100% offline operation.
Q: How long does tour generation take?
A: Typically 1-3 minutes, depending on codebase size and LLM provider.
Q: Will it send my entire code to the LLM?
A: No! Only code snippets (25 lines per file) and file structure are sent, not full contents.
Q: Can I edit AI-generated tours?
A: Absolutely! Tours are saved as editable .tour JSON files. Customize as needed.
Q: Does it work with monorepos?
A: Yes! Analyze entire monorepos or specific workspaces.
Q: What's the difference from Microsoft's CodeTour?
A: Tour de Code AI adds AI-powered tour generation using Repomix + LLMs. Original CodeTour requires manual tour creation.
Q: Can I contribute?
A: Yes! See CONTRIBUTING.md for guidelines.
If Tour de Code AI helps you or your team:
- β Star the GitHub repository
- π Rate the extension on VS Code Marketplace
- π¬ Share with your developer community
- π Report bugs or request features
Made with β€οΈ for the developer community.
Transform onboarding from weeks to hours. Try Tour de Code AI today! π


{ // LLM Configuration "tourdecode.llm.provider": "openai", "tourdecode.llm.apiKey": "your-api-key-here", "tourdecode.llm.model": "gpt-4o-mini", "tourdecode.llm.apiUrl": "https://api.openai.com/v1/chat/completions", // Display Settings "tourdecode.showMarkers": true, "tourdecode.promptForWorkspaceTours": true }