search-chats 0.0.0-stage → 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.
- package/LICENSE +21 -0
- package/README.md +57 -2
- package/bin/search-chats.js +2593 -0
- package/package.json +41 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Owen Halpert
|
|
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,58 @@
|
|
|
1
|
-
#
|
|
1
|
+
# search-chats
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Search every coding agent chat on your machine from one terminal picker, then resume it where it left off.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
search-chats # browse everything, newest first
|
|
7
|
+
search-chats retry backoff # start with a query
|
|
8
|
+
search-chats --agent devin # one agent only
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Works with Codex, Claude Code, Cursor CLI, and Devin CLI. Enter resumes the chat in its original project folder.
|
|
12
|
+
|
|
13
|
+
## Install
|
|
14
|
+
|
|
15
|
+
Requires Node.js 22.13 or newer.
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
npm install -g search-chats
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Transcript search
|
|
22
|
+
|
|
23
|
+
By default, search covers chat titles, prompts, projects, and branches. To also search inside transcripts, by keyword and by meaning, index them into [turbopuffer](https://turbopuffer.com):
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
export TURBOPUFFER_API_KEY=...
|
|
27
|
+
export TURBOPUFFER_REGION=gcp-us-central1 # optional
|
|
28
|
+
search-chats --index
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
After the first run, the picker updates the index each time it opens. Use `--local` or Ctrl-L to search without it.
|
|
32
|
+
|
|
33
|
+
## Keys
|
|
34
|
+
|
|
35
|
+
| Key | Action |
|
|
36
|
+
| --- | --- |
|
|
37
|
+
| Enter | Resume |
|
|
38
|
+
| Tab | Filter by agent |
|
|
39
|
+
| Ctrl-T | Read the full transcript |
|
|
40
|
+
| Ctrl-Y | Copy the resume command |
|
|
41
|
+
| F1 | Show all keys |
|
|
42
|
+
|
|
43
|
+
## Scripting
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
search-chats --list retry backoff # tab-separated: agent, updated, title, folder
|
|
47
|
+
search-chats --json --agent claude
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Development
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
git clone https://github.com/owenhalpert/search-chats
|
|
54
|
+
cd search-chats
|
|
55
|
+
npm ci && npm run build
|
|
56
|
+
npm run install:command # links ~/.local/bin/search-chats to this checkout
|
|
57
|
+
npm test && npm run test:terminal
|
|
58
|
+
```
|