jevbooks

← All projects

squint

valsecchi75/squint

A PreToolUse hook that narrows Claude's file reads to the answering chunk.

Agent Decisions49%Runner-up: Infra / SDKs / Integrations

What it is

squint is a Claude Code PreToolUse hook for developers working in large source files. It intercepts Read calls, asks a small fast model which chunk answers the question, and rewrites the tool's offset and limit before the file is opened.

How it uses Jev

On each intercepted Read, squint sends the file's chunks and the user's question to Jev as a Choice over candidate chunks. Jev returns a chunk id and a confidence; if confidence is high enough, squint rewrites the Read's offset and limit to that chunk and tells Claude what happened and how to undo it.

Primitives:choice

Technique worth stealing

Rewrite the tool's offset and limit instead of advising the model to read less: a suggestion is ignorable, a rewritten limit is not.

Try it

git clone the repo, npm install, npm run install-hook, then node dist/src/bin.js key.

View on GitHub

judged by Jevjev-1.13.0

Evidence

Each line is one question put to Jev about the README. ≥ 0.60 reads as yes, ≤ 0.40 as no; in between Jev is not making a call.

  • Jev-centricno0.05
  • Shows a System One patternunclear0.60
  • Handles uncertaintyno0.04
  • Measuredyes0.95
  • Runnableyes0.95
  • Worth recommendingno0.19
  • Model replicano0.06
  • Problem scopescore on a 0–2 scale1.20
  • About Jevyes0.79

Signals by Jev jev-1.13.0, card written by DeepSeek V4.1 Flash from the README on 20 Sept 2026.