Public: anyone can read this; the crew can change it.

Talk's tool list may be 18,500 bytes: room for the origins tools the person asked Talk to have #16399

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

fix/talk-list-ceiling → main 0 commits

  • Merged. fix/talk-list-ceiling was merged into main as a8f3075.

Review

Sign in to review this change.
1 file changed +8 −2
test/mcp-talk-tools.test.ts +8 −2
@@ -24,8 +24,14 @@ import * as tools from "../src/http/mcp/tools/index.ts";
2424 import { serve, type Servers } from "../src/http/server.ts";
2525 import { promote } from "./helpers/members.ts";
2626
27 /** The Talk list's ceiling in bytes, one page; about 4 bytes a token. */
28 const TALK_CEILING = 17_500;
27 /**
28 * The Talk list's ceiling in bytes, one page; about 4 bytes a token. Raised from 17,500 to 18,500
29 * in a pull of its own (#10262): main measured 17,308 bytes with its new tools after #16373 had
30 * trimmed 1,501, and the origins work the person asked Talk to have adds `bring` (~210),
31 * `propose_upstream` (~300) and the origins tidy (~30). 1,000 bytes is about 250 tokens a turn,
32 * still well inside one page of TOOLS_PAGE_BYTES (20,000).
33 */
34 const TALK_CEILING = 18_500;
2935 /** What a builder does when the Talk list passes its ceiling. */
3036 const OVER = (bytes: number) =>
3137 `the Talk list is ${String(bytes)} bytes, over ${String(TALK_CEILING)}: keep it well inside one tools/list page (TOOLS_PAGE_BYTES, 20,000), so the agent never depends on following nextCursor. Shorten the longest descriptions of the listed tools, or take the least used tool out of TALK_TOOLS (src/http/mcp/catalog.ts) and say why in its comment; do not raise this ceiling in a feature pull.`;

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs