ComingUp
Locode, a local first CLI that routes tasks to local LLMs or Claude

Locode, a local first CLI that routes tasks to local LLMs or Claude

Mar 9, 2026 Developer Tools

Gallery

Locode, a local first CLI that routes tasks to local LLMs or Claude

About

Hey HN, For the past few months, I have been working a lot with Claude code and a huge fan of the tool. When working on some tasks, I noticed Claude spending tokens for simple local tasks like find, grep etc, so I wondered: what if simple local tasks could run on a local LLM and route complex reasoning Claude?To help answer that question, I started building Locode, a open source CLI that tries this approach.The idea is: • run simple tasks locally • route complex reasoning to Claude • reduce inference cost and latency • keep the workflow local firstThis project is still very early and mostly a fun learning experiment for me. The entire project was built using Claude Code (not vibe coded). I really love the workflow and it inspired a lot of the design. I’m also a huge fan of Ruff, so I took some inspirations from that as well (no rust yet though).There is a short demo video in the README if you want to see it in action.Please take it for a spin if you are interested and let me know what you think and/or if you have experience with cli tools and suggestion on improving Locode, I’m happy to learn.Cheers! Chocks

Comments (0)

No comments yet. Be the first to comment!