feat(cli): reasonix events <name> — first user-facing consumer of the event log#3
Merged
Conversation
reasonix events <name> pretty-prints the event-log sidecar — the first user-facing consumer of events.jsonl. Renders one line per event with per-type detail synopses; --type / --since / --tail filters; --json for jq pipelines; --projection dumps the reduced ProjectionSet. Closes the v0.14 kernel loop: events get written by every session, and now there's a tool to read them. Sweep pass: trimmed verbose jsdoc / restated-the-code comments off eventize.ts, event-sink-jsonl.ts, event-source-jsonl.ts, and the tests. ~80 lines of comment cruft gone, no logic changed. - src/cli/commands/events.ts: command formatter + per-event detail table covering all 25 Event variants - src/cli/index.ts: command registration with commander, help text - tests/events-command.test.ts: 6 tests pinning the formatter + each flag (type filter, tail, json passthrough, projection, missing session error path) 1753 tests pass (was 1747 + 6 new).
This was referenced May 1, 2026
This was referenced May 8, 2026
This was referenced May 19, 2026
This was referenced May 27, 2026
This was referenced May 28, 2026
Merged
Merged
This was referenced Jun 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes the v0.14 kernel loop: events get written by every session (PR #2), and now there's a tool to read them. `reasonix events ` is the first user-facing consumer of `~/.reasonix/sessions/.events.jsonl`.
This is the architecture-value tipping point — events.jsonl is no longer a write-only artifact. It's queryable from the command line.
```
$ reasonix events code-reasonix --tail 10
[events] code-reasonix 10 event(s) ~/.reasonix/sessions/code-reasonix.events.jsonl
[ 73] t8 12:41:02 user.message "show me the test pass count"
[ 74] t8 12:41:03 model.turn.started model=deepseek-v4-flash effort=max prefix=a3f9c012
[ 75] t8 12:41:04 model.delta content "I'll check…"
[ 76] t8 12:41:06 tool.intent tc-12 run_command args={"command":"npm test --silent"}
[ 77] t8 12:41:06 tool.dispatched tc-12
[ 78] t8 12:41:24 tool.result tc-12 ok 1832B
[ 79] t8 12:41:25 model.delta content "1753 tests pass."
[ 80] t8 12:41:26 model.final cost=$0.0009 in=14328 out=42
```
Flags
Files
New:
Modified (additive):
Cleanup pass (per the architect-cleanliness rule the user just reinforced):
~80 lines of comment cruft gone, no logic touched.
Test plan
What this unlocks
events.jsonl is now a debuggable, scriptable, replayable artifact. Future work can layer on:
But each future PR is now optional. The kernel and its first consumer ship together. Mission accomplished.