René's URL Explorer Experiment


Title: improvement(search): return a longer live read window when an MCP client asks for more chunks by waleedlatif1 · Pull Request #9823 · simstudioai/sim · GitHub

Open Graph Title: improvement(search): return a longer live read window when an MCP client asks for more chunks by waleedlatif1 · Pull Request #9823 · simstudioai/sim

X Title: improvement(search): return a longer live read window when an MCP client asks for more chunks by waleedlatif1 · Pull Request #9823 · simstudioai/sim

Description: Summary A live document is one chunk, so read_document returned the same 8,000-character window whatever limit a client asked for, and clients that asked for more chunks then spent extra calls continuing with startOffset For Search MCP reads, a limit above the default (3) now returns a proportionally longer window: limit: 8 returns up to 21,333 characters, and next.startOffset continues from where it ended The documents of one call share a 40,000-character budget, measured on the window as the result JSON-encodes it (escaped quotes, backslashes and line breaks count), and each still gets at least the standard 8,000: limit: 8 reads 21,333 for one document, 20,000 each for two, 13,333 for three, 10,000 for four, and 8,000 (today's window) for five or more. A call's result then stays under the 50,000-character size at which MCP clients such as Claude Code save a tool result to a file instead of showing it, and no call returns more per document than it does today once five or more documents are read At or below the default, and for every other caller (the Assistant's reads are unchanged), the window stays 8,000 characters No tool schema or description changes, so tools/list is byte-identical Type of Change Improvement Testing MCP client bench (Sonnet 5.5, 83 cases, 4 attempts per case per side, paired against this branch's base): continuation reads 25 → 12 (−52%), read calls −10%, no case flipped from mostly right to never right; correct −1.2pp [−5.4, +2.7], completeness −0.9pp, sourceRecall −0.7pp, citedGold 0.0 (every CI spans 0, and all are inside the spread between two runs of the same code: correct −3.6pp); input tokens +2.5k [−5.7, +15.2], also inside the same-code spread (+3.0k to +3.3k); test split flat The bench ran the per-document window before the call budget was added; the budget only changes reads of two or more documents at a raised limit (4% of bench reads), moving them toward the base, and the final commit is being re-benched before merge New tests in lib/sim-search/live/application.test.ts (a scaling caller above the default limit gets the longer window and continues from its end; one call's documents share the budget at 2, 3 and 4 documents; at or below the default, at five or ten documents, and for a caller that does not scale, the window stays 8,000; a document made entirely of quotes stays within its encoded share and never below 8,000) and lib/knowledge/mcp/server.protocol.test.ts (the MCP adapter opts in with the call's document count, for a single and a batch read); each was seen failing without the change, and each guard (budget, encoded size, 8,000 floor, document count) was reverted and seen failing bunx vitest run lib/sim-search/live lib/knowledge/mcp (515 passed), biome on changed files; type-check and audits in CI Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing (new tests pass the test-audit authoring gate) No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA) 🤖 Generated with Claude Code

Open Graph Description: Summary A live document is one chunk, so read_document returned the same 8,000-character window whatever limit a client asked for, and clients that asked for more chunks then spent extra calls con...

X Description: Summary A live document is one chunk, so read_document returned the same 8,000-character window whatever limit a client asked for, and clients that asked for more chunks then spent extra calls con...

