erensrtky

Cogit — Git skill for Claude Code

Git community

Git remembers what changed.

How to install Cogit

This entry records only its repository, not the path inside it, so there is no exact command to give. Open erensrtky/cogit and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Cogit does

Git remembers what changed. cogit remembers why. A Claude Code plugin that records every message you send as a thought commit and links your commits to the decisions behind them.

Alternatives in Git

  • Commit Msg — 生成 Git Commit Message 1k ★
  • Husky — by evmts - Sets up and manages Husky Git hooks by configuring pre-commit hooks, establishing commit message st 440 ★
  • Quick Commit — Stage all changes and commit with a descriptive message 353 ★

README

cogit

cogit

Git remembers what changed. cogit remembers why.

René Descartes with git branches running through his hair
Cogito, ergo commit.

cogit open shows the map; pasting a message hash jumps to that message and opens the decision behind it

cogit records every message you send to an AI coding agent as a *thought commit*: what you asked, what came of it, and the message it answered. Your code commits point back to the thought behind them, so `git log` tells you what changed and cogit tells you why. It works with Claude Code today.

What it does

  • Every message becomes a thought commit: the question, the outcome, the decisions with their reasons and the options that were rejected, and which earlier message it continues.
  • A map of your sessions: a git graph of your conversations with branches, decisions, a "Your turn" inbox, and Resume and Fork buttons that copy the command to reopen a chat or continue it as a new one.
  • Commits point back to their reason: a Thought: trailer on each commit; cogit show , cogit blame and cogit why follow it back.
  • Intent, Shape, Code: a message that landed commits shows why it happened, a small picture of what the change does (a diagram, a before/after or interface table, an example or plain steps), and the diff, in one place.
  • Captured work: when a session ends, a small model drafts a few user-level items from what it left undone; you accept, dismiss or close them (cogit captures, and on the map).
  • Pull request descriptions with the decisions: cogit pr writes the goal, the decisions and the rejected options, never the raw chat.
  • Teams share the record through git: after a pull, your teammates' sessions are on the map too, with who ran them and what