AutoCode Task Chat for VS Code
Chat with AutoCode in the VS Code sidebar.
AutoCode runs your coding agent (Claude Code, Codex, Antigravity CLI, Gemini CLI, OpenCode or Kilo) through
Requirements, a reviewed plan you approve, the build and independent checks, and
reports a task done only with evidence. Early preview.
Get started
Install the AutoCode CLI (Python 3.11+, Git, pipx; macOS or Linux, Windows through WSL).
The extension does not bundle it.
pipx install autocode-supervisor
autocode setup # connect an account and choose each stage's model
Install this extension:
code --install-extension ankurkothari.autocode-task-chat
Open a Git project, click the AutoCode icon in the Activity Bar and type a request.
Approve AutoCode's understanding, then the plan; nothing is built before you approve.
The quickstart
walks through a first task, and
Installing AutoCode
covers each backend. If autocode is not on VS Code's PATH, set autocode.cliPath.
To run the newest master instead, run scripts/update-vscode-extension.sh from an AutoCode
checkout (update from master).
Providers run on Linux and macOS (macOS without kernel session ownership); Windows is
not yet qualified. Full interactive and live-model qualification is incomplete.
What it does
A thin client for AutoCode task runs. It starts the autocode CLI, reads the
status view, and takes the action the view names. It imports nothing from
tools/ and never reads state.json.
Chat in the sidebar — several task tabs at once — give plan feedback, approve a
reviewed plan, see everything a run changed, pause a working run
after its current step, and continue with follow-up messages in the same run. Every change takes
the same path (Requirements, plan, build, independent check); a question is answered without
changing anything. Composer and scroll behavior adapt
selected Kilo Code components; see attribution.
It never launches a model on its own, cannot approve a plan it has not
displayed, and keeps issued tokens in the child's environment rather than on the
command line.
The cost meter keeps known token counts visible even when dollar cost is unavailable.
+ marks a partial known subtotal. Focus or hover the meter, or expand the run overview's
Show details, for missing-cost reasons and the separate provider-reported and estimated
amounts. These figures are not a provider invoice.
Status and other metadata reads have a UI deadline (30 seconds, or 60 seconds
for model/placement lists and connection checks). A missed deadline shows the read as unavailable
and disables actions that need a fresh view. The extension keeps the configured
reader alive until it exits and holds identical read attempts in the meantime,
so repeated polls cannot pile up behind a slow wrapper. Late output is discarded;
after collection, the next read starts a fresh process. A reader that never exits
remains unavailable in that extension session.
Developing
When working on AutoCode itself, the CLI must be installed outside the opened
checkout (not editable from it). Before starting, an unsafe controller offers
Select isolated AutoCode CLI: pick an existing executable, let AutoCode check
it, then send your message again. Only this workspace's CLI path and arguments
are changed; nothing is installed and global settings are untouched. Choosing
a new task worktree alone does not isolate the controller during startup.
npm ci
npm run build
npm test
code . # then F5 for the Extension Development Host
npm test runs the CLI-facing helper tests plus controller and registered-command
regressions with a substituted VS Code host. It also executes the generated webview
script in jsdom, covering chat history, feedback/follow-ups, stale approval,
polling while typing, model selection, Markdown, and composer/scroll behavior.
These tests launch no providers. They do not qualify the actual VS Code host or a
live model route. Full release qualification remains incomplete.
xvfb-run -a npm run test:host (after npm run build) starts an actual VS Code
Extension Host with this extension and drives it through Playwright, with no model
and no person at the window (#3860). The extension runs this checkout's CLI
(AUTOCODE_HOST_PYTHON, default the repository's .venv) on a scripted run whose
Planner the provider rejects with HTTP 401 (tests/provider_auth_fixture.py). One
test checks the failed Planner stage, the blocked chat, the Models chip's reason and
the single recorded Planner attempt in Run details. The other holds a status read
past the 30-second deadline with a draft in the composer, refreshes, and checks the
unavailable state, one outstanding reader, the kept draft and recovery on a fresh
read. It downloads the pinned VS Code into .vscode-test unless
AUTOCODE_VSCODE_EXECUTABLE names one. CI runs it in the extension job.
Current editor and live results: qualification record.
Create a distributable with npm run package. This builds the bundled runtime
and includes its license, icon and third-party notices. Packaging does not publish
the extension or qualify its live workflow.