https://github.com/khanhromvn/orbitai
Orbit AI - Intelligence Beyond Your Editor
https://github.com/khanhromvn/orbitai
ai-assistant browser-integration code-assistant developer-tools khanhromvn orbit productivity vscode-extension websocket
Last synced: 4 months ago
JSON representation
Orbit AI - Intelligence Beyond Your Editor
- Host: GitHub
- URL: https://github.com/khanhromvn/orbitai
- Owner: KhanhRomVN
- License: mit
- Created: 2025-10-04T14:27:45.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-10-04T16:18:00.000Z (4 months ago)
- Last Synced: 2025-10-04T18:23:01.516Z (4 months ago)
- Topics: ai-assistant, browser-integration, code-assistant, developer-tools, khanhromvn, orbit, productivity, vscode-extension, websocket
- Language: TypeScript
- Homepage:
- Size: 334 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# OrbitAI - AI Coding Assistant

**Context-aware AI coding assistant powered by Claude, seamlessly integrated into VS Code**
[](https://github.com/KhanhRomVN/OrbitAI)
[](LICENSE)
[](https://code.visualstudio.com/)
[Features](#features) β’ [Installation](#installation) β’ [Quick Start](#quick-start) β’ [Documentation](#documentation) β’ [Contributing](#contributing)
---
## π Overview
OrbitAI transforms your VS Code into an intelligent coding workspace by connecting with Claude AI through a seamless WebSocket bridge. Organize your codebase into collections, get context-aware assistance, and maintain conversations across multiple Claude tabs - all without leaving your editor.
### Why OrbitAI?
- π― **Context-Aware**: Feed entire collections of files to Claude for better understanding
- π¬ **Persistent Conversations**: Maintain conversation history across sessions
- ποΈ **Smart Collections**: Organize and manage code files for AI analysis
- π **Real-time Sync**: Direct WebSocket connection with Claude browser extension
- β‘ **Intelligent Code Editing**: Apply AI suggestions with SEARCH/REPLACE blocks
- π **Workspace-Aware**: Collections are workspace-specific for better organization
---
## β¨ Features
### π€ AI-Powered Code Assistance
- **Explain Code**: Get detailed explanations of selected code
- **Fix Bugs**: Automatically identify and fix issues
- **Refactor**: Improve code quality and maintainability
- **Generate Tests**: Create comprehensive test suites
- **Add Documentation**: Generate clear, helpful comments
- **Custom Edits**: Describe what you want, AI does the rest
### π Collection Management
- **Create Collections**: Group related files for context
- **Workspace Isolation**: Collections are workspace-specific
- **File Management**: Easy add/remove files with visual interface
- **Search & Filter**: Quickly find files and collections
- **Tree View**: Hierarchical file structure visualization
- **Bulk Operations**: Select/deselect files efficiently
### π WebSocket Integration
- **Direct Connection**: Connect to Claude browser extension
- **Port Management**: Automatic port detection and assignment
- **Multi-Workspace**: Each workspace can have its own server port
- **Connection Status**: Real-time server status monitoring
- **Auto-Reconnect**: Resilient connection handling
### π¬ Conversation Management
- **Persistent History**: Conversations saved across sessions
- **Multi-Tab Support**: Switch between different Claude tabs
- **Context Injection**: Automatically include file context
- **Request Tracking**: Monitor request/response flow
- **Error Handling**: Clear error messages and recovery
---
## π Installation
### Prerequisites
1. **VS Code** version 1.50.0 or higher
2. **Claude Browser Extension** (Chrome/Edge/Firefox)
3. **Node.js** (for extension development)
### Install from VSIX
1. Download the latest `.vsix` file from [Releases](https://github.com/KhanhRomVN/OrbitAI/releases)
2. In VS Code: `Extensions` β `...` β `Install from VSIX`
3. Select the downloaded file
4. Reload VS Code
### Install from Marketplace
```
Coming soon to VS Code Marketplace
```
### Build from Source
```bash
# Clone repository
git clone https://github.com/KhanhRomVN/OrbitAI.git
cd OrbitAI
# Install dependencies
npm install
# Compile
npm run compile
# Package (optional)
npm run package
```
---
## π― Quick Start
### 1. Setup Connection
```
1. Install Claude browser extension
2. Open Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
3. Run: "OrbitAI: Start Server"
4. Enter port number (default: 3031)
5. Connection status appears in sidebar
```
### 2. Create Your First Collection
```
1. Open OrbitAI sidebar
2. Click "Collections" tab
3. Click "+" to create collection
4. Add files from your workspace
5. Your collection is ready for AI assistance!
```
### 3. Start Coding with AI
```
1. Select code in editor
2. Right-click β OrbitAI β Choose action
OR
Use keyboard shortcuts:
- Ctrl+Shift+E: Explain Code
- Ctrl+Shift+F: Fix Code
- Ctrl+Shift+K: Edit Code
3. AI response appears in chat panel
4. Review and apply suggested changes
```
---
## π Documentation
### Commands
| Command | Shortcut | Description |
|---------|----------|-------------|
| `OrbitAI: Start Server` | - | Start WebSocket server |
| `OrbitAI: Stop Server` | - | Stop WebSocket server |
| `OrbitAI: Explain Code` | `Ctrl+Shift+E` | Explain selected code |
| `OrbitAI: Fix Code` | `Ctrl+Shift+F` | Fix bugs in code |
| `OrbitAI: Refactor Code` | - | Improve code quality |
| `OrbitAI: Generate Tests` | - | Create test cases |
| `OrbitAI: Add Documentation` | - | Generate comments |
| `OrbitAI: Edit Code` | `Ctrl+Shift+K` | Custom code edits |
| `OrbitAI: Chat` | `Ctrl+Shift+L` | Open chat panel |
### Collection Management
**Creating Collections:**
- Collections are workspace-specific
- Use descriptive names
- Include related files for better context
**Adding Files:**
- Multiple selection supported
- Search to filter files
- Pre-selects existing files in "Add" mode
**Removing Files:**
- Visual selection interface
- Confirmation before removal
- Preserves file on disk
### WebSocket Connection
**Port Selection:**
- Default: 3031
- Range: 3031-3040
- Auto-detection of existing servers
- Workspace-specific port storage
**Connection States:**
- π΄ Not Connected: Server not started
- π’ Connected: Active WebSocket connection
- π‘ Connecting: Establishing connection
### Code Editing with AI
**SEARCH/REPLACE Blocks:**
AI responses can include code changes in this format:
```xml
function oldCode() {
// old implementation
}
function newCode() {
// improved implementation
}
```
OrbitAI automatically:
1. Detects SEARCH/REPLACE blocks
2. Finds exact matches in your code
3. Applies changes with confirmation
4. Shows diff preview (optional)
---
## βοΈ Configuration
### Settings
```json
{
"orbitAI.maxContextTokens": 100000,
"orbitAI.autoFormatCode": true,
"orbitAI.previewChangesBeforeApplying": true,
"orbitAI.includeOpenFiles": true,
"orbitAI.includeDiagnostics": true,
"orbitAI.maxOpenFiles": 10,
"orbitAI.serverPort": 3031
}
```
### Keyboard Shortcuts
Customize in `Preferences: Open Keyboard Shortcuts (JSON)`:
```json
{
"key": "ctrl+shift+l",
"command": "orbit-ai.chat"
},
{
"key": "ctrl+shift+e",
"command": "orbit-ai.explainCode",
"when": "editorHasSelection"
}
```
---
## ποΈ Architecture
```
OrbitAI Extension
βββ WebSocket Server (Port 3031-3040)
β βββ Communicates with Claude Browser Extension
βββ Collection Management
β βββ File System Storage
β βββ Tree Service (Hierarchical view)
β βββ Workspace Isolation
βββ Chat Interface
β βββ Conversation Store
β βββ Message Handler
β βββ Code Editor Integration
βββ Prompt Builder
βββ System Prompt
βββ User Prompt
βββ Collection Context
```
### Technology Stack
- **Language**: TypeScript
- **Framework**: VS Code Extension API
- **Storage**: File System (workspace-specific)
- **Communication**: WebSocket (ws library)
- **Build**: Webpack
- **Testing**: Mocha (planned)
---
## π€ Contributing
We welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
### Development Setup
```bash
# Clone and install
git clone https://github.com/KhanhRomVN/OrbitAI.git
cd OrbitAI
npm install
# Run in development mode
npm run watch
# Open in VS Code
code .
# Press F5 to start debugging
```
### Areas for Contribution
- π Bug fixes and improvements
- β¨ New AI-powered features
- π Documentation and examples
- π§ͺ Tests and quality assurance
- π Internationalization
- π¨ UI/UX enhancements
---
## π Troubleshooting
### Connection Issues
**Problem**: Cannot connect to Claude
```
Solution:
1. Ensure Claude browser extension is installed
2. Check WebSocket server is running
3. Verify port is not blocked by firewall
4. Try restarting VS Code
```
**Problem**: Port already in use
```
Solution:
1. Use "OrbitAI: Connect to Port" command
2. Enter a different port (3031-3040)
3. Or stop other services using the port
```
### Collection Issues
**Problem**: Files not appearing in collection
```
Solution:
1. Refresh collection view
2. Check file paths are correct
3. Ensure files are in workspace
4. Restart VS Code if needed
```
### Chat Issues
**Problem**: No response from AI
```
Solution:
1. Check WebSocket connection status
2. Verify Claude browser extension is active
3. Check for errors in Output panel (OrbitAI)
4. Restart WebSocket server
```
---
## π License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
---
## π€ Author
**KhanhRomVN**
- GitHub: [@KhanhRomVN](https://github.com/KhanhRomVN)
- Email: khanhromvn@gmail.com
---
## π Acknowledgments
- **Anthropic** - For creating Claude AI
- **VS Code Team** - For the excellent extension API
- **Open Source Community** - For inspiration and support
---
## π Project Status
- β
Core Features: Complete
- β
Collection Management: Complete
- β
WebSocket Integration: Complete
- π§ Testing Suite: In Progress
- π§ Marketplace Publishing: Planned
- π Advanced Features: Roadmap
---
## πΊοΈ Roadmap
### Version 1.1 (Planned)
- [ ] Comprehensive test suite
- [ ] Performance optimizations
- [ ] Enhanced error handling
- [ ] Improved UI/UX
### Version 1.2 (Future)
- [ ] Multi-language support
- [ ] Advanced code analysis
- [ ] Custom prompt templates
- [ ] Integration with other AI models
### Version 2.0 (Vision)
- [ ] Collaborative features
- [ ] Cloud sync for collections
- [ ] Advanced analytics
- [ ] Enterprise features
---
## π¬ Support
- π [Documentation](https://github.com/KhanhRomVN/OrbitAI/wiki)
- π [Issue Tracker](https://github.com/KhanhRomVN/OrbitAI/issues)
- π¬ [Discussions](https://github.com/KhanhRomVN/OrbitAI/discussions)
- π§ [Email Support](mailto:khanhromvn@gmail.com)
---
**If you find OrbitAI useful, please consider giving it a β on GitHub!**
Made with β€οΈ by KhanhRomVN