You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`--after <timestamp>`| Crumbs after this ISO timestamp |
20
+
|`--before <timestamp>`| Crumbs before this ISO timestamp |
21
+
|`--cursor <id>`| Resume from a previous page (8-char ID from output) |
22
+
|`--limit <n>`| Results per page (default: 50) |
19
23
|`--ns <pattern>`| Filter by namespace |
20
24
|`--tag <tag>`| Filter by tag |
21
25
|`--session <id>`| Filter by session ID |
22
26
|`--match <text>`| Text search |
27
+
|`--app <name>`| Scope to a specific app (default: auto-detect from package.json) |
28
+
|`--all-apps`| Query crumbs from all apps |
23
29
|`--json`| JSON output |
24
-
|`--limit <n>`| Maximum number of results |
25
30
26
31
Time units: `s` (seconds), `m` (minutes), `h` (hours), `d` (days).
27
32
33
+
### Pagination
34
+
35
+
Results are returned oldest-first, capped at `--limit` (default 50). When there are more results, the output includes a short cursor ID for the next page.
36
+
37
+
```bash
38
+
# First page
39
+
agentcrumbs query --since 5m
40
+
# Output: 50 crumbs (1-50 of 128). Next: --cursor a1b2c3d4
41
+
42
+
# Next page
43
+
agentcrumbs query --since 5m --cursor a1b2c3d4
44
+
# Output: 50 crumbs (51-100 of 128). Next: --cursor e5f6g7h8
45
+
```
46
+
47
+
Cursors expire after 1 hour. You can also use `--after` / `--before` with ISO timestamps for explicit time windows without cursors.
Copy file name to clipboardExpand all lines: docs/content/docs/crumb-format.mdx
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ Each crumb is a JSON object. When stored, they are written as JSONL (one JSON ob
9
9
10
10
```json
11
11
{
12
+
"app": "my-project",
12
13
"ts": "2026-03-07T10:00:00.123Z",
13
14
"ns": "auth-service",
14
15
"msg": "user logged in",
@@ -28,6 +29,7 @@ Each crumb is a JSON object. When stored, they are written as JSONL (one JSON ob
28
29
29
30
| Field | Type | Required | Description |
30
31
| --- | --- | --- | --- |
32
+
|`app`|`string`| Yes | App name (auto-detected from `package.json` or explicit config) |
31
33
|`ts`|`string`| Yes | ISO 8601 timestamp |
32
34
|`ns`|`string`| Yes | Namespace |
33
35
|`msg`|`string`| Yes | Message |
@@ -57,4 +59,4 @@ Each crumb is a JSON object. When stored, they are written as JSONL (one JSON ob
57
59
58
60
## Storage
59
61
60
-
Crumbs are stored in `~/.agentcrumbs/crumbs.jsonl` by default. One JSON object per line, no trailing comma, no wrapping array.
62
+
Crumbs are stored per-app at `~/.agentcrumbs/<app>/crumbs.jsonl`. One JSON object per line, no trailing comma, no wrapping array. The app name is auto-detected from the nearest `package.json` by default.
0 commit comments