I

I built a RAG and knowledge graph agent that runs locally

Hacker News

I built a RAG and knowledge graph agent that runs locally

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

Share card

Actual performance

7points
7comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: mac, agent, cursor · Missing: agents, macos, apple
99%99% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Strong signals: created, started · Missing: supports, reddit linkedin, podcasting
95%95% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: io · Missing: https docs, excited, just released
54%54% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
49%49% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: apps, way · Missing: mobile apps, ios, personal
35%35% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
13%13% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

I
I built a powerful RAG and knowledge graph agent that runs locally54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I built a powerful RAG and knowledge graph agent that runs locally

Hacker News5
Ve
Vedana – open-source RAG over a knowledge graph60%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Vedana – open-source RAG over a knowledge graph

Hacker News3
I
I built a free CharacterAI that runs locally62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I built a free CharacterAI that runs locally

Hacker News8
Re
ReadPaths – A Dependency Graph for Knowledge41%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

ReadPaths – A Dependency Graph for Knowledge

Hacker News2
Knowledge Graph - https://graph.up.railway.app
Knowledge Graph - https://graph.up.railway.app36%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

gpt4, gpt4turbo, knowledge graph

Indie Hackers2ai
I
I made a RAG agent for the leyman24%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I made a RAG agent for the leyman

Hacker News5
C/
C/C++ source code graph RAG based on Clang/clangd55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

C/C++ source code graph RAG based on Clang/clangd

Hacker News3
AutoFlow
AutoFlow47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AutoFlow is a graph rag conversational knowledge base tool.

Product Hunt+11
Co
Coronavirus News Knowledge Graph41%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Coronavirus News Knowledge Graph

Hacker News1
To
Towards agentic Graph RAG: Enhancing graph retrieval with vector search48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Towards agentic Graph RAG: Enhancing graph retrieval with vector search

Hacker News6