Personal Claude Code configuration: custom statusline and CLAUDE.md guidelines.
Global instructions for Claude Code covering:
- TDD (Red/Green/Refactor) and Tidy First principles
- SOLID, YAGNI, DRY, KISS design principles
- Design pattern guidelines and anti-patterns
- Language-specific conventions (Python, Rust, TypeScript)
- Commit discipline (structural vs behavioral changes)
Installed to ~/.claude/CLAUDE.md (applies to all projects).
myproject main* [session] concise Claude Opus 4.6 ctx:15% total:24.5k↓/18.2k↑ msg:3.1k↓/2.4k↑ $0.0234 21:34:15
| Item | Color | Example |
|---|---|---|
| Directory | Blue | myproject |
| Git branch + dirty | Grey | main* |
| Session name | Grey | [my-session] |
| Output style | Orange | concise |
| Model name | White | Claude Opus 4.6 |
| Context usage | Green / Red (<20% remaining) | ctx:15% |
| Session total tokens | Cyan | total:24.5k↓/18.2k↑ |
| Current message tokens | Magenta | msg:3.1k↓/2.4k↑ |
| Estimated session cost | Yellow | $0.0234 |
| Time (24h) | Grey | 21:34:15 |
jq- JSON processorbc- Calculator (usually pre-installed)git- For git status display
git clone https://github.com/writeAheadLog/wal-claude-code.git
cd wal-claude-code
zsh install.shThen restart Claude Code.
cd wal-claude-code
zsh uninstall.sh- Copy
CLAUDE.mdto~/.claude/CLAUDE.md - Copy
statusline-command.shto~/.claude/statusline-command.sh - Run
chmod +x ~/.claude/statusline-command.sh - Add to
~/.claude/settings.json:
{
"statusLine": {
"type": "command",
"command": "/YOUR/HOME/.claude/statusline-command.sh"
}
}- Restart Claude Code