Documentation Index
Fetch the complete documentation index at: https://docs.crewship.ai/llms.txt
Use this file to discover all available pages before exploring further.
crewship journal
Read the Crew Journal — the canonical append-only event stream for every observable action in the platform. Filter by crew, agent, mission, entry type, severity, actor, priority, trace, or time window.--follow opens an SSE connection to /api/v1/journal/stream and prints entries as they arrive (Ctrl-C to exit). The CLI auto-reconnects on transient failure with bounded exponential backoff (1 s → 30 s) and threads Last-Event-ID so a brief disconnect resumes without dropping or duplicating entries. For pretty in-browser viewing, the web UI /journal page is also available.
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--lines | int | 50 | Max entries to fetch (1-500). |
--crew | string | Filter by crew slug or ID. | |
--agent | string | Filter by agent ID. | |
--mission | string | Filter by mission ID. | |
--trace-id | string | Narrow to a single run’s spans (trace_id == run id). | |
--type | string | Comma-separated entry types (e.g. peer.escalation,keeper.decision). | |
--exclude-type | string | Comma-separated entry types to exclude (NOT IN). Useful for hiding container.metrics noise. | |
--severity | string | Comma-separated severities (info, notice, warn, error). | |
--actor-type | string | Comma-separated actors (agent, user, system, keeper, sidecar, orchestrator). | |
--priority | string | Comma-separated priorities (normal, high, pin, permanent). | |
--query / -q | string | Server-side FTS5 search across summary + payload. Bounded to 200 chars. | |
--since | string | Time window (1h, 24h, 7d, or RFC3339). | |
--follow | bool | false | Live tail via SSE — Ctrl-C to exit, reconnects on transient failure. |
--format text|json|yaml (default text). Enum values for --severity, --actor-type, and --priority are validated client-side before the request goes out, so a typo fails fast with a list of allowed values.
Examples
crewship recall <query> — same backing endpoint, snippet-card rendering optimised for question-answering.
crewship journal get
Fetch a single entry by ID. Output respects --format (text, json, yaml); the text format prints the same single-line summary the list view uses, then indents the entry’s payload and refs underneath so you can see the full structured detail at a glance.
404 with the same shape as “not found” (no cross-tenant existence leak).
crewship journal count
Print the total number of entries that match a filter set. Identical filter flags to the list view (minus --lines / --follow); --cursor and --limit are silently ignored — count is always over the full result set.
crewship journal priority
Annotate one entry with a priority marker (normal, high, pin, permanent). Requires OWNER or ADMIN on the workspace. Marker affects compaction and recall — see the Crew Journal guide for the semantics.
--mark value is validated client-side before the request goes out. Each invocation also writes a memory.priority_changed audit entry to the journal carrying the previous and new priority plus the supplied reason — so the curation history is itself queryable.
Sample output
Entry type catalog
See the Crew Journal guide for the full list. Common filters:--type value | When to use |
|---|---|
keeper.decision | Every credential access decision. |
peer.escalation | Cross-agent handoffs (often tied to approval.requested). |
budget.exceeded,budget.warning | Cost oversight. |
approval.requested,approval.granted,approval.denied,approval.timeout | HITL audit. |
hook.fired,hook.blocked | Lifecycle hook activity. |
eval.regression_detected | Eval surfaced regression. |
run.started,run.completed,run.failed,run.cancelled,run.timeout | Run lifecycle (/runs page is folded into /journal since PR #234). |
Parsing --since / --until
Accepted formats:
- Duration suffixes:
30m,1h,24h,7d(thedsuffix is handled locally; Go’stime.ParseDurationdoesn’t support it). - RFC3339:
2026-04-17T00:00:00Z.
--until is supported on journal count (lower bound is --since, upper bound is --until); the list view doesn’t currently expose --until because the default ordering is “newest first” and pagination uses a cursor.
Notes
- Output is scoped to the caller’s workspace automatically — there is no way to query another workspace from the CLI.
- Pagination is keyset-based on the server; the list view doesn’t expose the cursor (it fetches
--linesrows and stops). For paged programmatic access, prefer the JSON output of the/api/v1/journalendpoint. - For structured programmatic access prefer
--format json.