feat(assistant): create_reminder tool + /remind prefix in PWA chat#14
Merged
Conversation
The reminders skill landed last cycle (notes/reminders/*.md scanned by SuNaPaNa Python every 30 min). The /remind slash command lives in the Claude Code workspace, so typing it into the PWA chat fell through to the GitHub-Models LLM, which improvised "I don't have a reminder tool" and offered Outlook/Cortana workarounds. Two complementary fixes: 1. New `create_reminder` tool exposed to the GitHub Models call. The model now picks it up for any "remind me when X" / "watch for X" intent, fills in the slug/trigger/notify_message, and writes the markdown file under ASSISTANT_WORKSPACE_PATH/notes/reminders/. The scanner picks it up on its next tick. Mode defaults to oneshot. 2. Server-side prefix shortcut in /api/assistant/chat: a literal "/remind <text>" message bypasses the LLM round-trip entirely and calls toolCreateReminder directly. Cheap, deterministic, mirrors the Claude Code slash command UX. Smoke-tested both paths end-to-end against the local server. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
create_remindertool surfaced to the PWA assistant — handles natural-language asks like "remind me when Ride1Up Portola goes on sale". Writes a frontmatter markdown file undernotes/reminders/that the SuNaPaNa Python scanner picks up./remind <text>prefix in/api/assistant/chatshort-circuits the LLM and writes the reminder directly. Mirrors the Claude Code slash command./remind ...in the PWA chat fell through to the model and got back "I don't have a reminder tool" + Outlook/Cortana workarounds.Test plan
pnpm --filter @mysuperapp/web build→ cleanpnpm turbo run test --filter=@mysuperapp/web→ 36/36curl /api/assistant/chatwith/remind ...→ file lands innotes/reminders/🤖 Generated with Claude Code