Tea MCP: windowed file reads, 40 KB default diffs #28

Merged
teahubxyz merged 1 commits from claude/tea-chat-diet into main 2026-10-27 16:13:45 +00:00
Owner

Chat clients (Open WebUI, Jan, LibreChat…) resend every tool result on every turn, so one whole-file read early in a tool loop gets paid for again each round — that's how one Grok message burned ~$5.

  • tea_file_get returns a window of lines (start, lines, default 400) plus total_lines / more, so models read further only when they need to.
  • tea_pull_get diffs default to 40 KB (diff_kb up to 200).
  • Tests: 40 OK.

Deploy with boring_teahub_deploy after merge (never through Tea MCP itself).

Chat clients (Open WebUI, Jan, LibreChat…) resend every tool result on every turn, so one whole-file read early in a tool loop gets paid for again each round — that's how one Grok message burned ~$5. - `tea_file_get` returns a window of lines (`start`, `lines`, default 400) plus `total_lines` / `more`, so models read further only when they need to. - `tea_pull_get` diffs default to 40 KB (`diff_kb` up to 200). - Tests: 40 OK. Deploy with `boring_teahub_deploy` after merge (never through Tea MCP itself).
teahubxyz added 1 commit 2026-10-27 16:10:49 +00:00
teahubxyz merged commit ec2eb029ef into main 2026-10-27 16:13:45 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: teahubxyz/teahub#28