🤖 XendiAI - VS Code Extension
A professional VS Code extension for local AI language model integration with comprehensive development tools and intelligent chat capabilities.
🔬 Testing & Development Status
Current Testing Model: DeepSeek-Coder-v2:16b
Hardware Limitations: I'm currently testing with limited hardware capabilities. If you're interested in supporting this project and have access to more powerful models, I'd greatly appreciate donations or contributions to help optimize XendiAI for all AI models and hardware configurations.
💰 Support Development
Support this project via PayPal: me@robin-lucas.live
Your donations help improve XendiAI for better AI model support and new features!

🚀 Features
🤖 Local AI Integration
- Ollama Support - Connect to your local Ollama server
- LM Studio Compatibility - Works with LM Studio and other OpenAI-compatible APIs
- Automatic Model Detection - Seamlessly detect available models
- Connection Testing - Built-in diagnostics for server connectivity
� Intelligent Chat Interface
- Persistent Chat History - Never lose your conversations
- Code-Aware Responses - Context-aware assistance for your projects
- Syntax Highlighting - Clean, readable code blocks
- Real-time Processing - Fast response times
- File Operations - Create, read, and manage files
- Code Analysis - Intelligent code understanding
- Project Context - Workspace-aware assistance
- Multi-language Support - Works with all major programming languages
✨ Features
- 11 powerful tools for file management and code analysis
- Smart Search - Intelligent search with context
- Code Localization - Find exactly where functions/classes are defined
- Automatic Workflows - Multi-step processes for complex tasks
🧠 LLM Server Support
- Ollama (http://localhost:11434)
- LM Studio & other OpenAI-compatible APIs (http://localhost:1234/v1)
- Automatic Model Detection
- Connection Testing for server diagnostics
💬 Chat Interface
- Persistent Chat History - No more lost conversations
- Code Block Formatting - Clean embedded code display
- Real-time Tool Execution
- Compact UI with professional design
read_file
- Read files
write_file
- Create/edit files
smart_search
- Intelligent project search
find_definitions
- Locate code definitions
find_usages
- Find symbol usages
search_file_content
- Search through content
replace
- Precise code replacement
run_shell_command
- Execute terminal commands
list_directory
- Show directory contents
analyze_file
- Analyze file structure
glob
- Pattern-based file search
semantic_search
- 🔍 AI-powered code understanding
code_metrics
- 📊 Quality analysis and suggestions
auto_refactor
- 🔄 Intelligent code improvements
multi_language_analysis
- 🌐 Enhanced Python, Java, C# support
🚀 Installation
Load Extension:
- Open VS Code
Ctrl+Shift+P
→ "Developer: Install Extension from Location"
- Select folder
d:\XendiAI\xendiai
Start LLM Server:
# Ollama
ollama serve
# LM Studio
# Start server via LM Studio UI
Activate Extension:
- Open Sidebar → Click XendiAI icon
- Select model
- Test connection
- Start chatting! 🎉
💻 Usage
Basic Conversation:
"Hello, explain this project to me"
"Show me all TypeScript files"
"Create a new React component"
Advanced Workflows:
"Find all functions named 'sendMessage' and change them to 'handleMessage'"
"Analyze package.json and optimize dependencies"
"Refactoring: Rename ChatViewProvider to ChatProvider"
Code Analysis:
"Show me the project structure"
"Find all console.log statements"
"Analyze all import statements"
⚙️ Configuration
Supported Servers:
- Ollama:
http://localhost:11434
- OpenAI-compatible:
http://localhost:1234/v1
Automatic Features:
- ✅ Model-Discovery
- ✅ Chat-Persistence
- ✅ Tool-Integration
- ✅ Error-Recovery
🎯 Example Session
👤 User: "Edit the extension.ts and add better error handling"
🤖 XendiAI: 🔧 Executing 3 tool(s)...
1. find_definitions → Found: src/extension.ts:25
2. read_file → File analyzed
3. replace → Error handling added
✅ Extension.ts was successfully improved with:
- Try-catch blocks around HTTP requests
- User-friendly error messages
- Automatic reconnection logic
🧪 Development & Testing
Model Testing Wanted! 📧
Help with Development:
I'm looking for developers and testers who want to try different LLM models with the extension!
📬 Contact: me@robin-lucas.live
What I'm looking for:
- 🧪 Testers for different LLM models (Llama, Mistral, CodeLlama, etc.)
- 🔧 Feedback on tool performance and accuracy
- 💡 Feature requests and improvement suggestions
- 🐛 Bug reports and edge cases
- 🚀 Beta testers for new features
What you get:
- 🎯 Early access to new features
- 📊 Performance insights of your tested models
- 🤝 Direct line to the developer
- 🏆 Credits in the extension (if desired)
Future Services:
Long-term, I plan to offer a shared service so teams can use powerful LLM models together without having to run their own hardware.
Compile & Development:
npm install
npm run compile
npm run watch # Development mode
📊 Technical Details
Built with:
- TypeScript - Type-safe development
- VS Code Extension API - Deep IDE integration
- Node.js HTTP - Reliable LLM communication
- Webpack - Optimized bundling
Performance:
- Bundle Size: 116 KiB
- Startup Time: < 200ms
- Tool Execution: 100-300ms average
- Memory Usage: < 10 MB
Compatibility:
- VS Code: 1.103.0+
- Node.js: 16+
- Platforms: Windows, macOS, Linux
🗂️ Project Structure
xendiai/
├── src/
│ ├── extension.ts # Main extension entry point
│ ├── llmService.ts # LLM communication service
│ ├── toolManager.ts # Tool definitions & execution
│ └── test/ # Unit tests
├── media/
│ ├── logo.png # Extension icon
│ └── chat-style.css # Chat UI styling
├── package.json # Extension manifest
└── README.md # This file
🎉 Features in Development
🔜 Next Version:
- 🔍 Semantic Search with AI understanding
- 📊 Code Metrics and quality analysis
- 🔄 Auto-Refactoring suggestions
- 🌐 Multi-Language support (Python, Java, C#)
🚀 Roadmap:
- ☁️ Cloud LLM integration (GPT-4, Claude)
- 👥 Team Collaboration features
- 📈 Analytics dashboard
- 🔌 Plugin System for custom tools
📝 License
MIT License - This project is licensed under the MIT License.
🤝 Contributing
Contributions are welcome!
- Fork the repository
- Create feature branch (
git checkout -b feature/AmazingFeature
)
- Commit your changes (
git commit -m 'Add AmazingFeature'
)
- Push to branch (
git push origin feature/AmazingFeature
)
- Open Pull Request
Or simply send an email to: me@robin-lucas.live
👨💻 Developer: Robin Lucas
📬 Email: me@robin-lucas.live
🐛 Issues: GitHub Issues (if available)
💬 Feedback: Always welcome!
📋 Changelog
v1.1.0 - 2025-01-04 🚀 Major AI Enhancement Update
Revolutionary AI-Powered Development Tools
🔍 Semantic Search
- AI-Powered Code Understanding: Find code by meaning, not just text patterns
- Context-Aware Search: Understands code relationships and intent
- Multi-Language Support: Works across TypeScript, JavaScript, Python, Java, C#, and more
- Relevance Scoring: Intelligent ranking of search results
📊 Code Metrics & Analysis
- Quality Assessment: Comprehensive code quality analysis
- Complexity Metrics: Cyclomatic complexity and maintainability scoring
- Multi-Language Analysis: Language-specific code analysis
- Improvement Suggestions: AI-generated recommendations for code enhancement
🔄 Auto-Refactoring
- Intelligent Code Improvements: AI-powered code refactoring
- Multiple Refactor Types: Format code, optimize imports, improve naming, extract functions
- Preview Mode: See changes before applying them
- Language-Aware: Supports TypeScript, JavaScript, Python, Java, C#
🌐 Multi-Language Enhancement
- Enhanced Python Support: Advanced Python code analysis and best practices
- Java Integration: Complete Java project analysis and recommendations
- C# Analysis: Full C# code understanding and optimization suggestions
- Cross-Language Detection: Automatic language detection and analysis
🛠️ Technical Improvements
- 15+ Advanced Tools: New semantic search, code metrics, auto-refactoring, and multi-language tools
- AI-Powered Analysis: Deep code understanding using artificial intelligence
- Performance Optimization: Enhanced tool execution and response times
- Better Error Handling: Improved error messages and recovery
v1.0.3 - 2025-01-04 🚫 Anti-Hardcoding Update
Major Enhancement: Complete elimination of hardcoded file assumptions
🔧 Enhanced Agent Mode
- 🚫 Active Hardcoding Block: System now actively blocks AI from using hardcoded file paths like "src/main.ts" without discovering them first
- 📂 File Discovery Tracking: New
_discoveredFiles
system tracks only actually found files
- 🔍 Enhanced Debug System: Comprehensive logging shows exactly which files AI attempts to access and blocks hardcoded assumptions
- ✅ Strict Discovery Enforcement: AI must discover files through directory listing before accessing them
- 🚫 Hardcoded Request Filtering: Blocks common hardcoded patterns (src/, main., app., index., package.json) unless discovered
- 🔄 Improved Follow-up Tools: Only work with actually discovered files, no more assumptions
🐛 Debug & Logging
- 📊 Comprehensive Tool Logging: Shows all tool execution attempts, blocked requests, and file discovery
- 🎨 Color-coded Debug Interface: Visual categorization of different log types
- 📈 File Discovery Statistics: Track discovery success and blocked hardcoded attempts
🔒 Fallback System Overhaul
- 📁 Safe Directory Listing Only: Fallback tools limited to safe directory exploration
- 🚫 No File Reading Without Discovery: Completely removed hardcoded file reading attempts
- 🎯 Discovery-First Approach: AI forced to explore actual project structure
📝 Technical Details
- Enhanced hardcoded detection patterns for broader coverage
- Active tool call filtering before LLM execution
- Modified follow-up system to use generic file patterns
- Complete removal of hardcoded file preferences
✨ New Features
- 🛠️ 11 Powerful Tools: Complete tool integration for file management and code analysis
- 🔍 Smart Search: Intelligent project search with context awareness
- 📍 Code Localization: Find exact locations of functions, classes, and definitions
- 🔄 Automatic Workflows: Multi-step processes for complex development tasks
🧠 Enhanced LLM Integration
- 🔗 Improved Tool Execution: More reliable tool calls with better error handling
- 📊 Real-time Tool Results: Live feedback during tool execution
- 🎯 Context-Aware Responses: Better understanding of project structure
read_file
- Read and analyze files
write_file
- Create and edit files
smart_search
- Intelligent project search
find_definitions
- Locate code definitions
find_usages
- Find symbol usages
search_file_content
- Search through file content
replace
- Precise code replacement
run_shell_command
- Execute terminal commands
list_directory
- Show directory contents
analyze_file
- Analyze file structure
glob
- Pattern-based file search
v1.0.1 - 2024-11-28 💬 Chat Enhancement Update
✨ New Features
- 💾 Persistent Chat History: Never lose your conversations again
- 🎨 Enhanced UI: Clean, professional chat interface with syntax highlighting
- 🔧 Improved Code Display: Better formatting for code blocks and technical content
🐛 Bug Fixes
- Fixed connection issues with Ollama servers
- Improved error handling for model loading
- Better response formatting for technical content
- Faster startup time (< 200ms)
- Reduced memory usage
- Optimized bundle size (116 KiB)
v1.0.0 - 2024-11-15 🎉 Initial Release
🚀 Core Features
- 🤖 Local AI Integration: Connect to Ollama and LM Studio
- 📡 Automatic Model Detection: Seamlessly discover available models
- 🔍 Connection Testing: Built-in diagnostics for server connectivity
- 💬 Real-time Chat: Fast, responsive AI conversations
🛠️ Technical Foundation
- TypeScript Architecture: Type-safe, maintainable codebase
- VS Code API Integration: Deep IDE integration
- HTTP Communication: Reliable LLM server communication
- Cross-platform Support: Windows, macOS, Linux compatibility
🎯 Initial Capabilities
- Basic chat functionality with local LLM models
- Simple file operations
- Project context awareness
- Multi-language support
📝 Changelog
[1.1.0] - 2025-09-04
✨ Added
- 🎛️ User-configurable rule management system with orange-styled Rules button
- 🌍 Complete localization support for English and German languages
- ⚡ Advanced rule management with highest priority user rules
- 🧹 Clean tool descriptions without hardcoded file examples
🐛 Fixed
- 🔧 Eliminated all hardcoded file examples that caused AI to search for non-existent files
- 🚫 Removed all placeholder references like "[DISCOVERED_FILE]"
- 📁 Fixed template file references (main.js → script.js, main.py → app.py)
- 🔄 Systematic cleanup of JSON examples with hardcoded file paths
🚀 Improved
- 🎨 Enhanced UI with proper localization based on extension settings
- 🛠️ Better tool management with dynamic language support
- 💬 Cleaner system prompts without confusing placeholder examples
[1.0.0] - 2025-09-03
🔮 Upcoming Features
v1.2.0 - Planned Q4 2025
- 🔍 Semantic Search: AI-powered code understanding
- 📊 Code Metrics: Quality analysis and suggestions
- 🔄 Auto-Refactoring: Intelligent code improvements
- 🌐 Multi-Language: Enhanced Python, Java, C# support
🎯 XendiAI - Turn your VS Code into an AI-powered development environment!
Built with ❤️ for the Developer Community