Skip to content

feat(assistant): create_reminder tool + /remind prefix in PWA chat#14

Merged
sbeashwar merged 1 commit into
mainfrom
feat/pwa-reminders
May 3, 2026
Merged

feat(assistant): create_reminder tool + /remind prefix in PWA chat#14
sbeashwar merged 1 commit into
mainfrom
feat/pwa-reminders

Conversation

@sbeashwar

Copy link
Copy Markdown
Owner

Summary

  • New create_reminder tool surfaced to the PWA assistant — handles natural-language asks like "remind me when Ride1Up Portola goes on sale". Writes a frontmatter markdown file under notes/reminders/ that the SuNaPaNa Python scanner picks up.
  • Server-side /remind <text> prefix in /api/assistant/chat short-circuits the LLM and writes the reminder directly. Mirrors the Claude Code slash command.
  • Fixes the regression where /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 → clean
  • pnpm turbo run test --filter=@mysuperapp/web → 36/36
  • curl /api/assistant/chat with /remind ... → file lands in notes/reminders/
  • After merge: try natural-language "remind me when X" in the PWA chat; confirm tool is invoked

🤖 Generated with Claude Code

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>
@sbeashwar sbeashwar merged commit e828a57 into main May 3, 2026
1 check passed
@sbeashwar sbeashwar deleted the feat/pwa-reminders branch May 3, 2026 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant