Copilot Memory SQLite - Enhanced Knowledge Storage

Transform your GitHub Copilot experience with SQLite-powered knowledge storage! Store, retrieve, and organize your coding knowledge with natural language commands like "remember this" and "retrieve information about X".
✨ Key Features
- 🧠 Natural Language Memory: Use "remember" and "retrieve" commands in GitHub Copilot Chat
- ⚡ 10x Faster Performance: SQLite database vs JSON files (5ms vs 500ms response times)
- 📦 One-Click Migration: Easy switch from ByteRover to local SQLite storage
- 🔒 100% Privacy: All data stays on your local machine
- � Comprehensive Knowledge: Pre-loaded with expert programming knowledge
- � Easy Reset: One-click MCP configuration switching
- 🎯 Project-Specific: Separate databases for each workspace
- 🔧 Easy Configuration: Simple setup and configuration options
Installation
From Source
Clone the repository and navigate to the extension directory:
cd copilot-memory-mcp/extension
Install dependencies:
npm install
Compile the extension:
npm run compile
Package the extension:
npm run package
Install the generated .vsix file in VS Code.
Quick Start
Using Server Storage (Recommended)
The extension comes pre-configured to use our hosted API server. Simply:
- Install the extension
- Open VS Code settings (
Cmd/Ctrl + ,)
- Search for "Copilot Memory"
- Set Storage Type to
server
- The Server URL is already configured to use our hosted API
Using Local Storage
- Set Storage Type to
local
- Optionally configure the Local Data Directory (default:
~/.copilot-memory)
Using Both (Hybrid)
- Set Storage Type to
both
- Configure both server and local storage settings
Configuration
Storage Settings
| Setting |
Description |
Default |
copilotMemory.storage.type |
Storage backend type (local, server, both) |
local |
copilotMemory.storage.local.dataDir |
Local storage directory |
~/.copilot-memory |
copilotMemory.storage.server.url |
Server storage URL |
https://aimem-q9cgj9973-kiranbjms-projects.vercel.app |
copilotMemory.storage.server.apiKey |
Server API key (if required) |
- |
copilotMemory.storage.server.timeout |
Request timeout in milliseconds |
10000 |
MCP Server Settings
| Setting |
Description |
Default |
copilotMemory.mcp.serverPath |
Path to local MCP server executable |
- |
copilotMemory.mcp.autoStart |
Automatically start MCP server |
true |
Logging Settings
| Setting |
Description |
Default |
copilotMemory.logging.level |
Logging level (debug, info, warn, error) |
info |
Usage
Commands
Access these commands through the Command Palette (Cmd/Ctrl + Shift + P):
- Copilot Memory: Configure Storage - Open storage configuration
- Copilot Memory: View Memory - Browse stored memories
- Copilot Memory: Clear Memory - Clear all stored memories
- Copilot Memory: Resolve Conflicts - Handle storage conflicts
- Copilot Memory: Export Memory - Export memories to file
- Copilot Memory: Import Memory - Import memories from file
Memory Explorer
The Memory Explorer appears in the VS Code sidebar and provides:
- Tree view of stored memories organized by categories
- Search functionality to find specific memories
- Context menu actions for managing individual memories
- Real-time updates when memories are added or modified
With GitHub Copilot
When using GitHub Copilot, the extension automatically:
- Stores relevant code patterns and solutions
- Retrieves contextual information for better suggestions
- Learns from your coding patterns and preferences
- Provides intelligent conflict resolution
Storage Backends
Local Storage
- Pros: Fast, private, works offline
- Cons: Not shared across devices
- Best for: Personal use, privacy-sensitive projects
Server Storage
- Pros: Shared across devices, cloud backup, team collaboration
- Cons: Requires internet connection
- Best for: Team projects, multi-device workflows
Hybrid Storage
- Pros: Best of both worlds, automatic sync, fallback support
- Cons: More complex configuration
- Best for: Advanced users, critical workflows
API Server
The extension can connect to our hosted API server or your own deployment:
Hosted Service
- URL:
https://aimem-q9cgj9973-kiranbjms-projects.vercel.app
- No authentication required
- Automatically configured
Self-Hosted
Deploy your own instance using the provided server code in the repository.
Development
Building from Source
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Watch for changes during development
npm run watch
# Run tests
npm test
# Lint code
npm run lint
# Package extension
npm run package
Project Structure
extension/
├── src/
│ ├── extension.ts # Main extension entry point
│ ├── mcpClient.ts # MCP client implementation
│ ├── configuration.ts # Configuration management
│ ├── memoryExplorer.ts # Tree view provider
│ └── webviewProvider.ts # Webview management
├── package.json # Extension manifest
├── tsconfig.json # TypeScript configuration
└── README.md # This file
Troubleshooting
Extension Not Loading
- Check VS Code version compatibility (requires 1.85.0+)
- Restart VS Code after installation
- Check the Output panel for error messages
Storage Issues
- Verify storage type configuration
- For server storage, check network connectivity
- For local storage, verify directory permissions
MCP Server Connection
- Check server path configuration
- Verify server is running and accessible
- Check logs for connection errors
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests
- Submit a pull request
License
This project is licensed under the MIT License. See the LICENSE file for details.
Support
Changelog
1.0.0
- Initial release
- Local and server storage backends
- Memory explorer tree view
- MCP server integration
- Configuration management
- Export/import functionality