A Simple Coding Agent in a Loop with LangChain4j, Jbang, and Gemini
A few days ago, Max Rydahl Andersen published a fascinating article about nanocode: a minimalist Claude Code alternative implemented in just 260 lines of Java (inspired from a 250-line Python equivalent). It was a masterclass in “leanness,” using raw HTTP calls and Jackson JSON parsing, an OpenRouter or Anthropic LLM endpoint, to create an autonomous coding loop.
I loved the concept, but I had a very practical motivation to take it in a different direction: I don’t have a Claude subscription. 😃
Read more...