prateek1217/knabit-coding-agent — explained in plain English
Analysis updated 2026-05-18
Run a local coding assistant that reads, writes, and refactors code in your project
Keep long AI coding sessions affordable by automatically summarizing older conversation turns
Let an agent run shell commands, search code, and perform git operations through an MCP server
| prateek1217/knabit-coding-agent | a-bissell/unleash-lite | abhiinnovates/whatsapp-hr-assistant | |
|---|---|---|---|
| Stars | 1 | 1 | 1 |
| Language | Python | Python | Python |
| Setup difficulty | moderate | hard | hard |
| Complexity | 3/5 | 4/5 | 3/5 |
| Audience | developer | researcher | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires a Google API key for Gemini and the uv Python package manager.
Knabit Coding Agent is an AI powered coding assistant that runs locally on your machine and helps you read, write, refactor, debug, and execute code within your project. Its standout feature is a smart context management system designed to keep long conversations affordable. The problem it addresses is that AI language models have a fixed context window, a limit on how much text they can process at once. If a coding assistant naively sends the entire conversation history on every query, token usage and cost grow with every exchange until the limit is hit and the agent breaks. Knabit solves this by keeping only a configurable number of recent conversation turns in full detail, controlled by a WINDOW_SIZE setting, and using the language model itself to summarize all older turns into a compact block. Because important decisions, file names, and code changes are compressed rather than discarded, the agent retains meaningful history without escalating cost. No external memory system such as a vector database is required. The architecture has two parts: agent.py acts as the brain, managing conversation history and routing messages through a LangGraph state machine with tools attached, server.py acts as the hands, running as a FastMCP server that exposes tools for reading and writing files, running shell commands, searching code, and performing git operations. When you type a query, the agent forwards it to the Gemini model, which can then call the MCP server to take real actions on your filesystem. It is built with LangGraph and LangChain and requires a Google API key for Gemini along with the uv Python package manager to install dependencies.
A local AI coding assistant that summarizes old conversation turns to keep long coding sessions with Gemini affordable.
Mainly Python. The stack also includes Python, LangGraph, LangChain.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.