Skip to content

feat(server): tell agents about the Threadlines browser panel - #204

Merged
badcuban merged 2 commits into
mainfrom
feat/browser-agent-discovery
Sep 3, 2026
Merged

feat(server): tell agents about the Threadlines browser panel#204
badcuban merged 2 commits into
mainfrom
feat/browser-agent-discovery

Conversation

@badcuban

@badcuban badcuban commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Claude never learned the browser panel existed. The SDK defers MCP tool descriptions behind tool search, so Claude saw eighteen tool names and none of their text, and nothing in its system prompt mentioned Threadlines or the panel. Codex had a note, but it only said what "our browser" meant; it never said to prefer the panel. Agents defaulted to Chrome DevTools or Playwright unless told otherwise.

This loads the browser MCP server's tools into Claude's prompt (alwaysLoad), appends a browser note to Claude's system prompt, and rewrites the note both providers share so it says when to use the panel and why, naming each provider's rival tooling. Tool descriptions and the no-host error now use the same words: "browser panel", and "no desktop window is showing this thread" instead of asking the user to open a panel that opens itself.

Cost: about 3k tokens of tool schemas plus a 400-token note per turn, all in the cached prefix.

Claude never learned the browser panel existed. The SDK defers MCP tool
descriptions behind tool search, so Claude saw eighteen tool names and
none of their text, and nothing in its system prompt mentioned
Threadlines or the panel. Codex had a note, but it only said what "our
browser" meant; it never said to prefer the panel. Agents defaulted to
Chrome DevTools or Playwright unless told otherwise.

Load the browser MCP server's tools into Claude's prompt (alwaysLoad),
append a browser note to Claude's system prompt, and rewrite the note
both providers share so it says when to use the panel and why, naming
each provider's rival tooling. Tool descriptions and the no-host error
now use the same words: "browser panel", and "no desktop window is
showing this thread" instead of asking the user to open a panel that
opens itself.
@vercel

vercel Bot commented Sep 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
threadlines Ready Ready Preview Sep 3, 2026 5:53am UTC

Request Review

@github-actions github-actions Bot added size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Sep 1, 2026
@badcuban
badcuban merged commit b32bec3 into main Sep 3, 2026
16 checks passed
@badcuban
badcuban deleted the feat/browser-agent-discovery branch September 3, 2026 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant