FINALLY FIXED the most annoying Claude Code bug
"fatal: Unable to create '.git/index.lock': File exists"
Turns out git status is NOT read-only. It secretly updates the index stat cache on every call, creating index.lock. My statusline runs git commands to show branch info โ and fights
Claude's commits for the lock.
The fix is literally one line:
export GIT_OPTIONAL_LOCKS=0
Zero side effects. Same output. No more lock conflicts.
@theo really enjoying https://t.co/W9s1praSLU overall, but there are two missing features that make it borderline unusable for me:
1. Context usage indicator (e.g. "75k / 200k tokens") โ without it I have no idea when to wrap up and start fresh. I keep losing entire sessions because the chat silently hits limits
2. Message deletion โ fork/retry regenerate everything after a point, but I just want to delete a single message mid-chat to free up context without losing the rest of the conversation
Without these I can't manage long sessions at all. Would love to see them added ๐
Claude Code Wrapped 2025
Total Tokens: 3,247,137,862
Total Messages: 113,209
Total Sessions: 4,322
Longest Streak: 19 days
Top model: Claude Opus 4.5
Total Estimated Cost: $2,454.57
Get yours: npx cc-wrapped
@brian_lovin Mine hides sections automatically when there's no data โ and you can hide cost with CLAUDE_STATUSLINE_HIDE_COST=1 for Max plan ๐
https://t.co/coqCq06P4G
@fatih@usgraphics https://t.co/coqCq06P4G
This is my custom statusline for Claude Code, made it about a week ago
- Model
- ๐ Path
- ๐ Notes
- โฌข Node
- ๐ฆ Package
- โ/โ Git
- ๐ฐ Cost
- โฑ Time
- ๐ง /๐ Tokens
๐ Just released eden-tanstack-react-query!
Type-safe TanStack Query integration for Elysia Eden
โจ Like @trpc/react-query, but for Elysia
๐ Full end-to-end type safety
๐ฆ Only 2.4 KB gzipped
โก queryOptions() & mutationOptions() API
Link in comments ๐