News for hackers. Stuff that matters.
Re:What Is Codemode by troupo on Wednesday October 07, 2026 @03:39AM (#49989556)
So... What exactly is it in the end? I try to parse the long prose, and couldn't.

It doesn't help that the article is titled "What is Codemode" and then goes to say "If you are not familiar with Codemode, it’s basically just...". You article is supposed to say what it is without anyone being familiar with it.

Like what does this passage even mean:

--- start quote ---

For instance if you issue a bash call as a regular tool call in the LLM, then we only throw the trailing 2000 lines into the context and if the agent wants more, it needs to look at the overflow file itself. If however the agent issues that invocation via Codemode, then the Codemode side gets larger outputs sent structurally.

--- end quote ---

Re:What Is Codemode by lpedrosa on Wednesday October 07, 2026 @03:54AM (#49989647)
Unfortunately if you're not in the deep end when it comes to these tools, your brain will only be able to parse gibberish.

I was expecting a bit more care from Armin in explaining what does codemode actually do, from first principles.

Re:What Is Codemode by the_mitsuhiko on Wednesday October 07, 2026 @05:01AM (#49990105)
Well that was my best attempt so far. I have to say that I find it quite tricky to convey.
Re:What Is Codemode by troupo on Wednesday October 07, 2026 @05:18PM (#49998923)
Someone managed to do it in 4 sentences https://news.ycombinator.com/item?id=49991584

Or 4 paragraphs https://news.ycombinator.com/item?id=49990199

Or 1.5: https://news.ycombinator.com/item?id=49989503

Or essentially 4 again: https://news.ycombinator.com/item?id=49989503

Or literally 1 sentence: https://news.ycombinator.com/item?id=49992276

etc.

----

Honestly, psychologists need to study AI psychosis in depth when people become so enamoured with bullshit, they will spend any and all amount of words inventing new useless bullshit like "hands and brain" for the simplest concepts.

Re:What Is Codemode by the_mitsuhiko on Wednesday October 07, 2026 @05:03AM (#49990117)
> Like what does this passage even mean:

It means that a LLM side tool (bash) can expose larger (and structured) outputs to Codemode than it normally does when that tool is executed straight to the LLM back as text.

Re:What Is Codemode by quantumwoke on Wednesday October 07, 2026 @09:23AM (#49992475)
I understand what codemode is from other blog posts, and I think this is a suboptimal explanation. It seems that you are explaining it at the wrong level each time, either too deep (here) or too high (elsewhere in-thread when you talk about 'hands' and 'brain').
Re:What Is Codemode by troupo on Wednesday October 07, 2026 @05:19PM (#49998932)
Once again it still makes no sense. I guess I need to be familiar with Codemode before trying to understand an article called "what is Codemode".
Re:What Is Codemode by sqwxl on Wednesday October 07, 2026 @06:00AM (#49990531)
i was also confused. this introductory post by the creators of Codemode is much easier to follow: https://blog.cloudflare.com/code-mode/
Re:What Is Codemode by troupo on Wednesday October 07, 2026 @05:38PM (#49999132)
Someone explained the entire thing in just one sentence: https://news.ycombinator.com/item?id=49992276 (more links to other explanations here: https://news.ycombinator.com/item?id=49998923)

Cloudflare Blog actually makes a good job explaining it at the very top, also in one sentence: "Convert the MCP tools into a TypeScript API, and then ask an LLM to write code that calls that API.". The rest of the blog post could probably be skipped :)

Re:What Is Codemode by agentdev001 on Wednesday October 07, 2026 @08:05AM (#49991584)
The harness exposes tools to the model. The model, during its turn, can request that the harness execute a tool. It may even request multiple tools.

However, natively, the model has no way of composing the tools it sees that it can call. It cannot say, effectively, "use the output of the get_email_id tool, as input for the get_email_Metadata tool."

This is what codemode is. Allowing for the model to interact with the tools that the harness exposes, programmatically.

So, TLDR; Codemode allows for composing at the harness level, rather than just at the inner-tool level.

Re:What Is Codemode by troupo on Wednesday October 07, 2026 @05:20PM (#49998933)
Thank you!
Re:What Is Codemode by keybored on Wednesday October 07, 2026 @10:24AM (#49993308)
I read a bit and gave up. Same feeling as when I read “What is gas station” or whatever it was called. But Gas Station was much worse.