Skip to content

feat: Add new app concept and better query cli command options to limit context usage#21

Merged
ericallam merged 7 commits intomainfrom
feat/app-concept
Mar 11, 2026
Merged

feat: Add new app concept and better query cli command options to limit context usage#21
ericallam merged 7 commits intomainfrom
feat/app-concept

Conversation

@ericallam
Copy link
Member

No description provided.

Every crumb is now stamped with an app name, auto-detected from the
nearest package.json. Crumbs are stored per-app at ~/.agentcrumbs/<app>/
and all CLI commands scope to the current app by default.

- Add app field to Crumb type and AgentCrumbsConfig
- Add getApp() resolution: JSON config > AGENTCRUMBS_APP env > package.json
- Per-app storage directories in collector/store
- Collector routes incoming crumbs to per-app stores
- All CLI commands support --app and --all-apps flags
- New cli/app-store.ts shared helper for app context
- Update format.ts to show app prefix in multi-app views
- Add papertrail example app for demos
- Update skills, docs, and homepage
Replace the old 'last N results' approach with forward pagination:
- Add --after and --before for absolute ISO timestamp bounds
- Default limit reduced from 100 to 50 for manageable pages
- Output includes 'Next page: --after <timestamp>' when more results exist
- Results returned oldest-first for natural forward pagination

Update skill to guide agents toward broad queries with pagination
instead of aggressive namespace/match filtering.
Replace raw timestamp pagination with short cursor IDs. Cursors are
8-char hashes stored in ~/.agentcrumbs/.cursors.json with 1-hour TTL.

Flow: query --since 5m → output shows 'Next: --cursor a1b2c3d4' →
query --since 5m --cursor a1b2c3d4 for next page.

Keep --after/--before for explicit time windows.
- Fix storage path to ~/.agentcrumbs/<app>/crumbs.jsonl everywhere
- Add app field to cross-language examples (curl, Python, Go, Rust)
- Update CLI examples with --app, --all-apps, --cursor flags
- Add AGENTCRUMBS_APP env var to README env var table
- Update collect.mdx to show per-app routing
- Update multi-service guide with per-app storage
- Add over-filtering as critical mistake #1 in core skill
- Rewrite querying section with explicit CORRECT/AVOID examples
- Fix CLI quick reference to show --cursor instead of --after
- Add query + cursor examples to init skill template
- Add inline guidance note to init template CLI section
@vercel
Copy link

vercel bot commented Mar 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agentcrumbs-docs Ready Ready Preview, Comment Mar 11, 2026 3:36pm

Request Review

@ericallam ericallam marked this pull request as ready for review March 11, 2026 15:40
@ericallam ericallam merged commit 9bed5b3 into main Mar 11, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants