# File Read Cache

> Guidelines for avoiding redundant file reads during a session. Use throughout any coding session. Instructs Claude to track which files have been read and avoid re-reading unchanged files.

- Skill: `viperjuice/file-read-cache` (Agent Skill)
- Install (CLI): `npx skillmds@latest add viperjuice/file-read-cache`
- Raw SKILL.md: https://api.skillmd.com/api/skills/viperjuice/file-read-cache/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: ViperJuice (https://skillmd.com/u/viperjuice)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/viperjuice/file-read-cache

---


# File Read Cache

## The Rule

Before calling Read on any file, ask: "Have I already read this file in this conversation, and has anything modified it since?"

If you already have the contents and nothing modified the file → use your existing knowledge. Don't re-read.

## When to Re-Read (legitimate reasons)

- You used Edit or Write on the file since your last Read
- A Bash command may have modified it (sed, code generators, git checkout, npm install)
- You need a different line range than what you previously read
- The conversation has been running so long that context compression may have dropped the content

## When NOT to Re-Read

- You read it 2-5 turns ago and only did Grep/Glob/other searches since (file unchanged)
- You want to "double-check" something you already read (trust your earlier read)
- You're referencing a config file (package.json, tsconfig.json) you read at session start

## Subagent Exception

This rule applies within a SINGLE conversation. Subagents have separate context and MUST read files independently — they cannot access the parent's prior reads. Similarly, if you ARE a subagent, you must read everything you need regardless of what the parent may have read.

