atf for VS Code
A user interface for atf, the agentic testing framework (@testagentic/atf): check that your machine is ready,
create a product, see your test runs, answer clarifications, sign off test cases and read run reports without leaving the
editor. Everything happens inside VS Code: no command sends you to a separate terminal.
Requirements
This extension holds none of the framework: it works in an atf project, a folder holding atf/atf.json with the
licensed @testagentic/atf package installed. It can create that project for you.
You need Node.js 20 or later, and a GitHub account that has been given read access to @testagentic/atf. The
Cockpit panel checks your Node.js and can point atf at a newer one you already have installed.
Getting started
- Install the extension, then click the ATF icon in the activity bar.
- Create new project… The first time, it asks for a GitHub personal access token (classic) with only the
read:packages scope (create one).
VS Code keeps it in its secret storage: you don't edit ~/.npmrc or set a shell variable. If your ~/.npmrc
already has a token for npm.pkg.github.com, that one is used and nothing is asked. Then choose where to
create the project. An empty folder is used as it is. Any other folder gets a new folder for the project, whose
name you type (atf-tests by default), so your other files are never mixed in. A folder inside an existing project
is refused, with Open it. The extension downloads the @testagentic/atf of its own version, sets the project up
there and opens it.
- Check your machine: the Cockpit panel, the first view, lists what atf needs (Node.js 20 or later, the
framework's dependencies, the browsers) and fixes what it can.
- Add your first product: in the New product form on the ATF Setup tab, give the product's name, the URL to
test, the modules to test, any references, whether it requires sign-in, and the steps to run, then Create product.
- Start a run: ▷ Run on the product. Runs are read-only by default.
The Get started with ATF walkthrough (Help, Welcome, or Welcome: Open Walkthrough… in the Command Palette)
takes you through the same steps. Already have a project, such as a cloned one? Open existing project… opens it,
and Install the framework installs its package when it has none yet.
Never paste the token into a chat or a project file. ATF: Remove Registry Token in the Command Palette removes the
token stored in VS Code's secret storage. A token in your ~/.npmrc or in ATF_NPM_TOKEN is yours to remove: ATF
never changes either.
From a terminal instead: set ATF_NPM_TOKEN and the @testagentic registry in ~/.npmrc as the access
instructions you were sent describe, run npx @testagentic/atf init my-tests, and open my-tests in VS Code. The extension starts when the folder contains
atf/atf.json.
Use the extension whose version matches the @testagentic/atf version installed in the workspace. Create new
project… installs the matching version for you.
Views
The ATF icon in the activity bar opens these views:
- Cockpit: your product's run at a glance and what needs you (below). Without a project, it offers Create new
project… and Open existing project…. Its title bar has New Product…, Start or Continue a Run, Open
Cockpit, Open Setup and Refresh, and its
… menu Check Readiness, Rerun Stage…, Update AI Host
Files, Verify AI Host Files and the project commands. Open Setup (the gear) opens the ATF Setup tab:
Prerequisites (this machine's checks, the package registry and the AI host), your products with Run, Check
readiness and Open configuration, and the New product form.
- Products: a tree of each product's runs, with their status and the next stage. Hidden unless you turn on the
atf.showProductsTree setting, since the Cockpit and the Setup tab list the same products with the same actions.
- Clarifications: the open clarification rows, by product and module. Starts collapsed.
- Test case approval: the test cases awaiting your sign-off, by product and module. Hidden unless you turn on the
atf.showApprovalTree setting, since the test case workspace (below) shows the same cases with their decisions.
Clarifications (and Test case approval, when turned on) appear once a project with the framework installed is open.
Commands
All commands are in the Command Palette under the ATF category.
| Command |
What it does |
| Refresh |
Refreshes every view. |
| Create New Project… |
Sets up a project in an empty folder you choose, or in a new named folder inside a non-empty one, with the @testagentic/atf of the extension's version, then goes on to New Product…. |
| Open Existing Project… |
Opens a folder that holds atf/atf.json. |
| Connect to Package Registry… |
Asks for the registry token and keeps it in VS Code's secret storage. |
| Remove Registry Token |
Removes the token stored in VS Code's secret storage. |
| Install the Framework |
Runs npm install in the background, in a project whose package isn't installed yet, then updates the AI host files. |
| Initialize Project in This Folder |
Runs atf init in the background, in an open folder that already has the package installed. |
| Update AI Host Files |
Runs atf sync in the background. |
| Verify AI Host Files |
Runs atf check in the background, and offers to update them when they are out of date. |
| Check Readiness |
Runs atf doctor <product> in the background and lists each check with its status and its fix. |
| Validate Configuration |
Runs atf validate <product> in the background. |
| Start or Continue a Run |
Opens the agent session for atf run <product> (see Agent sessions). |
| Rerun Stage… |
Opens the agent session for atf resume <product> --stage <stage>: that stage and the stages that depend on it run again. |
| New Product… |
Creates a product's configuration: fill in the form, set it up yourself (atf config, run in the background), or set it up with an AI interview (an agent session). |
| Open Configuration |
Opens a product's configuration, config/<product>.yaml. |
| Clean Up Test Data… |
Between runs, deletes the test data that ended runs left in the product, once you confirm (see below). |
| Open Clarifications |
Opens the clarifications sheet of a product or module. |
| Open Test Cases |
Opens a module's test case workspace (see Test cases). |
| Open Approval Sheet |
Opens a module's test case approval sheet. |
| Commit Decisions… |
Commits your decisions in the module's approval sheet once you type the module ID (see below). |
| Open Report |
Shows a run's report deck. |
Background commands show their progress in a notification, which you can cancel; the details are in the atf output
channel, and a failure offers Show output.
The Cockpit
The Cockpit is split by use. The sidebar shows what is happening and what to do next; the editor area holds the detail.
The sidebar (the first view of the ATF sidebar):
- without a project, what to do first: Create new project…, Open existing project…, Install the framework;
- the product and environment picker, with the run mode (Read-only or Full run);
- Needs you: one line per item, with its button: questions to Answer, test cases to Review, a failed stage
to Rerun, a blocked one to Resume, test data to Clean up test data…. The count also shows as a badge on
the ATF icon;
- Now: the running stage, and how many of the chosen stages are done;
- Modules: one row per module with its state; a row opens the Overview on that module;
- Start run before a product's first run, with its run mode: Read-only (the default) or Full run. Full run
is offered only when the product configuration already allows it (
authorizations.mode: full-run, set by someone
authorized to test that system), and you confirm it in a dialog that names the hosts the run can change. Read-only on
a configuration that allows full runs makes just this run read-only. Every other way to start a run asks the same
way. And Open the full view;
- at the bottom, Prerequisites and the AI host: each opens the ATF Setup tab.
The Cockpit tab (Open the full view, the dashboard button in the Cockpit's title, or Open Cockpit in the
command palette) opens one editor tab per window, with five tabs:
- Overview: the product's stages, then a grid of modules × stages with each stage's state and detail, a Next
button per module, and per module the actions Explore, Write test cases, Automate, Load test and
Fix failing tests. Each opens an agent session, the same one you would start with
atf explore, atf testcases,
atf automate, atf k6 or, for Fix failing tests, atf resume on the stage with fixable failures. An action that
can't start says why. A run in progress disables none of them. The full Needs you list is here too;
- Timeline: each module's stages with durations, attempts and errors, and the ended runs with their reports;
- Traceability: each test case, its decision, the automated test and its last result; filter to the gaps only;
- Failures: failures grouped by failure type, their evidence, the draft bug reports and Fix failing tests;
- Safety: the run mode and what it means, the records this run created (still in the product or cleaned up), with
Export CSV and the test data cleanup, and any customized framework configuration. Before a product's first run it
shows the mode its configuration would give the next run, marked "before the first run".
The Cockpit only reads: it opens files inside your workspace (never .auth/, a credentials file or a .env file) and
starts the same atf sessions you could type.
Test cases
Open test cases (or Review in the Cockpit's Needs you, or Test cases on an Overview module row) opens a
module's test cases in an editor tab: a table with filters (type, decision, priority, tags), a search and a check box
per row. A title opens the case beside the table: its steps, expected result, data, what it covers, the evidence it
cites (click to open), the reviewer's verdict and how far it is automated.
- Approve, Request changes… (with a comment) or Reject… the selection. Each decision is saved straight into
the module's
approval.csv; nothing is recorded until Commit decisions…, where you type the module slug.
- Edit case… opens the case in a form. Send as change request sends your edit to the testcase-writer, which
applies it on its next round. Save my edit applies it now: your version of the fields you changed is kept in
testcases/approval-edits.json and the test cases are rebuilt at once. An edited case counts as reviewed, and needs
your approval again. Your edit wins on every later build; if the writer changes the case too, the tab says so.
Revert to the writer's version removes your edit. Neither works while the module's test cases step is running.
- Automate… on the selection says, for each case, whether the module's Automate session will automate it, or why
not this time: not approved yet, changes requested, its step not chosen for the run, or over
testcases.max_cases.
Approval is the selection: the session automates every approved case of the module. Open the Automate session
starts it, after the same checks as every session.
The ATF Setup tab (the gear in the Cockpit's title, the sidebar's Prerequisites or AI host row, or New
product…) holds what is not one product's run:
- Prerequisites: the package registry, the AI host (below), and this machine's checks. When it opens, and on
Check again, it checks:
- which Node.js an agent session would run on, the one a new terminal finds. A session needs Node.js 20 or later. If
yours is older, as when a shell finds Homebrew's
node@18 before nvm's Node 24, it lists the newer Node.js installs
it finds and offers Use Node . That sets atf.nodePath, and every session the extension opens then
runs on that Node, whatever your shell finds. It never edits your shell's files. Unpin goes back to the
terminal's Node;
- the framework's own checks for this machine: Node.js for atf's commands, the framework's dependencies, the browser
the login opens, the browser the agents' browser server needs, and k6 (only needed for load tests).
Fix what atf can install runs the safe installs (npm, Playwright's browsers).
- Products: each product with ▷ Run, Check readiness and Open configuration.
- New product: the questions the AI interview asks, as a form in three parts: the product (its name, public or
internal, the URL to test, a description), what to test (the modules, with a module's own page if it has one,
references and an API spec with a file picker, whether it requires sign-in: the path to a credentials file, never a
password), and what the run does, with your own test case file. Create product writes
config/<product>.yaml,
always read-only, through ATF's own script, and lists anything to fix. Then Sign in now (when it requires
sign-in), Start read-only run or Open configuration. The sign-in shows in the tab: sign in in the browser
window, then select I'm signed in: close the window instead of waiting for it to close by itself. If ATF's
checks don't pass, Check saved sign-in opens a browser window with what ATF saved, so you can see whether you're
signed in: Yes, I'm signed in, or Sign in again. No AI is involved: the agents start with the run. Prefer a
conversation? Set up with an AI interview opens the agent interview instead.
Before every session. Start or Continue a Run, Rerun Stage… and the other agent sessions first check the session's Node.js: on one older
than 20 the session would be refused, so it stops there, offering Use Node . Then they run the product's
own check. A problem stops the run with Fix and check again, Start anyway or Show checks. Turn that product
check off with the atf.checkBeforeRun setting; the Node.js check always runs.
Agent sessions
The atf.host setting chooses where Start or Continue a Run, Rerun Stage…, the other agent sessions and the AI
interview open (the agent is orchestrator-agent):
claude (the default): Claude Code's CLI, claude --agent orchestrator-agent, in a terminal tab in the editor
area, named for the session (for example "atf run acme"). Claude Code's panel can't choose the agent, so its CLI is
used.
copilot-cli: Copilot CLI, copilot --agent orchestrator-agent, the same way. The earlier value copilot means
this one.
codex: OpenAI Codex, codex "<prompt>", the same way (--host codex). Codex must trust the project and its
hooks (/hooks) before the guard runs.
antigravity: Google Antigravity's CLI, agy --agent orchestrator-agent, the same way (--host antigravity).
Not yet verified on a real Antigravity.
copilot-chat: VS Code Chat. The extension runs atf's own check of what the run needs, then opens the chat with
the run's first prompt. Choose orchestrator-agent in the chat's Agent dropdown if it is not already chosen, then
press Enter: nothing is sent for you. A product's other environments (--env) open in Copilot CLI instead, since a
chat can't be given its environment. Without Copilot Chat, the extension says so and offers the other two.
Switching the AI host, even mid-run
The list under AI host on the ATF Setup tab (the AI host at the bottom of the Cockpit sidebar opens it) sets atf.host for the workspace. Choosing another host first shows a
short warning with Switch and Cancel. Use it when one AI host reaches its usage limit in the middle of a run:
- Close the old agent session, so two sessions don't drive the same run.
- Switch, then select Continue run in the Cockpit sidebar. The run continues from its files on the new AI host. Finished stages stay done. A stage
that was cut off mid-way counts as one of its two attempts and runs again, from its last saved step where it has one.
- Only what was saved carries over (answers, approvals, the run's files), not the old chat.
The hosts are not equal: on every host but Claude Code and VS Code's local agent, the guard can't tell the run's
agents apart, so a full-run gives every call the run's combined limits. The warning says what the new host needs.
Decisions only you can make
Committing test case decisions and cleaning up test data are yours alone. The extension never does either on your
behalf: each one asks you to type an ID in its own dialog. The ID you type goes to the framework's script through a
one-time confirmation file, which the script checks, uses once and deletes. AI agents can't run these commands or write
that file: the framework's safety guard refuses both.
- Commit Decisions… shows how many test cases the saved approval sheet approves, rejects, sends back for changes
or leaves undecided. Save or discard any unsaved edits in the sheet first. Then type the module's ID to commit
them. Only approved test cases are automated.
- Clean Up Test Data… (on the Safety tab, or right-click a product in the Products tree) first lists, without
deleting anything, the test data ATF can delete and what you must delete manually. If something can be deleted, it
warns that this deletes data in the product's hosts. Then type the product's ID to delete it, for every ended run or
for one run. The framework cleans up only between runs, and only for a product configuration that allows full runs.
A new product
A product starts with its configuration, config/<product>.yaml: what to test, and where. Select New product… (the
+ in the Cockpit's title, the Setup tab's + New product, or the button the Cockpit shows when there is none) and choose:
- Fill in the form: the New product form on the ATF Setup tab (above).
- Set it up myself: type the product's ID (lowercase words joined by hyphens, such as
acme-crm) and the URL to
test, then choose to sign in now (a browser window opens: sign in there, and ATF saves the sign-in for the run and
closes the window) or that no sign-in is needed. The extension creates the configuration and shows its progress in a
notification, which you can cancel; the details are in the atf output channel. Then open the configuration to
fill in its modules, or start the run.
- An AI interview: an agent session (see above) asks a few questions and drafts the configuration with you.
The ATF Setup tab's Products list each product with ▷ Run, Check readiness and Open configuration; the
Cockpit's title bar starts or continues a run, reruns a stage and checks readiness, asking which product when there are
several. With the Products tree turned on (atf.showProductsTree), right-click a product there to do the same,
validate its configuration or clean up its test data.
The report
Open report shows the deck of a finished run (artifacts/<product>/results/<run>/report/index.html) in an editor
tab. Open it from an ended run in the Cockpit tab's Run timeline, or from the Command Palette to pick a run. The deck can read only its own
report folder and has no network access. Use the arrow keys, Page Up and Page Down, Home and End to move between
slides.
If the run's report was collected but never rendered, the extension offers to render it
(node <framework>/scripts/report.mjs render <product>, in the background) and then shows it.
Safety
The extension is not part of the framework's safety. The rules that limit what the agents may do (the read-only
default, full runs, deleting only what a run created) are enforced by the hooks that atf sync installs in the
workspace. The extension never registers, changes or bypasses them. It writes run files only through the framework's
own scripts, or as an edit you make to a sheet you may edit, and it never shows or sends credential values.
Licence
See LICENSE.md, included with the extension. The @testagentic/atf package has its own licence.
The extension's icons are Microsoft's codicons (@vscode/codicons), used under the CC BY 4.0 licence
(https://creativecommons.org/licenses/by/4.0/).
| |