I

I cut my Claude API bill by 66% with Git-based context

Hacker News

I cut my Claude API bill by 66% with Git-based context

Hey HN, I built ShadowGit a while back to automatically commit code every minute to a hidden git repo (.shadowgit.git). Original goal was to easily rollback when AI tools break things. But I discovered something interesting: this minute-by-minute history is perfect context for AI assistants. So I built an MCP server that lets Claude/Cursor query this history using native git commands. The results surprised me: Before: Claude would read my entire codebase repeatedly, burning 15,000+ tokens to debug issues. After: Claude runs `git log --grep="drag"` finds when drag-and-drop worked, applies that fix. 5,000 tokens. How it works technically: 1. ShadowGit watches your project and commits every save to .shadowgit.git (parallel to your main repo) 2. MCP server exposes git operations to AI: - `git diff HEAD~10 -- component.tsx` to see recent changes - `git log -S "functionName"` to find when code was added - `git show COMMIT:file.js` to retrieve working versions 3. AI naturally understands git, so instead of dumping context, it surgically queries what it needs It's free while I am testing and improving it. I am looking for feedback on the project and maybe some integration ideas beyond MCP. Thanks! Alessandro

Share card

Actual performance

5points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: cursor, claude, mcp · Missing: mac, agents, macos
98%98% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Strong signals: para · Missing: supports, reddit linkedin, podcasting
59%59% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: ide, 000, io · Missing: https docs, excited, just released
49%49% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: para · Missing: mobile apps, ios, personal
45%45% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
23%23% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
21%21% predicted probability of success on AppSumo, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Guage
Guage29%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Claude just cut you off. Keep going anyway.

Indie Hackerscommitment-side-project
In
Introduction to Git64%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Introduction to Git

Hacker News3
I
I made a few screencasts on Git41%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I made a few screencasts on Git

Hacker News2
Gi
Git statistics46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Git statistics

Hacker News4
Gi
Git Shirt on Teespring62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Git Shirt on Teespring

Hacker News2
Gi
GitRap, abusing Git62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

GitRap, abusing Git

Hacker News9
Su
Suicide Git62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Suicide Git

Hacker News1
gi
git rdiff62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

git rdiff

Hacker News1
St
Stellar – Git for PostreSQL and MySQL53%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Stellar – Git for PostreSQL and MySQL

Hacker News325
Gi
Git for DiffPlug62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Git for DiffPlug

Hacker News2