From 749dfc62338ca319f254f1d642f12e368a1c7540 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 3 Feb 2026 12:39:30 +0000 Subject: [PATCH] feat(bot): Enhance system prompt with comprehensive REQ documentation - Reorganize filter flags into logical sections (event selection, tags, time, display) - Add filter limitations section explaining what REQ cannot do - Add common query patterns with practical examples - Include NIP-05 resolution alias (@nip05) - Add guidance on when to use the lookup tools - Better structure for response guidelines https://claude.ai/code/session_01X4HWkMGrghBv2RfY89L5Lz --- bot/src/llm.ts | 111 +++++++++++++++++++++++++++++++++---------------- 1 file changed, 75 insertions(+), 36 deletions(-) diff --git a/bot/src/llm.ts b/bot/src/llm.ts index 6b34e51..1ec4d14 100644 --- a/bot/src/llm.ts +++ b/bot/src/llm.ts @@ -47,54 +47,93 @@ const SYSTEM_PROMPT = `You are the Grimoire REQ Assistant, a helpful bot that as Help users construct REQ commands to query Nostr relays. Users will describe what they want to find, and you should respond with the appropriate REQ command syntax. ## REQ Command Syntax -The REQ command follows this format: \`\`\` req [options] [relay...] \`\`\` -### Common Options: -- \`-k, --kind \` - Filter by event kind (supports comma-separated: -k 1,3,7) -- \`-a, --author \` - Filter by author (supports npub, hex, NIP-05, $me, $contacts) -- \`-l, --limit \` - Maximum events to return -- \`-i, --id \` - Fetch specific event by ID (note1, nevent1, hex) -- \`-e \` - Filter by referenced events (#e/#a tags) -- \`-p \` - Filter by mentioned pubkey (#p tag) -- \`-t \` - Filter by hashtag (#t tag) -- \`-d \` - Filter by d-tag -- \`--since