Repository navigation
core: limit search_tool_bm25 to Apps and clarify discovery guidance - #11669
Merged
Merged
Conversation
apanasenko-oai
marked this pull request as ready for review
February 13, 2026 01:14
apanasenko-oai
force-pushed
the
codex/apps-search-tool-apps-only-guidance
branch
from
February 13, 2026 01:16
a47b28f to
1b176ff
Compare
pakrym-oai
approved these changes
Feb 13, 2026
| - When the user asks to search/lookup/query any external system (logs, tickets, metrics, Slack, etc.), you must call `search_tool_bm25` first before running any shell command or repo search. | ||
| - Only use shell commands if (a) MCP tools for that system are not available or not sufficient, and (b) the user explicitly wants a local file/CLI search. | ||
| - If unsure which system/tool applies, ask a clarifying question after checking MCP tools. | ||
| - Use `search_tool_bm25` when the user asks to work with an Apps-backed external system (for example Slack, Google Drive, Jira, Notion) and the exact tool name is not already known. |
Contributor
There was a problem hiding this comment.
This can still be vague to the model, should we explicitly add the name and description of the installed and enabled apps here?
Contributor
Author
There was a problem hiding this comment.
make sense, let's inject enabled app names.
apanasenko-oai
force-pushed
the
codex/apps-search-tool-apps-only-guidance
branch
3 times, most recently
from
February 13, 2026 05:49
97cfeb7 to
cf2c644
Compare
apanasenko-oai
force-pushed
the
codex/apps-search-tool-apps-only-guidance
branch
from
February 13, 2026 17:20
cf2c644 to
1099a5e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
search_tool_bm25indexing tocodex_appstools only, so non-Apps MCP servers are no longer discoverable through this search path.search_tool_bm25tool description (via template include) instead of injecting it as a separate developer message.search_tool_bm25for Apps-backed systems (for example Slack, Google Drive, Jira, Notion) and when to call tools directly.corehelper code (filter_codex_apps_mcp_toolsandcodex_apps_connector_id) that is no longer used after the tool-selection refactor.coresearch-tool tests to assert codex-apps-only behavior and to validate guidance from the tool description.Validation
just fmtcargo test -p codex-core search_toolcargo test -p codex-corewas attempted, but the run repeatedly stalled ontools::js_repl::tests::js_repl_can_attach_image_via_view_image_tool.Tickets