frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: I built a RAG and knowledge graph agent that runs locally

6•gabriel_oauth•2h ago
Claw-Coder is an AI agent that runs locally on your laptop and has access to powerful tools instead of configuring claude or codex to use a local model just use claw-coder. Why was claw-coder created? Answer: To solve the problem of privacy and security. When you use an agent that is configured with a cloud model like codex, cursor, Claude etc. You are not just getting the agent but you are giving up your codebase to train an llm which is a bit concerning and this reduces trust in the technology called AI but now another problem comes in performance when you switch to a local model that is not made for that workflow you lose performance, speed, and it becomes really a tradeoff so that's where claw-coder comes in it not only runs on your machine but all the code, rag, knowledge graph etc info is kept local making the privacy problem solved but now what about performance.

Performance: Local llms are not built to do the cool things cloud models do because the model sizes are not even capable of building real apps like the 8b models, 13b, even 1b so the solution I came up with was to give these small models access to tools and features that make it actually work well in coding performance.

So what does claw-coder have access to: A knowledge graph: A knowledge graph is an interconnected network of real-world entities—such as people, places, concepts, or events—and the relationships between them. It organizes information into a readable web of meaning rather than static lists, allowing both humans and AI to understand context. So how does this help an AI, it gives the AI the ability to tell relationships between code in your codebase, a cloned unknown repo and so forth this increases performance of local llms by far in coding tasks and reasoning abilities. Rag: We have ever had of RAG at some point but there is a catch the context window of local llms can't bear large codebases and repos so RAG isn't optional by storing vectors in a vector store you enable the AI to actually know what the code means and what each piece does to the other letting you load millions of lines into the vector store without blowing up the context window.

Tools: So we have discussed the tiny but powerful ways to improve local llm performance but an agent to be an agent it needs to take action this is where exposing tools to the local llm helps so what tools have been implemented into claw-coder. 1. search_tool This enables the ai agent to actually search up to date info so that it doesnt hallucinate on info it doesn't know which is common in local llms. 2. Docker execution This agent has a special folder called workspace where it does its work without destroying your desktop but this is not enough to protect your desktop from being destroyed by cheap code so this is where docker comes in I have implemented docker containers of various languages where the agent can validate its own code this is powerful because all llms not only local ones generate code they can't even confirm works because they are just powerful predictors so enabling it to run its code can surprisingly increase the usefulness of the generated code because it now knows it works or not even for html and css the ai agent has been given a helpful vision llm to actually explain what rendered in the browser. This is the surprising power of giving an llm a docker execution tool.

We have looked at a lot of how claw-coder is different enabling local llms to actually do real work. But how do you actually try it out yourself: Claw-coder is closed source because it is going through heavy testing but that doesnt kill transparency and since we are testing it doesn't stop people from trying it on real codebase and giving feedback to get started use:

brew tap gabriel-c70/claw then brew install claw-coder

Comments

gabriel_oauth•2h ago
Do AI agents ability to reason about code increase when given access to a Knowledge Graph
shaurya-sethi•51m ago
hi gabriel, the problem you are trying to solve is valid, but both claude-code and codex natively support local models ran through ollama. i've tried doing this before, and SLMs still fail to do basic tasks because they are put in a harness that has too many features and tools.

i've had really good success though in using them in minimal harnesses like pi-coding-agent. without an open-source repo it would be difficult to guess/assume what your approach is, but i hope you're thinking in the same direction and not trying to reinvent the wheel.

best, shaurya

jkwn•42m ago
"ever had of RAG"

showing a brew tap before the code is strange, in the least...

jabeer•37m ago
will it help in token consumption?

On The <dl> (2021)

https://benmyers.dev/blog/on-the-dl/
252•ravenical•5h ago•71 comments

Reverse engineering circuitry in a Spacelab computer from 1980

https://www.righto.com/2026/05/reverse-engineering-spacelab-computer.html
33•elpocko•2h ago•3 comments

My two-part desk setup

https://arslan.io/2025/11/18/my-two-part-desk-setup/
35•James72689•2d ago•8 comments

z386: An Open-Source 80386 Built Around Original Microcode

https://nand2mario.github.io/posts/2026/z386/
70•wicket•4h ago•13 comments

Hengefinder: Finding When the Sun Aligns with Your Street

https://victoriaritvo.com/blog/hengefinder/
20•evakhoury•21h ago•4 comments

80386 Microcode Disassembled

https://www.reenigne.org/blog/80386-microcode-disassembled/
165•nand2mario•6h ago•26 comments

The Art of Money Getting

https://kk.org/cooltools/book-freak-210-the-art-of-money-getting/
91•dxs•5h ago•53 comments

Italy Cancels Boeing Pegasus Order, Shifting to Airbus A330 MRTT

https://www.euronews.com/my-europe/2026/05/21/italy-moves-to-airbus-a330-tankers-in-major-nato-al...
102•embedding-shape•2h ago•31 comments

Making Deep Learning Go Brrrr from First Principles

https://horace.io/brrr_intro.html
114•tosh•6h ago•43 comments

AI Engineering from Scratch

https://aiengineeringfromscratch.com
46•rippeltippel•2d ago•8 comments

Oura says it gets government demands for user data

https://this.weekinsecurity.com/oura-says-it-gets-government-demands-for-user-data-will-it-share-...
195•donohoe•4h ago•116 comments

Evaluating Spec CPU2026

https://chipsandcheese.com/p/evaluating-spec-cpu2026
8•zdw•2h ago•0 comments

Highest Random Weight in Elixir

https://jola.dev/posts/highest-random-weight-in-elixir
43•shintoist•2d ago•1 comments

Lisp in Vim (2019)

https://susam.net/lisp-in-vim.html
31•whent•3h ago•5 comments

Why Japanese companies do so many different things

https://davidoks.blog/p/why-japanese-companies-do-so-many
810•d0ks•1d ago•379 comments

Shipping a laptop to a refugee camp in Uganda

https://notesbylex.com/shipping-a-laptop-to-a-refugee-camp-in-uganda
625•lexandstuff•20h ago•217 comments

Electrobun 2.0 will be decoupled from Bun due to the Rust rewrite

https://twitter.com/i/status/2058064720553222567
72•bundie•6h ago•69 comments

The FBI Wants 'Near Real-Time' Access to US License Plate Readers

https://www.wired.com/story/security-news-this-week-fbi-license-plate-reader-real-time-access/
131•Brajeshwar•4h ago•67 comments

Solving the “Zork” Mystery

https://www.dpolakovic.space/blogs/zork-part2
38•dpola•3d ago•16 comments

Rubish: A Unix shell written in pure Ruby

https://github.com/amatsuda/rubish
139•winebarrel•11h ago•83 comments

Texas woman arrested for Facebook post about town water quality

https://reclaimthenet.org/texas-woman-arrested-for-facebook-post-about-town-water-quality
16•abawany•23m ago•1 comments

Improving C# Memory Safety

https://devblogs.microsoft.com/dotnet/improving-csharp-memory-safety/
111•soheilpro•2d ago•22 comments

A 1955 Los Alamos computer experiment changed our understanding of chaos

https://www.lanl.gov/media/publications/1663/science-of-unpredictability
41•LAsteNERD•4d ago•3 comments

Microsoft starts canceling Claude Code licenses

https://www.theverge.com/tech/930447/microsoft-claude-code-discontinued-notepad
426•robertkarl•1d ago•404 comments

PHP's Oddities

https://flowtwo.io/post/php%27s-oddities
46•thejoeflow•3d ago•50 comments

BambuStudio has been violating PrusaSlicer AGPL license since their fork

https://xcancel.com/josefprusa/status/2054602354851254330
349•Tomte•10h ago•131 comments

JWT is a scam and your app doesn't need it

https://www.dusanmalusev.dev/blog/jwt-is-a-scam-and-your-app-doesnt-need-it
46•CodeLieutenant•43m ago•12 comments

The quadratic sandwich

https://fedemagnani.github.io/math/2026/04/08/the-quadratic-sandwich.html
111•cpp_frog•3d ago•11 comments

Project Glasswing: An Initial Update

https://www.anthropic.com/research/glasswing-initial-update
499•louiereederson•22h ago•294 comments

Ebola Outbreak Now Third Largest Recorded and "Spreading Rapidly"

https://arstechnica.com/health/2026/05/ebola-outbreak-now-third-largest-recorded-and-spreading-ra...
71•Brajeshwar•2h ago•66 comments