schemabrain tail
Streams the JSONL events file schemabrain serve writes to. Each tool call produces a structured event the moment it lands — tail is the live window into what an agent is doing.
--since.
Flags
| Flag | Default | Purpose |
|---|---|---|
--since DURATION_OR_TIMESTAMP | 5m | Replay events newer than this point. Accepts compact duration (30s, 5m, 2h, 1d) or ISO 8601 timestamp with timezone. |
--follow | (on by default) | Keep the process attached and print new events as they arrive. |
--no-follow | (off) | Print history matching --since and exit. Mutually exclusive with --follow. |
--json | (off) | Emit raw JSON lines instead of the colored two-line record. Pipe-friendly for jq / awk. |
--events-path PATH | $SCHEMABRAIN_EVENTS_PATH or ~/.schemabrain/events.jsonl | Path to the JSONL events file. |
--store-path PATH | (none) | Accepted for surface parity with every other subcommand. tail reads from the events JSONL, not the store, so this is only a convenience: when --events-path is omitted AND a file named events.jsonl exists next to the store, that file is preferred. |
How the events file gets written
schemabrain serve appends one JSON line per event to the events file. Events include:
server_start/server_stoptool_call_started/tool_call_completedtool_call_refused- Other observability hooks the event bus emits (see Observability)
--no-events on serve to disable event emission entirely.
Examples
Watch live activity
Inspect the last day, then exit
Pipe into jq
Tail a specific events file
Relationship to audit list
| You want … | Use |
|---|---|
| Live, streaming view of every event | schemabrain tail |
| Durable, hash-chained record of tool calls | schemabrain audit list (or audit verify) |
| The same data rendered in the dashboard | /dashboard/audit-viewer |
mcp_audit table is the durable, tamper-evident record.
Related
schemabrain serve
The producer of the events stream.
schemabrain audit
The durable hash-chained record.
Observability
The event-bus substrate that emits these events.
Audit Viewer dashboard
Visual rendering of the durable record.