magus-events
Stream workspace events as JSONL for an integration to consume
Synopsis
magus events [flags]
Description
Stream workspace events as JSONL, one event per line. This is the surface third-party integrations build against: an Emacs or Vim plugin, a status bar, a notifier.
Every magus process in the workspace feeds the stream, so a run started in another terminal shows up here. It needs no daemon, no token, and no loadable magusfile - an editor can attach to a repository whose magusfile is mid-edit.
The stream is outbound only. Nothing a subscriber does can change a magus verdict; the inbound counterpart is the session hook.
target.output is excluded unless named with --type: it is the one event type that scales with build size rather than project count. To read a target's full log, take the ref from its target.result event and pass it to query output.
A subscriber must ignore event types and fields it does not recognize. That is what lets the taxonomy grow without breaking clients built against an earlier schema.
Options
- -f
- Short for --follow
- --follow
- Keep streaming as events occur instead of exiting after the replay
- --interval duration (default: 250ms)
- How often --follow polls the run log for new events
- --limit int (default: 20)
- Replay this many recent invocations before following; 0 replays nothing (only new events), negative replays every retained run
- --type string
- Restrict to these event types (comma-separated); default is every type except target.output
Examples
Watch a workspace live
magus events --follow
Only what an editor needs for progress
magus events --follow --type run.started,target.result
What did the last run do
magus events --limit 1
See Also
magus(1), magus-ls(1), magus-describe(1), magus-run(1), magus-x(1), magus-where(1), magus-affected(1), magus-graph(1), magus-query(1), magus-explain(1), magus-path(1), magus-refs(1), magus-watch(1), magus-status(1), magus-clean(1), magus-vcs(1), magus-doctor(1), magus-config(1), magus-session(1), magus-memory(1), magus-notes(1), magus-diff(1), magus-server(1), magus-mcp(1), magus-buzz(1), magus-completion(1), magus-man(1), magus-init(1), magus-agent(1), magus-self(1), magus-version(1)