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
Check · Review · Land · Live done — Landed and live in production.
fix/talk-list-ceiling → main 0 commits
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"; | ||
| 24 | 24 | import { serve, type Servers } from "../src/http/server.ts"; |
| 25 | 25 | import { promote } from "./helpers/members.ts"; |
| 26 | 26 | |
| 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; | |
| 29 | 35 | /** What a builder does when the Talk list passes its ceiling. */ |
| 30 | 36 | const OVER = (bytes: number) => |
| 31 | 37 | `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.`; |
new above
offline