Skip to content

Commit 2298eaa

Browse files
authored
Merge pull request #10 from Microck/feat/assistant-v2
feat(assistant): add thread management commands
2 parents 7059b80 + 76c356b commit 2298eaa

20 files changed

Lines changed: 1287 additions & 271 deletions

File tree

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ for the full command-to-token matrix, use the [`auth-matrix`](https://kagi.micr.
138138
| `kagi auth` | inspect, validate, and save credentials |
139139
| `kagi summarize` | use the paid public summarizer API or the subscriber summarizer with `--subscriber` |
140140
| `kagi news` | read Kagi News from public JSON endpoints |
141-
| `kagi assistant` | prompt Kagi Assistant with a subscriber session token |
141+
| `kagi assistant` | prompt Kagi Assistant, continue threads, and manage thread list/export/delete with a subscriber session token |
142142
| `kagi fastgpt` | query FastGPT through the paid API |
143143
| `kagi enrich` | query Kagi's web and news enrichment indexes |
144144
| `kagi smallweb` | fetch the Kagi Small Web feed |
@@ -200,6 +200,13 @@ continue research with assistant:
200200
kagi assistant "plan a focused research session in the terminal"
201201
```
202202

203+
list or export Assistant threads:
204+
205+
```bash
206+
kagi assistant thread list
207+
kagi assistant thread export <THREAD_ID>
208+
```
209+
203210
use the subscriber summarizer:
204211

205212
```bash

docs/api-coverage.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- **Subscriber web Summarizer** - implemented on the session-token web-product path via `kagi summarize --subscriber ...`
1313
- **Kagi News public product endpoints** - implemented via `kagi news ...`
1414
- **Subscriber web Assistant prompt flow** - implemented on Kagi Assistant's authenticated tagged stream via `kagi assistant ...`
15+
- **Subscriber web Assistant thread list/open/delete/export flows** - implemented on the authenticated Assistant thread endpoints via `kagi assistant thread ...`
1516

1617
## Source of truth
1718

@@ -25,6 +26,7 @@ According to Kagi's public API docs, the documented API families are:
2526
This CLI also implements non-public or product-only seams:
2627
- subscriber web Summarizer via Kagi session-token auth
2728
- subscriber web Assistant prompt flow via Kagi session-token auth
29+
- subscriber web Assistant thread management via Kagi session-token auth
2830
- Kagi News product endpoints
2931

3032
## TODO / deferred
@@ -41,5 +43,5 @@ This CLI also implements non-public or product-only seams:
4143
- The subscriber web Summarizer requires `KAGI_SESSION_TOKEN` and uses the authenticated `GET /mother/summary_labs?...` stream path instead of the public `/api/v0/summarize` endpoint.
4244
- Live verification on March 16, 2026 showed that `https://translate.kagi.com/api/auth` returns `null` even when the same `KAGI_SESSION_TOKEN` works on `kagi.com`.
4345
- Because the repo is marketed around Session Link auth, `translate` was removed from the CLI surface until that mismatch is solved.
44-
- Assistant requires `KAGI_SESSION_TOKEN` and currently targets `/assistant/prompt` with the same tagged stream protocol used by the web app.
46+
- Assistant requires `KAGI_SESSION_TOKEN` and currently targets `/assistant/prompt`, `/assistant/thread_list`, `/assistant/thread_open`, `/assistant/thread_delete`, and `/assistant/<thread_id>/download`.
4547
- News uses `https://news.kagi.com/api/...` JSON endpoints and does not require auth.

0 commit comments

Comments
 (0)