My notes about Claude Code, a coding agent from Anthropic:
- Claude Code on the web
- Using a long-lived Claude Code OAuth token
- Polite Compaction for Claude Code
- Gangprompting
Installation
curl -fsSL https://claude.ai/install.sh | bashCheck usage
ccusage can be used to check usage of Claude Code. It calculates the total number of tokens along with price estimates. To run with Deno via mise:
mise exec deno -- deno run --allow-env --allow-read --allow-net=raw.githubusercontent.com:443 --allow-sys=homedir npm:ccusage@latestI do this in my Fish shell so I can run ccu directly:
alias --save ccu 'mise exec deno -- deno run --allow-env --allow-read --allow-net=raw.githubusercontent.com:443 --allow-sys=homedir npm:ccusage@latest'