reconvo 0.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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +88 -0
  3. package/dist/cli.js +1818 -0
  4. package/package.json +38 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Austin Whitty
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 ADDED
@@ -0,0 +1,88 @@
1
+ # reconvo
2
+
3
+ Human- and agent-friendly CLI to search [Claude Code](https://docs.anthropic.com/en/docs/claude-code) and [OpenCode](https://github.com/anomalyco/opencode) sessions. Get more out of your context windows.
4
+
5
+ ```
6
+ ~/.claude/projects/*/*.jsonl ──┐
7
+ ├─→ index.duckdb ─→ search, browse, read
8
+ ~/.local/share/opencode/*.db ──┘
9
+ ```
10
+
11
+ ## Install
12
+
13
+ ```bash
14
+ npx reconvo # run without installing
15
+ npm install -g reconvo # or install globally
16
+ ```
17
+
18
+ From source:
19
+
20
+ ```bash
21
+ git clone https://github.com/awhitty/reconvo.git && cd reconvo
22
+ bun install && bun run build
23
+ bun link
24
+ ```
25
+
26
+ ## Usage
27
+
28
+ ```bash
29
+ reconvo # browse TUI (default)
30
+ reconvo search "auth middleware" # keyword search
31
+ reconvo sessions # list recent, scoped to current project
32
+ reconvo sessions --all # across all projects
33
+ reconvo files src/db/index.ts # sessions that touched a file
34
+ reconvo skim 510c7782 # head + tail preview
35
+ reconvo read 510c7782 # full transcript
36
+ reconvo stats # model usage, daily activity
37
+ ```
38
+
39
+ Results scope to the current git repo. `--all` for everything. `--json` for structured output.
40
+
41
+ ## Browse TUI
42
+
43
+ Three views, cycle with `tab`: **recent** | **tree** (by project) | **lineage** (fork nesting).
44
+
45
+ `j`/`k` navigate, `/` filter, `enter`/`c` copy session ID, `q` quit.
46
+
47
+ ## Agent use
48
+
49
+ Agents can call reconvo to recall past sessions:
50
+
51
+ ```bash
52
+ reconvo search "auth rewrite" --json
53
+ reconvo files src/middleware.ts --json
54
+ reconvo skim abc123 --json
55
+ ```
56
+
57
+ ## How it works
58
+
59
+ Persistent [DuckDB](https://duckdb.org) index, built incrementally (mtime-based). Auto-updates on first query. ~100ms searches.
60
+
61
+ Index: `~/.local/share/reconvo/index.duckdb` — delete to rebuild. Note: the index contains full conversation text from your sessions. Treat it like you would your shell history.
62
+
63
+ ## Flags
64
+
65
+ | Flag | Description |
66
+ |------|-------------|
67
+ | `--all` | Search all projects |
68
+ | `--source claude\|opencode` | Filter by tool |
69
+ | `--since <expr>` | Time filter: `2h`, `3d`, `1w`, `today`, `yesterday`, `2026-03-10` |
70
+ | `--role user\|assistant` | Filter messages by role (read/skim) |
71
+ | `--json` | Structured output |
72
+ | `--from N`, `--to M` | Slice transcript by position |
73
+ | `--around N --radius R` | Window around a message |
74
+ | `--force` | Full re-index |
75
+
76
+ ## Development
77
+
78
+ ```bash
79
+ bun test # tests against fixture data
80
+ bun run src/cli.ts # run
81
+ tsc --noEmit # typecheck
82
+ ```
83
+
84
+ Requires [Bun](https://bun.sh) >= 1.0 and at least one of Claude Code or OpenCode installed.
85
+
86
+ ## License
87
+
88
+ [MIT](LICENSE)