vibecommitdocsblogpricingsign in →
docs

Docs

VibeCommit is a model-neutral provenance layer that pairs git commits with the agent sessions recorded alongside them — prompts, tool calls, model metadata — queryable by SHA. It ships as a capture client you install locally, a cloud dashboard, and an MCP server your agent can talk to while it works.

Install

VibeCommit records your coding-agent sessions from a client that runs on your own machine. vibecommit connect registers capture with every agent it finds installed — Claude Code, Codex CLI, Cursor — handing over the session on Stop, PreCompact, and SessionEnd.

Codex asks you to trust new hooks the next time it starts — until you do, it will not run them. Installing here does not make Codex capture; accepting that prompt does.

  1. 01 · install and connect · from any folder
    npm install -g @vibe-commit/capture && vibecommit connect

    Requires Node 22.15 or newer. vibecommit connect lists the repos you've used Claude Code, Codex or Cursor in on this machine and asks which to capture: whole owners, including repos you clone later, or single repos. It shows what is uploaded and asks for consent before it opens the browser. The one exception is g, which signs in first to read the repos your account already grants, then asks before anything is captured. It adds post-commit and post-rewrite hooks to each clone of what you chose, and offers to upload sessions still on this machine.

    To skip the list, name what to capture: vibecommit connect <owner>/<repo>, or <owner>/ for every repo of an owner, including ones you clone later. It shows the same disclosure and asks the same question. Add --no-backfill to send no check and offer no earlier sessions. Naming repositories (vibecommit connect acme/web, or acme/ for an owner) and --no-backfill need 0.17.0 or later: 0.16 refuses them, and earlier versions ignore them. Update first: npm install -g @vibe-commit/capture@latest. The Claude Code plugin's bundled copy can be behind npm.

    
      Looking for repositories on this machine...   done
    
      Found 4 repositories you've used a coding agent in on this machine.
    
      on now
         1  acme-corp/api             per clone · 3 sessions · since 19 Oct
      alexvibecommit/    a1  all 2 repos here, including repos you clone later
         2  vibecommit-web            6 sessions · since 2 Oct · Claude Code, Codex
         3  vibecommit-capture        9 sessions · since 25 Sep
      turned off
         4  alexvibecommit/old-site   choose it to turn it back on
    
      Not listed here:
        2 repos with no remote: run `vibecommit connect` inside each
        25 sessions in folders that can't be matched to one repo
    
      Choose a1, numbers (1 2), owner/ or owner/repo.
      Remove one with -N, -owner/ or -owner/repo.
      Press Enter to change nothing.
      > 
  2. 02 · new clones · nothing to run

    Clone a repo you chose and open your coding agent in it. That session is captured, and its commit hooks are added then if their slots are free; if not, a one-line notice says how to add them. Repos with no remote: run vibecommit connect inside each.

  3. 03 · turn one off, or renew

    To stop one repo: vibecommit offinside it (every clone of it on this machine). To renew this machine's credential: vibecommit auth. It saves the credential and stops. On a terminal it then says what comes next: vibecommit connect on a machine that captures nothing yet, or that capture stays on. For a credential set through VIBECOMMIT_TOKEN, replace the variable's value or unset it instead.

    Opens your browser to sign in and approve a machine credential for this computer, then saves it to ~/.vibecommit/credentials.json, mode 0600. The approval page states its terms: it stays valid while this machine captures, up to a year, and ends after 90 days without a capture; it is not rotated automatically, is stored in plain text, and you can stop it sooner by revoking it under Machines in settings. If a browser step fails, or you run it with --paste, it asks you to paste a credential created in settings instead. The paste is read without echoing, and a credential is never taken as an argument, because arguments are kept in your shell history and are readable by other processes while the command runs. Until a credential is set, nothing is uploaded. The agent hooks record no session; in a repository you chose to capture, the git hook may note a commit on this machine. Your agent keeps its own session files; vibecommit connect offers to upload the earlier ones not yet sent for the repositories it turns on, and says how many it leaves out and why. Signing in to this website alone does not set one up.

Work as usual. The session hooks hand each session to VibeCommit when your agent finishes a turn, compacts, or exits, and the commit hook records the commit against the session that was capturing in that clone when it landed. Then read it back by SHA in the dashboard.

If the install fails

If npm install -g fails, the connect half never runs. EACCES means npm cannot write to its global folder: run npm config set prefix "$HOME/.npm-global" and export PATH="$HOME/.npm-global/bin:$PATH", add that second line to your shell profile (~/.zshrc or ~/.bashrc) so a new terminal still finds vibecommit, then paste the line again. EEXIST means another npm package named vibecommit already owns the command: run npm uninstall -g vibecommit && npm install -g @vibe-commit/capture, then vibecommit connect.

What the install writes
each agent's own config

Hooks on Stop, PreCompact, and SessionEnd, in the config file belonging to each agent that is installed here. They hand the session to the client when the agent finishes a turn, compacts, or exits.

.git/hooks/post-commit, post-rewrite

Two git hooks, in each clone of what you chose. vibecommit connect adds them to the clones it found, and the npm install adds them to a clone you make later, during its first session. They record the commit against the session that was capturing in that clone when the commit landed — what was active, not who wrote the code. The hooks are per clone, and each one is safe to delete. A hook you delete is not added again unless you run vibecommit connect in that clone.

