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.
By douglancev0.7.0MITIn 1 marketplace
Query your Claude Code and Codex prompt history, shell history, Git data and source symbols with SQL from Claude. On first session start a hook auto-installs the devsql binary via Homebrew.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
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
git-history, code-analysis, prompt-history, codebase-search, analytics, claude-code, history
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Use DevSQL Code Mode to query Claude Code history, Codex CLI history, shell history, macOS Unified Logs, Git data, and source code. Code Mode is the primary agent interface; slash commands and the direct CLI are fallbacks.
/plugin marketplace add douglance/devsql
/plugin install devsql@devsql
Restart Claude Code to load the plugin.
The plugin auto-installs the devsql binary via Homebrew on first session start.
Connect devsql --mcp as an stdio MCP server. Agents use the five codemode_* lifecycle tools to discover and compose typed devsql.* methods. Read-only data queries run automatically and observe existing records.
/devsql:query SELECT * FROM history LIMIT 10
/devsql:query SELECT * FROM symbols WHERE kind = 'fn' LIMIT 10
devsql search "parse" # Find symbols by name
devsql context src/engine.rs # File metadata + symbols
devsql history src/engine.rs # Git history for a file
devsql diff main~5 HEAD # Compare refs (file + symbol level)
devsql impact src/lib.rs # Exports and dependents
Just ask Claude about your history or codebase:
Claude will automatically use devsql to answer.
history — Your promptstranscripts — Full conversations incl. subagents (type, content, tool_name, session_id, _project, _agent_id, timestamp, model, usage_* token columns)sessions — One row per session (title, project, message counts, subagent_count, total_*_tokens, pr_url, pr_number)todos — Todo items (content, status)jhistory — Prompt history from ~/.codex/history.jsonlcodex_history — Alias of jhistorycommits — Commit history (id, message, summary, author_name, authored_at, short_id)branches — Branch info (name, is_head, commit_id)diffs — Commit-level diff stats (commit_id, files_changed, insertions, deletions)diff_files — Per-file diff stats (commit_id, path, status, insertions, deletions)commit_parents, tags, refs, stashes, reflog, blame, config, remotes, submodules, status, worktrees, hooks, notesmacos_logs — Bounded, streamed events from the live datastore or a .logarchive, including normalized fields, provenance, and raw JSON. Configure it through devsql.query with log_last, log_start/log_end, log_predicate, log_archive, log_level, log_max_rows, and log_timeout.source_files — File inventory (path, name, extension, language, size_bytes, line_count)source_lines — Line-level content (file_path, line_number, content, is_blank)symbols — Functions, classes, structs, etc. (name, kind, file_path, line_start, signature, visibility)imports* — Import statements (file_path, module, name, alias, kind)* imports requires the tree-sitter-ast build feature. Without it, symbols uses regex-based extraction.
Run devsql schema <table> for any table's exact columns.
-- Recent prompts
SELECT display as prompt, project
FROM history ORDER BY timestamp DESC LIMIT 10
-- Commits correlated with Claude sessions
SELECT date(c.authored_at) as day, COUNT(*) as commits
FROM commits c
JOIN history h ON date(c.authored_at) = date(datetime(h.timestamp/1000, 'unixepoch'))
GROUP BY day
-- Most active days
SELECT date(datetime(timestamp/1000, 'unixepoch')) as day, COUNT(*) as prompts
FROM history
GROUP BY day ORDER BY prompts DESC LIMIT 7
-- Which prompts led to commits?
SELECT h.display as prompt, COUNT(c.id) as commits_after
FROM history h
JOIN commits c ON date(datetime(h.timestamp/1000, 'unixepoch')) = date(c.authored_at)
GROUP BY h.display
ORDER BY commits_after DESC LIMIT 10
-- Find all public Rust functions (Rust emits kind='fn'; JS/TS use 'function')
SELECT name, file_path, line_start, signature
FROM symbols
WHERE kind = 'fn' AND visibility = 'pub'
ORDER BY file_path, line_start
-- Largest files by line count
SELECT path, language, line_count, size_bytes
FROM source_files
ORDER BY line_count DESC LIMIT 10
-- Blank line ratio per file
SELECT file_path,
COUNT(*) as total_lines,
SUM(is_blank) as blank_lines,
ROUND(100.0 * SUM(is_blank) / COUNT(*), 1) as blank_pct
FROM source_lines
GROUP BY file_path
ORDER BY blank_pct DESC LIMIT 10
MIT
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.
npx claudepluginhub douglance/devsql --plugin devsqlPlugins from other owners that cover similar ground