Skip to content

Studio: keep the MCP tool list steady between messages - #16488

Merged
danielhanchen merged 6 commits into
unslothai:mainfrom
NilayYadav:mcp-tool-listing-re-ranked
Nov 4, 2026
Merged

danielhanchen merged 6 commits into
unslothai:mainfrom
NilayYadav:mcp-tool-listing-re-ranked

Conversation

@NilayYadav

Copy link
Copy Markdown
Collaborator

With enough MCP tools connected that they no longer fit in the model's context, Studio lists the search tool plus a few tools picked for the newest message. Each new message could change that list at the top of the prompt, so llama-server read most of the conversation again.

A chat now keeps its listed tools until a message's best match is not among them. Only then does the list change, so a later message can still bring in the tool it needs. Chats that move to a different server still pay for one full read on that message.

In a 16k chat with Hugging Face, Context7 and Unsloth Docs connected, on the same 5 messages, three follow-ups cached 88 to 99 percent of the prompt, against 0 to 42 percent before. The message that changed topic matched the same 1,748 tokens on both sides. This is one chat per side, and the replies differed, so the times are not directly comparable.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T08:00:22.791465Z 8f87d58 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@NilayYadav NilayYadav self-assigned this Nov 3, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 77501380f6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 986fbb73a2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Nov 3, 2026
@danielhanchen danielhanchen self-assigned this Nov 4, 2026
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 8f87d5810d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants