SQL query engine for Claude Code and Codex CLI data.
```bash
npm install -g ccql
```
```bash
ccql "SELECT display FROM history LIMIT 5"
ccql "SELECT display FROM jhistory LIMIT 5"
ccql "SELECT tool_name, COUNT(*) FROM transcripts WHERE type='tool_use' GROUP BY tool_name"
ccql tables
```
See [GitHub](https://github.com/douglance/ccql) for full documentation.