By yaniv-golan
AI-assisted, non-interactive git refactoring via MCP (safe rebase, fixups, commit surgery) for agents or chat users invoking the MCP tools.
Use whenever a git operation is mid-flight and needs help finishing. Triggers: "continue the rebase", "abort the rebase", "conflicts in files", "rebase stopped/stuck/paused", "cherry-pick conflict", "revert has conflicts", "merge conflict", git status showing unmerged paths, or any git-hex tool returning paused/conflict/conflictingFiles status. Helps resolve conflicting files one by one, then continue or abort the operation. Applies to rebase, merge, cherry-pick, and revert — but only when already in progress. NOT for starting new rebases, creating PRs, squashing, fixup commits, undoing completed operations, or git-hex setup.
Trigger whenever the user's message contains "PR", "pull request", or "review feedback" — regardless of what else they ask for. This includes: "open a PR", "create a PR", "prepare for PR", "update my PR", "clean up and open a pull request", "address review comments", "reviewer wants", "PR #number". Even if the request also involves squashing, rebasing, or fixing commits, trigger this skill as long as a PR or review is part of the goal. Do NOT trigger for local-only git work (squash, amend, cherry-pick, rebase, conflict resolution) where no pull request or code review is mentioned. Do NOT trigger for branch protection rules or repo settings.
Rewrite git branch history. Invoke for any commit manipulation: squash, reword, reorder, drop, split, fold fixups, amend, or rebase onto main. Handles "clean up my commits", "squash before PR", "fix commit message typo", "make branch reviewable", "fold in fixup commits", "drop a commit", "rebase my branch". Operates on existing commits using git-hex MCP tools — no interactive rebase needed. NOT for: merge conflicts, cherry-picks across branches, conflict checking, git concepts, or hooks setup.
Admin access level
Server config contains admin-level keywords
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
AI-assisted, non-interactive git refactoring via MCP — a focused toolset for rebase & commit perfection, usable by agents or chat users directing the MCP tools.
git-hex is an MCP (Model Context Protocol) server that provides AI assistants with safe, powerful git refactoring capabilities. It handles the complexity of interactive rebasing, fixup commits, and commit amendments while ensuring your repository is never left in a broken state.
Name note: “git-hex” is simply a short label for this git-history refactoring toolkit (not related to hex encoding).
See CHANGELOG.md for notable changes. Version metadata also lives in VERSION and .claude-plugin/plugin.json.
Quick links: docs/install.md • docs/safety.md • docs/clients.md • docs/reference/tools.md • docs/reference/mcp.md • SECURITY.md • CONTRIBUTING.md
roots); read-only mode blocks mutating tools.force)roots) for sandboxed accessClaude Code (recommended):
/plugin marketplace add yaniv-golan/git-hex
/plugin install git-hex@git-hex-marketplace
Cursor / Claude Desktop / Windsurf (MCP config):
git clone https://github.com/yaniv-golan/git-hex.git ~/git-hex
Then add to your MCP settings:
{
"mcpServers": {
"git-hex": {
"command": "~/git-hex/git-hex.sh"
}
}
}
Windows (Git Bash): see docs/clients.md#windows-git-bash
Prerequisites: git and jq/gojq. No install step needed — the runtime is included. See docs/install.md.
In your AI chat (in a repo), ask:
“Show me the last 5 commits I could rebase onto
main.”
When connected, your AI can use tools like git-hex-getRebasePlan to answer.
npx claudepluginhub yaniv-golan/git-hex --plugin git-hexAI skill for @chenglou/pretext — the 15KB TypeScript text measurement library that computes exact text metrics without DOM reflows
Create formal, verifiable proofs of claims with machine-checkable reasoning — every fact computed or cited, never asserted
Control, customize, and develop firmware for the GeekMagic SmallTV Ultra (ESP8266 + ST7789 240x240 display)
Comprehensive guide for building integrations with Israel's Pikud HaOref (Home Front Command) alert system — rocket alerts, earthquake warnings, and civil defense notifications.
Companion personality, mood, lore, and commands powered by the Familiar SDK
Surgical, non-interactive git hunk control for AI agents
Advanced commit workflows with smart staging and push automation
Reliable automation, in-depth debugging, and performance analysis in Chrome using Chrome DevTools and Puppeteer
Evidence-gated AI coding workflow: scan → analyze → plan → TDD → execute → fix → verify → review, powered by Codebase Memory MCP >= 0.9.0 with optional Serena LSP intelligence. Includes blast-radius planning, test/cycle gates, independent review, and Windows Git Bash hook auto-resolution.
Enterprise AI agent orchestration plugin with 150+ commands, 74+ specialized agents, SPARC methodology, swarm coordination, GitHub integration, and neural training capabilities
Production-grade vibe coding suite. Structured workflows from discovery to deployment: start, build, ship, fix, refactor.