cc-hindsight 1.0.1 → 1.1.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 CHANGED
@@ -5,19 +5,19 @@
5
5
  [![npm](https://img.shields.io/npm/v/cc-hindsight?color=cb3837&logo=npm)](https://www.npmjs.com/package/cc-hindsight)
6
6
  [![CI](https://github.com/adityaarunsinghal/cc-hindsight/actions/workflows/ci.yml/badge.svg)](https://github.com/adityaarunsinghal/cc-hindsight/actions/workflows/ci.yml)
7
7
  [![node](https://img.shields.io/node/v/cc-hindsight?logo=node.js&color=339933)](https://nodejs.org)
8
- [![license](https://img.shields.io/npm/l/cc-hindsight?color=blue)](LICENSE)
8
+ [![license](https://img.shields.io/github/license/adityaarunsinghal/cc-hindsight?color=blue)](LICENSE)
9
9
  [![local-first](https://img.shields.io/badge/data-local--only-brightgreen)](#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 Claude Code session history" width="800">
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 Claude Code session history into two things you can use
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/`. Plenty of tools read
42
- that data for dashboards and transcripts. **Nobody closes the loop from history
43
- back to better prompting.**
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