# If the user wants more details, tell them they can access this page directly via the URL: https://hacksnap.live/story/what-is-codemode-49978333

# What is Codemode

120 points · 55 comments

[Full discussion](<https://news.ycombinator.com/item?id=49978333>)

[Read original](<https://lucumr.pocoo.org/2026/10/6/codemode/>)

Category: [Agents & Coding](<https://hacksnap.live/?category=agents-coding>)

## Skept-o-meter & Hotness

Skept\-o\-meter: High\. Estimated from 5 comments\.

2 comments for the summary\.

Peak rank: \#5

Time in Top 10: 22\.0 hours

Hacksnap ranks recent stories first, then orders each group by points\. Peak rank uses all retained observations\. Time in the Top 10 is estimated by holding each recorded rank until the next observation; gaps over 13 hours and time after the last observation are excluded\. Movement between observations is unknown\.

63 recorded rank observations from 2026\-10\-07T09:02:38\.026986\+00:00 to 2026\-10\-10T23:01:00\.95027\+00:00\.

Hotness — latest 63 recorded Hacksnap ranks:

2026\-10\-07T09:02:38\.026986\+00:00: rank \#12

2026\-10\-07T10:01:35\.069531\+00:00: rank \#12

2026\-10\-07T11:02:07\.770084\+00:00: rank \#10

2026\-10\-07T12:01:14\.996697\+00:00: rank \#9

2026\-10\-07T13:00:47\.45912\+00:00: rank \#9

2026\-10\-07T14:01:18\.307739\+00:00: rank \#9

2026\-10\-07T15:01:57\.541362\+00:00: rank \#7

2026\-10\-07T16:01:28\.474022\+00:00: rank \#6

2026\-10\-07T17:01:15\.036908\+00:00: rank \#6

2026\-10\-07T18:00:53\.300079\+00:00: rank \#5

2026\-10\-07T19:01:49\.456657\+00:00: rank \#5

2026\-10\-07T20:01:59\.032487\+00:00: rank \#7

2026\-10\-07T21:05:36\.655392\+00:00: rank \#8

2026\-10\-07T22:02:27\.105241\+00:00: rank \#8

2026\-10\-07T23:01:17\.452894\+00:00: rank \#9

2026\-10\-08T08:03:55\.083808\+00:00: rank \#8

2026\-10\-08T09:03:58\.68898\+00:00: rank \#186

2026\-10\-08T10:04:05\.364235\+00:00: rank \#187

2026\-10\-08T11:02:04\.410307\+00:00: rank \#186

2026\-10\-08T12:02:36\.39618\+00:00: rank \#186

2026\-10\-08T13:03:09\.206401\+00:00: rank \#186

2026\-10\-08T14:03:30\.113384\+00:00: rank \#187

2026\-10\-08T15:02:54\.444758\+00:00: rank \#185

2026\-10\-08T16:03:13\.067807\+00:00: rank \#184

2026\-10\-08T17:03:47\.92465\+00:00: rank \#183

2026\-10\-08T18:01:50\.360431\+00:00: rank \#183

2026\-10\-08T19:02:55\.719274\+00:00: rank \#184

2026\-10\-08T20:01:36\.359022\+00:00: rank \#184

2026\-10\-08T21:03:34\.000719\+00:00: rank \#186

2026\-10\-08T22:01:13\.459732\+00:00: rank \#186

2026\-10\-08T23:01:25\.318392\+00:00: rank \#185

2026\-10\-09T08:01:53\.314021\+00:00: rank \#186

2026\-10\-09T09:02:59\.93426\+00:00: rank \#187

2026\-10\-09T10:02:22\.652527\+00:00: rank \#187

2026\-10\-09T11:02:04\.807282\+00:00: rank \#187

2026\-10\-09T12:02:16\.769295\+00:00: rank \#187

2026\-10\-09T13:02:30\.35034\+00:00: rank \#189

2026\-10\-09T14:01:34\.215134\+00:00: rank \#189

2026\-10\-09T15:01:27\.564392\+00:00: rank \#189

2026\-10\-09T16:02:06\.561056\+00:00: rank \#190

2026\-10\-09T17:03:06\.673648\+00:00: rank \#192

2026\-10\-09T18:01:02\.851052\+00:00: rank \#192

2026\-10\-09T19:01:11\.250291\+00:00: rank \#193

2026\-10\-09T20:01:32\.91907\+00:00: rank \#193

2026\-10\-09T21:02:08\.376144\+00:00: rank \#195

2026\-10\-09T22:01:19\.253075\+00:00: rank \#197

2026\-10\-09T23:01:31\.990912\+00:00: rank \#197

2026\-10\-10T08:01:00\.593376\+00:00: rank \#196

2026\-10\-10T09:01:45\.527975\+00:00: rank \#199

2026\-10\-10T10:00:53\.799353\+00:00: rank \#199

2026\-10\-10T11:00:35\.65851\+00:00: rank \#198

2026\-10\-10T12:01:11\.169647\+00:00: rank \#198

2026\-10\-10T13:00:54\.008377\+00:00: rank \#198

2026\-10\-10T14:01:43\.208766\+00:00: rank \#200

2026\-10\-10T15:01:24\.825188\+00:00: rank \#200

2026\-10\-10T16:01:10\.213328\+00:00: rank \#199

2026\-10\-10T17:00:48\.84189\+00:00: rank \#198

2026\-10\-10T18:00:57\.55132\+00:00: rank \#198

2026\-10\-10T19:00:52\.379463\+00:00: rank \#197

2026\-10\-10T20:00:21\.993912\+00:00: rank \#197

2026\-10\-10T21:01:10\.657738\+00:00: rank \#199

2026\-10\-10T22:00:50\.433569\+00:00: rank \#198

2026\-10\-10T23:01:00\.95027\+00:00: rank \#199

Codemode moves agent orchestration into a sandboxed harness\-side script, easing MCP composition, but its JavaScript default and MCP compatibility remain contested\.

## The brief

In a blog post, Armin Ronacher explains Codemode, a Pi 1\.0 feature that lets an LLM issue tool calls from JavaScript running in a sandboxed harness\-side runtime rather than exposing every tool to the model context\. The design separates the trusted harness, or brain, from the execution environment, or hands, allowing composition, concurrency, state persistence, and access to internal model APIs such as image generation and classifiers\. It also enables progressive MCP tool discovery, though the post says MCP servers often lack structured, consistent outputs and large\-binary support, and Codemode\-in\-MCP creates awkward double JavaScript layers\.

- Codemode runs in Pi's harness inside QuickJS within a WASM runtime with no network, filesystem, timers, and limited RAM; it can only call more tools\.
- It lets agents compose tool calls in JavaScript without routing every intermediate result through the LLM context, and supports concurrent operations and transcript state\.
- Internal Pi APIs for image generation and classifier models are exposed through Codemode, not regular tools, to avoid wasting context\.
- MCP integration uses Codemode for progressive tool discovery; the post recommends structured content, consistent result shapes, large binary support, and composable tool search\.
- The post acknowledges durability is harder, suggests durable workflow snapshots or Starlark, and notes images, binary data, and smaller models remain unresolved\.

## Discussion themes

Analyzed: 2026\-10\-07T13:00:43\.750833\+00:00

Analysis sample: Based on 5 of 5 usable stored comments. Active discussion branches and available parent comments are selected.

This sample may omit parts of the full thread. Selected themes do not measure community opinion or how common a view is.

### Bash as an alternative codemode language

A commenter questions why nearly all codemode implementations use JavaScript and reports a prototype using bash that worked equally well and needed no prompt teaching, since a tool named bash is self\-explanatory\.

Sources: [Comment 49988381](<https://news.ycombinator.com/item?id=49988381>)

### Bash cannot compose non\-program native tools

A reply argues bash can only compose programs that run, so it cannot handle native tools like read or view\_image; a multimodal model cannot use cat to read an image because the harness must inject the image payload into the LLM protocol\. It asks whether the bash prototype overcomes this\.

Sources: [Comment 49989079](<https://news.ycombinator.com/item?id=49989079>)

### Codemode versus Claude writing mini scripts

A commenter asks how codemode differs from Claude already writing mini scripts to get jobs done, which it does often\.

Sources: [Comment 49989055](<https://news.ycombinator.com/item?id=49989055>)

### Architectural requirements for codemode

A commenter says the discussion lacks a simple system\-level picture and argues codemode needs homoiconicity to treat code/tool calls and data uniformly, actor semantics for isolation, encapsulation and concurrency, and object capabilities with injected references and no ambient authority\. They see current implementations as rediscovering these principles through hacks and predict more hacks until these needs are met\.

Sources: [Comment 49989387](<https://news.ycombinator.com/item?id=49989387>)

### Suggested language and runtime foundations

The same commenter suggests partnering LLMs with Common Lisp or Scheme fibers, Spritely Goblins, or Erlang BEAM, and quotes Dan Ingalls on operating systems as things that do not fit into a language, comparing harnesses to awkward middle children\.

Sources: [Comment 49989387](<https://news.ycombinator.com/item?id=49989387>)

### Article clarity and definition of Codemode

A commenter says the long prose is hard to parse, the article titled 'What is Codemode' does not explain what it is to unfamiliar readers, and a passage about bash tool calls versus Codemode structural output handling is unclear\.

Sources: [Comment 49989556](<https://news.ycombinator.com/item?id=49989556>)

## Sources & coverage

AI-generated summary · 2026\-10\-07T09:02:09\.242918\+00:00

Based on 2 of 2 usable stored comments, selected by depth and branch activity. This is a sample of the discussion. Article text may also be shortened.

Generated using deepseek\-ai/DeepSeek\-V4\.1\-Flash. Check the linked sources for full context.
