sidekick-agent-hub 0.27.4 → 0.27.5

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,6 +8,7 @@ Sidekick CLI reads from `~/.config/sidekick/` (`%APPDATA%\sidekick\` on Windows)
8
8
 
9
9
  ## What's New
10
10
 
11
+ - **0.27.5: prompts grouped by session** — `sidekick dump --prompts` prints every prompt you typed in Claude Code and Codex sessions, grouped by session: the most recent session with prompts by default, one session with `--session <id-or-prefix>`, or every session of the project and its git worktrees with `--all` (narrowed by `--since` and `--limit`). `--replies` adds the agent's final reply to each prompt, `--signals` adds interrupts, rejected and failed tool calls, compactions, API errors, and rollbacks, and `--format` writes text, markdown, JSON, or JSONL (one session per line). OpenCode is not supported.
11
12
  - **0.27.3: accurate token totals and subagent totals** — Claude Code split lines and repeated Codex `token_count` events are no longer double-counted, which fixes `dump`, `report`, the dashboard, `daily`/`weekly`/`monthly`/`sessions`, and `blocks` (the usage cache rebuilds itself). `sidekick dump` and `sidekick report` show the session's subagents and "Session total (incl. subagents)", and `dump --format json` adds a `tokenSummary` block. The dashboard's Tokens section leads with "Total (incl. cache)", lists all four buckets, then subagent and session totals, and its cache-hit rate counts cache writes. Claude subagent transcripts count toward the usage reports under their parent session, and `state.json` gains `context.totalTokens`.
12
13
  - **0.27.0: Opus 5.5 pricing and GPT-6 summaries** — cost estimates for Claude Opus 5.5 (`claude-opus-5-5`) sessions use its own rates ($4 / $20 per 1M tokens, $0.20 cache reads) instead of Opus 5's, GPT-6 Sol and Luna sessions are priced, and OpenAI API dashboard summaries use `gpt-6-luna`.
13
14
  - **0.26.6: `sidekick accounts`** — an interactive picker plus `list`, `add`, `switch`, `login`, `remove`, `shell`, `env`, `undo`, `doctor`, and `config` subcommands. Logins you already use are registered automatically, every switch is verified against the live credential store and undoable, expired credentials are refused with a sign-in hint, running apps that keep the previous login are named, and `env` / `shell` run a second account side by side on bash, zsh, fish, PowerShell, and cmd. The dashboard gains an accounts overlay (`A`) and a health-coloured status bar account. `sidekick account --…` flags remain as a deprecated alias.
@@ -72,10 +73,11 @@ sidekick dump|history|report|peak|today|doctor|statusline|mcp [options]
72
73
  sidekick tasks add|tasks done|note add|decision add [args]
73
74
  ```
74
75
 
75
- The standalone commands run one-shot queries and print to stdout; only `dashboard` opens the TUI. All accept the global `--project` and `--provider` flags.
76
+ Most commands run one-shot queries and print to stdout; `dashboard` opens the full-screen TUI, `accounts` and `extract -i` open interactive pickers, and `mcp` serves stdio until closed. Every command except `statusline` accepts the global flags below.
76
77
 
77
78
  | Flag | Description |
78
79
  | ---------------------- | ---------------------------------------------------------------------------------- |
80
+ | `--json` | Machine-readable JSON output (commands that support it) |
79
81
  | `--project <path>` | Override project path (default: current working directory) |
80
82
  | `--provider <id>` | Session provider: `claude-code`, `opencode`, `codex`, or `auto` (default) |
81
83
  | `--no-color` | Disable colored output (also honors `NO_COLOR`) |
@@ -168,17 +170,30 @@ sidekick dump [options]
168
170
 
169
171
  Export session data as text, markdown, or JSON. Token lines use "Total (incl. cache)" with all four buckets (input, cache read, cache write, output). When the session spawned subagents, text and markdown add "Subagents (n)" and "Session total (incl. subagents)", and markdown adds a Subagent Tokens table. `--format json` adds a `tokenSummary` block with `mainThread`, `subagents` (one entry per subagent), `subagentTotal`, and `combined` (main thread plus subagents).
170
172
 
171
- | Flag | Description |
172
- | ---------------- | ------------------------------------------------------ |
173
- | `--format <fmt>` | Output format: `text` (default), `json`, or `markdown` |
174
- | `--width <cols>` | Terminal width for text output (default: auto-detect) |
175
- | `--expand` | Show all events including noise |
176
- | `--session <id>` | Target a specific session (default: most recent) |
177
- | `--list` | List available sessions and exit |
178
- | `--limit <n>` | Maximum sessions listed with `--list` (default: 50) |
179
- | `--csv` | With `--list`, print the session table as CSV |
173
+ | Flag | Description |
174
+ | ---------------- | -------------------------------------------------------------------------------------------------------- |
175
+ | `--format <fmt>` | Output format: `text` (default), `json`, or `markdown`; also `jsonl` with `--prompts` |
176
+ | `--width <cols>` | Terminal width for text output (default: auto-detect) |
177
+ | `--expand` | Show all events including noise |
178
+ | `--session <id>` | Target a specific session (default: most recent) |
179
+ | `--list` | List available sessions and exit |
180
+ | `--limit <n>` | Maximum sessions listed with `--list` (default: 50), or dumped with `--prompts` |
181
+ | `--csv` | With `--list`, print the session table as CSV |
182
+ | `--prompts` | Dump human prompts grouped by session (see below) |
183
+ | `--all` | With `--prompts`, every session of the project and its git worktrees |
184
+ | `--since <time>` | With `--prompts`, sessions active since an ISO date, `YYYY-MM-DD`, or `7d`/`24h` (returned whole) |
185
+ | `--signals` | With `--prompts`, add interrupts, rejected and failed tool calls, compactions, API errors, and rollbacks |
186
+ | `--replies` | With `--prompts`, add the agent's final reply to each prompt |
180
187
 
181
- Global flags `--project` and `--provider` also apply.
188
+ Global flags `--project`, `--provider`, and `--json` (the same as `--format json`) also apply.
189
+
190
+ ### Prompts by session
191
+
192
+ `sidekick dump --prompts` prints every prompt typed in Claude Code and Codex sessions, grouped by session, for reading or classifying a whole session. The default is the most recent session with prompts, and `--limit <n>` takes the n most recent instead. `--session <id-or-prefix>` picks one session, and `--all` takes every session of the project and its git worktrees (it cannot be combined with `--session`), optionally narrowed by `--since 7d` (sessions active since then, returned whole) and `--limit <n>`. `--signals` adds interrupts, rejected and failed tool calls, compactions, API errors, and rollbacks, and `--replies` adds the agent's final reply to each prompt. `--format` accepts `text`, `markdown`, `json` (full result with bounds and stats), or `jsonl` (one session per line). Both providers are read unless `--provider` names one; `--provider opencode` exits with an error.
193
+
194
+ ```bash
195
+ sidekick dump --prompts --all --since 7d --signals --replies --format jsonl > sessions.jsonl
196
+ ```
182
197
 
183
198
  ## Prompt History
184
199
 
@@ -193,7 +208,7 @@ Show recent user prompts across Codex sessions, newest first — across every wo
193
208
  | `--limit <n>` | Maximum prompts to show (default: 20) |
194
209
  | `--path <sessionId>` | Print the rollout transcript path for a session ID or prefix |
195
210
 
196
- Codex-only for now (reads the global `~/.codex/history.jsonl`); Claude Code and OpenCode are not yet supported. Not to be confused with `sidekick quota history`, the quota utilization heatmap.
211
+ Codex-only for now (reads the global `~/.codex/history.jsonl`); Claude Code and OpenCode are not yet supported (for Claude Code and Codex prompts grouped by session, use [`sidekick dump --prompts`](#prompts-by-session)). Not to be confused with `sidekick quota history`, the quota utilization heatmap.
197
212
 
198
213
  ## HTML Report
199
214
 
@@ -211,7 +226,7 @@ Generate a self-contained HTML session report and open it in the default browser
211
226
  | `--no-open` | Write the file without opening the browser |
212
227
  | `--no-thinking` | Omit thinking blocks from the transcript |
213
228
 
214
- Global flags `--project` and `--provider` also apply.
229
+ Global flags `--project`, `--provider`, and `--json` (prints the report path as `{"path": …}`) also apply.
215
230
 
216
231
  You can also press `r` in the TUI dashboard to generate a report for the current session.
217
232