ASI1 CodeAI Coding Assistant for VS Code & Cursor · v0.1.3
Build faster with AI directly inside your editor. OverviewASI1 Code is an AI-powered coding assistant built for VS Code and Cursor using the ASI1 API. It gives you a fast, clean sidebar chat so you can:
Instead of switching between tabs, websites, and separate tools, you can stay in the IDE. Why this existsBuilding with ASI1 and Agentverse-style workflows should not mean juggling browser tabs and copy-pasted snippets. This extension adds a one-command scaffold aligned with Who is this for?
Features (at a glance)
AI chat inside VS CodeAsk anything from the sidebar chat panel.
Streaming responsesReplies stream in as the model generates them (when streaming is enabled and tools are not resolving a multi-step tool loop). Code highlightingMarkdown and syntax-highlighted code blocks for easier reading. Ask about selected codeHighlight code and run ASI: Ask About Selection to explain, debug, or improve it. File generationGenerated files can be written into your workspace (manual Create files or optional auto apply). Auto apply filesOptional: automatically create files detected from the assistant reply (requires an open folder). Chat UI & optional brandingThe sidebar uses a minimal black theme with an ASI1 Code label, session id, and turn count. Optional Tools & web search (ASI1)When enabled in settings, requests can include workspace tools and/or Agentverse uAgent scaffoldCommand palette: ASI: Create Agentverse uAgent Project — creates a Python project with uAgents and the Agent Chat Protocol (see Agentverse uAgent scaffold). Preview
InstallationFrom VS Code MarketplaceInstall from the Marketplace:
Or open: ASI1 Code — Visual Studio Marketplace From a
|
| Command | Description |
|---|---|
ASI: Open Assistant Chat |
Open / focus the chat panel |
ASI: Ask About Selection |
Ask about selected code (or file) |
ASI: Set API Key |
Save your API key securely |
ASI: Install Extension from .vsix |
Install extension from a .vsix file |
ASI: Create Agentverse uAgent Project |
Scaffold a uAgent project (uAgents + chat protocol) |
Extension settings
All settings use the asiAssistant.* prefix.
| Setting | Description |
|---|---|
asiAssistant.apiKey |
ASI1 API key |
asiAssistant.baseUrl |
Chat completions endpoint URL |
asiAssistant.model |
Model id (e.g. asi1) |
asiAssistant.imageBaseUrl |
Optional image API base URL (empty = derive from chat URL) |
asiAssistant.imageModel |
Image model id (empty = fallback to chat model) |
asiAssistant.imageSize |
Default image size (e.g. 1024x1024) |
asiAssistant.systemPrompt |
System message for every request |
asiAssistant.streamResponse |
Stream SSE (off while built-in tools resolve a turn) |
asiAssistant.webSearch |
Enable ASI1 web_search |
asiAssistant.enableTools |
Workspace read + glob search via tool calling |
asiAssistant.agenticSession |
Send x-session-id for agentic flows |
asiAssistant.sessionId |
Optional fixed session id |
asiAssistant.maxToolRounds |
Max tool-call rounds per message |
asiAssistant.autoApplyFiles |
Auto-write detected files after replies |
asiAssistant.bannerTitle |
Optional banner title (setting retained) |
asiAssistant.bannerSubtitle |
Optional banner subtitle (setting retained) |
asiAssistant.bannerLogoUrl |
Optional HTTPS logo URL (setting retained) |
asiAssistant.linkWebsite |
Website URL |
asiAssistant.linkDocs |
Documentation URL |
asiAssistant.linkX |
X (Twitter) URL |
asiAssistant.linkCommunity |
Community URL |
asiAssistant.linkResources |
Resources URL |
asiAssistant.linkSupport |
Support URL |
asiAssistant.linkContact |
Contact URL |
Example use cases
Frontend development
- Create React components
- Generate Tailwind UI
- Debug CSS issues
- Build forms and pages
Backend development
- Generate Express routes
- Create APIs
- Build database schemas
- Write authentication logic
Debugging
- Fix TypeScript errors
- Explain stack traces
- Understand console errors
- Improve code quality
Learning
- Explain code line by line
- Learn frameworks faster
- Understand new libraries
- Get examples instantly
Agentverse uAgent scaffold
This extension can generate a project aligned with create-agentverse-agent: uAgents, Agent Chat Protocol (uagents_core.contrib.protocols.chat), chat() in agent.py, entry in main.py.
Run: Command Palette → ASI: Create Agentverse uAgent Project → choose a display name and parent folder.
Generated layout (folder name is a slug of your display name):
<your-agent-slug>/
├── main.py # uAgent, protocols, message manager, Agentverse registration
├── agent.py # async chat(session_id, user_id, message, logger, send_progress)
├── test.py # Streamlit test UI
├── Makefile
├── pyproject.toml
├── requirements.txt
├── docker-compose.yml
├── Dockerfile
├── .env
└── README.md
For the interactive Python CLI (wizard, --default, --advanced), see the upstream project: create-agentverse-agent on PyPI.
Project structure (this repository)
asi1-vs-code/
├── src/
│ ├── extension.ts # activation, commands
│ ├── chatViewProvider.ts # webview chat UI
│ ├── asiClient.ts # ASI1 API, tools, web_search
│ ├── agentverseScaffold.ts # Agentverse template render + write
│ └── workspaceFiles.ts # extract/write files from replies
├── media/ # chat.css, chatPanel.js, markdown + highlight
├── resources/
│ ├── icon.png, logo.png, readme-banner.png
│ └── agentverse-templates/ # templates for uAgent scaffold
├── package.json
├── README.md
├── README.vsix.md # Marketplace readme (VSIX packaging)
├── CHANGELOG.md
├── CONTRIBUTING.md
├── SECURITY.md
└── LICENSE
Documentation links
| Resource | URL |
|---|---|
| ASI1 API | api.asi1.ai |
| Fetch.ai | fetch.ai |
| ASI:One docs | docs.fetch.ai (tool calling, web search, OpenAI compatibility) |
Development
Clone the repository:
git clone https://github.com/gautammanak1/asi1-vs-code.git
cd asi1-vs-code
Install dependencies:
npm install
Compile:
npm run compile
Run the extension locally:
Press F5 inside VS Code (Extension Development Host)
Optional watch mode:
npm run watch
Package Extension:
npm run package
This README.vsix.md file is what ships as the Marketplace long description when you run npm run package (vsce package --readme-path README.vsix.md) — v0.1.3 includes the icon + banner above. The same content is kept in README.md on GitHub.
Roadmap
- Richer workspace context (symbols, diagnostics)
- Workspace-aware AI suggestions
- Multi-file generation and review flow
- Improved file previews
- Optional chat history persistence
- More model options where the API supports them
- UI polish and animations
Contributing
Contributions are welcome.
- Fork the repository
- Create a new branch
- Make your changes
- Commit your work
- Open a pull request
Please read CONTRIBUTING.md for setup, checks, and PR expectations.
See CHANGELOG.md for release notes.
Security
Found a security issue? Please read SECURITY.md instead of opening a public issue.
License
This project is licensed under the MIT License.
See LICENSE for full text.
Built with ❤️ by Gautam Manak
If you like this project, give it a ⭐ on GitHub.