Knowledgebase · Last updated 18 November 2026
Use Claude Code's Code Mode on your awx computer
Code Mode lets Claude Code write a little JavaScript that makes many tool calls at once. Here is how to run it in the Terminal tab of your awx computer.
What Code Mode is
Code Mode is an experimental feature of Claude Code. Normally Claude Code makes one tool call at a time, such as running a command or editing a file, and reads each result before the next. In Code Mode it writes a short piece of JavaScript that makes many tool calls in one go: it can run commands in parallel, use one result in the next call, and keep only the part of the output it needs.
That suits jobs with many similar steps, such as the same change across many files, or the same test run against many programs. Anthropic describes it in full in Run tool calls from code with Code Mode.
What you need
- An
awxcomputer. Small is enough. - A Claude subscription or a Claude Console account of your own.
- Claude Code 2.1.323 or later, the native build. The npm package does not run Code Mode.
- The computer’s Terminal tab. Code Mode works only in an interactive Claude Code session in a terminal.
Install the native build
In the Terminal tab, as the computer’s normal user (not with sudo):
curl -fsSL https://claude.ai/install.sh | bash
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
claude --version
The installer puts Claude Code in your home folder, so it can also update itself. If you installed Claude Code with npm before, remove that copy so the two do not get mixed up: sudo npm uninstall -g @anthropic-ai/claude-code. Your login and settings stay in ~/.claude.
The first time you run claude, it asks you to sign in. Follow its steps.
Start Claude Code with Code Mode
Start it from a project folder rather than your home folder. In your home folder Claude Code asks whether you trust the folder every time; in a project folder it remembers your answer.
mkdir -p ~/project && cd ~/project
CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1 claude
The first time, Claude Code explains Code Mode and asks you to confirm. Choose Yes, turn on Code Mode. It restarts, and the top of the session shows this line:
Keep Code Mode on
To start every new session in Code Mode, put this in ~/.claude/settings.json on the computer:
{
"env": {
"CLAUDE_CODE_EXPERIMENTAL_CODE_MODE": "1"
}
}
A project’s own settings cannot turn Code Mode on, so a repository you clone cannot switch it on for you.
See the code it writes
In the conversation you see the tool calls, such as a command or an edit, not the code. Press Ctrl+O to open the transcript viewer, where each piece of code is a Code row you can expand. In the awx terminal, scroll the viewer with Page Up and Page Down. Press Ctrl+O again to go back.
Limits
- Experimental. It may change or be removed in any release.
- Resuming. A Code Mode session can be resumed only with Code Mode on.
- Long jobs. Code waits up to ten minutes. In auto mode it can run in the background for up to two hours while you keep talking, and the
awxcomputer keeps going if you close your laptop. - Not with Remote Control, Claude in Chrome or computer use.
Your login on the computer
Claude Code keeps your login in ~/.claude on the computer. Anything that runs there can use it, including the computer’s own agent and anyone you let take over the desktop. Sign in only on a computer that is yours alone, and run /logout in Claude Code when you no longer need it there.
See it at work in How to mark 30 assignments in one step with Code Mode.
Common questions
Can the awx agent in the Chat tab use Code Mode?
No. Code Mode is a feature of Claude Code, which you install and run in the Terminal tab with your own Claude account. The agent in the Chat tab is a different agent.
Do I need a paid Claude account for Code Mode?
Yes. Code Mode needs a Claude subscription or a Claude Console account, and works only in an interactive Claude Code session in a terminal.
Why does Code Mode not start on my awx computer?
Check that Claude Code is version 2.1.323 or later and is the native build, not the npm package. Run claude --version, and install the native build with the command on this page.
Is my Claude login safe on an awx computer?
Your login is stored on that computer, so anything that runs there can use it, including the computer's agent. Use your own computer only, and run /logout in Claude Code when you no longer need it there.