Skip to content

Inbox search: tell agents that double quotes make an exact phrase - #4123

Merged
backnotprop merged 1 commit into
mainfrom
docs/inbox-search-quotes-for-agents
Nov 27, 2026
Merged

backnotprop merged 1 commit into
mainfrom
docs/inbox-search-quotes-for-agents

Conversation

@backnotprop

Copy link
Copy Markdown
Owner

Exact search with quotes merged in #4117. Agents search the Inbox too, but the words they read about search did not mention quotes, so they kept running broad searches. This adds one sentence where agents read about search:

Words in double quotes are an exact phrase.

Where

  • packages/server/inbox-mcp-search.ts: the search tool description (what a running Inbox serves on /mcp).
  • apps/hook/hooks/mod/inbox-default-tools.ts: the Claude Code mod's bundled copy of that list, edited by hand to match byte for byte. scripts/sync-mod-inbox-tools.ts would produce the same edit, but it starts an Inbox. inbox-default-tools.test.ts checks the two are equal, in CI.
  • apps/marketing/src/content/docs/reference/inbox.md: the Search paragraph. Merging this redeploys the website. That is expected.

The sentence goes after the whole existing sentence ("Every word must match (the last may be the start of a word), questions' prompts, choices and answers included."), so that sentence still reads correctly.

Not changed

Cost: +44 characters on the search action's description. The plannotator_inbox description stays under Claude Code's 2,048 limit (inbox-tool-budget.test.ts passes).

@backnotprop backnotprop added the ci:e2e Run the full browser suite (Inbox window e2e) on this PR label Nov 27, 2026
@backnotprop
backnotprop marked this pull request as ready for review November 27, 2026 04:52
@backnotprop
backnotprop merged commit 995bdd5 into main Nov 27, 2026
65 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:e2e Run the full browser suite (Inbox window e2e) on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant