# Claude Code's Code Mode cuts 16 tools down to three

Original title: Claude Code Mode Internals

> Hacker News story 50610977 · language: en · submitted 2026-11-23
> Web version: https://zeli.app/story/50610977
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 9 · by [muthuishere](<https://news.ycombinator.com/user?id=muthuishere>) · 💬 1
[original](<https://muthuishere.medium.com/code-mode-internals-and-adapting-them-for-your-clis-and-agent-skills-3a9ae4c9782f>) · [HN discussion](<https://news.ycombinator.com/item?id=50610977>)

## Summary

Muthukumaran Navaneethakrishnan inspected the API requests Claude Code makes and found that normal mode sends 16 tool entries, while Code Mode sends just three: REPL, Poll, and advisor. The REPL carries built-in tool signatures, and a searchTools method pulls in the rest. He then built CLI CodeMode, a library that lets a CLI accept one composed JavaScript program instead of one process per command. In his tests, a ctx-optimize query dropped from 28,273 bytes across seven processes to 169 bytes in a single process.

## Key quote

> Code Mode removes the trips to the model. It does not remove the process, the parsing and the raw output of every command. That cost sits in the CLI, so the CLI is where to fix it.

---

## Cite

- Page: https://zeli.app/story/50610977
- Date: 2026-11-23
- Source: muthuishere.medium.com (https://muthuishere.medium.com/code-mode-internals-and-adapting-them-for-your-clis-and-agent-skills-3a9ae4c9782f)
- Hacker News: https://news.ycombinator.com/item?id=50610977

## Other languages

- zh: https://zeli.app/zh/story/50610977 · markdown: https://zeli.app/zh/story/50610977.md
- ja: https://zeli.app/ja/story/50610977 · markdown: https://zeli.app/ja/story/50610977.md
- ko: https://zeli.app/ko/story/50610977 · markdown: https://zeli.app/ko/story/50610977.md
- de: https://zeli.app/de/story/50610977 · markdown: https://zeli.app/de/story/50610977.md
- es: https://zeli.app/es/story/50610977 · markdown: https://zeli.app/es/story/50610977.md
- ru: https://zeli.app/ru/story/50610977 · markdown: https://zeli.app/ru/story/50610977.md
