You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32-1Lines changed: 32 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,12 +48,43 @@ cc-session --version
48
48
| Key | Action |
49
49
|-----|--------|
50
50
|`j` / `k`| move selection |
51
-
|`gg` / `G`| jump top / bottom |
51
+
|`t` / `b`| jump top / bottom |
52
52
|`d`| toggle delete on current message (auto-pairs tool_use/result) |
53
53
|`v`| start visual range selection |
54
54
|`s`| save |
55
55
|`q`| back to list |
56
56
57
+
## Non-interactive CLI (LLM-friendly)
58
+
59
+
Every operation is also available as a subcommand with structured output, so other agents (Claude Code, Codex, scripts, CI) can drive the editor without a human at the terminal.
60
+
61
+
```sh
62
+
cc-session list --json [--project <slug>] [--limit N]
63
+
cc-session show <id-or-path> [--json] [--full] [--include-hidden]
`<id-or-path>` accepts a full path, a session UUID, or a unique substring of one. Indices are 0-based positions in the raw JSONL (use `cc-session show --json` to map text → index). Auto-pair always extends the delete set to keep `tool_use`/`tool_result` blocks together; `paired_added` in the output reports what was added.
The `delete` JSON output names every key an agent needs: `requested`, `paired_added`, `after_auto_pair`, `total_messages_before`, `total_messages_after`, `dry_run`, `saved`, `backup`, `warnings`. Pair this with `--dry-run` to plan, then drop the flag to apply.
87
+
57
88
## Safety
58
89
59
90
- Always closes Claude Code first. `cc-session` detects open file handles via `lsof` and refuses to save unless `--force` is passed.
0 commit comments