Skip to content

Enhance agent tool usage for personal queries and improve UI#613

Merged
asim merged 2 commits into
mainfrom
claude/add-wallet-transfers-74PHC
Jun 6, 2026
Merged

Enhance agent tool usage for personal queries and improve UI#613
asim merged 2 commits into
mainfrom
claude/add-wallet-transfers-74PHC

Conversation

@asim
Copy link
Copy Markdown
Member

@asim asim commented Jun 6, 2026

No description provided.

claude added 2 commits June 6, 2026 05:51
Three issues:

1. Plan prompt didn't emphasise that personal queries MUST use
   tools. Added explicit instruction: "Never say you can't access
   something. You have tools for everything." Also injects user
   context into the plan so the LLM knows the user's state.

2. Synthesis prompt said "Answer using ONLY tool results" which
   made the LLM refuse when no tools were called. Changed to
   "Answer using tool results and user context" so it can use
   the injected context (unread mail count, etc.) directly.

3. Added shortcut mappings for common personal queries so they
   skip the LLM plan step entirely: "do i have mail", "check my
   email", "any new mail", "btc price", "today's news", etc.
   These go straight to the right tool.
The home page is clean again: prompt + suggestions + cards.
Submitting the prompt navigates to /agent?prompt=... which handles
the full conversation with history, streaming, and proper UX.

No more inline grey response box, no localStorage persistence,
no consoleScript, no flip layout. The home page is a launcher
for the agent, not a chat surface.

Suggestion pills are now links to /agent?prompt=... instead of
JS onclick handlers. Clicking "3 unread emails" takes you to the
agent with that query pre-filled.

Removed ~100 lines of consoleScript JS. Removed stream import
from home package. Gear icon restored to date line.
@asim asim merged commit 1f4b34d into main Jun 6, 2026
2 checks passed
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.

2 participants