Context recall for terminal sessions. Type ? to remember what you were doing.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
? my-project · feature/auth+3 unstaged · 4m ago via claude
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Adding OAuth2 login flow to user service
last asked: can you add the refresh token rotation logic...
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Developers lose context constantly when switching between terminal tabs. wtf.terminal reads session files from your AI coding tools and gives you a quick summary — no API calls, no latency.
- Claude Code — reads from
~/.claude/projects/ - OpenAI Codex CLI — reads from
~/.codex/sessions/ - OpenCode — reads from
~/.local/share/opencode/opencode.db
Automatically picks the most recent session across all installed tools.
curl -sSL https://raw.githubusercontent.com/dupe-com/wtf.terminal/main/install.sh | bashRequires jq and git. If you don't have jq:
brew install jqThen restart your terminal or source ~/.zshrc.
? # Show context for current directory
wtfctx # Same thing, no alias neededcd into any project directory where you've used an AI coding tool and type ?.
- Project name — from your git root directory
- Git branch + unstaged file count (live from your repo)
- Time since last session — relative ("4m ago", "2h ago")
- Session summary — what you were working on
- Last question — the last thing you asked
- Provider — which tool the session came from
- Finds your git root directory
- Checks Claude Code, Codex, and OpenCode for sessions matching that directory
- Picks the most recently modified session across all providers
- Extracts the summary and last human message
- Renders a formatted output block with ANSI colors
Pure zsh + jq + sqlite3 (ships with macOS). No Node, no Python, no build step.
| Variable | Default | Description |
|---|---|---|
WTF_INSTALL_DIR |
~/.wtf-terminal |
Where the tool is installed |
NO_COLOR |
unset | Set to disable colored output |
~/.wtf-terminal/uninstall.shMIT