Enable or disable the cache
Read caching is enabled by default for new native-hook installations.The setting is stored locally with your hook configuration. There is no web toggle for read caching.
What happens on a repeated read
RCLM records the file hash and line intervals delivered to the model.1
The model reads a range
RCLM records the requested start and end lines after the tool completes.
2
The model requests the same content again
If the file hash is unchanged and the requested range is fully covered, the full result is replaced with a notice such as:
3
A request overlaps only part of an earlier read
RCLM keeps the unseen lines and inserts notices for the ranges already delivered.
4
The file changes
A different content hash clears every saved interval for that file. The next read is served fresh and becomes the new baseline.
Supported read forms
- Native tools
- POSIX shell
- PowerShell
- Claude Code
Read - Gemini CLI
read_file
read_file and run_shell_command. Claude Code supports native Read and exact Bash reads.
Advancing long native reads
When--compress is enabled, unbounded native Claude Code reads are capped at 200 lines. The read cache supplies the next unseen offset, so successive capped reads advance through the file instead of restarting at line 1.
An explicit offset or limit from the model is preserved.
Shadow mode and savings
Use shadow mode to measure recognized rereads without replacing the tool output:View the impact
- User Portal → Stats shows measured context reduction and the files responsible for the most reread savings.
- Enterprise → Tokens attributes measured savings across project, team, user, and model views.
- Session details show the context-reduction mechanisms recorded for an individual session.
Context compression overview
Review the other compression controls, including result dedupe, test-output filtering, search shaping, and loop detection.