2.1 KiB
2.1 KiB
description, model, allowed-tools, argument-hint
| description | model | allowed-tools | argument-hint | |
|---|---|---|---|---|
| Explore git commit history using git-intelligence MCP tools | claude-haiku-4-5-20251001 | mcp__plugin_git_git-intelligence__get_recent_commits, mcp__plugin_git_git-intelligence__search_commits, mcp__plugin_git_git-intelligence__get_diff_summary |
|
Git History Explorer
Interactively explore git commit history using the git-intelligence MCP tools.
Instructions
Help the user explore git history to understand past changes. Use the MCP tools for efficient queries.
Available MCP Tools
Based on the user's request, use the appropriate tool:
-
Recent commits → Use
get_recent_commitstool- Default: 10 commits, adjust
limitas needed
- Default: 10 commits, adjust
-
Search by message → Use
search_commitstool- Set
queryto the search term - Set
search_code: false(default)
- Set
-
Search by code change → Use
search_commitstool- Set
queryto the code snippet - Set
search_code: true(like git log -S)
- Set
-
Current status → Use
get_statustool- Shows branch, staged/modified/untracked files
Fallback to Bash
For queries not covered by MCP tools, use Bash:
- File history:
git log --oneline -10 -- <filepath> - Branch info:
git branch -a - Show specific commit:
git show <commit-hash> --stat - Compare branches:
git log --oneline main..HEAD - Who changed what:
git blame <filepath> - Time-based queries:
git log --oneline --since="last week"
Arguments
Parse the user's query to determine intent:
/git:history→ Useget_recent_commits/git:history auth→ Usesearch_commitswith query "auth"/git:history src/api.ts→ Use Bash:git log --oneline -10 -- src/api.ts/git:history -S function→ Usesearch_commitswith search_code: true/git:history last week→ Use Bash:git log --oneline --since="last week"
Output
Present results clearly with:
- Commit hash (short)
- Subject line
- Author and relative time
- Optionally show diff for specific commits
Now explore the history based on the query: $ARGUMENTS