sidekick-agent-hub 0.22.0 → 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 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