readscout
Runs and manages the local models used by readscout, including pulling recommended models and unloading them to free RAM and VRAM.
Enables OpenAI Codex to delegate reading tasks to local models, receiving short verified answers with quotes and line numbers instead of consuming its own context window.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@readscoutwhich POST routes in app.js are missing auth checks?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
readscout
Local models read your files for your coding agent. When Claude Code or Codex needs facts from big files, a long
log or a whole folder, it asks readscout instead of reading everything itself. A small model on your own GPU reads
the files and answers in a few lines, and every claim comes with a quote that readscout checked word for word in the
source, with its real file:line. Your agent keeps its context window (and your usage quota) for the real thinking.
Nothing ever leaves your machine.
> local_ask(["app.js"], "Which POST routes are registered WITHOUT passportConfig.isAuthenticated?")
[local_ask · gemma4:26b · 1 chunk(s), 21 KB read locally, 23 s · 18 verified quote(s), 0 dropped (quote not found in source)]
- app.js:253 : The POST route '/login' is registered without passportConfig.isAuthenticated. « app.post('/login', loginLimiter, userController.postLogin); »
- app.js:256 : The POST route '/login/2fa' is registered without passportConfig.isAuthenticated. « app.post('/login/2fa', login2FALimiter, userController.postTwoFactor); »
- app.js:269 : The POST route '/signup' is registered without passportConfig.isAuthenticated. « app.post('/signup', userController.postSignup); »
...That is a real run on hackathon-starter's 101-route app.js: 21 KB stayed
out of the agent's context, 18 of the 19 matching routes came back, none wrong, every line number real. The question
contains "WITHOUT", so readscout picked the bigger model by itself.
Contents
Install: one-line installer · Claude Code plugin · manual
Related MCP server: localmind
What it does
readscout is an MCP server with three tools, plus a skill that tells your agent when to use them:
Tool | Your agent gives it | It gets back |
| files or folders (up to 1.5 MB) and a question | a few findings, each with a verified quote and its real |
| a long log or command output | the root cause and the distinct failures, with verified quotes |
| files, a precise change, and check commands (your tests) |
|
How the answers stay trustworthy:
the model's output is constrained by a JSON schema, so it always parses;
any finding whose quote is not found in the source is dropped; line numbers are computed by readscout, never by the model;
large inputs are split into chunks instead of being refused; logs are pre-filtered (errors with context, start, end, no duplicates);
negative questions ("without", "not", "missing") go to the bigger model automatically, because small models get them wrong;
an edit is kept only if your tests pass;
models free your RAM and VRAM by themselves: Ollama unloads them one minute after the last call, and readscout unloads them as soon as the agent session ends. Nothing to stop by hand (
readscout stopfrees memory at once).
Why
Every turn of an agent session re-sends the whole conversation, so each big file or log your agent reads keeps costing tokens until the session ends. Most of that reading is mechanical: finding where something is, listing what matches a pattern, spotting the error in a log. A small local model does that well if it must prove what it says.
Earlier "delegate to a local model" setups (including the one this project replaces) failed for measurable reasons: they delegated judgement (code review, fact checking), refused large inputs, and cost the agent more tokens to drive than doing the task itself. readscout delegates reading only, adapts to any input size, and returns a short receipt. The story and the numbers: docs/DESIGN.md and docs/BENCHMARK.md.
Requirements
Windows, macOS or Linux.
A coding agent: Claude Code and/or Codex.
Ollama to run the models (the installer can install it for you).
Hardware: a GPU with 6 GB of memory or more is recommended (NVIDIA, AMD, or Apple silicon), and 16 GB of RAM. With 8 GB of VRAM and 32 GB of RAM you get the best measured setup. It also runs on CPU only, slowly.
Disk: 7 to 25 GB for the models, depending on your machine.
Installation
Pick one option. A sets up everything for Claude Code and Codex. B is the quickest way if you only use Claude Code. C is the same as A, done by hand.
Option A: one-line installer (recommended)
Windows (PowerShell):
irm https://raw.githubusercontent.com/Anarchiejs/readscout/main/install.ps1 | iexmacOS / Linux:
curl -fsSL https://raw.githubusercontent.com/Anarchiejs/readscout/main/install.sh | shThe installer asks before installing anything:
uv, a Python manager from Astral (it brings its own Python; you need nothing else);
Ollama, if it is missing (winget on Windows, Homebrew on macOS, the official script on Linux);
readscout itself;
then it opens the setup page in your browser (
http://127.0.0.1:8765/setup):Your machine: GPU memory and RAM are detected and pre-filled; adjust the sliders (VRAM 6-24 GB, RAM 16-64 GB) if needed;
Models: the models recommended for that machine, each with an Install button (one click, with a progress bar), then Use these models;
Coding agents: Connect Claude Code and/or Codex (registers the MCP server and copies the skill);
Project folders: add the folders the local models are allowed to read;
Check: everything should be green.
Restart Claude Code / Codex, and continue with First steps.
Option B: Claude Code plugin
For Claude Code only. You need uv and Ollama installed first. In Claude Code, run:
/plugin marketplace add Anarchiejs/readscout
/plugin install readscout@readscoutThe plugin brings the skill and the MCP server (started with uvx, nothing else to install). Then, in a terminal,
download the models and allow a project folder:
uvx --from https://github.com/Anarchiejs/readscout/releases/download/v0.1.1/readscout-0.1.1-py3-none-any.whl readscout setupThat opens the same setup page as option A: install the models and add your project folders there (skip "Coding agents": the plugin already did it). Restart Claude Code.
Tip: to have a short readscout command for later, install it once with
uv tool install https://github.com/Anarchiejs/readscout/releases/download/v0.1.1/readscout-0.1.1-py3-none-any.whl.
Option C: manual install
# 1. Ollama: https://ollama.com/download (then make sure it is running)
# 2. uv: https://docs.astral.sh/uv/getting-started/installation/
# 3. readscout
uv tool install https://github.com/Anarchiejs/readscout/releases/download/v0.1.1/readscout-0.1.1-py3-none-any.whl
# 4. models recommended for your machine (see `readscout hardware` first if you are curious)
readscout pull
# 5. connect your agent(s)
readscout install-agent claude
readscout install-agent codex
# 6. allow a project folder (repeat for each project)
readscout register my-app /path/to/my-app
# 7. check
readscout doctorRestart Claude Code / Codex.
First steps
Check the setup:
readscout doctormust end withAll good.(plugin users: use theuvx ... readscoutform above).Open a project you allowed in Claude Code or Codex.
Ask something that needs a lot of reading, in your own words. For example:
"Which API routes in
src/routesdon't check authentication?""Where is the session expiry handled in this repo?"
"Summarize what the
lib/folder does.""Run the tests and tell me why they fail" (the agent saves the output to a file and digests it).
Watch the agent call
local_askorlocal_digestand get a short receipt instead of opening every file. The first call loads the model into memory (10-30 s); later calls are faster.See what it saved:
readscout stats, orreadscout dashboardfor the usage page.
You can also call the tools from a terminal, without any agent, to see what they return:
cd /path/to/my-app
readscout ask src -q "Which functions read environment variables?"
readscout digest build.logEveryday use
You keep working as usual: the skill tells the agent when to delegate. It uses readscout for:
facts spread over files it has not read yet (more than a few hundred lines in total);
understanding a module or folder without reading it;
long logs, test or build output;
small, fully specified mechanical edits (docstrings, type hints, renames, a new parameter, test scaffolding), always with your tests as the gate.
It keeps for itself: anything a quick grep answers, short files it reads anyway, and every judgement
(code review, "is there a bug", architecture, real-world facts).
Things you may see in a receipt:
retried with quality model: the fast model found nothing quotable, the bigger one was used;quality model ... not installed, used ...: install it withreadscout pull <model>for better answers;The list may be incomplete: the agent should narrow the question or add agrep;File not found inside a registered project: the agent will ask you before allowing that folder.
Commands
readscout setup open the setup page
readscout doctor check that everything is installed and wired
readscout hardware detected GPU/RAM and recommended models
readscout pull [MODEL ...] download models (default: the recommended ones)
readscout install-agent claude|codex register the MCP server and the skill (uninstall-agent to undo)
readscout register ID PATH allow a project folder (unregister ID to remove it)
readscout projects list allowed folders
readscout ask PATH... -q QUESTION run local_ask from the terminal (--summary, --quality)
readscout digest PATH run local_digest from the terminal
readscout edit PATH... -i TEXT --gate "CMD" run local_edit from the terminal
readscout stats what was read locally instead of by your agent
readscout dashboard usage page
readscout stop unload every model now (they also unload by themselves)
readscout bench measure your models on the public benchmarkSettings and usage data live in your user folder, never in the package: %APPDATA%\readscout on Windows,
~/Library/Application Support/readscout on macOS, ~/.config/readscout on Linux (config.json, metrics.jsonl).
Models
Chosen per machine from catalog.json, measured with the public benchmark:
Your machine | Fast | Quality |
less than ~6 GB VRAM |
|
|
6-9 GB VRAM, less than ~30 GB RAM |
|
|
10-14 GB VRAM, less than ~30 GB RAM |
|
|
6-14 GB VRAM, 32 GB RAM or more |
|
|
16 GB VRAM or more |
|
|
On an RTX 4060 Ti 8 GB + 32 GB RAM (docs/BENCHMARK.md): gemma4:26b and gemma4:12b score 0.91
on 25 reading tasks from four pinned open-source repositories (about 20 s per task), gemma4:e4b 0.85 with 7/7 edits
(about 5 s). Measure your own machine with readscout bench and share the table in an issue.
Troubleshooting
Symptom | Fix |
Anything odd |
|
"Ollama is not installed" / "Ollama did not start" | install or start Ollama (on Windows and macOS, readscout starts the app by itself) |
"Model ... is not installed yet" |
|
"File not found inside a registered project" |
|
The agent never uses readscout | restart the agent after installing; check with |
Answers are slow | normal on small GPUs for the quality model (20-60 s); the fast model answers in seconds |
Bigger models run out of memory on Windows | setup page, Apply under "Recommended Ollama settings", then restart Ollama |
Security and privacy
Models run on
127.0.0.1only; any other endpoint is refused in code. No online model, ever, even as a fallback.The model has no tools: it reads the text readscout gives it and returns JSON. Only readscout reads files, and only inside folders you allowed;
.env, keys, credential files,.gitand binaries are refused; secrets are masked before reaching the model, andlocal_editrefuses files that contain one.File contents and model answers are treated as data, never as instructions.
The setup page listens on
127.0.0.1, checks Host and Origin, and requires a per-session token for every change.
Details and reporting: SECURITY.md.
Limits
Small models are good readers and poor authorities: do not delegate code review, bug hunting or fact checking.
A verified quote proves the line exists, not that the model understood it; the agent opens the cited lines before any decision (the skill says so).
Lists can be incomplete (the receipt says so when a cap was hit); when completeness matters, add a targeted
grep.
Uninstall
readscout uninstall-agent claude # or: /plugin uninstall readscout@readscout
readscout uninstall-agent codex
uv tool uninstall readscoutModels stay in Ollama (ollama rm gemma4:26b); settings stay in the user folder listed under Commands.
Contributing
Benchmark reports from other GPUs, bug reports and pull requests are welcome: see CONTRIBUTING.md. Roadmap: more model families in the catalog, an optional llama.cpp backend (3.5x faster prompt reading on MoE models, measured), more benchmark tasks.
License
This server cannot be deployed
Maintenance
Related MCP Connectors
Shared memory for coding agents. Stop re-explaining your codebase every session.
Token-efficient search for coding agents over public and private documentation.
Codebase intelligence for agents: 152 structured artifacts across 21 programs, one call.
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Related MCP Servers
- FlicenseBqualityDmaintenanceProvides LLMs with safe, read-only access to local codebases for searching, reading files, and finding function definitions. All source code remains local, ensuring privacy while enabling AI assistants to explore project structures and functionality.4-
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to search and ask questions about a local codebase with citations, using BM25 and optional embeddings, all offline.2 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to retrieve only the specific code sections that answer their questions, drastically reducing context usage while running fully locally.1MIT
- AlicenseAqualityAmaintenanceEnables local AI agents to perform hybrid search (BM25 + vector) over privately indexed local files, including notes, PDFs, DOCX, source code, and OCR'd images. All indexing and retrieval stay on the machine with read-only, whitelist-scoped access.3MIT