AADML Code
AADML Code is a coding agent for VS Code that runs on your own computer. It reads your project, edits files, runs
commands and tests, and shows every change as a diff. Model use is paid from your AADML balance.
Install
- In VS Code, open the Extensions view (Ctrl+Shift+X, or Cmd+Shift+X on macOS).
- Search for AADML Code and press Install.
- Open it from the AADML Code icon, or run AADML Code: Open in Side Bar from the Command Palette.
You need an AADML account with money in your balance. Run AADML Code: Open Walkthrough for a four-step tour.
Sign in
- Press Sign in. Your browser opens the AADML sign-in page.
- Sign in and accept: "AADML Code will use AADML models, paid from your balance."
- The editor opens again, and you are ready.
If the editor does not open by itself, copy the code shown on the page and run AADML Code: Sign In with a Code.
Your sign-in is kept in your operating system's keychain, never in a file. To end it, run AADML Code: Sign
Out, or end the device's sign-in from your AADML dashboard.
What it can do

- Chat in the side bar, an editor tab or its own window. Several sessions can run at once.
- Context from the editor. The open file and the selection are attached by themselves. Mention files with
@file or @file#5-10, a terminal's recent output with @terminal:<name>, and the Problems panel with
@problems.
- Edits as diffs. Each change opens in VS Code's diff editor. Accept or reject the whole change, or one part.
- Commands. The agent runs shell commands, tests and dev servers. A long command moves to the background, and
the agent is told when it finishes.
- Sessions. Every chat is saved on your computer. Search, rename, archive, resume or fork any session.
- Rewind. From any message: rewind the code to that point, fork the conversation, or both.
- Plan mode, task list, questions. The agent can write a plan for you to approve, keep a task list, and ask you
multiple-choice questions.
- Subagents. Explore, Plan and general-purpose subagents work in their own context, at most 3 at once.
- Instruction files and memory. The agent reads
AGENTS.md, CLAUDE.md, .cursorrules and
.github/copilot-instructions.md. It keeps its own memory as files on your computer.
- Extending it. Add MCP servers, skills, slash commands, custom subagents and hooks.
- Editor actions. Fix with AADML Code on problems in the editor. Add to Chat in the Explorer and Source
Control menus.
- Code suggestions while you type. Off by default. Paid from your balance when you turn them on.

The chat follows your VS Code theme, including high contrast, and fits a narrow side bar.

