QueryMT for VS CodeAI coding agent powered by QueryMT, integrated directly into VS Code's chat panel. FeaturesChat Participant (
|
| Setting | Default | Description |
|---|---|---|
querymt.binaryPath |
"" |
Absolute path to coder_agent. If empty, searches bundled binary then PATH. |
querymt.defaultProvider |
"anthropic" |
Default LLM provider (anthropic, openai, llama_cpp, ollama) |
querymt.defaultModel |
"claude-sonnet-4-20250514" |
Default model identifier |
querymt.configFile |
"" |
Path to a QueryMT agent TOML config file |
querymt.autoStart |
true |
Automatically start the agent when a workspace is opened |
querymt.maxRestarts |
5 |
Maximum automatic restart attempts after agent crashes |
Commands
- QueryMT: Restart Agent -- Restart the agent process
- QueryMT: Show Agent Logs -- Open the output channel with agent logs
- QueryMT: Manage Provider -- Configure provider settings
- QueryMT: Agent Status -- Quick actions from the status bar
Status Bar
The status bar shows the current agent connection state:
$(check) QueryMT-- Connected and ready$(sync~spin) QueryMT-- Connecting...$(circle-slash) QueryMT-- Disconnected$(error) QueryMT-- Error (click for recovery options)
Click the status bar item for quick access to restart, logs, and settings.
Architecture
The extension communicates with the coder_agent binary over stdio using the Agent Client Protocol (ACP). The agent runs as a child process and exchanges JSON-RPC messages for session management, prompt processing, and tool execution.
Development
# Install dependencies
npm install
# Build
npm run build
# Watch mode
npm run watch
# Type check
npm run lint
# Package VSIX
npm run package