VibeCommit — Claude Code Plugin
One-command install for session capture in Claude Code.
VibeCommit records what your AI agent did: Claude Code hooks capture sessions at
their Stop, PreCompact, and SessionEnd boundaries by default, with an opt-in hook
for capture at the moment of commit — see below.
Install
/plugin marketplace add Vibe-Commit/claude-plugin
/plugin install vibecommit@vibecommit-capture
That's it. Claude Code now:
- Fires Claude Code hooks on
Stop, PreCompact, and SessionEnd that invoke
the bundled capture client directly — capture that does not depend on the
agent calling a tool
- Connects the VibeCommit MCP server, so your agent can search, blame and diff
your captured history (
search_history, blame_commit, commit_coverage,
get_conversation, diff_conversation)
Connect this machine (once)
Installing the plugin registers the hooks; capture does nothing until this machine has a credential,
and until then a session shows "VibeCommit is installed but not connected." The plugin puts no
vibecommit command on your PATH, so there are two ways to connect:
-
Install the CLI (recommended). It also installs the git hooks the plugin does not, and you type
one short command:
npm install -g @vibe-commit/capture
vibecommit connect
Run vibecommit connect from any folder and choose what to capture: whole owners, including repositories you clone later, or single repositories. On a machine with no credential it opens your browser to sign in and saves the credential for you; there is nothing to copy or paste.
-
Run the bundled client. Without npm, run the plugin's own client with Node:
node <the plugin's bin/index.js> connect. The path is inside Claude Code's plugin directory; when
anything needs reconnecting, the message names the exact command for your install (when that would make the line too long, it points to vibecommit.ai/install instead).
If capture later stops because the credential is no longer accepted, it was revoked or expired, and the message says what to do. For a credential saved on this machine, the message reads "this machine's credential is no longer accepted" and names vibecommit auth or the node … auth form to run (or points to vibecommit.ai/install, as above). For one set through VIBECOMMIT_TOKEN, it reads "VIBECOMMIT_TOKEN is no longer accepted": replace the variable's value, or unset it. Turns held in the meantime upload once you reconnect. A failed upload after that drops turns held more than 24 hours with no upload of their transcript file succeeding, and the oldest once that file has more than 512 held uploads; status lists them as skipped.
What is uploaded is listed at vibecommit.ai/docs/what-we-upload.
What gets installed
The plugin installs hooks and the MCP server config:
| Component | Purpose |
|---|
hooks/hooks.json | Stop, PreCompact and SessionEnd hooks that run the bundled capture client |
bin/ | The vendored capture client those hooks invoke |
.mcp.json | MCP server config pointing at https://api.vibecommit.ai/mcp |
The rules files are not installed by the plugin. AGENTS.md, CLAUDE.md and
.claude/skills/vibecommit/SKILL.md in this repository are the canonical rules text,
but Claude Code does not load a plugin's root CLAUDE.md or AGENTS.md as context,
and this plugin has no skills/ directory, so installing the plugin alone gives your
agent no rules text. The rules files reach your project through the VibeCommit
server's setup tool, which writes them into your repository as a managed section
(content outside the managed markers stays yours).
Cross-vendor users
Using Codex or Cursor? Install the CLI above: vibecommit connect adds capture for them too. For other agents, and for the MCP server and rules files in any agent (Claude Code included), use the VibeCommit setup tool: https://www.vibecommit.ai/install
The install page has one-liner MCP blocks for every supported agent. The setup
MCP tool is how the rules files reach ANY project, Claude Code included: its content is
the canonical text kept in this repository, and the plugin install does not deliver it.
How it works
Capture happens two ways, and both write to the same history: Claude Code hooks
(Stop/PreCompact/SessionEnd, installed automatically with this plugin)
invoke the bundled capture client directly, and the MCP server below is called
cooperatively by your agent when it has the rules text (delivered by setup, not
by this plugin install). Re-capturing the same conversation through either path is
a free no-op, so the two never double-record.
VibeCommit's MCP server is at https://api.vibecommit.ai/mcp. The tools the
cooperative flow relies on: