Transform your AI development tools with persistent memory, learning, and project context.
This extension bridges any AI tool (GitHub Copilot, Claude Dev, Cline, etc.) with KnowledgeHub AI Intelligence, giving them:
- 🧠 Persistent Memory: Remembers everything across sessions
- 📚 Project Context: Understands your codebase patterns and decisions
- 🎯 Learning Intelligence: Learns from mistakes and improves over time
- 🔗 Session Continuity: Picks up exactly where you left off
- ⚡ Performance Optimization: Uses learned patterns for better suggestions
- GitHub Copilot (Claude 4, GPT-4.1, etc.)
- Continue/Cline - AI coding assistant
- Claude Dev - Anthropic's VS Code extension
- Codeium - Free AI code completion
- TabNine - AI code completion
- AWS CodeWhisperer - Amazon's AI assistant
- Any AI extension that provides code completion or chat
- Session Continuity: AI remembers previous conversations and decisions
- Project-Aware: Understands your specific codebase and patterns
- Cross-Session Learning: Learns from mistakes and successes
- Decision Tracking: Remembers why architectural choices were made
- Context Injection: Automatically adds relevant project context to AI requests
- Pattern Recognition: Uses learned patterns for better suggestions
- Error Prevention: Warns about issues based on past experience
- Performance Optimization: Learns optimal approaches for your projects
- Live Context Tracking: Monitors your coding activity in real-time
- Predictive Assistance: Suggests next steps based on patterns
- Smart Completions: Enhanced code completions with project awareness
- Learning Dashboard: View AI insights and learning progress
- VS Code 1.80.0 or later
- KnowledgeHub server running (see setup guide)
# Clone the repository
git clone <repository-url>
cd knowledgehub-vscode-extension
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Package extension (optional)
vsce packageOpen VS Code settings and configure:
{
"knowledgehub.server.url": "http://192.168.1.25:3000",
"knowledgehub.ai.autoEnhance": true,
"knowledgehub.ai.primaryProvider": "auto",
"knowledgehub.ai.enhancementLevel": "maximum"
}- Open Command Palette (
Ctrl+Shift+P) - Run
KnowledgeHub: Initialize AI Session - Your AI tools are now enhanced!
| Command | Description |
|---|---|
KnowledgeHub: Initialize AI Session |
Start enhanced AI session |
KnowledgeHub: Show AI Dashboard |
Open AI insights dashboard |
KnowledgeHub: Analyze Project Context |
Analyze current project |
KnowledgeHub: Show Memory Context |
View AI memory and history |
KnowledgeHub: Enable AI Enhancement |
Toggle AI enhancement on/off |
{
// KnowledgeHub server URL
"knowledgehub.server.url": "http://192.168.1.25:3000",
// Automatically enhance AI requests
"knowledgehub.ai.autoEnhance": true,
// Primary AI provider to enhance
"knowledgehub.ai.primaryProvider": "auto", // or "github_copilot", "cline", etc.
// Level of context enhancement
"knowledgehub.ai.enhancementLevel": "maximum" // "minimal", "standard", "maximum"
}{
// Track code changes for learning
"knowledgehub.memory.trackChanges": true,
// Context compression ratio for small models
"knowledgehub.context.compressionRatio": 10,
// UI preferences
"knowledgehub.ui.hasShownWelcome": false
}You: "Create user authentication"
AI: [Generic auth code with no project context]
You: "Create user authentication"
AI gets enhanced context:
- Your project uses JWT with 15min expiry (learned from past decisions)
- Follows existing error handling patterns
- Integrates with your existing user service
- Uses your team's preferred validation approach
AI: [Perfect code that fits your project perfectly]
- Remembers conversations across VS Code restarts
- Maintains context between different projects
- Links related work sessions automatically
- Learns from your coding patterns and preferences
- Remembers solutions to problems you've encountered
- Adapts suggestions based on what works in your projects
- Understands your codebase architecture and patterns
- Tracks decisions and their rationale
- Suggests improvements based on project history
- Optimizes AI requests based on learned patterns
- Compresses context for faster responses
- Routes requests to optimal AI providers
Access the AI Dashboard to view:
- Memory Statistics: What the AI has learned
- Pattern Recognition: Identified code patterns
- Decision History: Past architectural choices
- Performance Metrics: AI effectiveness stats
- Learning Progress: Continuous improvement tracking
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Watch for changes
npm run watch
# Package for distribution
vsce package# Run extension in development mode
F5 (in VS Code)
# Test with different AI providers
# Enable GitHub Copilot, Cline, etc. and test enhancementWhen you use Copilot, you get:
- Project context automatically injected
- Learned patterns applied to suggestions
- Past decisions considered in code generation
- Error prevention based on experience
When you chat with Cline, it knows:
- Full project history and context
- Previous conversations and solutions
- Code patterns you prefer
- Architectural decisions and rationale
Claude Dev gets enhanced with:
- Memory of past interactions
- Project understanding from KnowledgeHub
- Pattern recognition for better suggestions
- Learning from successful outcomes
VS Code Extension
↓
KnowledgeHub AI (192.168.1.25:3000)
↓
13 MCP Services (192.168.1.24:3001-3015)
The extension works with the distributed KnowledgeHub infrastructure to provide intelligent AI enhancement.
# Check KnowledgeHub server connection
curl http://192.168.1.25:3000/health
# Verify VS Code version
code --version
# Check extension logs
View → Output → KnowledgeHub AI- Check AI provider is installed and active
- Verify
knowledgehub.ai.autoEnhanceis enabled - Initialize AI session:
Ctrl+Shift+P→KnowledgeHub: Initialize AI Session
- Check KnowledgeHub server is running
- Verify workspace folder is open
- Check network connectivity to 192.168.1.25
- Minimal Latency: <200ms context enhancement
- Efficient Memory: Uses smart caching and compression
- Scalable: Handles large codebases with context compression
- Reliable: Fallback modes ensure continuous operation
- No Code Transmission: Only metadata and context sent to KnowledgeHub
- Local Processing: AI enhancement happens locally when possible
- Secure Storage: All data encrypted and stored securely
- Privacy-First: No data sent to external services without consent
- Real-time code analysis and suggestions
- Advanced pattern recognition
- Multi-language context understanding
- Team collaboration features
- Advanced AI routing and optimization
- Custom AI provider support
- Natural language interface
- Predictive code generation
- Advanced learning algorithms
MIT License - see LICENSE file for details.
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: Full Documentation
Transform your AI development tools with memory, learning, and context! 🚀