sidekick-agent-hub 0.21.6 → 0.23.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 +65 -5
- package/dist/sidekick-cli.mjs +4 -90684
- package/dist/sidekick-main.mjs +1491 -0
- package/package.json +8 -3
package/README.md
CHANGED
|
@@ -8,13 +8,13 @@ Sidekick CLI reads from `~/.config/sidekick/` — the same data files the [VS Co
|
|
|
8
8
|
|
|
9
9
|
## What's New
|
|
10
10
|
|
|
11
|
+
- **`sidekick statusline`, `today` & `doctor`** — a cache-only one-line account/quota/burn footer, a cache-only daily brief, and cross-provider health diagnostics.
|
|
12
|
+
- **Quick capture** — `sidekick tasks add`, `tasks done`, `note add`, and `decision add` write straight to the shared project stores with atomic merges.
|
|
13
|
+
- **`sidekick mcp`** — a read-only stdio MCP facts server so Claude Code or Codex can inspect quota, burn rate, context pressure, and project stores mid-session.
|
|
14
|
+
- **External handoff** — `sidekick handoff open --url-template` opens a configured deep link with `{sessionId}`, `{provider}`, and `{projectPath}` placeholders.
|
|
11
15
|
- **Codex reset credits** — when Codex quota is refreshed from the API, `sidekick quota` now lists available rate-limit reset credits (`Reset Credits: N available`) and their expirations.
|
|
12
16
|
- **`sidekick quota --provider zai`** — authoritative z.ai Coding Plan quota (5-Hour / Weekly) from z.ai's quota API, using OpenCode's stored z.ai token when available.
|
|
13
17
|
- **`sidekick extract`** — pull URLs, file paths, commands, and plans out of recent Claude Code and Codex chats, with `--json` and an interactive picker.
|
|
14
|
-
- **`sidekick quota history`** — a 13-week, per-workspace, GitHub-style heatmap of session-limit utilization.
|
|
15
|
-
- **`sidekick status` & `sidekick peak`** — one-shot Claude/OpenAI API health checks and a Claude peak-hours indicator.
|
|
16
|
-
- **`sidekick account`** — manage multiple Claude Code and Codex accounts, with first-run auto-registration of your active credentials.
|
|
17
|
-
- **Recent models & richer reports** — Claude Opus 4.8 and Fable 5 pricing/context, plus `report`/`dump` transcripts that interleave reasoning, tool calls, and narration.
|
|
18
18
|
|
|
19
19
|
See the [full changelog](https://github.com/cesarandreslopez/sidekick-agent-hub/blob/main/CHANGELOG.md) for everything.
|
|
20
20
|
|
|
@@ -50,6 +50,8 @@ If `sqlite3` is missing or not executable in the current shell environment, Side
|
|
|
50
50
|
```bash
|
|
51
51
|
sidekick dashboard [options]
|
|
52
52
|
sidekick tasks|decisions|notes|stats|quota|status|account|handoff|search|context|extract [options]
|
|
53
|
+
sidekick today|doctor|statusline|mcp [options]
|
|
54
|
+
sidekick tasks add|tasks done|note add|decision add [args]
|
|
53
55
|
```
|
|
54
56
|
|
|
55
57
|
The standalone commands open the dashboard directly to a specific panel or run a one-shot query. All accept `--project` and `--provider` flags.
|
|
@@ -61,6 +63,58 @@ The standalone commands open the dashboard directly to a specific panel or run a
|
|
|
61
63
|
| `--session <id>` | Follow a specific session by ID |
|
|
62
64
|
| `--replay` | Replay existing events from the beginning before streaming live |
|
|
63
65
|
|
|
66
|
+
## Daily Brief & Statusline
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
sidekick today
|
|
70
|
+
sidekick statusline
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
`sidekick today` prints a cache-only daily brief: yesterday's sessions/tokens/cost, open tasks, the newest decision, the latest handoff, a quota summary, and the scheduled peak-hours window. `sidekick statusline` renders the same account/quota/burn summary as a single line, entirely from cached snapshots — no account bootstrap, pricing hydration, or quota network access — so it is fast enough to run on every agent prompt (the VS Code extension can wire it into Claude Code's `statusLine` setting). Global flags `--project`, `--provider`, and `--json` apply to `today`; `statusline` takes no flags.
|
|
74
|
+
|
|
75
|
+
## Doctor
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
sidekick doctor
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Diagnose project identity, sessions, accounts, providers, and dependencies in one typed health report — the same diagnostics behind the VS Code `Sidekick: Run Doctor` command. Global flags `--project` and `--json` also apply.
|
|
82
|
+
|
|
83
|
+
## Quick Capture
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
sidekick tasks add "Wire retry backoff into the sync job" --tags backend
|
|
87
|
+
sidekick tasks done a1b2
|
|
88
|
+
sidekick note add "SQL substitution is index-based" --type gotcha --file src/db.ts
|
|
89
|
+
sidekick decision add "Store history as JSONL" --rationale "Append-only, crash-safe"
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Capture tasks, knowledge notes, and decisions from the terminal without opening the dashboard. Writes use the shared atomic merge writers, so concurrent captures from VS Code or other terminals are never lost (the extension's Kanban board picks them up live).
|
|
93
|
+
|
|
94
|
+
| Command | Flags |
|
|
95
|
+
| ---------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
|
|
96
|
+
| `tasks add <subject>` | `--description <text>`, `--tags <csv>` |
|
|
97
|
+
| `tasks done <id>` | Accepts a task ID or unique prefix |
|
|
98
|
+
| `note add <content>` | `--file <path>`, `--title <title>`, `--type <type>` (`gotcha`/`pattern`/`guideline`/`tip`), `--importance <level>`, `--tags <csv>` |
|
|
99
|
+
| `decision add <description>` | `--rationale <text>`, `--chosen <text>`, `--alternatives <csv>`, `--tags <csv>` |
|
|
100
|
+
|
|
101
|
+
The global flag `--project` also applies.
|
|
102
|
+
|
|
103
|
+
## MCP Facts Server
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
sidekick mcp
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Serve read-only Sidekick facts over stdio [MCP](https://modelcontextprotocol.io/) so your coding agent can inspect them mid-session. Register once from the project where you want it:
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
claude mcp add sidekick -- sidekick mcp # Claude Code
|
|
113
|
+
codex mcp add sidekick -- sidekick mcp # Codex
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
Seven tools: `get_quota_status`, `get_burn_rate`, `get_context_pressure`, `get_tasks`, `get_decisions`, `get_notes`, and `get_project_context`. Every tool is annotated read-only, non-destructive, and idempotent — the server exposes no capture or store-mutation tools. Pass the global `--project` and `--provider` flags before `mcp` to target a specific project or provider.
|
|
117
|
+
|
|
64
118
|
## Session Dump
|
|
65
119
|
|
|
66
120
|
```bash
|
|
@@ -217,12 +271,15 @@ On first CLI startup, Sidekick auto-registers the active system Claude Code and
|
|
|
217
271
|
| `--label <name>` | Label for the account (required for Codex and `--login`; optional for Claude `--add`) |
|
|
218
272
|
| `--switch` | Switch to the next saved account |
|
|
219
273
|
| `--switch-to <id>` | Switch to a specific account by email, label, or ID |
|
|
220
|
-
| `--remove <id>` | Remove a saved account by email, label, or ID
|
|
274
|
+
| `--remove <id>` | Remove a saved account by email, label, or ID (prompts for y/N confirmation first) |
|
|
275
|
+
| `-y`, `--yes` / `--force` | Skip the `--remove` confirmation prompt (required for `--json` or non-interactive runs) |
|
|
221
276
|
| `--launcher <name>` | Create an opt-in per-account terminal launcher for the active account |
|
|
222
277
|
| `--auto-switch <pct\|off>` | Persist the auto-switch quota threshold (1–100), or `off` to disable. Continuous auto-switching runs in a long-running host such as VS Code |
|
|
223
278
|
|
|
224
279
|
With no flags, lists all saved accounts and marks the active one. `--provider all` lists Claude and Codex accounts together. Use `--json` for machine-readable output (provider-keyed when `--provider all`).
|
|
225
280
|
|
|
281
|
+
`--remove` prints the resolved account and asks for an interactive y/N answer (default No). Pass `-y`/`--yes` (or `--force`) to skip the prompt; `--json` and non-TTY contexts require the flag and exit `1` without it — **unattended automation that removes accounts must add `--yes`**.
|
|
282
|
+
|
|
226
283
|
## Dashboard Panels
|
|
227
284
|
|
|
228
285
|
The dashboard is a two-pane terminal UI. The left side shows a navigable list, the right side shows details for the selected item.
|
|
@@ -298,6 +355,7 @@ Press `z` to cycle through layout modes:
|
|
|
298
355
|
| `z` | Cycle layout mode |
|
|
299
356
|
| `/` | Open filter overlay (supports substring, fuzzy, regex, and date modes — Tab cycles modes) |
|
|
300
357
|
| `x` | Open context menu for selected item |
|
|
358
|
+
| `M` | Toggle mouse capture (turn off to restore terminal text selection/copy) |
|
|
301
359
|
| `?` | Show help |
|
|
302
360
|
| `r` | Generate HTML report for the current session |
|
|
303
361
|
| `V` | Show version / changelog |
|
|
@@ -312,6 +370,8 @@ The dashboard supports mouse input in terminals with SGR 1006 extended mouse enc
|
|
|
312
370
|
- **Scroll wheel** in either pane to navigate
|
|
313
371
|
- **Click** anywhere to dismiss overlays
|
|
314
372
|
|
|
373
|
+
While mouse capture is on, the terminal's own click-drag text selection and copy are suppressed. Press `M` to toggle capture off (the status bar shows `MOUSE OFF`), or launch with `--no-mouse` to start with it disabled. The interactive toggle persists to `cli-config.json`; the flag applies to that run only.
|
|
374
|
+
|
|
315
375
|
## Multi-Provider Support
|
|
316
376
|
|
|
317
377
|
Auto-detects the most recently active session provider:
|