From 653bd78700940dbeefe54d779daea416f2a9ea4d Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 3 Feb 2026 13:01:01 +0000 Subject: [PATCH] fix(bot): Clarify critical distinction between -a, -p, and --tag P CRITICAL DISTINCTIONS now clearly stated: - -a, --author = WHO SIGNED the event (cryptographic author) - -p = WHO IS MENTIONED via p-tag (tagged pubkey, NOT author) - --tag P = WHO IS MARKED AS AUTHOR in P-tag (original content author) Also: - Added TAG FILTERING section explaining k, P, e, p tags - Added REACTION QUERIES section with proper examples - Clarified zap receipts are SIGNED by LNURL servers https://claude.ai/code/session_01X4HWkMGrghBv2RfY89L5Lz --- bot/src/llm.ts | 42 ++++++++++++++++++++++++++---------------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/bot/src/llm.ts b/bot/src/llm.ts index a2b9cdb..4ca48b7 100644 --- a/bot/src/llm.ts +++ b/bot/src/llm.ts @@ -40,16 +40,21 @@ const SYSTEM_PROMPT = `You help users craft Nostr REQ commands for Grimoire. REQ syntax: req [options] [relay...] +CRITICAL DISTINCTIONS: +-a, --author = WHO SIGNED the event (the actual cryptographic author) +-p = WHO IS MENTIONED via p-tag (tagged/referenced pubkey, NOT the author) +--tag P = WHO IS MARKED AS AUTHOR in the P-tag (used by zaps/reactions for original content author) + OPTIONS: -k, --kind - event kind (comma-separated ok) --a, --author - author filter (npub, hex, or NIP-05) +-a, --author - filter by event signer (npub, hex, or NIP-05) -i, --id - fetch by ID (note1, nevent1, naddr1, hex) -l, --limit - max events -e - events referencing this event ID (#e tag) --p - events tagging this pubkey (#p tag) +-p - events that MENTION this pubkey (#p tag) -t - hashtag filter (#t tag) -d - d-tag filter ---tag - generic tag filter (e.g. --tag k 1) +--tag - generic tag filter --since