Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
Public GitHub repos that commit this plugin as enabled in their Claude Code settings
SQL REPL for querying Claude Code session data using DuckDB.
Add the marketplace:
/plugin marketplace add dannycoates/cc-query
Install the plugin:
/plugin install cc-query@dannycoates-cc-query
The plugin automatically installs the ccq binary on first session start.
When installed as a plugin, the CLI binary is inside a versioned cache directory that isn't on your shell's PATH. To use cc-query directly from the terminal, create a wrapper script that resolves the current version via glob:
#!/usr/bin/env bash
exec ~/.claude/plugins/cache/cc-query-dev/cc-query/*/bin/cc-query "$@"
Save this as cc-query somewhere on your PATH (e.g. ~/bin/cc-query or ~/.local/bin/cc-query) and make it executable:
chmod +x ~/bin/cc-query
The glob matches whichever version directory is present, so the wrapper survives plugin updates without changes.
# Query all projects
cc-query
# Query a specific project
cc-query ~/code/my-project
# Filter by session ID prefix
cc-query -s abc123 .
# Pipe queries (like psql)
echo "SELECT count(*) FROM messages;" | cc-query .
messages - All messages with parsed fieldsuser_messages - User messages onlyassistant_messages - Assistant responses onlyhuman_messages - Human-typed messages (no tool results)tool_uses - Tool invocations from assistant messagestool_results - Tool results with duration and error statustoken_usage - Token consumption per messagebash_commands - Bash command detailsfile_operations - File read/write/edit operationsraw_messages - Unparsed JSONL data.help - Show tables and example queries.schema - Show table schema.quit - ExitThe plugin includes three skills for session analysis:
/reflectQuery and analyze Claude Code session history. Use for:
See skills/reflect/SKILL.md for query reference.
/handoffCreate detailed handoff documents for work continuation. Produces:
See skills/handoff/SKILL.md for output format.
/pickupResume work from a handoff document. Reads a handoff file and:
get-content.shSee skills/pickup/SKILL.md for workflow.
MIT
npx claudepluginhub dannycoates/cc-query --plugin cc-queryPlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.