Search (debug / exploration)
pastchats-memory search --db .swarm/prompt_memory.db --query "graphql pagination cursor"
This returns ranked hits with score + source file + turn index.
Recall (for task startup)
pastchats-memory recall --db .swarm/prompt_memory.db --query "safe database migration rollback"
This prints a compact memory block you can use directly in your agent context.
Query writing tips
Use this pattern:
<problem> + <constraint> + <stack>
Examples:
webhook retry idempotent pythonreact form validation zod edge casessqlite migration backwards compatible
JSON output mode
pastchats-memory recall --db .swarm/prompt_memory.db --query "auth middleware" --json
Useful for scripting or tool integrations.