fix: skip LFS smudge filter when cloning from bare cache - #152
Conversation
- Add research doc analyzing why prompt caching hit rate was only ~20%
in long multi-turn sessions (root cause: CLI explicit breakpoints
limited to last 2 messages + API 20-block lookback window)
- Add CLAUDE_CODE_EXTRA_BODY={"cache_control":{"type":"ephemeral"}}
to .env enabling automatic caching (tested: -58% cost reduction)
- Add test scripts for cache optimization and resume scenarios
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Bare cache repos don't contain LFS objects, causing checkout to fail when the smudge filter tries to download large files from a local path. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Claude finished @lishuceo's task in 57s —— View job PR Review: fix: skip LFS smudge filter when cloning from bare cache
✅ Approved — The core fix is correct and well-tested. Core Fix (confidence: 95)The 1-line change in The regression test at Observation🟡 Unrelated files in PR (not blocking): This PR bundles 3 unrelated files with the LFS fix:
These were added in commit SummaryThe actual fix ( |
* research: prompt caching cost analysis and optimization
- Add research doc analyzing why prompt caching hit rate was only ~20%
in long multi-turn sessions (root cause: CLI explicit breakpoints
limited to last 2 messages + API 20-block lookback window)
- Add CLAUDE_CODE_EXTRA_BODY={"cache_control":{"type":"ephemeral"}}
to .env enabling automatic caching (tested: -58% cost reduction)
- Add test scripts for cache optimization and resume scenarios
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: skip LFS smudge filter when cloning from bare cache
Bare cache repos don't contain LFS objects, causing checkout to fail
when the smudge filter tries to download large files from a local path.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* test: add regression test for LFS skip smudge env var
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
GIT_LFS_SKIP_SMUDGE=1env var when cloning from bare cache to workspace, preventing checkout failures on repos with LFS filesTest plan
GIT_LFS_SKIP_SMUDGE=1is set in clone env🤖 Generated with Claude Code