[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109362":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":14,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":23,"topics":24,"createdAt":10,"pushedAt":35,"updatedAt":36,"readmeContent":37,"aiSummary":38,"trendingCount":15,"starSnapshotCount":15,"syncStatus":39,"lastSyncTime":40,"discoverSource":41},109362,"cogit","erensrtky\u002Fcogit","erensrtky"," Git for the intent behind agent-written code. Records what your coding agent decided and why, and links every commit to it.","https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@cogit\u002Fcli",null,"TypeScript",216,18,1,0,24,158,6,67.84,"MIT License",false,"main",true,[25,26,27,28,29,30,31,32,33,34],"ai-coding","claude","claude-code","claude-code-plugin","cli","coding-agents","developer-tools","git","llm","typescript","2026-11-19 13:01:23","2026-11-23 18:46:09","\u003Cp align=\"center\">\u003Cimg src=\"docs\u002Fimages\u002Fcogit-mark.svg\" width=\"96\" alt=\"cogit\">\u003C\u002Fp>\n\n# cogit\n\n**Git for the intent behind agent-written code.**\n\n\u003Cp align=\"center\">\u003Cimg src=\"docs\u002Fimages\u002Fcogit-descartes.jpg\" width=\"360\" alt=\"René Descartes with git branches running through his hair\">\u003Cbr>\u003Ci>Cogito, ergo commit.\u003C\u002Fi>\u003C\u002Fp>\n\ncogit records every message you send to an AI coding agent as a *thought commit*: what you\nasked, what came of it, and the message it answered. Your code commits point back to the\nthought behind them, so `cogit why` takes any line of code back to the reason it exists. It works\nwith Claude Code today.\n\nAgent memory helps your agent remember. cogit helps you understand.\n\nIt runs as a Claude Code plugin and works through Claude Code hooks, so the record is written\nwhile you work, not reconstructed from the diff afterwards.\n\n**[Click through a saved map](https:\u002F\u002Ferensrtky.github.io\u002Fcogit\u002Fdemo\u002F)**: no install, no server.\nIt's the page `cogit open` writes, built from sample data and read-only.\n\n## Why\n\nI started by copying code out of ChatGPT, then moved to browser tools, editor extensions and now\nterminal agents. Each step moved the code further from me, and I kept feeling something was\nslipping away. When you write code yourself, it sinks in bit by bit: you know why that table\nexists and why you wrote that class. When an agent writes it, that feeling goes away.\n\nThe information isn't really gone. It sits in your messages, the agent's replies and your commits,\njust in separate places. cogit ties them together, so you can always walk back and see why\nsomething was done. It helps most when you juggle projects: I run 5-10 agents at once across 2-3\nof them, and a few minutes later I can lose track of what I did where.\n\n\u003Cimg src=\"docs\u002Fimages\u002Fwhy-abstraction.png\" alt=\"A conceptual chart from machine code to software factories: abstraction keeps rising, while how much of the why you can still trace falls sharply once AI starts writing code. cogit keeps what falls away.\">\n\nIt's bigger than one person's memory: a reviewer sees what changed, not why.\n[More, with research and sources](docs\u002Fguide\u002Fwhy.md).\n\ncogit isn't:\n\n- **Agent memory** (OpenViking, Mem0): that helps your agent recall what you talked about.\n- **A token saver** (RTK, Headroom): that sends the model less.\n- **A code map** (graphify): that shows how a codebase fits together.\n- **An orchestrator** (Herdr, Conductor): that runs many agents at once.\n- **A planning framework** (BMAD, Spec Kit): that decides what to build next.\n- **An AI review bot** (CodeRabbit, Greptile): that comments on whether a diff looks right.\n\nIt answers the one question they leave open: why is this code the way it is? I use several of\nthem alongside it.\n\n## See it\n\n\u003Cimg src=\"docs\u002Fimages\u002Fmap.png\" alt=\"The map: sessions as a git graph, each with its messages, branches, commit chips and a left off here marker\">\n\n*Your sessions as a git graph — one row per message, the decision behind it, and where you left\noff.*\n\n\u003Cimg src=\"docs\u002Fimages\u002Fshape.png\" alt=\"A message opened on its Shape tab: a flowchart of what the change does, under the tabs Intent, Shape and Code\">\n\n*A message that landed commits opens as Intent, Shape and Code: why it happened, a picture of\nwhat the change does, and the diff.*\n\n\u003Cimg src=\"docs\u002Fimages\u002Ftasks.png\" alt=\"The Tasks panel: suggested items with Accept and Dismiss, open items with Done, and a Done section\">\n\n*Tasks — work that came up in a session and didn't get finished, caught when the session closes.\nYou accept, dismiss or close each one.*\n\n\u003Cimg src=\"docs\u002Fimages\u002Ffiles.png\" alt=\"The Files view: a changed file opened, listing the messages that touched it with each message's reason and the option it rejected\">\n\n*A changed file opens its history: every message that touched it, and the reason behind each —\nincluding the option that was rejected.*\n\n## What it does\n\n- **Every message becomes a thought commit**: the question, the outcome, the decisions with\n  their reasons and the options that were rejected, and which earlier message it continues.\n- **A map of your sessions**: a git graph of your conversations with branches, decisions, a\n  \"Your turn\" inbox, and Resume and Fork buttons that copy the command to reopen a chat or\n  continue it as a new one.\n- **Commits point back to their reason**: a `Thought:` trailer on each commit;\n  `cogit show \u003Csha>`, `cogit blame` and `cogit why` follow it back.\n- **Intent, Shape, Code**: a message that landed commits shows why it happened, a small\n  picture of what the change does (a diagram, a before\u002Fafter or interface table, an example\n  or plain steps), and the diff, in one place.\n- **Tasks**: when a session ends, a small model catches the work that came up and didn't get\n  finished as a few user-level items; you accept, dismiss or close them (`cogit captures`, and\n  on the map).\n- **Pull request descriptions with the decisions**: `cogit pr` writes the goal, the\n  decisions and the rejected options, never the raw chat. `cogit pr --install-action` adds a\n  GitHub Action that posts them on every pull request.\n- **Teams share the record through git**: after a pull, your teammates' sessions are on the\n  map too, with who ran them and what changed most.\n- **Cheap by default**: a small side model records in the background; in our measurement it\n  cost under 2 cents per 20 messages.\n- **No server, no account**: it runs on your machine. Nothing leaves it unless you say so: `cogit\n  init` asks whether to share the record (titles, decisions and reasons) with your team. If you\n  do, `git push` sends it to your own repository, outside your branches, so it never shows up in\n  a pull request or `git status`. Your chats stay local, `cogit prune` deletes old sessions, and\n  key and token patterns are redacted.\n- **The agent gets the context too**: a new session starts where the last one left off, and\n  before editing a file the agent hears what was already tried and rejected there. It works\n  alongside memory tools; it doesn't replace them.\n\n## Install\n\nYou need Node 22.13+, Claude Code 2.1.275+ and a git repository.\n\n```bash\nnpm install -g @cogit\u002Fcli\n```\n\nThen, in Claude Code:\n\n```text\n\u002Fplugin install cogit --marketplace erensrtky\u002Fcogit\n```\n\nTo get plugin updates on their own, turn on auto-update once: `\u002Fplugin` → Marketplaces →\ncogit → Enable auto-update. Claude Code leaves it off for marketplaces outside its own.\n\nIf the map stays empty, run `cogit doctor`.\n\n## Quick start\n\n```bash\ncd your-project\ncogit init        # a few questions: git, transcript retention, team setup, language\n```\n\nWork with Claude Code as usual; recording needs nothing from you. Then open the map:\n\n```bash\ncogit open .\n```\n\n## Guide\n\n- [Getting started](docs\u002Fguide\u002Fgetting-started.md): what `init` asks, your first session,\n  setting up a team\n- [The map](docs\u002Fguide\u002Fmap.md): sessions, branches, the inbox, files, search,\n  resuming and forking a session\n- [Reading the lineage](docs\u002Fguide\u002Freading-the-lineage.md): `log`, `show`, `blame`, `why`,\n  `search`\n- [Pull requests](docs\u002Fguide\u002Fpull-requests.md): `cogit pr`\n- [Teams and git](docs\u002Fguide\u002Fteams-and-git.md): what is shared, the trailer, the hooks\n- [Recording and cost](docs\u002Fguide\u002Frecording-and-cost.md): who writes the record, what it\n  costs\n- [Privacy](docs\u002Fguide\u002Fprivacy.md): what is recorded and what never leaves your machine\n- [Settings](docs\u002Fguide\u002Fsettings.md): every setting, explained\n- [Troubleshooting](docs\u002Fguide\u002Ftroubleshooting.md)\n- [FAQ](docs\u002Fguide\u002Ffaq.md): questions people asked after the launch\n- [Why cogit](docs\u002Fguide\u002Fwhy.md): AI made code faster and review slower\n\nThe record format is in [docs\u002Fformat.md](docs\u002Fformat.md).\n\n## Licence\n\nMIT — see [LICENSE](LICENSE).\n","cogit 是一个面向 AI 编程场景的意图追踪工具，专为记录和关联大模型编码决策与最终代码变更而设计。它将用户向编码代理（如 Claude Code）发出的每条指令及其响应存为‘思想提交’（thought commit），并建立代码提交与原始意图间的可追溯链接；支持通过 CLI 实时捕获、可视化会话图谱及反向查询任意代码行的生成原因。其核心特点是轻量集成（作为 Claude Code 插件）、实时记录（非事后还原）、意图-代码双向映射。适用于多代理协同开发、AI 辅助代码审查、团队知识沉淀及复杂项目中快速回溯决策上下文。",2,"2026-11-24 04:36:37","CREATED_QUERY"]