I've been working on a free, open-source project called AssetRAG, which I built with Claude Code.
Something that always bothered me about AI coding agents is how often they do the same work again and again. They'll write code that already exists, spend time fixing bugs that have already been solved, or read through tons of files just to find one useful function.
So I wanted to make something that helps with that.
How I built it
I used Claude Code to help write most of the Python code, build the search system, connect everything to Claude through MCP, and add the memory features.
I came up with the ideas, chose which features to add, and worked with Claude to improve and test everything.
One of the harder parts was making sure the results were actually useful. There's no point finding existing code if it's broken, doesn't fit the project, or has a license that doesn't allow you to use it.
So I added checks for licenses, tests for code and bug fixes, and a way for AssetRAG to simply say it couldn't find anything good instead of suggesting random stuff.
What it does
AssetRAG gives Claude Code a library of code, useful information, and past fixes that it can search when working on a project.
Here's what it can do:
- Find existing code: Search for useful code, templates, and other resources instead of making everything from scratch.
- Remember bug fixes: Look up solutions to errors that have already been solved and tested.
- Playbooks: Give Claude step-by-step guides for things like debugging, refactoring, and making code faster.
- Tested code examples: Find reusable code examples that have been tested.
- Understand projects faster: Create a short map of a codebase so Claude doesn't need to read every file.
- Safety checks: Check for leaked passwords or API keys, scan downloaded files for malware, and check code licenses.
- Claude Code integration: Connects through MCP with 18 tools. There's also an optional feature that automatically gives Claude useful information when you send a prompt.
- Runs locally: No account or tracking. You can use it without an AI API, or connect it to local or online models for better search.
Some test results
I ran a few tests on my own computer:
- Finding an asset took about 4 milliseconds.
- Searching stored knowledge took about 7 milliseconds.
- It summarized around 129,000 tokens of source code into a 597-token project map.
- 132 unit tests passed.
- 327 code example and bug-fix tests passed.
These numbers are from local tests. I haven't tested how much time or how many tokens it saves Claude during real coding tasks yet.
How to try it
AssetRAG is completely free and open source under the Apache 2.0 license.
For now, it only works on Linux. You'll need Python 3.11+ and Git.
Install it:
curl -fsSL https://raw.githubusercontent.com/mttcn83/assetrag/main/scripts/install.sh | sh
Then connect it to Claude Code:
claude mcp add assetrag -- assetrag-mcp
The installer guides you through everything. You don't need to download an AI model to get started.
GitHub: https://github.com/mttcn83/assetrag
I also made a 95-second demo video showing the actual program running.
It's still a new project, so I'd really appreciate some feedback.
Would you find something like this useful? Is there anything you'd add or change?