by erensrtky
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.
# Add to your Claude Code skills
git clone https://github.com/erensrtky/cogitGuides for using ai agents skills like cogit.
See how cogit compares with popular alternatives.
cogit is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by erensrtky. 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. It has 55 GitHub stars.
cogit's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/erensrtky/cogit" and add it to your Claude Code skills directory (see the Installation section above).
cogit is primarily written in TypeScript. It is open-source under erensrtky on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh cogit against similar tools.
No comments yet. Be the first to share your thoughts!
Available after the catalog security scan passes.
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Git remembers what changed. cogit remembers why.
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 cogit why takes any line of code back to the reason it exists. It works
with Claude Code today.
Agent memory helps your agent remember. cogit helps you understand.
It runs as a Claude Code plugin and works through Claude Code hooks, so the record is written while you work, not reconstructed from the diff afterwards.
Click through a saved map: no install, no server.
It's the page cogit open writes, built from sample data and read-only.
I started by copying code out of ChatGPT, then moved to browser tools, editor extensions and now terminal agents. Each step moved the code further from me, and I kept feeling something was slipping away. When you write code yourself, it sinks in bit by bit: you know why that table exists and why you wrote that class. When an agent writes it, that feeling goes away.
The information isn't really gone. It sits in your messages, the agent's replies and your commits, just in separate places. cogit ties them together, so you can always walk back and see why something was done. It helps most when you juggle projects: I run 5-10 agents at once across 2-3 of them, and a few minutes later I can lose track of what I did where.
It's bigger than one person's memory: a reviewer sees what changed, not why. More, with research and sources.
cogit isn't:
It answers the one question they leave open: why is this code the way it is? I use several of them alongside it.
Your sessions as a git graph — one row per message, the decision behind it, and where you left off.
A message that landed commits opens as Intent, Shape and Code: why it happened, a picture of what the change does, and the diff.
Tasks — work that came up in a session and didn't get finished, caught when the session closes. You accept, dismiss or close each one.
A changed file opens its history: every message that touched it, and the reason behind each — including the option that was rejected.
Thought: trailer on each commit;
cogit show <sha>, cogit blame and cogit why follow it back.cogit captures, and
on the map).cogit pr writes the goal, the
decisions and the rejected options, never the raw chat.cogit init asks whether to share the record (titles, decisions and reasons) with your team. If you
do, git push sends it to your own repository, outside your branches, so it never shows up in
a pull request or git status. Your chats stay local, cogit prune deletes old sessions, and
key and token patterns are redacted.You need Node 22.13+, Claude Code 2.1.275+ and a git repository.
npm install -g @cogit/cli
Then, in Claude Code:
/plugin install cogit --marketplace erensrtky/cogit
To get plugin updates on their own, turn on auto-update once: /plugin → Marketplaces →
cogit → Enable auto-update. Claude Code leaves it off for marketplaces outside its own.
If the map stays empty, run cogit doctor.
cd your-project
cogit init # a few questions: git, transcript retention, team setup, language
Work with Claude Code as usual; recording needs nothing from you. Then open the map:
cogit open .
init asks, your first session,
setting up a teamlog, show, blame, why,
searchcogit prThe record format is in docs/format.md.
MIT — see LICENSE.