HOW-TO GUIDE

How to hand document reading to a cheap model from Claude Code and Codex

Based on a guide by Ercan Atay on Medium · Nov 30, 2026

You'll end with: Headless, tool-free calls to a small model that read documents and lists for your main Claude Code or Codex agent, which plans and checks.

Why it's worth having: A short task as a headless call used 810 tokens instead of 255,000 as a subagent, and one contract folder question fell from 90,000 to 21,800 tokens.

At a glance

WHO IT'S FOR
Engineers, analysts, and admins who run Claude Code or Codex on document-heavy work.
LEVEL
Advanced
COST
Free to read. Claude Code and Codex run on your own paid plans; markitdown is free and open source.
YOU NEED
Claude Code or the Codex CLI · markitdown · Python

The method, in short

  1. 1Run the small model headless with no tools, no MCP servers, no settings files, and a one-line system prompt, from an empty folder.
  2. 2Convert PDF, Word, and Excel files to Markdown locally with markitdown, then send 30,000-token chunks that match your keywords.
  3. 3Have the small model write long results to a file and return only the path and a short summary to the main model.
  4. 4Add a Claude Code PreToolUse hook that blocks small-model subagents and points to the headless call instead.

The article has the exact Claude Code and Codex flags, the hook, the team rollout, and every measured token count.

More from The Feed

ENERGY

Targa to buy Kinetik for $13.3B, adding 2.8 Bcf/d in the Permian

Targa Resources will buy Kinetik in a $13.3B cash and stock deal, adding about 2.8 Bcf/d of Delaware Basin gas processing to its Permian system.

THE DEAL
About $13.3B including about $4.1B of net debt; both boards approved it, and it is expected to close in Q1 2027.
THE ASSETS
About 4,000 miles of gas gathering pipe, 2.8 Bcf/d of processing, and stakes in Permian Highway (55.5%) and Shin Oak NGL (33%).
THE FOOTPRINT
Targa's Permian processing grows about 25% to about 14 Bcf/d, with sour gas treating that reaches deeper Delaware Basin zones.
WHY IT MATTERS
Kinetik's plants feed more NGLs and residue gas into Targa's fractionation, marketing, and export system, linking more Delaware Basin wells to the Gulf Coast.
TOOL

Claude Code 2.1.333 runs local code reviews by your repo's REVIEW.md

Engineering teams get local /code-review runs that follow a REVIEW.md in the repo, and Claude can stop one workflow agent while the rest keep going.

WHAT IT DOES
Local /code-review now follows the root REVIEW.md on your default branch, and Claude can stop one running agent of a workflow while the others continue.
WHO IT'S FOR
Software engineers, automation engineers, and engineering leads who use Claude Code.
HOW TO START

Needs Claude Code on a paid Claude plan or an Anthropic API account.

claude update

Then add a REVIEW.md with your review rules at the root of your default branch and run /code-review.

COST
Claude Code needs a paid Claude plan or an Anthropic API account.
WHY IT MATTERS
A team's review rules live in one file in the repo, so every local review checks the same things, and one stuck agent no longer stops a whole workflow.
Source: GitHub
TOOL

python-snap7 3.7.0 adds U-SEND and U-RECV for Siemens S7 PLCs

Controls engineers can read and write Siemens S7 PLC data from Python, and now exchange U-SEND and U-RECV messages of up to 4 data blocks.

WHAT IT DOES
A pure Python library that talks to Siemens S7-300, S7-400, S7-1200, and S7-1500 PLCs over the classic S7 protocol on Windows, Linux, and macOS.
WHO IT'S FOR
Controls engineers, automation engineers, and plant data engineers who work with Siemens S7 PLCs.
HOW TO START

Needs Python 3.10 or newer; S7-1200 and S7-1500 PLCs need PUT/GET access enabled in TIA Portal.

pip install python-snap7

Then connect a client to your PLC's IP address and read one data block.

COST
Free under the MIT license, with no native dependencies.
WHY IT MATTERS
Version 3.7.0 also writes S5TIME timer values, so Python scripts can set S7 timer tags that raised an error before.
Source: GitHub