Get the latest tech news

Building a (Bad) Local AI Coding Agent Harness from Scratch


The original document for this post is available with full source code on GitHub This is a walk-through of how we built a terminal-based coding agent in ~400 lines of vanilla Node.js, running entirely on a local GPU with no cloud dependencies and no npm packages. This tool was built with the help of Claude Sonnet 4.6 in about an hour following set up of Google Gemma 3 4GB running locally under Ollama.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Scratch

Scratch

Photo of coding agent harness

coding agent harness

Related news:

News photo

Show HN: Axiom – A math-native OS where x² is valid syntax (built from scratch)

News photo

RLHF from Scratch

News photo

Sixteen AI Agents Built a C Compiler From Scratch