ccx-native 0.1.0 → 0.2.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.
@@ -0,0 +1,50 @@
1
+ # Reading worker history
2
+
3
+ `ccx history` prints past conversations of the workers you name, as text, and
4
+ searches them. It never sends anything and works on stopped and busy workers.
5
+
6
+ ## What a line means
7
+
8
+ #184.0 10-25 00:40 U: do we need to support apple silicon?
9
+ .7 A*: Yes for the CLI, no for the dashboard…
10
+ [12 tools · 4m10 · pytest×3, git×2]
11
+
12
+ - `#184.0` is turn 184, message 0: the same numbers as `ccx logs`. Inside a
13
+ turn, `.7` is message 7 of that turn.
14
+ - `U` user, `U+` a message sent while the turn ran, `N[kind]` a notification
15
+ or event (`bg`, `monitor`, `agent`, `cron`, `system`, `ccx`, …), `/` a slash
16
+ command, `!` an interrupt, `A` assistant text, `A*` the final answer, `A…`
17
+ the latest text of a turn still running, `T` a tool call (`✗` failed).
18
+ - `══ #212.3 compaction` marks a compaction; `--turns 212.3` prints its summary
19
+ when one is stored (Codex encrypts its summaries).
20
+
21
+ ## Recipes
22
+
23
+ | need | command |
24
+ |---|---|
25
+ | what a worker did lately | `ccx history W` |
26
+ | a long history at a glance | `ccx history W --view map` |
27
+ | where something was decided | `ccx history W --grep 'cache|eager' --role user,final` |
28
+ | the exchange around a hit | `ccx history W --turns 1032-1034` |
29
+ | one message in full | `ccx history W --turns 1033.12` |
30
+ | every instruction the user gave | `ccx history W --role user --turns 1-` |
31
+ | what woke a worker | `ccx history W --role notify` |
32
+ | how a worker tested | `ccx history W --cmd pytest --role tool,output` |
33
+ | what failed | `ccx history W --errors` |
34
+ | your children's last turns | `ccx history A B C --turns -1` |
35
+ | several workers in one period | `ccx history A B --since '11-07 21:00' --until '11-07 22:00'` |
36
+ | after your own compaction | `ccx history $CCX_SELF_WORKER_ID --turns <latest compaction address> --max-chars 2000` |
37
+
38
+ ## Things worth knowing
39
+
40
+ - A search shows the newest 20 hits per worker, oldest first; the count line
41
+ says how to see older ones. `-C 1` reads the matching turns instead of hit
42
+ lines.
43
+ - `--cmd` matches the command each shell call ran, not words inside it:
44
+ `--cmd python` finds `cd x && timeout 30 .venv/bin/python -m pytest`, not a
45
+ message that mentions python. `--grep` searches text.
46
+ - Tool output is searched only with `--role output`. A cut summary
47
+ (`--max-chars`) keeps its end, where current work and next steps are.
48
+ - Turn times come from the session; times are local, and the header names the
49
+ zone.
50
+ - Searching your own running turn finds your own `ccx history` call.