Opengraph URL: https://github.com/simstudioai/sim/pull/9823

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:4b690f3e-16ce-eb5c-c7c1-6ef946f16cad
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEDDE:18732E:FBC3BC:158B291:6AFB6405
html-safe-nonce294d70df3207bb0d6e90b8bfcc937f644c4e73e4fcfb0cf5d460a3978e8ad37e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRERFOjE4NzMyRTpGQkMzQkM6MTU4QjI5MTo2QUZCNjQwNSIsInZpc2l0b3JfaWQiOiI1MTg4Njc0NzQ0MjY1NDM0MTE3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac9829ccae8f75e12f28f6e6dd260f70f61561d2f995c3bc27e6e3fd7710ebb73f
hovercard-subject-tagpull_request:5232918780
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/9823/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary A live document is one chunk, so read_document returned the same 8,000-character window whatever limit a client asked for, and clients that asked for more chunks then spent extra calls con...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release59ef97164c52cf59bd10558ddec9c4f482763988
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/9823/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F9823%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F9823%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/9823/files
Reloadhttps://github.com/simstudioai/sim/pull/9823/files
Reloadhttps://github.com/simstudioai/sim/pull/9823/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
improvement/search-mcp-read-windowhttps://github.com/simstudioai/sim/tree/improvement/search-mcp-read-window
Conversation 23 https://github.com/simstudioai/sim/pull/9823
Commits 4 https://github.com/simstudioai/sim/pull/9823/commits
Checks 81 https://github.com/simstudioai/sim/pull/9823/checks
Files changed https://github.com/simstudioai/sim/pull/9823/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9823/files
improvement(search): return a longer live read window when an MCP client asks for more chunks https://github.com/simstudioai/sim/pull/9823/files#top
Show all changes 4 commits https://github.com/simstudioai/sim/pull/9823/files
23c1e7a improvement(search): return a longer live read window when an MCP cli… waleedlatif1 Nov 9, 2026 https://github.com/simstudioai/sim/pull/9823/commits/23c1e7a430a593fa355459d745f1de977ebcd46d
6615f74 improvement(search): share one character budget across the documents … waleedlatif1 Nov 9, 2026 https://github.com/simstudioai/sim/pull/9823/commits/6615f74337df1c85790dbdcd979a6b76792331d9
1d17e0a docs(search): say where the scaled read budget stops bounding a call'… waleedlatif1 Nov 10, 2026 https://github.com/simstudioai/sim/pull/9823/commits/1d17e0a473e254da2518a3ed56307f14779916c9
00432f3 improvement(search): size a scaled read window by its JSON-encoded le… waleedlatif1 Nov 10, 2026 https://github.com/simstudioai/sim/pull/9823/commits/00432f35331ee8e2ea724b74e9017e7fc17ddaa2
Clear filters https://github.com/simstudioai/sim/pull/9823/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9823/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9823/files
server.protocol.test.ts https://github.com/simstudioai/sim/pull/9823/files#diff-bc6d72bdf6b31101a021b6d0741557bd959480798afd590a26368b2e97a419c3
server.ts https://github.com/simstudioai/sim/pull/9823/files#diff-d7f9fc7f4ff0ad3e5e9044d67adf163cb9b3d861c6694ab3e73859ec79948955
application.test.ts https://github.com/simstudioai/sim/pull/9823/files#diff-af2d21accc00823b671d6bf1cb0dda2f0f273ebdb911e7ec9cdd52ea034a5c20
application.ts https://github.com/simstudioai/sim/pull/9823/files#diff-151e464c65b5447415809287c8c227355b3d21309f26c9399b2e49c0cdd59608
apps/sim/lib/knowledge/mcp/server.protocol.test.tshttps://github.com/simstudioai/sim/pull/9823/files#diff-bc6d72bdf6b31101a021b6d0741557bd959480798afd590a26368b2e97a419c3
View file https://github.com/simstudioai/sim/blob/00432f35331ee8e2ea724b74e9017e7fc17ddaa2/apps/sim/lib/knowledge/mcp/server.protocol.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9823/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9823/files#diff-bc6d72bdf6b31101a021b6d0741557bd959480798afd590a26368b2e97a419c3
https://github.com/simstudioai/sim/pull/9823/files#diff-bc6d72bdf6b31101a021b6d0741557bd959480798afd590a26368b2e97a419c3
apps/sim/lib/knowledge/mcp/server.tshttps://github.com/simstudioai/sim/pull/9823/files#diff-d7f9fc7f4ff0ad3e5e9044d67adf163cb9b3d861c6694ab3e73859ec79948955
View file https://github.com/simstudioai/sim/blob/00432f35331ee8e2ea724b74e9017e7fc17ddaa2/apps/sim/lib/knowledge/mcp/server.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9823/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9823/files#diff-d7f9fc7f4ff0ad3e5e9044d67adf163cb9b3d861c6694ab3e73859ec79948955
https://github.com/simstudioai/sim/pull/9823/files#diff-d7f9fc7f4ff0ad3e5e9044d67adf163cb9b3d861c6694ab3e73859ec79948955
apps/sim/lib/sim-search/live/application.test.tshttps://github.com/simstudioai/sim/pull/9823/files#diff-af2d21accc00823b671d6bf1cb0dda2f0f273ebdb911e7ec9cdd52ea034a5c20
View file https://github.com/simstudioai/sim/blob/00432f35331ee8e2ea724b74e9017e7fc17ddaa2/apps/sim/lib/sim-search/live/application.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9823/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9823/files#diff-af2d21accc00823b671d6bf1cb0dda2f0f273ebdb911e7ec9cdd52ea034a5c20
https://github.com/simstudioai/sim/pull/9823/files#diff-af2d21accc00823b671d6bf1cb0dda2f0f273ebdb911e7ec9cdd52ea034a5c20
apps/sim/lib/sim-search/live/application.tshttps://github.com/simstudioai/sim/pull/9823/files#diff-151e464c65b5447415809287c8c227355b3d21309f26c9399b2e49c0cdd59608
View file https://github.com/simstudioai/sim/blob/00432f35331ee8e2ea724b74e9017e7fc17ddaa2/apps/sim/lib/sim-search/live/application.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9823/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9823/files#diff-151e464c65b5447415809287c8c227355b3d21309f26c9399b2e49c0cdd59608
https://github.com/simstudioai/sim/pull/9823/files#diff-151e464c65b5447415809287c8c227355b3d21309f26c9399b2e49c0cdd59608
https://github.com/simstudioai/sim/pull/9823/files#diff-151e464c65b5447415809287c8c227355b3d21309f26c9399b2e49c0cdd59608
https://github.com/simstudioai/sim/pull/9823/files#diff-151e464c65b5447415809287c8c227355b3d21309f26c9399b2e49c0cdd59608
https://github.com/simstudioai/sim/pull/9823/files#diff-151e464c65b5447415809287c8c227355b3d21309f26c9399b2e49c0cdd59608
https://github.com/simstudioai/sim/pull/9823/files#diff-151e464c65b5447415809287c8c227355b3d21309f26c9399b2e49c0cdd59608
Please reload this pagehttps://github.com/simstudioai/sim/pull/9823/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.