Save 75% on Claude Code: Open-Source Tool Optimizes Agent Memory

shhdwi · reddit · 2026-08-03

A developer shared an open-source tool called Graft that drastically reduces Claude Code costs by preventing the agent from repeatedly scanning the codebase.

How it works: The tool pre-scans the repository and saves its structure as a linked Markdown file in Git. Claude reads this file before executing tasks, avoiding the need for numerous tool calls to understand the context. It plugs natively into Claude Code's hooks system for fully automated operation.

Benchmark results (over 162 runs):

Related event: Open-Source Tool Optimizes Claude Code to Cut Costs(3 posts)→

Original post →

More from coding & agent

coding & agent channel →