Smart AI Agent is a VS Code extension that gives you a Codex-style coding agent powered by the AI-tools Smart Routing AI Model.
The extension uses the OpenAI-compatible Smart Routing endpoint:
https://ai.mihajlo.mk/api/smart-routing-ai-model/v1
Features
- Activity Bar sidebar view inside VS Code.
- Agent mode with local shell tool-calls.
- Streaming
/v1/responsessupport. - Uses VS Code SecretStorage for the API token.
- Bottom controls for public model alias and command permissions.
- Live quota display from the Smart Routing API.
- Daily and monthly quota progress bars with upgrade links when quota is exhausted.
- Task history stored per workspace, with task switching and rename support.
- Paste images or drag files into the composer; attachments are saved for the current task and passed to the agent as local file paths.
- Stop button for ongoing agent work.
- Plan-aware model warnings when the selected public model is above the token's active plan.
- Compact command cards with status, duration, and collapsible output.
- Automatic collapsed task review with clickable changed files that open VS Code diffs.
- Configurable request timeout, command timeout, and maximum agent steps.
Setup
Install Smart AI Agent from the Visual Studio Marketplace:
https://marketplace.visualstudio.com/items?itemName=ai-tools-mihajlo.smart-ai-agent
After installation, open Smart AI Agent from the VS Code Activity Bar, click the token icon, and paste your Smart Routing AI Model service token from:
https://ai.mihajlo.mk/api/smart-routing-ai-model/documentation
The extension itself is free. The starter smart-route-mini model is also free, so you can test the agent before upgrading Smart Routing quotas.
Agent Mode
Agent mode exposes an exec_command tool to Smart Routing. The tool can inspect files, run commands, edit code, and verify changes in the current workspace.
Read only: safe inspection commands only.Workspace: commands run in the workspace and ask for confirmation unless auto-approval is enabled.Full access: commands run without confirmation. Use only in trusted or disposable workspaces.
For disposable workspaces, Workspace confirmations can also be disabled with:
smartAIAgent.autoApproveCommands
Keep that setting disabled for normal projects.
Configuration
smartAIAgent.modelsmartAIAgent.maxAgentStepssmartAIAgent.defaultPermissionsmartAIAgent.autoApproveCommandssmartAIAgent.commandTimeoutMssmartAIAgent.requestTimeoutMs
Notes
This extension intentionally keeps the Smart Routing backend details hidden from the chat UI. The user-facing model names are public Smart Routing aliases such as smart-route-mini, smart-route, and smart-route-deep.