Vanaras VS Code Extension
AI-powered code assistant for VS Code, powered by the Vanaras Agent Framework.
Features
- 💬 AI Chat Panel: Conversational coding assistant
- 🤖 Agent Workflows: Multi-agent collaboration for complex tasks
- 🔧 Tool Integration: Access to Vanaras tools (file operations, code analysis)
- 🚀 Quick Actions: Generate code, refactor, debug with AI
Architecture
VS Code Extension (TypeScript)
↓ HTTP/JSON
Python Bridge (vanaras serve)
↓ Python API
Vanaras Framework
Prerequisites
- Node.js 18+
- VS Code 1.80+
- Python 3.8+
- Vanaras Framework installed (
pip install vanaras-agent-framework)
Development Setup
Install dependencies:
npm install
Start the Vanaras Bridge:
vanaras serve --port 5000
Run the extension:
- Press
F5 in VS Code to open Extension Development Host
- Or run:
npm run watch
Building
npm run compile
npm run package
This creates a .vsix file you can install in VS Code.
Publishing
vsce publish
Project Structure
vanaras-vscode-extension/
├── src/
│ ├── extension.ts # Extension entry point
│ ├── chatPanel.ts # Chat UI panel
│ ├── vanarasClient.ts # HTTP client for Python bridge
│ └── commands.ts # VS Code commands
├── package.json # Extension manifest
├── tsconfig.json # TypeScript config
└── README.md
License
MIT
| |