Skip to main content

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.
schemabrain tail --since 5m
By default, the command follows (attaches and prints new events as they arrive) and replays history matching --since.

Flags

FlagDefaultPurpose
--since DURATION_OR_TIMESTAMP5mReplay 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.jsonlPath 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_stop
  • tool_call_started / tool_call_completed
  • tool_call_refused
  • Other observability hooks the event bus emits (see Observability)
Pass --no-events on serve to disable event emission entirely.

Examples

Watch live activity

schemabrain tail
# Prints the last 5 minutes and follows. Ctrl+C to exit.

Inspect the last day, then exit

schemabrain tail --since 1d --no-follow

Pipe into jq

schemabrain tail --since 1h --no-follow --json | jq '.tool_name'

Tail a specific events file

schemabrain tail --events-path /var/log/schemabrain/events.jsonl

Relationship to audit list

You want …Use
Live, streaming view of every eventschemabrain tail
Durable, hash-chained record of tool callsschemabrain audit list (or audit verify)
The same data rendered in the dashboard/dashboard/audit-viewer
The events JSONL is a fast, append-only operational stream — tear it down and recreate it freely. The mcp_audit table is the durable, tamper-evident record.

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.