llm-kb
← Back to releases
Tool Release

Local Context Router cuts vision-token waste by pre-classifying PDF pages

A developer built LocalContextRouter, a tool that runs locally to classify each PDF page as text, OCR-needed, or image before sending to a multimodal model. This avoids the wasteful practice of rendering every page to an image, which can cost 1,300–4,800 tokens per page versus 400–800 tokens for plain text. The tool never calls a model itself, leaving the final API call to the user's app.

2 engagement·1 source·Sun, Jul 12, 2026, 03:24 AM
LocalContextRouter is a lightweight local tool that pre-processes PDFs page by page. For each page, it determines whether the content is primarily text (send as plain text), requires OCR (send as image for extraction), or is an image (send as image). This prevents multimodal models from double-billing: when a model reads a PDF, it typically extracts text and also renders every page to an image, charging for both. For a text-only page, the image costs roughly 1,300–4,800 tokens, while the same page as plain text is only 400–800 tokens. Over a text-heavy document, the savings multiply. The tool runs cheap checks on the user's machine and returns a per-page decision plus the text to send; the user's app still makes the actual API call. The developer noted that Claude Code helped build the tool, but no specific model names or prices were given beyond the token ranges.

Entities

LocalContextRouter(tool)

Related

ProductSat, Jul 11, 2026, 06:38 PM

ContextOps: open-source tool to audit and optimize LLM prompt context

ContextOps is an open-source tool that analyzes LLM prompts to detect token waste such as duplicated retrieval chunks, bloated system prompts, oversized conversation history, and repeated tool outputs. It helps developers reduce costs and improve model consistency by auditing what goes into the prompt before inference.

2 engagement·1 source·reddit
Model ReleaseSat, Jul 11, 2026, 03:52 PM

New model with 500K-token context and $2/$6 pricing shifts cost calculus

A model offering a 500,000-token context window at $2 per million input tokens and $6 per million output tokens has been released, drawing attention for its cost-effectiveness. The pricing and context length are seen as significant for applications requiring long-context processing, potentially changing the competitive landscape before benchmark comparisons are even made.

0 engagement·1 source·rss
RSS
ProductSat, Jul 11, 2026, 03:21 AM

Offline PDF chat with RAG using local LLMs and vector search

A production-oriented Retrieval-Augmented Generation (RAG) system for chatting with PDFs. It uses local LLMs via Ollama, ChromaDB for vector search, and LangChain to provide grounded answers from uploaded documents, fully offline. Aimed at users needing private, local document Q&A.

1 engagement·1 source·github
ProductSat, Jul 11, 2026, 05:29 PM

Upload project folder to get optimized markdown for LLM context

A web tool that lets users upload an entire project folder and receive a single, clean, optimized markdown file ready to paste into Claude or Codex. It solves the problem of manually preparing context for LLMs by automatically consolidating and formatting code files. All processing is done client-side for privacy.

1 engagement·1 source·reddit
ProductSat, Jul 11, 2026, 04:37 PM

Understudy: local Ollama drafts answers before Claude, saving API costs

Understudy is a single-file hook that intercepts prompts to Claude Code and routes routine tasks (summarization, classification, JSON conversion, etc.) to a local Ollama model for a draft. The draft is injected as context with instructions for Claude to verify and deliver if correct, or discard and redo if not. It saves API costs by offloading grunt work to a free local model while keeping Claude as the quality gate.

4 engagement·1 source·reddit