spooling 0.2.17__tar.gz → 0.3.0__tar.gz
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.
- {spooling-0.2.17/spooling.egg-info → spooling-0.3.0}/PKG-INFO +56 -89
- {spooling-0.2.17 → spooling-0.3.0}/README.md +55 -87
- {spooling-0.2.17 → spooling-0.3.0}/pyproject.toml +1 -2
- {spooling-0.2.17 → spooling-0.3.0}/spooling/cli.py +23 -52
- {spooling-0.2.17 → spooling-0.3.0}/spooling/cloud.py +25 -1
- {spooling-0.2.17 → spooling-0.3.0}/spooling/ingest.py +1 -1
- {spooling-0.2.17 → spooling-0.3.0}/spooling/server.py +0 -9
- {spooling-0.2.17 → spooling-0.3.0}/spooling/summarize.py +143 -2
- {spooling-0.2.17 → spooling-0.3.0/spooling.egg-info}/PKG-INFO +56 -89
- {spooling-0.2.17 → spooling-0.3.0}/spooling.egg-info/requires.txt +0 -1
- {spooling-0.2.17 → spooling-0.3.0}/tests/test_cloud_errors.py +23 -1
- {spooling-0.2.17 → spooling-0.3.0}/tests/test_docs.py +1 -1
- {spooling-0.2.17 → spooling-0.3.0}/tests/test_summarize.py +170 -0
- {spooling-0.2.17 → spooling-0.3.0}/LICENSE +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/setup.cfg +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/__init__.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/agent.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/classifiers.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/config.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/connectors/__init__.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/connectors/base.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/connectors/bigquery.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/connectors/clickhouse.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/connectors/factory.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/connectors/mongodb.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/connectors/mysql.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/connectors/postgresql.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/connectors/rest/__init__.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/connectors/rest/base.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/connectors/rest/shopify_connectors.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/connectors/snowflake.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/connectors/types.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/db.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/device_login.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/embeddings.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/evals.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/experiments.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/insights.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/mcp_server.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/optimize.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/parser.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/pricing.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/providers/__init__.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/providers/antigravity.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/providers/base.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/providers/claude_code.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/providers/codex.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/providers/copilot.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/providers/cortex_code.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/providers/cursor.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/providers/gemini.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/providers/github.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/providers/gitlab.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/providers/kiro.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/providers/opencode.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/providers/session_file.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/providers/windsurf.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/redact.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/remote_otel.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/schema.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/sdk.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/search.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/sessions.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/stats.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/subscription_pricing.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/tracing.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/tunnel.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/tunnel_auth.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling/watcher.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling.egg-info/SOURCES.txt +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling.egg-info/dependency_links.txt +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling.egg-info/entry_points.txt +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/spooling.egg-info/top_level.txt +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/tests/test_agent_spans.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/tests/test_claude_code_provider.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/tests/test_cloud_teams.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/tests/test_device_login.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/tests/test_insights.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/tests/test_mcp_auth_middleware.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/tests/test_session_ids.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/tests/test_storage_optimizations.py +0 -0
- {spooling-0.2.17 → spooling-0.3.0}/tests/test_tunnel_auth.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: spooling
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: Local session tracker and semantic search for AI coding assistants
|
|
5
5
|
Author: Parsed Analytics, Inc.
|
|
6
6
|
License: MIT
|
|
@@ -15,7 +15,6 @@ Requires-Dist: sentence-transformers>=3.0
|
|
|
15
15
|
Requires-Dist: numpy>=1.24
|
|
16
16
|
Requires-Dist: fastapi>=0.111
|
|
17
17
|
Requires-Dist: uvicorn[standard]>=0.30
|
|
18
|
-
Requires-Dist: jinja2>=3.1
|
|
19
18
|
Requires-Dist: watchdog>=4.0
|
|
20
19
|
Requires-Dist: rich>=13.0
|
|
21
20
|
Requires-Dist: httpx>=0.27
|
|
@@ -38,7 +37,7 @@ Dynamic: license-file
|
|
|
38
37
|
|
|
39
38
|
Local session tracker and semantic search for AI coding assistants.
|
|
40
39
|
|
|
41
|
-
Track your AI coding sessions across **Claude Code**, **OpenAI Codex CLI**, **GitHub Copilot**, **Cursor**, **Windsurf**, **Kiro**, **Google Antigravity**, and **opencode**, all in one place. Get usage stats, cost estimates, per-provider breakdowns, semantic search,
|
|
40
|
+
Track your AI coding sessions across **Claude Code**, **OpenAI Codex CLI**, **GitHub Copilot**, **Cursor**, **Windsurf**, **Kiro**, **Google Antigravity**, and **opencode**, all in one place. Get usage stats, cost estimates, per-provider breakdowns, semantic search, to explore your history.
|
|
42
41
|
|
|
43
42
|
**Website:** [spooling.ai](https://spooling.ai)
|
|
44
43
|
|
|
@@ -48,7 +47,7 @@ Track your AI coding sessions across **Claude Code**, **OpenAI Codex CLI**, **Gi
|
|
|
48
47
|
|
|
49
48
|
- **Python 3.11+**
|
|
50
49
|
- **pipx** or **uv** (optional, alternative install methods)
|
|
51
|
-
- **Ollama** (optional, for free local
|
|
50
|
+
- **Ollama** (optional, for free local LLM features) or an **Anthropic API key**
|
|
52
51
|
|
|
53
52
|
No Docker, no PostgreSQL, no Node.js required.
|
|
54
53
|
|
|
@@ -119,7 +118,7 @@ curl -s http://127.0.0.1:3004/mcp \
|
|
|
119
118
|
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | jq
|
|
120
119
|
```
|
|
121
120
|
|
|
122
|
-
Should return the tools listed under [Tools exposed](#tools-exposed). If you get "connection refused", `spooling mcp`
|
|
121
|
+
Should return the tools listed under [Tools exposed](#tools-exposed). If you get "connection refused", `spooling mcp` is not running, or something else is using port 3004. Find it with `lsof -i :3004`.
|
|
123
122
|
|
|
124
123
|
---
|
|
125
124
|
|
|
@@ -240,6 +239,8 @@ Some providers already supply a summary (Claude Code writes `summary` records).
|
|
|
240
239
|
| `openai` (default) | Any OpenAI-compatible endpoint: local [Ollama](https://ollama.com), OpenAI, OpenRouter, vLLM, LiteLLM | none for local; `SPOOLING_SUMMARY_API_KEY` for hosted |
|
|
241
240
|
| `anthropic` | The Anthropic API | `ANTHROPIC_API_KEY` |
|
|
242
241
|
| `bedrock` | AWS Bedrock (Converse API). Uses `boto3`, which Spooling already installs | `AWS_BEARER_TOKEN_BEDROCK` (Bedrock API key; needs a recent `boto3`) or any normal AWS credentials, plus `AWS_REGION` |
|
|
242
|
+
| `claude-code` | Reuse your Claude Code login (runs `claude -p`), here or on another machine with `--ssh` | whatever Claude Code is signed in with |
|
|
243
|
+
| `opencode` | Reuse opencode's providers (runs `opencode run`), here or over `--ssh` | whatever opencode is configured with |
|
|
243
244
|
|
|
244
245
|
The default is a local Ollama daemon, so nothing leaves your machine. Any other backend sends redacted transcripts to a third party, so Spooling asks for confirmation first (skip with `--yes`).
|
|
245
246
|
|
|
@@ -252,17 +253,47 @@ spooling summarize --base-url https://api.openai.com/v1 --model gpt-4o-mini
|
|
|
252
253
|
spooling summarize --backend anthropic # defaults to claude-haiku-4-5
|
|
253
254
|
spooling summarize --backend bedrock --region us-east-2 \
|
|
254
255
|
--model us.anthropic.claude-haiku-4-5-20251001-v1:0
|
|
256
|
+
|
|
257
|
+
spooling summarize --backend claude-code # uses your Claude Code login
|
|
258
|
+
spooling summarize --backend claude-code --ssh my-other-mac
|
|
259
|
+
spooling summarize --backend opencode --model amazon-bedrock/us.anthropic.claude-haiku-4-5-20251001-v1:0
|
|
255
260
|
```
|
|
256
261
|
|
|
257
262
|
- `-p, --project`, `--provider`, `-d, --days`, `-n, --limit` - choose which sessions
|
|
258
263
|
- `--min-messages` - skip very short sessions (default 4)
|
|
259
|
-
- `--backend` - `openai`, `anthropic` or `
|
|
264
|
+
- `--backend` - `openai`, `anthropic`, `bedrock`, `claude-code` or `opencode` (or set `SPOOLING_SUMMARY_BACKEND`)
|
|
260
265
|
- `--model` - model name or id (or set `SPOOLING_SUMMARY_MODEL`). Defaults to `qwen2.5:7b` for `openai` and `claude-haiku-4-5` for `anthropic`; `bedrock` requires one, because Bedrock ids differ by region and account (use an inference profile id such as `us.anthropic.claude-haiku-4-5-20251001-v1:0`)
|
|
261
266
|
- `--base-url` - endpoint for the `openai` backend (or `SPOOLING_SUMMARY_BASE_URL`; default `http://localhost:11434/v1`)
|
|
262
267
|
- `--region` - AWS region for `bedrock` (default `AWS_REGION`)
|
|
268
|
+
- `--ssh HOST` - run the `claude-code` or `opencode` backend on another machine over SSH (for example a Mac where Claude Code is signed in). Needs key-based SSH login; the redacted transcript is piped over the connection
|
|
269
|
+
- `--cli-cmd` - the command to run if it isn't on `PATH`, such as `~/.local/bin/claude`. With `--ssh`, this is the path on the remote machine
|
|
263
270
|
- `--force` - regenerate even if a summary exists
|
|
264
271
|
- `-y, --yes` - don't ask before sending text to a non-local endpoint
|
|
265
272
|
|
|
273
|
+
#### Summarize one session
|
|
274
|
+
|
|
275
|
+
Name the session by its id (or any unique prefix) and pick the backend:
|
|
276
|
+
|
|
277
|
+
```bash
|
|
278
|
+
spooling session list --title login # find the id first
|
|
279
|
+
spooling summarize ses_e6310bd1 --backend claude-code
|
|
280
|
+
spooling summarize ses_e6310bd1 --backend claude-code --ssh my-other-mac
|
|
281
|
+
spooling session show ses_e6310bd1 # read it back
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
- If the session already has a summary, nothing runs. Add `--force` to replace it, including a summary the provider wrote.
|
|
285
|
+
- Naming a session skips the `--min-messages` filter, so short sessions work too. You can name several: `spooling summarize ID1 ID2 --backend claude-code`.
|
|
286
|
+
- `--dry-run` shows what would run without calling a model, and `-y` skips the confirmation prompt.
|
|
287
|
+
- To avoid typing the backend each time, `export SPOOLING_SUMMARY_BACKEND=claude-code`. There is no environment variable for `--ssh`.
|
|
288
|
+
|
|
289
|
+
#### Using Claude Code or opencode
|
|
290
|
+
|
|
291
|
+
The `claude-code` and `opencode` backends run the agent's headless mode and send the prompt on stdin, so there is no API key to set up: they use whatever login the agent already has. Both send the redacted transcript to that agent's provider, so Spooling asks for confirmation first.
|
|
292
|
+
|
|
293
|
+
- Leave `--model` off to use the agent's default model. For opencode, the model is `provider/model`, and your configured default may be an old model id, so pass one explicitly if you see an error.
|
|
294
|
+
- With `--ssh`, the agent runs from `/tmp` on the remote machine, so it doesn't pick up a project's rules. SSH runs non-interactively and often skips your shell profile, so if you get "not found", use `--cli-cmd` with the full path.
|
|
295
|
+
- `claude -p` records each run as a session in that machine's Claude Code history. They are tagged with a `spooling-summary:` prefix, and `spooling summarize` skips them. The opencode backend deletes its run's session automatically.
|
|
296
|
+
|
|
266
297
|
The run stops early on errors that would repeat for every session (bad credentials, an unreachable server, an unknown model). A summary Spooling generated is refreshed on the next run once the session has grown; `session show` tells you when that is the case.
|
|
267
298
|
|
|
268
299
|
### `spooling optimize`
|
|
@@ -292,20 +323,11 @@ spooling serve --port 8080 # Custom port
|
|
|
292
323
|
spooling serve --host 0.0.0.0 # Bind to all interfaces
|
|
293
324
|
```
|
|
294
325
|
|
|
295
|
-
### `spooling ui`
|
|
296
|
-
|
|
297
|
-
Start the API server, the MCP HTTP server, and the Next.js UI together. Requires the `ui/` directory from the [source repo](https://github.com/sashimiboi/spooling) to be present. Set `SPOOLING_UI_DIR` to point at it if running from a non-standard location.
|
|
298
|
-
|
|
299
|
-
```bash
|
|
300
|
-
spooling ui # API :3002 · MCP :3004 · GUI :3003
|
|
301
|
-
```
|
|
302
|
-
|
|
303
326
|
### `spooling mcp`
|
|
304
327
|
|
|
305
328
|
Start the Spooling MCP server on its own. Defaults to streamable-HTTP at
|
|
306
329
|
`http://127.0.0.1:3004/mcp`, which any MCP-compatible agent can connect to
|
|
307
|
-
by URL.
|
|
308
|
-
need to run it directly when you want the MCP server without the GUI.
|
|
330
|
+
by URL.
|
|
309
331
|
|
|
310
332
|
```bash
|
|
311
333
|
spooling mcp # streamable-HTTP at http://127.0.0.1:3004/mcp (default)
|
|
@@ -455,6 +477,21 @@ spooling push --dry-run # show what would be pushed
|
|
|
455
477
|
|
|
456
478
|
`push` ingests new provider sessions into the local database before uploading, so you don't need to run `spooling sync` first. The server upserts by session id, so re-running is safe.
|
|
457
479
|
|
|
480
|
+
#### When a Free workspace is full
|
|
481
|
+
|
|
482
|
+
The Free plan caps each workspace (200 sessions, 25,000 messages, 5,000 traces). When a push would go past a cap the server answers
|
|
483
|
+
`402`, and `spooling push` stops with a clear message and a non-zero exit code:
|
|
484
|
+
|
|
485
|
+
```
|
|
486
|
+
Free plan limit reached: this workspace can't take more on the Free plan.
|
|
487
|
+
The Free plan allows 200 sessions per workspace. Delete old ones with `spooling cloud delete`, or upgrade at https://app.spooling.ai/settings?tab=billing
|
|
488
|
+
Nothing already pushed was removed; the rest of this push was not sent.
|
|
489
|
+
```
|
|
490
|
+
|
|
491
|
+
Nothing you have already pushed is removed, and sessions already in the workspace can still be updated by a batch that adds no new
|
|
492
|
+
ones. Free space with `spooling cloud delete`, or upgrade from the link. `spooling cloud watch` shows the message once and then a
|
|
493
|
+
short "still at the Free plan limit" line each cycle, and carries on automatically once there is room.
|
|
494
|
+
|
|
458
495
|
### Push only some sessions, or to a specific team
|
|
459
496
|
|
|
460
497
|
**Which team gets the sessions** is decided by the API key you are logged in with. Each key belongs to one workspace (personal or a team), and `spooling push` sends to that workspace. Mint a key for the team in the app, then log in with it:
|
|
@@ -537,7 +574,7 @@ curl -s "https://api.spooling.ai/v1/search?q=migration&limit=10" \
|
|
|
537
574
|
-H "Authorization: Bearer $SPOOLING_KEY"
|
|
538
575
|
```
|
|
539
576
|
|
|
540
|
-
**Important**: `app.spooling.ai` is the
|
|
577
|
+
**Important**: `app.spooling.ai` is the hosted web app. For API access, use `api.spooling.ai` directly.
|
|
541
578
|
|
|
542
579
|
### Status / logout
|
|
543
580
|
|
|
@@ -581,8 +618,7 @@ launchctl load ~/Library/LaunchAgents/ai.spooling.cloud-watch.plist
|
|
|
581
618
|
|
|
582
619
|
Spooling exposes an MCP server so any AI agent can query your session history
|
|
583
620
|
as a context source. The server runs over **streamable-HTTP** at
|
|
584
|
-
`http://127.0.0.1:3004/mcp` and is started
|
|
585
|
-
ui`.
|
|
621
|
+
`http://127.0.0.1:3004/mcp` and is started with `spooling mcp`.
|
|
586
622
|
|
|
587
623
|
Drop this into your MCP client config (`~/.mcp.json`, Cursor,
|
|
588
624
|
Codex, or any other streamable-HTTP capable agent):
|
|
@@ -599,9 +635,6 @@ Codex, or any other streamable-HTTP capable agent):
|
|
|
599
635
|
|
|
600
636
|
Or register it with an MCP client's config file.
|
|
601
637
|
|
|
602
|
-
The **Settings** page in the GUI shows the endpoint URL, a copy button, and
|
|
603
|
-
the full config snippet so you don't have to remember it.
|
|
604
|
-
|
|
605
638
|
### Tools exposed
|
|
606
639
|
|
|
607
640
|
| Tool | Purpose |
|
|
@@ -634,63 +667,6 @@ it with the command-based form:
|
|
|
634
667
|
|
|
635
668
|
---
|
|
636
669
|
|
|
637
|
-
## GUI
|
|
638
|
-
|
|
639
|
-
The Spooling GUI runs on **http://localhost:3003** and includes:
|
|
640
|
-
|
|
641
|
-
| Page | Description |
|
|
642
|
-
|------|-------------|
|
|
643
|
-
| **Dashboard** | Overview stats, per-provider breakdown, daily activity chart, projects, top tools, recent sessions |
|
|
644
|
-
| **Sessions** | Browse all sessions with provider labels, filtering, click into any session for full conversation view |
|
|
645
|
-
| **Search** | Semantic search across all session history with similarity scores |
|
|
646
|
-
| **Analytics** | Charts for daily usage, cost trends, token usage, tool distribution, filterable by provider (AG Charts) |
|
|
647
|
-
| **Chat** | AI assistant that can answer questions about your session data (RAG-powered) |
|
|
648
|
-
| **Connections** | Connect/disconnect AI coding tools (Codex, Copilot, Cursor, Windsurf) |
|
|
649
|
-
| **Settings** | Configure the AI chat provider (Ollama or Anthropic) |
|
|
650
|
-
|
|
651
|
-
### Running the GUI
|
|
652
|
-
|
|
653
|
-
```bash
|
|
654
|
-
# Terminal 1: API server
|
|
655
|
-
source .venv/bin/activate
|
|
656
|
-
spooling serve
|
|
657
|
-
|
|
658
|
-
# Terminal 2: Next.js dev server
|
|
659
|
-
cd ui
|
|
660
|
-
npm run dev
|
|
661
|
-
```
|
|
662
|
-
|
|
663
|
-
Or use `spooling ui` to start both at once.
|
|
664
|
-
|
|
665
|
-
---
|
|
666
|
-
|
|
667
|
-
## Chat Agent Setup
|
|
668
|
-
|
|
669
|
-
The chat page lets you ask questions about your coding sessions in natural language. It uses RAG — retrieves relevant context from the local database before answering.
|
|
670
|
-
|
|
671
|
-
### Option A: Ollama (free, local)
|
|
672
|
-
|
|
673
|
-
```bash
|
|
674
|
-
# Install Ollama
|
|
675
|
-
brew install ollama
|
|
676
|
-
|
|
677
|
-
# Start the server
|
|
678
|
-
ollama serve
|
|
679
|
-
|
|
680
|
-
# Pull a model
|
|
681
|
-
ollama pull gemma3:4b
|
|
682
|
-
```
|
|
683
|
-
|
|
684
|
-
Go to **Settings** in the GUI and select Ollama. The model will auto-detect.
|
|
685
|
-
|
|
686
|
-
### Option B: Anthropic API (bring your own key)
|
|
687
|
-
|
|
688
|
-
Go to **Settings** in the GUI, select Anthropic, and paste your API key from [console.anthropic.com](https://console.anthropic.com).
|
|
689
|
-
|
|
690
|
-
Available models: Sonnet, Haiku, Opus.
|
|
691
|
-
|
|
692
|
-
---
|
|
693
|
-
|
|
694
670
|
## Architecture
|
|
695
671
|
|
|
696
672
|
```
|
|
@@ -713,12 +689,6 @@ spooling/
|
|
|
713
689
|
│ ├── agent.py # Chat agent (Ollama + Anthropic)
|
|
714
690
|
│ ├── tunnel.py # Cloudflare quick tunnel support
|
|
715
691
|
│ └── server.py # FastAPI API server
|
|
716
|
-
└── ui/ # Next.js frontend (source repo only)
|
|
717
|
-
├── next.config.js # API proxy to :3002
|
|
718
|
-
└── src/
|
|
719
|
-
├── components/ # shadcn/ui components
|
|
720
|
-
├── lib/ # API helpers
|
|
721
|
-
└── app/(app)/ # Pages (dashboard, sessions, search, etc.)
|
|
722
692
|
```
|
|
723
693
|
|
|
724
694
|
### Stack
|
|
@@ -729,7 +699,6 @@ spooling/
|
|
|
729
699
|
| Embeddings | sentence-transformers / all-MiniLM-L6-v2 (local) |
|
|
730
700
|
| Search | numpy cosine similarity |
|
|
731
701
|
| Backend | Python, FastAPI, Click |
|
|
732
|
-
| Frontend | Next.js 14, shadcn/ui, Tailwind CSS, AG Charts |
|
|
733
702
|
| Chat AI | Ollama (local) or Anthropic API |
|
|
734
703
|
|
|
735
704
|
### Ports
|
|
@@ -737,7 +706,6 @@ spooling/
|
|
|
737
706
|
| Service | Port |
|
|
738
707
|
|---------|------|
|
|
739
708
|
| API Server | 3002 |
|
|
740
|
-
| GUI | 3003 |
|
|
741
709
|
| MCP Server (streamable-HTTP) | 3004 |
|
|
742
710
|
|
|
743
711
|
---
|
|
@@ -751,8 +719,7 @@ All optional — defaults work out of the box.
|
|
|
751
719
|
| `SPOOLING_DB` | `~/.local/share/spooling/spooling.db` | Path to the SQLite database file (`%APPDATA%\spooling\spooling.db` on Windows) |
|
|
752
720
|
| `SPOOLING_EMBEDDING_MODEL` | `all-MiniLM-L6-v2` | Sentence transformer model |
|
|
753
721
|
| `SPOOLING_UI_HOST` | `127.0.0.1` | API server host |
|
|
754
|
-
| `
|
|
755
|
-
| `ANTHROPIC_API_KEY` | - | Anthropic API key (alternative to setting in the GUI) |
|
|
722
|
+
| `ANTHROPIC_API_KEY` | - | Anthropic API key (required for Anthropic-backed features) |
|
|
756
723
|
|
|
757
724
|
---
|
|
758
725
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Local session tracker and semantic search for AI coding assistants.
|
|
4
4
|
|
|
5
|
-
Track your AI coding sessions across **Claude Code**, **OpenAI Codex CLI**, **GitHub Copilot**, **Cursor**, **Windsurf**, **Kiro**, **Google Antigravity**, and **opencode**, all in one place. Get usage stats, cost estimates, per-provider breakdowns, semantic search,
|
|
5
|
+
Track your AI coding sessions across **Claude Code**, **OpenAI Codex CLI**, **GitHub Copilot**, **Cursor**, **Windsurf**, **Kiro**, **Google Antigravity**, and **opencode**, all in one place. Get usage stats, cost estimates, per-provider breakdowns, semantic search, to explore your history.
|
|
6
6
|
|
|
7
7
|
**Website:** [spooling.ai](https://spooling.ai)
|
|
8
8
|
|
|
@@ -12,7 +12,7 @@ Track your AI coding sessions across **Claude Code**, **OpenAI Codex CLI**, **Gi
|
|
|
12
12
|
|
|
13
13
|
- **Python 3.11+**
|
|
14
14
|
- **pipx** or **uv** (optional, alternative install methods)
|
|
15
|
-
- **Ollama** (optional, for free local
|
|
15
|
+
- **Ollama** (optional, for free local LLM features) or an **Anthropic API key**
|
|
16
16
|
|
|
17
17
|
No Docker, no PostgreSQL, no Node.js required.
|
|
18
18
|
|
|
@@ -83,7 +83,7 @@ curl -s http://127.0.0.1:3004/mcp \
|
|
|
83
83
|
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | jq
|
|
84
84
|
```
|
|
85
85
|
|
|
86
|
-
Should return the tools listed under [Tools exposed](#tools-exposed). If you get "connection refused", `spooling mcp`
|
|
86
|
+
Should return the tools listed under [Tools exposed](#tools-exposed). If you get "connection refused", `spooling mcp` is not running, or something else is using port 3004. Find it with `lsof -i :3004`.
|
|
87
87
|
|
|
88
88
|
---
|
|
89
89
|
|
|
@@ -204,6 +204,8 @@ Some providers already supply a summary (Claude Code writes `summary` records).
|
|
|
204
204
|
| `openai` (default) | Any OpenAI-compatible endpoint: local [Ollama](https://ollama.com), OpenAI, OpenRouter, vLLM, LiteLLM | none for local; `SPOOLING_SUMMARY_API_KEY` for hosted |
|
|
205
205
|
| `anthropic` | The Anthropic API | `ANTHROPIC_API_KEY` |
|
|
206
206
|
| `bedrock` | AWS Bedrock (Converse API). Uses `boto3`, which Spooling already installs | `AWS_BEARER_TOKEN_BEDROCK` (Bedrock API key; needs a recent `boto3`) or any normal AWS credentials, plus `AWS_REGION` |
|
|
207
|
+
| `claude-code` | Reuse your Claude Code login (runs `claude -p`), here or on another machine with `--ssh` | whatever Claude Code is signed in with |
|
|
208
|
+
| `opencode` | Reuse opencode's providers (runs `opencode run`), here or over `--ssh` | whatever opencode is configured with |
|
|
207
209
|
|
|
208
210
|
The default is a local Ollama daemon, so nothing leaves your machine. Any other backend sends redacted transcripts to a third party, so Spooling asks for confirmation first (skip with `--yes`).
|
|
209
211
|
|
|
@@ -216,17 +218,47 @@ spooling summarize --base-url https://api.openai.com/v1 --model gpt-4o-mini
|
|
|
216
218
|
spooling summarize --backend anthropic # defaults to claude-haiku-4-5
|
|
217
219
|
spooling summarize --backend bedrock --region us-east-2 \
|
|
218
220
|
--model us.anthropic.claude-haiku-4-5-20251001-v1:0
|
|
221
|
+
|
|
222
|
+
spooling summarize --backend claude-code # uses your Claude Code login
|
|
223
|
+
spooling summarize --backend claude-code --ssh my-other-mac
|
|
224
|
+
spooling summarize --backend opencode --model amazon-bedrock/us.anthropic.claude-haiku-4-5-20251001-v1:0
|
|
219
225
|
```
|
|
220
226
|
|
|
221
227
|
- `-p, --project`, `--provider`, `-d, --days`, `-n, --limit` - choose which sessions
|
|
222
228
|
- `--min-messages` - skip very short sessions (default 4)
|
|
223
|
-
- `--backend` - `openai`, `anthropic` or `
|
|
229
|
+
- `--backend` - `openai`, `anthropic`, `bedrock`, `claude-code` or `opencode` (or set `SPOOLING_SUMMARY_BACKEND`)
|
|
224
230
|
- `--model` - model name or id (or set `SPOOLING_SUMMARY_MODEL`). Defaults to `qwen2.5:7b` for `openai` and `claude-haiku-4-5` for `anthropic`; `bedrock` requires one, because Bedrock ids differ by region and account (use an inference profile id such as `us.anthropic.claude-haiku-4-5-20251001-v1:0`)
|
|
225
231
|
- `--base-url` - endpoint for the `openai` backend (or `SPOOLING_SUMMARY_BASE_URL`; default `http://localhost:11434/v1`)
|
|
226
232
|
- `--region` - AWS region for `bedrock` (default `AWS_REGION`)
|
|
233
|
+
- `--ssh HOST` - run the `claude-code` or `opencode` backend on another machine over SSH (for example a Mac where Claude Code is signed in). Needs key-based SSH login; the redacted transcript is piped over the connection
|
|
234
|
+
- `--cli-cmd` - the command to run if it isn't on `PATH`, such as `~/.local/bin/claude`. With `--ssh`, this is the path on the remote machine
|
|
227
235
|
- `--force` - regenerate even if a summary exists
|
|
228
236
|
- `-y, --yes` - don't ask before sending text to a non-local endpoint
|
|
229
237
|
|
|
238
|
+
#### Summarize one session
|
|
239
|
+
|
|
240
|
+
Name the session by its id (or any unique prefix) and pick the backend:
|
|
241
|
+
|
|
242
|
+
```bash
|
|
243
|
+
spooling session list --title login # find the id first
|
|
244
|
+
spooling summarize ses_e6310bd1 --backend claude-code
|
|
245
|
+
spooling summarize ses_e6310bd1 --backend claude-code --ssh my-other-mac
|
|
246
|
+
spooling session show ses_e6310bd1 # read it back
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
- If the session already has a summary, nothing runs. Add `--force` to replace it, including a summary the provider wrote.
|
|
250
|
+
- Naming a session skips the `--min-messages` filter, so short sessions work too. You can name several: `spooling summarize ID1 ID2 --backend claude-code`.
|
|
251
|
+
- `--dry-run` shows what would run without calling a model, and `-y` skips the confirmation prompt.
|
|
252
|
+
- To avoid typing the backend each time, `export SPOOLING_SUMMARY_BACKEND=claude-code`. There is no environment variable for `--ssh`.
|
|
253
|
+
|
|
254
|
+
#### Using Claude Code or opencode
|
|
255
|
+
|
|
256
|
+
The `claude-code` and `opencode` backends run the agent's headless mode and send the prompt on stdin, so there is no API key to set up: they use whatever login the agent already has. Both send the redacted transcript to that agent's provider, so Spooling asks for confirmation first.
|
|
257
|
+
|
|
258
|
+
- Leave `--model` off to use the agent's default model. For opencode, the model is `provider/model`, and your configured default may be an old model id, so pass one explicitly if you see an error.
|
|
259
|
+
- With `--ssh`, the agent runs from `/tmp` on the remote machine, so it doesn't pick up a project's rules. SSH runs non-interactively and often skips your shell profile, so if you get "not found", use `--cli-cmd` with the full path.
|
|
260
|
+
- `claude -p` records each run as a session in that machine's Claude Code history. They are tagged with a `spooling-summary:` prefix, and `spooling summarize` skips them. The opencode backend deletes its run's session automatically.
|
|
261
|
+
|
|
230
262
|
The run stops early on errors that would repeat for every session (bad credentials, an unreachable server, an unknown model). A summary Spooling generated is refreshed on the next run once the session has grown; `session show` tells you when that is the case.
|
|
231
263
|
|
|
232
264
|
### `spooling optimize`
|
|
@@ -256,20 +288,11 @@ spooling serve --port 8080 # Custom port
|
|
|
256
288
|
spooling serve --host 0.0.0.0 # Bind to all interfaces
|
|
257
289
|
```
|
|
258
290
|
|
|
259
|
-
### `spooling ui`
|
|
260
|
-
|
|
261
|
-
Start the API server, the MCP HTTP server, and the Next.js UI together. Requires the `ui/` directory from the [source repo](https://github.com/sashimiboi/spooling) to be present. Set `SPOOLING_UI_DIR` to point at it if running from a non-standard location.
|
|
262
|
-
|
|
263
|
-
```bash
|
|
264
|
-
spooling ui # API :3002 · MCP :3004 · GUI :3003
|
|
265
|
-
```
|
|
266
|
-
|
|
267
291
|
### `spooling mcp`
|
|
268
292
|
|
|
269
293
|
Start the Spooling MCP server on its own. Defaults to streamable-HTTP at
|
|
270
294
|
`http://127.0.0.1:3004/mcp`, which any MCP-compatible agent can connect to
|
|
271
|
-
by URL.
|
|
272
|
-
need to run it directly when you want the MCP server without the GUI.
|
|
295
|
+
by URL.
|
|
273
296
|
|
|
274
297
|
```bash
|
|
275
298
|
spooling mcp # streamable-HTTP at http://127.0.0.1:3004/mcp (default)
|
|
@@ -419,6 +442,21 @@ spooling push --dry-run # show what would be pushed
|
|
|
419
442
|
|
|
420
443
|
`push` ingests new provider sessions into the local database before uploading, so you don't need to run `spooling sync` first. The server upserts by session id, so re-running is safe.
|
|
421
444
|
|
|
445
|
+
#### When a Free workspace is full
|
|
446
|
+
|
|
447
|
+
The Free plan caps each workspace (200 sessions, 25,000 messages, 5,000 traces). When a push would go past a cap the server answers
|
|
448
|
+
`402`, and `spooling push` stops with a clear message and a non-zero exit code:
|
|
449
|
+
|
|
450
|
+
```
|
|
451
|
+
Free plan limit reached: this workspace can't take more on the Free plan.
|
|
452
|
+
The Free plan allows 200 sessions per workspace. Delete old ones with `spooling cloud delete`, or upgrade at https://app.spooling.ai/settings?tab=billing
|
|
453
|
+
Nothing already pushed was removed; the rest of this push was not sent.
|
|
454
|
+
```
|
|
455
|
+
|
|
456
|
+
Nothing you have already pushed is removed, and sessions already in the workspace can still be updated by a batch that adds no new
|
|
457
|
+
ones. Free space with `spooling cloud delete`, or upgrade from the link. `spooling cloud watch` shows the message once and then a
|
|
458
|
+
short "still at the Free plan limit" line each cycle, and carries on automatically once there is room.
|
|
459
|
+
|
|
422
460
|
### Push only some sessions, or to a specific team
|
|
423
461
|
|
|
424
462
|
**Which team gets the sessions** is decided by the API key you are logged in with. Each key belongs to one workspace (personal or a team), and `spooling push` sends to that workspace. Mint a key for the team in the app, then log in with it:
|
|
@@ -501,7 +539,7 @@ curl -s "https://api.spooling.ai/v1/search?q=migration&limit=10" \
|
|
|
501
539
|
-H "Authorization: Bearer $SPOOLING_KEY"
|
|
502
540
|
```
|
|
503
541
|
|
|
504
|
-
**Important**: `app.spooling.ai` is the
|
|
542
|
+
**Important**: `app.spooling.ai` is the hosted web app. For API access, use `api.spooling.ai` directly.
|
|
505
543
|
|
|
506
544
|
### Status / logout
|
|
507
545
|
|
|
@@ -545,8 +583,7 @@ launchctl load ~/Library/LaunchAgents/ai.spooling.cloud-watch.plist
|
|
|
545
583
|
|
|
546
584
|
Spooling exposes an MCP server so any AI agent can query your session history
|
|
547
585
|
as a context source. The server runs over **streamable-HTTP** at
|
|
548
|
-
`http://127.0.0.1:3004/mcp` and is started
|
|
549
|
-
ui`.
|
|
586
|
+
`http://127.0.0.1:3004/mcp` and is started with `spooling mcp`.
|
|
550
587
|
|
|
551
588
|
Drop this into your MCP client config (`~/.mcp.json`, Cursor,
|
|
552
589
|
Codex, or any other streamable-HTTP capable agent):
|
|
@@ -563,9 +600,6 @@ Codex, or any other streamable-HTTP capable agent):
|
|
|
563
600
|
|
|
564
601
|
Or register it with an MCP client's config file.
|
|
565
602
|
|
|
566
|
-
The **Settings** page in the GUI shows the endpoint URL, a copy button, and
|
|
567
|
-
the full config snippet so you don't have to remember it.
|
|
568
|
-
|
|
569
603
|
### Tools exposed
|
|
570
604
|
|
|
571
605
|
| Tool | Purpose |
|
|
@@ -598,63 +632,6 @@ it with the command-based form:
|
|
|
598
632
|
|
|
599
633
|
---
|
|
600
634
|
|
|
601
|
-
## GUI
|
|
602
|
-
|
|
603
|
-
The Spooling GUI runs on **http://localhost:3003** and includes:
|
|
604
|
-
|
|
605
|
-
| Page | Description |
|
|
606
|
-
|------|-------------|
|
|
607
|
-
| **Dashboard** | Overview stats, per-provider breakdown, daily activity chart, projects, top tools, recent sessions |
|
|
608
|
-
| **Sessions** | Browse all sessions with provider labels, filtering, click into any session for full conversation view |
|
|
609
|
-
| **Search** | Semantic search across all session history with similarity scores |
|
|
610
|
-
| **Analytics** | Charts for daily usage, cost trends, token usage, tool distribution, filterable by provider (AG Charts) |
|
|
611
|
-
| **Chat** | AI assistant that can answer questions about your session data (RAG-powered) |
|
|
612
|
-
| **Connections** | Connect/disconnect AI coding tools (Codex, Copilot, Cursor, Windsurf) |
|
|
613
|
-
| **Settings** | Configure the AI chat provider (Ollama or Anthropic) |
|
|
614
|
-
|
|
615
|
-
### Running the GUI
|
|
616
|
-
|
|
617
|
-
```bash
|
|
618
|
-
# Terminal 1: API server
|
|
619
|
-
source .venv/bin/activate
|
|
620
|
-
spooling serve
|
|
621
|
-
|
|
622
|
-
# Terminal 2: Next.js dev server
|
|
623
|
-
cd ui
|
|
624
|
-
npm run dev
|
|
625
|
-
```
|
|
626
|
-
|
|
627
|
-
Or use `spooling ui` to start both at once.
|
|
628
|
-
|
|
629
|
-
---
|
|
630
|
-
|
|
631
|
-
## Chat Agent Setup
|
|
632
|
-
|
|
633
|
-
The chat page lets you ask questions about your coding sessions in natural language. It uses RAG — retrieves relevant context from the local database before answering.
|
|
634
|
-
|
|
635
|
-
### Option A: Ollama (free, local)
|
|
636
|
-
|
|
637
|
-
```bash
|
|
638
|
-
# Install Ollama
|
|
639
|
-
brew install ollama
|
|
640
|
-
|
|
641
|
-
# Start the server
|
|
642
|
-
ollama serve
|
|
643
|
-
|
|
644
|
-
# Pull a model
|
|
645
|
-
ollama pull gemma3:4b
|
|
646
|
-
```
|
|
647
|
-
|
|
648
|
-
Go to **Settings** in the GUI and select Ollama. The model will auto-detect.
|
|
649
|
-
|
|
650
|
-
### Option B: Anthropic API (bring your own key)
|
|
651
|
-
|
|
652
|
-
Go to **Settings** in the GUI, select Anthropic, and paste your API key from [console.anthropic.com](https://console.anthropic.com).
|
|
653
|
-
|
|
654
|
-
Available models: Sonnet, Haiku, Opus.
|
|
655
|
-
|
|
656
|
-
---
|
|
657
|
-
|
|
658
635
|
## Architecture
|
|
659
636
|
|
|
660
637
|
```
|
|
@@ -677,12 +654,6 @@ spooling/
|
|
|
677
654
|
│ ├── agent.py # Chat agent (Ollama + Anthropic)
|
|
678
655
|
│ ├── tunnel.py # Cloudflare quick tunnel support
|
|
679
656
|
│ └── server.py # FastAPI API server
|
|
680
|
-
└── ui/ # Next.js frontend (source repo only)
|
|
681
|
-
├── next.config.js # API proxy to :3002
|
|
682
|
-
└── src/
|
|
683
|
-
├── components/ # shadcn/ui components
|
|
684
|
-
├── lib/ # API helpers
|
|
685
|
-
└── app/(app)/ # Pages (dashboard, sessions, search, etc.)
|
|
686
657
|
```
|
|
687
658
|
|
|
688
659
|
### Stack
|
|
@@ -693,7 +664,6 @@ spooling/
|
|
|
693
664
|
| Embeddings | sentence-transformers / all-MiniLM-L6-v2 (local) |
|
|
694
665
|
| Search | numpy cosine similarity |
|
|
695
666
|
| Backend | Python, FastAPI, Click |
|
|
696
|
-
| Frontend | Next.js 14, shadcn/ui, Tailwind CSS, AG Charts |
|
|
697
667
|
| Chat AI | Ollama (local) or Anthropic API |
|
|
698
668
|
|
|
699
669
|
### Ports
|
|
@@ -701,7 +671,6 @@ spooling/
|
|
|
701
671
|
| Service | Port |
|
|
702
672
|
|---------|------|
|
|
703
673
|
| API Server | 3002 |
|
|
704
|
-
| GUI | 3003 |
|
|
705
674
|
| MCP Server (streamable-HTTP) | 3004 |
|
|
706
675
|
|
|
707
676
|
---
|
|
@@ -715,8 +684,7 @@ All optional — defaults work out of the box.
|
|
|
715
684
|
| `SPOOLING_DB` | `~/.local/share/spooling/spooling.db` | Path to the SQLite database file (`%APPDATA%\spooling\spooling.db` on Windows) |
|
|
716
685
|
| `SPOOLING_EMBEDDING_MODEL` | `all-MiniLM-L6-v2` | Sentence transformer model |
|
|
717
686
|
| `SPOOLING_UI_HOST` | `127.0.0.1` | API server host |
|
|
718
|
-
| `
|
|
719
|
-
| `ANTHROPIC_API_KEY` | - | Anthropic API key (alternative to setting in the GUI) |
|
|
687
|
+
| `ANTHROPIC_API_KEY` | - | Anthropic API key (required for Anthropic-backed features) |
|
|
720
688
|
|
|
721
689
|
---
|
|
722
690
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "spooling"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.3.0"
|
|
4
4
|
description = "Local session tracker and semantic search for AI coding assistants"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [{ name = "Parsed Analytics, Inc." }]
|
|
@@ -17,7 +17,6 @@ dependencies = [
|
|
|
17
17
|
"numpy>=1.24",
|
|
18
18
|
"fastapi>=0.111",
|
|
19
19
|
"uvicorn[standard]>=0.30",
|
|
20
|
-
"jinja2>=3.1",
|
|
21
20
|
"watchdog>=4.0",
|
|
22
21
|
"rich>=13.0",
|
|
23
22
|
"httpx>=0.27",
|