Use case · Free plugin

My agent read a whole upgrade guide to find two sections. Now it reads the sections it needs.

When your agent reads a docs page, a web page or a browser snapshot, the free context-mode plugin puts the page in a local index. The agent reads the sections that answer the question. A fetch of the 265 KB Vite features guide reached the model as 0.4 KB.

How do I set up the dev server proxy in Vite?

Full page: navigation, tables and every example reach the model.

WebFetch returns265.4 KB
The model reads265.4 KB

Every later call sends it again.

Free plugin: the page goes to a local index, and the agent searches it.

The index holds265.4 KB
The model reads0.4 KB

Sent to the model

  • The proxy section, with its source

Kept on your machine

  • The full page, searchable with ctx_search
The problem

The answer is two sections. The page is 265 KB.

Each page is long

Docs pages hold navigation, examples for other setups and long tables.

The agent needs a few parts

An upgrade guide, an API reference and two blog posts: a few sections from each.

Every page stays in the thread

Text in the conversation goes back to the model on every later call of the session.

How it works

The page goes to an index. The agent reads the answer.

  1. 01The hook catches the fetch

    The PreToolUse hook sees a large WebFetch or Read and sends it to the sandbox.

  2. 02The page goes into the index

    A SQLite FTS5 index (SQLite full-text search) in ~/.context-mode, one database per project.

  3. 03The agent searches it

    It calls ctx_search with its question and reads the best sections, with their source. A second question costs one search.

Proof

Four sources, measured. The model reads under 1 KB of each.

SourceFull sizeThe model read
WebFetch of the Vite features guide (the hook sends it to ctx_index and ctx_search)265.4 KB0.4 KB
Browser snapshot (take_snapshot, the Wikipedia SQLite page)133.3 KB0.5 KB
Read of the 89 KB Vite config source (the hook sends it to ctx_execute)89.2 KB0.4 KB
Library docs (query-docs, Vite build and proxy config)6.8 KB0.5 KB

Plugin benchmark of 2026-11-01 on an Apple M1 Pro, default settings, median of 5 runs. Raw data: the result tables. Rerun it with the steps on Benchmarks.

Prompts

Give your agent one of these.

Prompt
Read the Vite docs on build options and the dev server proxy. Write the proxy setup for an API that runs on port 8080, and cite the section you used.
Prompt
Read the React 19 upgrade guide. List each change that touches this repo, with the file to edit, then make the changes.
Prompt
Compare the Stripe and Paddle webhook docs. Write a handler for each that checks the signature, and list what differs.
Products used

What this uses.

The free plugin

Open source. It runs in your agent, on your machine.

Search and index

How the page goes into the index and how the agent finds a section.

How it works

The hooks, the sandbox and the local index.

Related

Free plugin resources · Test and build logs · Analyze large files

Index the whole page. Read the part you need.

Each agent installs the free plugin with its own install command.

Get started free

Context Mode Gateway: your coding agent costs less and remembers your project. Context Mode Engine installs from your terminal.

Start free: 1,000 requests, every feature, no card. After you sign in, the console gives you one command to connect your coding agent.

Read the docs