AI Agent S
An AI Agent VS Code extension designed to work with locally installed Large Language Models (LLMs).
Description
AI Agent S is a VS Code extension that provides AI-powered assistance directly within your development environment. This extension is specifically built to integrate with locally installed LLMs, ensuring privacy and offline functionality for your coding workflow.
Features
- Local LLM Integration: Works with locally installed language models for enhanced privacy
- VS Code Native Integration: Seamlessly integrates with your existing VS Code workflow
- Offline Functionality: No internet connection required once set up with local LLM
Current Status
This extension is in early development. Currently implemented features:
- Basic extension structure and activation
- Hello World command for testing functionality
Installation
Method 1: Install from VSIX (Recommended for Users)
- Download the latest
.vsix
file from the releases page
- Open VS Code
- Go to Extensions view (
Ctrl+Shift+X
)
- Click on the "..." menu and select "Install from VSIX..."
- Select the downloaded
.vsix
file
Method 2: Install via Command Line
# Install the extension
code --install-extension ai-agent-s-0.0.1.vsix
# Uninstall the extension
code --uninstall-extension sprajapat770.ai-agent-s
Method 3: Install from VS Code Marketplace (Coming Soon)
Once published to the marketplace:
- Open VS Code
- Go to Extensions view (
Ctrl+Shift+X
)
- Search for "AI Agent S"
- Click "Install"
Usage
Once installed, you can access the extension through:
- Command Palette (
Ctrl+Shift+P
) → "Hello World"
Development
Prerequisites
- VS Code version 1.54.0 or higher
- Node.js (version 20.x or higher)
- npm or yarn package manager
Setup Development Environment
# Clone the repository
git clone https://github.com/sprajapat770/AI-AGENT-VS-CODE-EXTENSION.git
cd AI-AGENT-VS-CODE-EXTENSION
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Watch for changes during development
npm run watch
Available Commands
# Development Commands
npm run compile # Compile TypeScript to JavaScript
npm run watch # Watch for file changes and auto-compile
npm run lint # Run ESLint for code quality
npm run test # Run tests
# Build and Package Commands
npm run build # Compile and package the extension
npm run package # Create .vsix package file
npm run clean # Remove build artifacts and dependencies
# Installation Commands
npm run install-local # Install the packaged extension locally
npm run uninstall # Uninstall the extension
# Publishing Commands
npm run publish # Publish to VS Code Marketplace
Testing Your Changes
- Press
F5
to open a new Extension Development Host window
- Test your changes in the new VS Code instance
- Use
Ctrl+Shift+P
and run "Hello World" to test basic functionality
Publishing
Prerequisites for Publishing
- Install the VS Code Extension Manager:
npm install -g vsce
Get a Personal Access Token from Azure DevOps
Create a publisher account on VS Code Marketplace
Publishing Steps
# Login to your publisher account
vsce login sprajapat770
# Package the extension
npm run package
# Publish to marketplace
npm run publish
# Or publish with version bump
vsce publish patch # 0.0.1 -> 0.0.2
vsce publish minor # 0.0.1 -> 0.1.0
vsce publish major # 0.0.1 -> 1.0.0
Requirements
- VS Code version 1.54.0 or higher
- Node.js for development
Roadmap
- [ ] Integration with popular local LLM frameworks
- [ ] Code completion and suggestions
- [ ] Code review and analysis features
- [ ] Custom prompt templates
- [ ] Configuration options for different LLM models
Author
Suraj Prajapat
License
This project is licensed under the MIT License.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Development Workflow
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
)
- Make your changes
- Test thoroughly
- Commit your changes (
git commit -m 'Add some amazing feature'
)
- Push to the branch (
git push origin feature/amazing-feature
)
- Open a Pull Request
Support
If you encounter any issues or have suggestions, please open an issue on the GitHub repository.
Changelog
0.0.1 (Current)
- Initial release
- Basic extension structure
- Hello World command functionality