005 / SELECTED WORK
AI Code Assistant
A locally-run coding assistant built on Ollama, combining code understanding with context retrieval to give AI-assisted suggestions without sending code to a third party.
Problem
Cloud-based AI coding assistants require sending source code to a third-party API, which isn't acceptable for private or sensitive codebases.
Objective
Explore how far a fully local LLM setup can go for code understanding and assistance, with zero external calls.
Architecture
Runs entirely against a locally-hosted model — no code leaves the machine.
Technology
Implementation
Ollama serves a local model. A context-retrieval layer indexes the relevant parts of the codebase and feeds targeted context into each prompt, rather than relying on the model's training data alone.
Challenges
Local models are smaller and slower than hosted frontier models — retrieval quality matters far more to get useful answers out of a constrained model.
Result
A working local assistant that can answer questions about a codebase and suggest changes without any network dependency.
What I Learned
Practical limits of local LLMs for code tasks, and how much retrieval quality compensates for smaller model size.