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
Copy file name to clipboardExpand all lines: packages/agentcrumbs/skills/agentcrumbs/SKILL.md
+22-15Lines changed: 22 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,7 @@ agentcrumbs tail # Live tail (auto-scoped to current app)
83
83
agentcrumbs tail --app foo # Tail a specific app
84
84
agentcrumbs tail --all-apps # Tail all apps
85
85
agentcrumbs query --since 5m # Query last 5 minutes (all namespaces, 50 per page)
86
-
agentcrumbs query --since 5m --after <timestamp># Next page
86
+
agentcrumbs query --since 5m --cursor <id># Next page (cursor from output)
87
87
agentcrumbs clear # Clear crumbs for current app
88
88
agentcrumbs clear --all-apps # Clear crumbs for all apps
89
89
agentcrumbs strip # Remove all crumb markers from source
@@ -95,27 +95,33 @@ Most commands accept `--app <name>` and `--all-apps`. Default is auto-detect fro
95
95
96
96
## Querying crumbs
97
97
98
-
Start broad — query a time window across all namespaces, then paginate if there are too many results. Do NOT filter by namespace or match text unless you are looking for something very specific. The whole point of crumbs is seeing the full picture across services.
98
+
**IMPORTANT: Query broadly, paginate — don't filter narrowly.** The value of crumbs is seeing what happened across ALL services, not just one. Filtering to a single namespace or adding match filters defeats the purpose — you'll miss the cross-service interactions that reveal the real bug.
99
+
100
+
The right approach:
101
+
1. Query a time window with no namespace filter
102
+
2. Read the first page of results
103
+
3. Use `--cursor` to paginate forward if you need more
99
104
100
105
```bash
101
-
#Start here: get recent crumbs across all services
# Only filter by namespace/match when you have a specific reason
114
-
agentcrumbs query --since 5m --tag error
116
+
# CORRECT: filter by session (still shows all namespaces in that session)
115
117
agentcrumbs query --session a1b2c3
118
+
119
+
# AVOID: don't filter to one namespace unless you already know the root cause
120
+
# agentcrumbs query --since 5m --ns auth-service # too narrow!
121
+
# agentcrumbs query --since 5m --match "userId:123" # too narrow!
116
122
```
117
123
118
-
Results are paginated (50 per page by default). When there are more results, the output includes a `--cursor` ID for the next page. Pass it back to get the next page.
124
+
Results are paginated (50 per page by default). When there are more results, the output includes a short `--cursor` ID for the next page.
119
125
120
126
Run `agentcrumbs <command> --help` for detailed options on any command.
1.**Missing markers** — Every crumb line needs `// @crumbs` or a `#region @crumbs` block. Without them, `strip` can't clean up.
152
-
2.**Creating trail() in hot paths** — `trail()` parses the env var each call. Create once at module scope, use `child()` for per-request context.
153
-
3.**No collector running** — Without `agentcrumbs collect`, crumbs go to stderr only and can't be queried. Start the collector before reproducing issues.
157
+
1.**Over-filtering queries** — Do NOT add `--ns` or `--match` filters to narrow results. Use `--limit` and `--cursor` to paginate instead. Filtering to one namespace hides cross-service bugs. If there are too many results, narrow the time window or reduce `--limit`, not the namespaces.
158
+
2.**Missing markers** — Every crumb line needs `// @crumbs` or a `#region @crumbs` block. Without them, `strip` can't clean up.
159
+
3.**Creating trail() in hot paths** — `trail()` parses the env var each call. Create once at module scope, use `child()` for per-request context.
160
+
4.**No collector running** — Without `agentcrumbs collect`, crumbs go to stderr only and can't be queried. Start the collector before reproducing issues.
agentcrumbs query --since 5m --cursor <id># paginate (cursor from output)
149
+
agentcrumbs clear # clear crumbs for this app
150
+
agentcrumbs strip # remove crumbs before merge
150
151
```
152
+
153
+
When querying, always start broad (all namespaces) and paginate with `--cursor`. Do not filter by `--ns` or `--match` — the value is in seeing the full cross-service picture.
151
154
````
152
155
153
156
Adapt the example above to the actual discovered namespaces and app name.
0 commit comments