Three agents, two config shapes

vibecommit connect writes a config only for an agent that is already here — the directory has to exist first. Creating ~/.cursor/hooks.json on a machine with no Cursor would leave a file you never asked for, in a tool you do not run, that a later install would silently inherit.

Claude Code
~/.claude/settings.json, honouring CLAUDE_CONFIG_DIR.
Codex CLI
~/.codex/hooks.json, honouring CODEX_HOME. ⛔ Codex asks you to trust new hooks the next time it starts — until you do, it will not run them. Installing here does not make Codex capture; accepting that prompt does.
Cursor
~/.cursor/hooks.json, in Cursor’s own flat shape.

Hooks you already had are added to, never replaced, and they still run. If one of these files cannot be read as JSON it is left exactly as it is and the failure is reported — overwriting a file we cannot parse would discard settings we cannot see.

When the commit hook can't run

Three cases where a naive install would do nothing and say nothing. Here is what happens instead — and none of them change what vibecommit connect exits with, because observing commits is an addition to capturing sessions, not a precondition for it.

core.hooksPath redirects hooks elsewhere
Git ignores .git/hooks entirely when core.hooksPath points somewhere else, so this is a refusal rather than a warning: nothing is written, into .git/hooks or into the configured directory, and vibecommit connect reports that the commit hook is not active, and the first session in a clone you made later says so once. Writing a file that silently never runs would be worse.
you already have a post-commit hook
When you run vibecommit connect, yours is moved aside and chained, never overwritten — and it runs first, with its exit status preserved. Ours runs after and cannot change the outcome. A session start never moves your hook: it adds nothing and tells you once.
the send fails
Nothing counts as sent until the server answers with a 2xx; until then, turns and commits wait on this machine, and a failed send is tried again. Three cases differ. A send the server refuses as malformed, or a single record too large to send, is skipped and not sent later. While the server refuses this machine's credential, nothing is sent, and held turns upload once you reconnect. And a failed upload 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. vibecommit status counts both as skipped.
Using the Claude Code plugin

It carries the capture client inside it, so it needs no npm at all, and it brings the MCP server and the rules files the client does not. Run both lines inside Claude Code.

/plugin marketplace add Vibe-Commit/claude-plugin
/plugin install vibecommit@vibecommit-capture

The plugin registers its own hooks and does not edit your settings.json. It does not put vibecommit on your PATH, so the one-paste line above is still how you authorize the machine and bind commits. The plugin captures sessions in clones of the repos you chose but adds no commit hooks. The npm line above adds them.

Commands

Each command's description from its own help: vibecommit help <command>.

connect
Choose the repositories to capture, from any folder, and connect them. On a machine with no credential it signs you in after you say yes, unless you choose g, which signs in first to read your account's grants.
auth
Sign in again, or replace this machine's credential. It saves the credential and then prints the next step. It does not choose what to capture: that is connect's job.
scan
List the repositories coding agents have been used in on this machine. Uploads nothing and changes no setting.
backfill
Upload earlier coding-agent sessions still on this machine, for the repositories you chose. Asks first; no commit links.
status
Show whether capture is on for this repo, or for this machine outside a repo, and when it last succeeded.
off
Stop capturing a repository: this one, or one you name.
why
Show the conversation turns recorded against the commit that last changed this line.
report
Show this repository's capture coverage.
finalize
Close a finished session's last turn so commits made in it can be recorded.

MCP setup

A separate surface your coding agent talks to in-session, so it can reach the record while it works. Capture does not depend on it: set it up only if you want your agent to have it.

MCP tool surface

  • setup — install the per-client rules file bundle.
  • commit_conversation — capture a conversation as a versioned, branchable record.
  • search_history — full-text search past sessions by SHA, repo, or text.
  • get_conversation — read one captured conversation back, turn by turn.
  • diff_conversation — diff two captured conversations to see how the intent changed.
  • blame_commit — show the conversation turns recorded against a commit.
  • commit_coverage — report how many commits in a repo have a capture recorded against them, broken down by edge grade.

Connect the MCP server

Optional, and separate from capture. Pick your client below — every snippet points at the same api.vibecommit.ai/mcp Streamable HTTP endpoint, and only the vendor wrapper differs. The first tool call opens a browser to sign in with GitHub.

Claude Code

clishell (one-liner)
claude mcp add --transport http vibecommit https://api.vibecommit.ai/mcp
add to claude code →then restart Claude Code
unsupported · phase 1

Aider does not yet implement MCP (upstream issues #3314 and #4506). VibeCommit will support it as soon as upstream lands MCP.

Another client that speaks MCP over OAuth and we don't list it? Point it at the same endpoint — best-effort, using whichever wrapper above matches its config format.

More

  • What we upload: exactly what leaves your machine, and when.
  • Teams: where captures go, who can read them, sharing, trials and seats.
  • Error codes: what each code means and what to run.
  • Q&A: the questions people ask first, and what to do when something is broken.

A bug, or something these docs don't answer? Open an issue on the plugin repository's issue tracker.