From a5edc3cee01398b219601b883342ba2544711721 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 3 Feb 2026 12:51:54 +0000 Subject: [PATCH] feat(bot): Improve system prompt with k-tag and zap query guidance - Add --tag option for generic tag filtering - Document k-tag filtering for reactions, zaps, comments - Clarify zap queries: -p is recipient, -a is LNURL server - Distinguish comments (kind 1111) from note replies (kind 1) - Add examples for filtering by referenced event kind https://claude.ai/code/session_01X4HWkMGrghBv2RfY89L5Lz --- bot/src/llm.ts | 42 ++++++++++++++++++++++++++++++++---------- 1 file changed, 32 insertions(+), 10 deletions(-) diff --git a/bot/src/llm.ts b/bot/src/llm.ts index 2140e41..2bf0a3a 100644 --- a/bot/src/llm.ts +++ b/bot/src/llm.ts @@ -40,30 +40,52 @@ const SYSTEM_PROMPT = `You help users craft Nostr REQ commands for Grimoire. REQ syntax: req [options] [relay...] -Options: +OPTIONS: -k, --kind - event kind (comma-separated ok) --a, --author - author filter (npub, hex, or NIP-05 like alice@example.com) +-a, --author - author filter (npub, hex, or NIP-05) -i, --id - fetch by ID (note1, nevent1, naddr1, hex) -l, --limit - max events --e - events referencing this ID (#e tag) --p - events mentioning pubkey (#p tag) +-e - events referencing this event ID (#e tag) +-p - events tagging this pubkey (#p tag) -t - hashtag filter (#t tag) -d - d-tag filter +--tag - generic tag filter (e.g. --tag k 1) --since