cc-hindsight 1.0.2 → 1.2.0
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/README.md +22 -6
- package/dist/cli.js +2951 -1185
- package/npm-shrinkwrap.json +2 -2
- package/package.json +7 -3
- package/dist/runner-GBOB7lxq.js +0 -2
- package/dist/runner-_HierHih.js +0 -313
package/README.md
CHANGED
|
@@ -9,15 +9,15 @@
|
|
|
9
9
|
[](#privacy--trust)
|
|
10
10
|
|
|
11
11
|
<p align="center">
|
|
12
|
-
<img src="https://raw.githubusercontent.com/adityaarunsinghal/cc-hindsight/main/.github/assets/demo.gif" alt="cc-hindsight building a oneshot prompt library from
|
|
12
|
+
<img src="https://raw.githubusercontent.com/adityaarunsinghal/cc-hindsight/main/.github/assets/demo.gif" alt="cc-hindsight building a oneshot prompt library from coding-agent session history" width="800">
|
|
13
13
|
</p>
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
16
|
npx cc-hindsight
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
cc-hindsight mines your
|
|
20
|
-
tomorrow morning:
|
|
19
|
+
cc-hindsight mines your coding-agent session history (Claude Code, kiro-cli)
|
|
20
|
+
into two things you can use tomorrow morning:
|
|
21
21
|
|
|
22
22
|
1. **A oneshot prompt library.** For each real task you've done, the realistic
|
|
23
23
|
ideal *first* prompt: everything you knew and wanted at t=0 but didn't say,
|
|
@@ -38,9 +38,10 @@ project instead of stating them once, upfront, where every future session reads
|
|
|
38
38
|
them from the first message.
|
|
39
39
|
|
|
40
40
|
All the evidence of what you *should* have said is already on disk. Claude Code
|
|
41
|
-
saves every session as JSONL under `~/.claude/projects
|
|
42
|
-
|
|
43
|
-
back to
|
|
41
|
+
saves every session as JSONL under `~/.claude/projects/`; kiro-cli keeps its
|
|
42
|
+
own store under `~/.kiro/sessions/cli`. Plenty of tools read that data for
|
|
43
|
+
dashboards and transcripts. **Nobody closes the loop from history back to
|
|
44
|
+
better prompting.**
|
|
44
45
|
|
|
45
46
|
**Before** (what you actually typed at t=0):
|
|
46
47
|
|
|
@@ -93,6 +94,21 @@ unsupported). `scan` and `export` are fully deterministic: no LLM, no
|
|
|
93
94
|
network. `distill` uses the `claude` CLI you already have, and never without
|
|
94
95
|
asking.
|
|
95
96
|
|
|
97
|
+
### Multiple backends (Claude Code + kiro-cli)
|
|
98
|
+
|
|
99
|
+
cc-hindsight also mines [kiro-cli](https://docs.hub.amazon.dev/) session
|
|
100
|
+
history the same way. Every command takes `--source claude|kiro|auto` (default
|
|
101
|
+
`auto`: read whichever stores exist) and `--kiro-dir` / `KIRO_CONFIG_DIR`
|
|
102
|
+
(default `~/.kiro`, parallel to `--claude-dir`). A machine with both stores
|
|
103
|
+
merges them into one library; the manifest tags each session's `origin` and the
|
|
104
|
+
export summary breaks the count down (`9 claude + 3 kiro`).
|
|
105
|
+
|
|
106
|
+
`distill --runner claude|kiro|auto` chooses which CLI does the distilling —
|
|
107
|
+
orthogonal to `--source`, so you can mine kiro history and distill with claude
|
|
108
|
+
or vice-versa (`auto` prefers the CLI matching your source, else whichever is
|
|
109
|
+
installed). `preferences --target claude|kiro|agents` emits a `CLAUDE.md`
|
|
110
|
+
block, a `~/.kiro/steering/` file, or a portable `AGENTS.md` section.
|
|
111
|
+
|
|
96
112
|
## Privacy & trust
|
|
97
113
|
|
|
98
114
|
For a tool that reads your entire conversation history, auditability is the
|