@cogit/cli 0.0.0-stage → 0.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +11 -0
- package/LICENSE +21 -0
- package/README.md +91 -2
- package/dist/chunk-3FDYKXX3.js +21838 -0
- package/dist/cli.js +10850 -0
- package/dist/git-hooks-MBUVWXP3.js +33 -0
- package/hooks/hooks.json +65 -0
- package/package.json +49 -4
- package/skills/record/SKILL.md +96 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cogit",
|
|
3
|
+
"displayName": "cogit",
|
|
4
|
+
"version": "0.18.1",
|
|
5
|
+
"description": "Git remembers what changed. cogit remembers why.",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Eren Sertkaya"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"keywords": ["lineage", "sessions", "history", "decisions"]
|
|
11
|
+
}
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Eren Sertkaya
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,92 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center"><img src="docs/images/cogit-mark.svg" width="96" alt="cogit"></p>
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# cogit
|
|
4
|
+
|
|
5
|
+
Git remembers what changed. cogit remembers why.
|
|
6
|
+
|
|
7
|
+
<p align="center"><img src="docs/images/cogit-descartes.jpg" width="360" alt="René Descartes with git branches running through his hair"><br><i>Cogito, ergo commit.</i></p>
|
|
8
|
+
|
|
9
|
+
<picture>
|
|
10
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/images/map-dark.png">
|
|
11
|
+
<img src="docs/images/map-light.png" alt="The map: sessions, branches and the decision behind a message">
|
|
12
|
+
</picture>
|
|
13
|
+
|
|
14
|
+
cogit records every message you send to an AI coding agent as a *thought commit*: what you
|
|
15
|
+
asked, what came of it, and the message it answered. Your code commits point back to the
|
|
16
|
+
thought behind them, so `git log` tells you what changed and cogit tells you why. It works with
|
|
17
|
+
Claude Code today.
|
|
18
|
+
|
|
19
|
+
## What it does
|
|
20
|
+
|
|
21
|
+
- **Every message becomes a thought commit**: the question, the outcome, the decisions with
|
|
22
|
+
their reasons and the options that were rejected, and which earlier message it continues.
|
|
23
|
+
- **A map of your sessions**: a git graph of your conversations with branches, decisions, a
|
|
24
|
+
"Your turn" inbox and a one-click command to resume any chat.
|
|
25
|
+
- **Commits point back to their reason**: a `Thought:` trailer on each commit;
|
|
26
|
+
`cogit show <sha>`, `cogit blame` and `cogit why` follow it back.
|
|
27
|
+
- **Pull request descriptions with the decisions**: `cogit pr` writes the goal, the
|
|
28
|
+
decisions and the rejected options, never the raw chat.
|
|
29
|
+
- **Teams share the record through git**: after a pull, your teammates' sessions are on the
|
|
30
|
+
map too, with who ran them and what changed most.
|
|
31
|
+
- **The agent remembers**: a new session starts where the last one left off, and before
|
|
32
|
+
editing a file the agent hears what was already tried and rejected there.
|
|
33
|
+
- **Cheap by default**: a small side model records in the background; in our sessions it
|
|
34
|
+
cost about 1–2% of a session's tokens.
|
|
35
|
+
- **Private by default**: no server, no account. The raw conversation stays on your machine
|
|
36
|
+
and keys are redacted.
|
|
37
|
+
|
|
38
|
+
## Why
|
|
39
|
+
|
|
40
|
+
AI coding agents made writing code faster and moved the bottleneck to review: in a study of
|
|
41
|
+
718 firms, they opened 23% more pull requests while review time rose 49% and finished work did
|
|
42
|
+
not measurably grow. A reviewer sees what changed, not why; the why stays in a chat nobody else
|
|
43
|
+
reads. cogit keeps it next to the code. [More, with sources](docs/guide/why.md).
|
|
44
|
+
|
|
45
|
+
## Install
|
|
46
|
+
|
|
47
|
+
You need Node 22.13+, Claude Code 2.1.275+ and a git repository.
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
npm install -g @cogit/cli
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Then, in Claude Code:
|
|
54
|
+
|
|
55
|
+
```text
|
|
56
|
+
/plugin install cogit --marketplace erensrtky/cogit
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Quick start
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
cd your-project
|
|
63
|
+
cogit init # a few questions: git, transcript retention, team setup, language
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Work with Claude Code as usual; recording needs nothing from you. Then open the map:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
cogit open .
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Guide
|
|
73
|
+
|
|
74
|
+
- [Getting started](docs/guide/getting-started.md): what `init` asks, your first session,
|
|
75
|
+
setting up a team
|
|
76
|
+
- [The map](docs/guide/map.md): sessions, branches, the inbox, unread work, files, search
|
|
77
|
+
- [Reading the lineage](docs/guide/reading-the-lineage.md): `log`, `show`, `blame`, `why`,
|
|
78
|
+
`search`
|
|
79
|
+
- [Pull requests](docs/guide/pull-requests.md): `cogit pr`
|
|
80
|
+
- [Teams and git](docs/guide/teams-and-git.md): what is committed, the trailer, the hooks
|
|
81
|
+
- [Recording and cost](docs/guide/recording-and-cost.md): who writes the record, what it
|
|
82
|
+
costs
|
|
83
|
+
- [Privacy](docs/guide/privacy.md): what is recorded and what never leaves your machine
|
|
84
|
+
- [Settings](docs/guide/settings.md): every setting, explained
|
|
85
|
+
- [Troubleshooting](docs/guide/troubleshooting.md)
|
|
86
|
+
- [Why cogit](docs/guide/why.md): AI made code faster and review slower
|
|
87
|
+
|
|
88
|
+
The record format is in [docs/format.md](docs/format.md).
|
|
89
|
+
|
|
90
|
+
## Licence
|
|
91
|
+
|
|
92
|
+
MIT — see [LICENSE](LICENSE).
|