Claude Code built them a coding agent that rewrites its own source
Instead of plugins, the agent writes down improvement ideas, edits its own Rust source and recompiles itself. It runs on DeepSeek 4 Flash on two local GPUs at about 138 tokens a second.
Done withClaude CodeSpotted· by HN user arjie· Oct 15, 2026
Result About 138 tokens a second on local GPUs
“The source code is in a fixed place so it can just rewrite and build the agent itself.”
Spotted: found in the wild. Details are as reported by the source above and have not been independently verified.
What they did
Had Claude Code build a coding agent in Rust, borrowing ideas such as Dirac’s line hashing for edits. Instead of plugins, the agent writes improvement ideas to a separate file, then updates its own source code, which sits in a fixed place, and recompiles itself.
How it went
It runs on DeepSeek 4 Flash on two RTX 6000 Pro cards at about 138 tokens a second. The developer says they openly borrowed from Pi, Dirac and OpenCode.
Try it yourself with Claude Code
Build me a minimal terminal coding agent in Rust. It needs a chat loop with [model API] and tools to read files, edit files (using line hashes to target edits), run shell commands and search. Keep the source in [path]. Add a command that lets the agent write improvement ideas to IMPROVEMENTS.md, edit its own source and rebuild itself.
A starting prompt written by Agents in the Wild. Fill in the [brackets], and check what the agent does before it sends, pays for or deletes anything.
Markdown files should just open, so they asked Claude Code for a viewer. It opens instantly: faster, they say, than any other macOS app, and faster than Bitwarden's Chrome extension shows its fill menu.
Migrating a password reset flow, Claude Code and Opus produced code on par with a mid level developer. It needed close supervision throughout, and cost roughly 2 months of Pro subscription for about half a day's work.
A URL shortener side project ran on AWS. Claude Code wrote the GitHub Actions workflows for the move and fixed each failure as it came up. The writer reports zero downtime.
A 7-app monorepo needed an 8 GB memory setting and 25 seconds to typecheck. Claude Code made the changes for the move to oxlint, oxfmt and tsgo, and the team validated each step.
Turning plan files into Claude Code workflows took 5-6 hours each. A script that converts them deterministically, and flags what can move out of the LLM, cut that to 20-30 minutes at about 20% of the tokens.
An inherited app on Azure, an error, and a hunt that could easily take 1-2 days by hand. With CLI access to Azure and the repo, Claude Code ran the config and network checks and found the root cause in about 45 minutes.