Permission modes and protected files
The mode is shown under the message box. Click it, or press Shift+Tab, to change it.
| Mode |
File edits |
Ordinary commands (npm test, pytest) |
Risky commands, protected files, commit and push |
| Ask before edits (the default) |
asks, with the diff |
asks |
asks |
| Auto-edit (Edit automatically) |
applied |
asks |
asks |
| Plan |
blocked, except the plan file |
blocked |
blocked |
| Autonomous |
applied |
run |
asks |
- Read-only commands such as
ls, git status and git diff run without asking in every mode.
- Risky commands include
rm, sudo, ssh, docker, git push, npm install and any command that cannot be
parsed.
- "Always allow" saves a rule in your settings file. Deny rules win over allow rules.
- A fifth mode, Bypass, asks nothing. It is offered only when
aadmlCode.allowBypassPermissions is on. Use it only
in a throwaway environment. Deny rules still apply.
Protected files always ask, in every mode except Bypass:
- secret files such as
.env, .env.*, *.pem, *.key, id_rsa, credentials.json, *.tfvars, .npmrc;
- files that can make the editor or a tool run code:
.git/, .vscode/, .idea/, .husky/, .devcontainer/,
.mcp.json, shell start-up files and .gitconfig.
The model does not see the values in a protected file. It sees the keys with ****REDACTED****, unless you allow
that one file. The values are also removed from command output.
Rules, hooks and MCP servers that a project defines stay off until you approve them.
Command rules are a convenience, not a security boundary.
Remote Control
Remote Control lets you see and continue a session from aadml.com, in a browser or on a phone. The agent still runs
on your computer.
- It is off by default.
- Turn it on for one session with
/remote-control, or for all sessions with aadmlCode.remoteControl.allSessions.
- From the browser you can send messages, stop the agent and answer cards. You cannot change saved permission rules,
project trust, hooks, MCP servers or settings.
- AADML keeps only a list of your sessions (title, folder name, state, last activity), never the messages.
The command line
The extension includes the aadml-code command. It runs the same agent in a terminal, with the same settings files,
project trust and permission rules, using the editor's own runtime (no separate Node.js install).
- In VS Code's terminals
aadml-code works at once. For other terminals run
AADML Code: Install 'aadml-code' command in PATH (on macOS and Linux it adds a link in ~/.local/bin; on Windows
it adds a folder to your user PATH). No administrator rights are needed. Uninstall 'aadml-code' command from PATH
undoes it.
aadml-code login signs in in your browser. The sign-in is kept in ~/.aadml/credentials.json, readable by you
only, renews itself, and works only on this computer. aadml-code status and aadml-code logout do what they say.
In CI, set AADML_CODE_TOKEN instead; it is used first when it is set.
aadml-code -p "<prompt>" runs one turn in the current folder and prints the answer. --output-format json or
stream-json gives machine-readable output. Nobody can approve a step there, so a step that would ask is refused,
with words that say how to allow it (--permission-mode, or an allow rule in .aadml/settings.json).
- It is paid from the same AADML balance.
aadml-code --help lists every option.
Privacy
What stays on your computer. Your chats, session history, transcripts, the agent's memory, file checkpoints,
settings and permission rules are files in the .aadml folder in your home folder. On a remote machine, they are
in the home folder there. AADML never receives these files. Delete the folder to delete them.
What is sent, and where. For each reply, AADML Code sends the conversation to AADML
(https://aadml.com/api/code/v1). The conversation holds what you type and what the agent has read or run. This
can include your source code, file contents, command output and images you attach. AADML forwards it to the
provider of the model you chose and streams the reply back. Any assistant that uses a hosted AI model works this way.
- Values in protected files such as
.env are hidden from the model unless you allow that file.
- Code suggestions, when on, send a limited amount of the text around your cursor.
- Web searches send the search words to AADML's search provider.
- With Remote Control on, the session's messages pass through aadml.com to your browser. They are not stored there.
What AADML keeps. For each request, only what billing needs: your account, the model, token counts, cost, time
and the request's size. These usage records are kept for 180 days. AADML does not keep your prompts, your code
or the replies. A reply is held in memory for up to 120 seconds after it ends, so a dropped connection can resume
without paying twice.
What AADML does not control. The model provider processes your content under its own terms.
Sign-in. Your sign-in is stored in your operating system's keychain, never in a file or a log.
No telemetry. AADML Code sends no usage analytics. Its logs stay on your computer and never contain file
content or tokens. AADML Code: Show Logs opens them.
Full details: the AADML Privacy Policy and Terms.
Cost
Model use, web searches and code suggestions are paid from your AADML balance.
- The message box shows the cost of the session and your balance.
/usage shows the cost of this session and your balance.
- The balance in the status bar opens a menu with Top up and Refresh balance.
aadmlCode.spendLimitPerTurnUsd stops a turn and asks before it spends more than the amount you set.
- If your balance is too low for a request, the turn pauses with a card. Top up and press Retry. Nothing is lost.
- All your usage and charges are on the Billing page of your AADML dashboard.
Settings
| Setting |
Default |
What it does |
aadmlCode.serverUrl |
empty (https://aadml.com) |
Address of the AADML server. AADML_CODE_SERVER_URL takes precedence. Only https, or http for localhost. A workspace cannot change it. |
aadmlCode.initialPermissionMode |
default |
The mode a new session starts in: default (Ask before edits), auto_edit, plan or autonomous. |
aadmlCode.allowBypassPermissions |
false |
Offer the Bypass mode. Use it only in a throwaway environment. |
aadmlCode.preferredLocation |
sidebar |
Where the chat opens: sidebar, editor (a tab) or window. |
aadmlCode.autosave |
true |
Save a file with unsaved changes before the agent edits it. When off, that edit is refused with the reason. |
aadmlCode.attachOpenFile |
true |
Attach the open file to each message. |
aadmlCode.attachSelection |
true |
Attach the selected text to each message. |
aadmlCode.useCtrlEnterToSend |
false |
Send with Ctrl+Enter (Cmd+Enter on macOS). Enter makes a new line. |
aadmlCode.escapeStopsAgent |
true |
Escape in the chat stops the agent. |
aadmlCode.showFixActions |
true |
Offer Fix with AADML Code on problems in the editor. |
aadmlCode.continueAfterReload |
true |
After a window reload or an agent restart during a turn, continue from the last complete step. |
aadmlCode.contextUsageThreshold |
80 |
Percent of the model's context window at which the chat warns that it is filling up (1 to 100). |
aadmlCode.respectGitIgnore |
true |
Leave files in .gitignore out of file search and @ mentions. |
aadmlCode.focusView |
false |
Show only the latest exchange in the chat (Focus view). |
aadmlCode.archiveInactiveSessions |
14 |
Archive sessions with no activity for this many days (0 = never). |
aadmlCode.spendLimitPerTurnUsd |
empty (no limit) |
Stop a turn and ask before it spends more than this many US dollars. |
aadmlCode.defaultShell |
empty (system default) |
Shell for the agent's commands: bash, pwsh, powershell, zsh, or an absolute path. |
aadmlCode.environmentVariables |
{} |
Extra environment variables for the agent's commands. |
aadmlCode.inlineCompletions.enabled |
false |
Code suggestions while you type, paid from your balance. |
aadmlCode.remoteControl.allSessions |
false |
Make every session on this computer reachable from aadml.com (Remote Control). |
Permission rules go in .aadml/settings.json (shared with the project) or .aadml/settings.local.json (yours
only). The extension ships a schema, so VS Code checks and completes these files.
On Windows, commands run in Git Bash when it is installed, otherwise in PowerShell. On macOS and Linux they run in
your shell. aadmlCode.defaultShell overrides this.
Keyboard shortcuts
| Keys |
What they do |
| Ctrl+Esc (Cmd+Esc) |
Focus the message box, or leave it |
| Ctrl+Shift+Esc (Cmd+Shift+Esc) |
Open the chat in a new tab |
| Alt+K |
Insert an @-mention of the selection (in the editor) |
| Ctrl+Shift+T (Cmd+Shift+T) |
Reopen the session you just closed |
| Esc |
Stop the agent (in the chat) |
| Enter / Shift+Enter |
Send / new line |
| Shift+Tab |
Change the permission mode |
| Ctrl+Alt+Y (Cmd+Alt+Y) |
Accept the change at the cursor (in a proposed diff) |
| Ctrl+Alt+N (Cmd+Alt+N) |
Reject the change at the cursor (in a proposed diff) |
| 1 to 4 |
Pick a choice on a permission card |
Requirements
- VS Code 1.94 or later.
- An AADML account with money in your balance.
- A trusted workspace. The agent runs commands and edits files, so it does not run in Restricted Mode or in virtual
workspaces.
- The extension runs where your code is. With Remote SSH, WSL or a dev container, it runs on that machine.
- Packages are built for Windows (x64, Arm64), macOS (Intel, Apple silicon), Linux (x64, Arm64) and Alpine Linux
(x64). Every release is tested on Windows, macOS (Intel and Apple silicon) and Linux.
Support and feedback
- Run AADML Code: Run Doctor to check your setup, and AADML Code: Show Logs to read the logs.
- Bugs and feature requests: open an issue on GitHub.
- Account, balance and billing questions: AADML Support, or the Help Center.
- Security issues: email security@aadml.com. Please do not report them in public.
Licence
AADML Code is proprietary software. Your use of it is governed by the AADML Terms. The licence text is in the extension's LICENSE.md file.
| |