@cogit/cli 0.0.0-stage → 0.17.2

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.
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "cogit",
3
+ "displayName": "cogit",
4
+ "version": "0.17.2",
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,91 @@
1
- # Temporary Holding Version
1
+ <p align="center"><img src="docs/images/cogit-mark.svg" width="96" alt="cogit"></p>
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ # cogit
4
+
5
+ **Cogito, ergo commit.**
6
+
7
+ Git remembers what changed. cogit remembers why.
8
+
9
+ <p align="center"><img src="docs/images/cogit-descartes.jpg" width="360" alt="René Descartes with git branches running through his hair"><br><sub>After Frans Hals, <i>Portrait of René Descartes</i> (c. 1649).</sub></p>
10
+
11
+ ![The map: sessions, branches and the thoughts behind them](docs/images/map.png)
12
+
13
+ cogit records every message you send to an AI coding agent as a *thought commit*: what you
14
+ asked, what came of it, and the message it answered. Your code commits point back to the
15
+ thought behind them, so `git log` tells you what changed and cogit tells you why. It works with
16
+ Claude Code today.
17
+
18
+ ## What it does
19
+
20
+ - **Every message becomes a thought commit**: the question, the outcome, the decisions with
21
+ their reasons and the options that were rejected, and which earlier message it continues.
22
+ - **A map of your sessions**: a git graph of your conversations with branches, decisions, a
23
+ "Your turn" inbox and a one-click command to resume any chat.
24
+ - **Commits point back to their reason**: a `Thought:` trailer on each commit;
25
+ `cogit show <sha>`, `cogit blame` and `cogit why` follow it back.
26
+ - **Pull request descriptions with the decisions**: `cogit pr` writes the goal, the
27
+ decisions and the rejected options, never the raw chat.
28
+ - **Teams share the record through git**: after a pull, your teammates' sessions are on the
29
+ map too, with who ran them and what changed most.
30
+ - **The agent remembers**: a new session starts where the last one left off, and before
31
+ editing a file the agent hears what was already tried and rejected there.
32
+ - **Cheap by default**: a small side model records in the background; in our sessions it
33
+ cost about 1–2% of a session's tokens.
34
+ - **Private by default**: no server, no account. The raw conversation stays on your machine
35
+ and keys are redacted.
36
+
37
+ ## Why
38
+
39
+ AI coding agents made writing code faster and moved the bottleneck to review: in a study of
40
+ 718 firms, they opened 23% more pull requests while review time rose 49% and finished work did
41
+ not measurably grow. A reviewer sees what changed, not why; the why stays in a chat nobody else
42
+ reads. cogit keeps it next to the code. [More, with sources](docs/guide/why.md).
43
+
44
+ ## Install
45
+
46
+ You need Node 22.13+, Claude Code 2.1.275+ and a git repository.
47
+
48
+ ```bash
49
+ npm install -g @cogit/cli
50
+ ```
51
+
52
+ Then, in Claude Code:
53
+
54
+ ```text
55
+ /plugin install cogit --marketplace erensrtky/cogit
56
+ ```
57
+
58
+ ## Quick start
59
+
60
+ ```bash
61
+ cd your-project
62
+ cogit init # a few questions: git, transcript retention, team setup, language
63
+ ```
64
+
65
+ Work with Claude Code as usual; recording needs nothing from you. Then open the map:
66
+
67
+ ```bash
68
+ cogit open .
69
+ ```
70
+
71
+ ## Guide
72
+
73
+ - [Getting started](docs/guide/getting-started.md): what `init` asks, your first session,
74
+ setting up a team
75
+ - [The map](docs/guide/map.md): sessions, branches, the inbox, unread work, files, search
76
+ - [Reading the lineage](docs/guide/reading-the-lineage.md): `log`, `show`, `blame`, `why`,
77
+ `search`
78
+ - [Pull requests](docs/guide/pull-requests.md): `cogit pr`
79
+ - [Teams and git](docs/guide/teams-and-git.md): what is committed, the trailer, the hooks
80
+ - [Recording and cost](docs/guide/recording-and-cost.md): who writes the record, what it
81
+ costs
82
+ - [Privacy](docs/guide/privacy.md): what is recorded and what never leaves your machine
83
+ - [Settings](docs/guide/settings.md): every setting, explained
84
+ - [Troubleshooting](docs/guide/troubleshooting.md)
85
+ - [Why cogit](docs/guide/why.md): AI made code faster and review slower
86
+
87
+ The record format is in [docs/format.md](docs/format.md).
88
+
89
+ ## Licence
90
+
91
+ MIT — see [LICENSE](LICENSE).