To solve internal challenges around AI data privacy and limited context windows, RUNNINGHILL championed a developer-led R&D initiative. The project produced a production-ready AI agent, “Project Raggedy Rag,” that runs 100% locally, ingests entire codebases for full context, and automates error analysis and ticket creation. This zero-cost POC, built with open-source tools in just 2-3 months of part-time effort, proves our deep expertise in RAG, Graph Databases, and secure, on-prem AI implementation.
Like many forward-thinking software companies, our development team was eager to leverage AI assistants to accelerate debugging. However, we faced two critical blockers.
First, standard AI tools have limited context windows, making it impossible for them to analyze an entire, complex codebase to find a root cause. Second, using third-party AI APIs presented an unacceptable security risk, as it would require sending our proprietary source code to external servers. Our team was stuck manually analyzing error logs and creating tickets—a slow process that we knew AI could solve if implemented correctly.
We built “Project Raggedy Rag,” an end-to-end AI agent that runs 100% locally on a developer’s machine. The system securely ingests an entire project codebase, giving it complete context. It then integrates with the developer’s IDE, watches for error logs in real-time, and automatically generates a detailed bug ticket in Azure DevOps with a step-by-step, AI-generated solution.
The agent’s intelligence comes from a sophisticated Retrieval-Augmented Generation (RAG) architecture. Here’s how it works:



This project was a testament to our culture of innovation and upskilling. It began as a grassroots R&D initiative by one of our developers, Thulane Ntozekhe, who dedicated 1-2 hours a day over 2-3 months to build the system from scratch.
The process was an agile sprint of rapid prototyping and deep technical problem-solving. It involved researching and benchmarking local LLMs (switching from Mistral to Gamma 3:4B for better performance), architecting a “multi-stage query optimization” system to improve the AI’s prompts, and debugging the ingestion pipeline to ensure 100% of the code was captured accurately. This dedication to solving the core problem resulted in a powerful, stable POC estimated to be reproducible in just 2-3 weeks of full-time work.
The project was a massive success, delivering tangible results and showcasing our team’s advanced capabilities.
“Thulane, thank you, that was… really nice. I especially like the slides and how you explained it… there’s quite a few terms you explained really well that people should be getting now or have a better understanding of at least.”
– Henk Bothma, Head of IT
Bulleted Key Metrics:
This project is more than just a powerful internal tool; it’s a direct reflection of how we solve problems for our clients. The challenges of data privacy, system integration, and leveraging complex data are universal. Our success here demonstrates:
Established in 2013, Runninghill Software Development is among South Africa’s fastest-growing BBBEE Level 2 companies within the Information Technology Sector. With over 50 full-stack developers specialising in finance, banking, fintech, and more, we help companies design, build, and ship amazing products.
We are passionate software developers who deliver world-class solutions using the best tools in the industry. We focus on technical team augmentation, consulting, and agentic solution design, and we partner with the best design agencies so we can focus on what we do best: technical excellence.
Our services include:
1. What was the main challenge this AI agent solved? The project solved two primary challenges: data privacy and context limitation. Using third-party AI tools requires sending proprietary source code to external servers, creating a security risk. Furthermore, most AI models have limited context windows and cannot analyze an entire codebase at once. This agent solves both problems by running 100% locally on the developer’s machine and using a RAG system to ingest the entire codebase for full context.
2. How is this agent different from a standard AI chatbot like ChatGPT? A standard chatbot only knows what’s in its general training data. This agent uses Retrieval-Augmented Generation (RAG), which means it first retrieves specific, relevant information from your private codebase before generating an answer. It also uses a Neo4j Graph Database to understand the complex relationships between different parts of the code (e.g., “method A calls method B”), giving it a much deeper and more accurate understanding than a standard chatbot.
3. What was the operational cost of this AI agent? The operational and licensing cost is $0. The entire system was built using a powerful, 100% free and open-source stack. This includes Ollama for running the LLM locally, Gamma 3:4B as the language model, and the community editions of LangChain and Neo4j. This demonstrates our ability to build powerful solutions without expensive, recurring vendor costs.
4. Can RUNNINGHILL build a custom AI agent or RAG system for my business? Yes. This internal project is a “proof of work” that directly showcases our expertise in this area. We can design and build secure, custom AI solutions that connect to your specific company data—whether it’s codebases, document libraries, or databases. We will architect the right solution (local, cloud, or hybrid) to meet your exact security, performance, and business needs.
5. What is the difference between our “AI-enabled Team Augmentation” and “Agents as a Service (AaaS)”? AI-enabled Team Augmentation is about scaling your team. We provide our skilled developers and technical experts, who bring their AI knowledge with them, to integrate seamlessly into your existing projects and accelerate your delivery.
Agents as a Service (AaaS) is about scaling your operations. We design, build, and deploy autonomous AI agents that act as a “digital workforce” to handle complex tasks and entire business processes for you, freeing up your team to focus on strategy.
WRITTEN BY
Runninghill Software Development
Looking for some more adventure?
How about this next article.