EveryDev.ai
Subscribe
Main Menu
  • Tools
  • Developers
  • Topics
  • Discussions
  • Communities
  • Users
  • News
  • Podcasts
  • Blogs
  • Builds
  • Contests
  • Compare
  • Arena
  • Polls
Rate toolsCreate
AI Tools by Topic
  • AI Coding Assistants
  • Agent Frameworks
  • MCP Servers
  • AI Prompt Tools
  • Vibe Coding Tools
  • AI Design Tools
  • AI Database Tools
  • AI Website Builders
  • AI Testing Tools
  • LLM Evaluations
Follow Us
  • X / Twitter
  • LinkedIn
  • Reddit
  • Discord
  • Threads
  • Bluesky
  • Mastodon
  • YouTube
  • GitHub
  • Instagram
Get Started
  • Users
  • Rate Tools
  • About
  • Editorial Standards
  • Corrections & Disclosures
  • Community Guidelines
  • Advertise
  • Contact Us
  • Newsletter
  • Submit a Tool
  • Start a Discussion
  • Write A Blog
  • Share A Build
  • Terms of Service
  • Privacy Policy
Explore with AI
  • ChatGPT
  • Gemini
  • Claude
  • Grok
  • Perplexity
Agent Experience
  • llms.txt
Theme
With AI, Everyone is a Dev. EveryDev.ai ©
    1. Home
    2. Tools
    3. Claude Code
    4. Claude Code's experimental Code Mode, explained

    Claude Code's experimental Code Mode, explained

    Sam Moore's avatarSM
    Sam Moore
    November 17, 2026·Senior Software Engineer
    Discuss (7)
    Code Mode in Claude Code

    Claude Code's new Code Mode is a way to make coding agents more efficient by reducing unnecessary back-and-forth with the AI model.

    Claude Code just added experimental Code Mode.

    Normally, Claude works like this:

    1. Search for a file
    2. Read the result
    3. Edit the file
    4. Read the result
    5. Run tests
    6. Read the result

    Each step involves another conversation with the model.

    With Code Mode, Claude can write a small JavaScript program that handles those steps together.

    It can run independent tasks in parallel, pass results between steps, and return only the information the model actually needs.

    The benefits:

    • Fewer model round trips
    • Less wasted context
    • Potentially faster execution
    • Lower token usage on some tasks

    It's not a new coding model. It's a smarter way for Claude to use its existing tools.

    How to try it

    Requires Claude Code 2.1.323 or newer. Start a terminal session with:

    CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1 claude
    

    It's experimental, off by default, and currently limited to supported interactive terminal sessions.

    Source: Official Claude Code documentation

    Tagged inClaude Code

    Comments (7)

    Checking profile…

    Everson Tuffin's avatarET
    Everson Tuffin8 minutes ago

    One detail I almost missed: foreground Code Mode runs stop after 10 minutes, but eligible background code can run up to two hours while you keep chatting. That requires starting in auto or bypassPermissions mode. It's not the same as moving the whole Claude session into a background session, which Code Mode doesn't support.

    Jordan Ellis's avatarJE
    Jordan Ellis9 minutes ago

    Want a fair A/B test instead of “feels faster”? Anthropic suggests: “Read every Markdown file in this project and list the links that point to local files that don't exist.” Try it with Code Mode on and off; compare tokens, wall time, and correct results. That's an ideal task for filtering a mountain of tool output.

    Lena Fischer's avatarLF
    Lena Fischer9 minutes ago

    A small but important security detail: Code Mode's auto classifier reviews the JavaScript block before it runs, not every individual tool call. Your deny/ask rules and PreToolUse hooks still check each tool invocation. If you guard shell commands, test compound commands like cd app && git push rather than assuming the hook sees only git push.

    Nora Bennett's avatarNB
    Nora Bennett9 minutes ago

    My favorite example from the docs: Claude can find retryPolicy, change maxAttempts from 3 to 5, run the relevant tests, and return just the file path and test result. The win isn't simply “parallel tools”—it's chaining work without dumping every intermediate result into context. You can inspect the generated JS with Ctrl+O.

    Nolan Carrow's avatarNC
    Nolan Carrow14 minutes ago

    One catch worth mentioning: Code Mode is terminal-only, doesn't support gateways or Bedrock, and foreground execution has a 10-minute limit. Useful experiment, but not yet a drop-in replacement for existing agent workflows. Anyone hit these limits?

    Everson Tuffin's avatarET
    Everson Tuffin14 minutes ago

    Interesting that Pi already had a feature called codemode that runs JavaScript to orchestrate tools. Curious how Claude Code's implementation compares. Anyone tried both? Are there meaningful differences beyond the name?

    Joe Seifi's avatarJS
    Joe Seifi14 minutes ago

    Seeing mixed reports on Code Mode performance. Some say it keeps tool output out of the main context; others see no improvement. Has anyone compared the same task with Code Mode on and off, measuring tokens, cost, and execution time?