Skip to content

Instantly share code, notes, and snippets.

View aldefy's full-sized avatar
📡
Remote work

Adit Lal aldefy

📡
Remote work
View GitHub Profile
@aldefy
aldefy / claude_token_usage.py
Last active April 7, 2026 11:38
Claude Code token usage analyzer — track cache reads, subagents, and session costs locally. Adapted from @kieranklaassen's original script (https://gist.github.com/kieranklaassen).
#!/usr/bin/env python3
"""
claude-token-usage.py
Analyzes Claude Code session files (~/.claude/projects/) and reports
token consumption broken down by project, session, and subagent.
Usage:
python3 claude_token_usage.py # all time, all projects
SINCE_DAYS=7 python3 claude_token_usage.py # last 7 days
@aldefy
aldefy / keybase.md
Created November 1, 2016 16:35
Just keybase verification

Keybase proof

I hereby claim:

  • I am aldefy on github.
  • I am aditlal (https://keybase.io/aditlal) on keybase.
  • I have a public key whose fingerprint is 4F57 AD6E 95D6 E9E8 DBDA 56B2 9A19 C46D F27E A125

To claim this, I am signing this object:

@aldefy
aldefy / .gitignore
Created April 15, 2016 06:59
Git Ignore for Android Studio project
# Created by https://www.gitignore.io/api/android
### Android ###
# Built application files
*.apk
*.ap_
*.iml
# Files for the Dalvik VM