Analysis updated 2026-05-18
Give an AI coding agent adaptive code context that expands for broad questions and shrinks for narrow ones.
Improve code retrieval accuracy on large repositories where fixed top-5 search misses the target file.
Run code search from the command line for agents or scripts without MCP support.
Keep a multi-turn coding conversation focused on the same code across related follow-up questions.
| datacompose/tobler | 0-bingwu-0/live-interpreter | 0cm-labs/tokenizer-benchmark | |
|---|---|---|---|
| Stars | 2 | 2 | 2 |
| Language | Python | Python | Python |
| Setup difficulty | moderate | moderate | moderate |
| Complexity | 3/5 | 2/5 | 2/5 |
| Audience | developer | general | researcher |
Figures from each repo's GitHub metadata at analysis time.
Requires Python 3.12+ and an MCP client such as Claude Code to use the server mode.
Tobler is a tool that decides how much code context to hand an AI coding agent for a given question, instead of always returning a fixed number of results. The idea, borrowed from a geography principle, is that things closer to the query in meaning are more relevant than things farther away, so the amount of context returned should stretch or shrink to match how confident the match is, all within a set token budget. A narrow, specific question like asking what a particular constant does gets back just a few full pieces of code plus a small map. A broad question like how a feature works across the codebase gets back a much wider map of function signatures and summaries. Both answers use the same token budget, just spread differently. The README reports that on large repositories, a fixed top-5 style search misses the right piece of code about two-thirds of the time, while this adaptive approach kept finding it in benchmark tests, using fewer tokens per correct answer along the way. Under the hood it standardizes similarity scores, applies a softmax function to turn them into weights, and uses those weights to decide how many chunks of code deserve attention and how much detail each one gets, from a full code body down to just a file path and symbol name. It also smooths results across a back-and-forth conversation, so a follow-up question like asking about the arguments to something just mentioned stays focused on the same code, while a totally different follow-up question is treated as a fresh topic. It is built on top of another retrieval library called semble and requires Python 3.12 or newer plus a client that supports the MCP protocol, such as Claude Code. It can be installed from PyPI and used either as an MCP server that an AI coding agent talks to directly, or from the command line for scripts and agents that do not support MCP. It also ships as an installable skill that teaches a coding agent when and how to use it. The project is licensed under the MIT License.
A search tool for AI coding agents that adjusts how much code context it returns based on how confident the match is, instead of always giving a fixed number of results.
Mainly Python. The stack also includes Python, FastMCP, NumPy.
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.
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.