logoalt Hacker News

syntaxingtoday at 1:47 PM12 repliesview on HN

Is there a reason why so many of these agent harness are written in node.js?


Replies

Wowfunhappytoday at 2:46 PM

Because:

1. The first significant agentic harness was made by Anthropic.

2. One of the most senior developers of client-side software at Anthropic is Felix Rieseberg, one of the original creators of Electron. [1]

3. After Claude Code blew up, everyone else copied Anthropic.

---

1: https://daringfireball.net/2026/07/claudes_criminally_bad_ma...

m_ketoday at 1:50 PM

1. it's built for async 2. runs everywhere 3. interpreted, making it fast to iterate on 4. decent performance 5. most popular language, llms are decent at writing it

show 5 replies
pohltoday at 1:57 PM

Probably for the ease of coding extensions — which strikes me as outdated thinking: if it’s open source and you’re outsourcing the coding to LLMs, why not use a compiled, safe language?

There’s an interesting counter example for DeepSeek called CodeWhale, though:

https://github.com/Hmbown/CodeWhale

show 1 reply
Zambytetoday at 1:52 PM

I'm not sure why specifically Javascript instead of something like Python or other options, but using an interpreted environment minimizes the friction for implementing extension systems, which are an important feature in AI harnesses.

show 2 replies
toshtoday at 3:09 PM

codex is written in rust fwiw

smol has implementations in Go, Python, Clojure, PHP

https://github.com/smol-env/smol

out of the box an agent only needs to be able to do http requests and call tools (which might again be just http requests or shelling out)

there is no inherent reason for why an agent has to be in JavaScript or Typescript

but they are popular languages and come with runtimes and libraries for http requests, steaming, TUI (terminal ui) and so on which can help

show 1 reply
jesse_dot_idtoday at 2:10 PM

TypeScript is great and its ecosystem is easy to work within.

Shoreltoday at 3:39 PM

Because that hammer is their only tool!

scotty79today at 3:17 PM

Nothing better for UI than React. Electron/tauri or node kinda falls from it.

nimsarajaytoday at 1:53 PM

I gotta same problem.

game_the0rytoday at 1:55 PM

npm as a distribution tool works well and typescript has types.

Any reason why it should not be written in nodejs?

show 1 reply
sarjanntoday at 1:52 PM

Might be easier to do cross platform.

2afTqtoday at 2:16 PM

Skill issue. Their models don't work for serious programming so everyone just copies Electron apps from each other.