Repository navigation
Conversation
Adds an AI fallback to the admin command palette (Cmd/Ctrl+K). When the palette finds nothing for a search, the ai/command-palette-ai-search ability asks the connected model which of the registered commands lead to the right screen, and the palette shows them as normal results. The model can only choose from commands already in the palette, and each result runs that command's own callback. The ability requires the edit_posts capability. Adds an AI fallback to the admin command palette: when a search reads like a question, the ai/admin-command-search ability picks the registered commands that lead to the right screen.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1250 +/- ##
=============================================
+ Coverage 85.22% 85.35% +0.13%
- Complexity 4709 4743 +34
=============================================
Files 182 185 +3
Lines 17486 17649 +163
=============================================
+ Hits 14902 15064 +162
- Misses 2584 2585 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
1 task done
This was referenced Nov 7, 2026
Member
|
Note that we're working to pull this functionality into the AI Workspace approach, see #1316. |
whyisjake
added a commit
that referenced
this pull request
Nov 13, 2026
#1315) ## What? Related: #1287 The AI Workspace assistant can now answer questions about the site itself, and point people to the right admin screen: - **"What PHP version am I running?"** It reads the site's name, tagline, language, timezone, theme and, for admins, the WordPress and PHP versions. - **"Where do I hide my site from Google?"** It answers with a link to Settings → Reading. This is the second stacked PR for #1287, on top of #1314. In a live run of #1314, the assistant proposed a new tagline and site title without being able to read the current ones ("I can't see your current site title"). This PR fixes that. ## Why? #1287's first version needs the agent to answer site questions and navigation questions directly. Before this, the workspace could read posts but nothing about the site. It also had no way to know which admin screen handles which job. ## How? **`ai/get-site-info`** returns these fields, and no others: - the site name, tagline and home URL; - the language and timezone; - the date and time formats; - the active theme, and whether it's a block theme. The WordPress and PHP versions are included only for users who can see Site Health (`view_site_health_checks`), which on multisite means super admins, as in core. It never returns the admin email, database details or the plugin list. Core's own `core/get-site-info` returns the admin email, so it joins the workspace's `NEVER_ADMITTED` list next to the environment and settings readers. **`ai/find-admin-screens`** matches a request against a curated map of 33 core admin screens on the server, using titles and keywords. There's no model call inside it. It returns up to five screens, best match first, and only screens the current user can open, as `admin_url()` links on the site's own host. - Sites and plugins can add or remove entries with the new `wpai_admin_screens` filter. A filtered entry whose path has a scheme, a leading slash or `..` is dropped. - The Site Editor is offered only on block themes, and the Customizer only on classic ones. **Both are plain read abilities.** Any logged-in user can call them, they're annotated read-only and not open-world, and they're listed over MCP like the content reads. Both join the workspace's curated tool list, because policy admission is off by default. #1250's palette ability, which makes a nested model call over the palette's own commands, stays separate. It comes with the Command Palette PR. Site-info field choices are ported from #1214's `Read_Site`, credited to @Vrishabhsk with Co-authored-by. ### Use of AI Tools AI assistance: Yes. Tool(s): Claude Code (Claude Opus 5.5). Used for: planning, implementing the changes and tests, and code review. I've reviewed the changes, understand them and can explain them under review. They have all been tested locally. ## Testing Instructions 1. Enable AI Workspace and connect a provider. 2. Ask "What PHP version am I running?". The assistant answers with your PHP version. 3. Ask "Where do I hide my site from Google?". The reply links Settings → Reading, and following the link opens it. 4. As an editor, call `ai/get-site-info` through the Abilities Explorer or REST. The response has no version fields. **Tests run** (all passing): - **PHPUnit, full suite:** 3325 tests on WordPress latest. - **`Get_Site_InfoTest`:** `test_administrator_gets_every_field_including_versions`, `test_editor_gets_the_fields_without_versions`, `test_manage_options_without_site_health_access_gets_no_versions`, `test_no_response_carries_admin_email_siteurl_database_or_plugins`, `test_executes_without_any_input`, `test_name_and_tagline_are_decoded`, `test_timezone_falls_back_to_the_utc_offset`, `test_logged_out_visitor_is_refused`, `test_output_schema_marks_the_versions_optional`, `test_registration_has_a_category_and_read_only_annotations`, `test_declared_to_the_model_for_administrator_and_editor_with_admission_off` and `test_listed_for_mcp`. - **`Find_Admin_ScreensTest`:** - Queries: `test_hiding_the_site_from_google_finds_reading_settings_first`, `test_stopping_spam_comments_finds_discussion_settings_first`, `test_changing_the_timezone_finds_general_settings_first`, `test_singular_and_plural_settings_match_alike`, `test_returns_at_most_five_screens` and `test_stopword_only_query_returns_an_empty_list`. - Access: `test_editor_asking_for_plugins_gets_no_plugins_or_settings_screen`, `test_filter_added_screen_appears_only_for_users_with_its_capability`, `test_filter_can_remove_a_core_screen` and `test_every_url_is_on_the_admin_host`. - Themes and matching: `test_block_theme_offers_the_site_editor_not_the_customizer`, `test_classic_theme_offers_the_customizer_not_the_site_editor` and `test_stem_is_idempotent_for_every_word_in_the_map`. - Registration: `test_logged_out_visitor_is_refused`, `test_registration_has_a_category_and_read_only_annotations`, `test_declared_to_the_model_for_administrator_and_editor_with_admission_off` and `test_listed_for_mcp`. - **`Tool_PolicyTest`:** `test_core_get_site_info_is_withheld_with_perfect_annotations`. It failed before `core/get-site-info` was added to `NEVER_ADMITTED`. - **e2e (Chromium):** all `tests/e2e/specs/experiments/ai-workspace*` specs, 126 passed. That includes the new `ai-workspace-navigate.spec.ts`: asking where to change the timezone links Settings → General, and the link opens it. - **Test-first:** tests written before their change failed before it. - **Other checks:** PHPStan finds no errors, phpcs is clean on the changed plugin PHP, and the build passes. - **Not run yet:** a live check against a real provider. **Code review:** six reviewers ran: correctness, security, adversarial, testing, maintainability and agent-native. The orchestrator then reproduced each finding on a test site, instead of running the skill's separate validator. Four reviewers found nothing. The confirmed findings are fixed in 21cf902: - a call with no input failed; - the name and tagline came back HTML-escaped; - the versions were visible to sub-site admins on multisite; - the screen matcher missed singular words; - the theme branch had no test. ## Known limits - An entry a plugin adds through `wpai_admin_screens` is trusted to name the capability its screen needs. A weaker capability gives users a link they can't open. It never gives a link off the site's host. - Keywords are English only. A query in another language matches only the translated screen titles. - The navigation e2e test's link comes from the mocked model reply, so it proves the tool round trip and the link working, while the ranking itself is covered by `Find_Admin_ScreensTest`. ## Screenshots **Asking where to change the timezone links Settings → General**  ## Changelog Entry > Added - AI Workspace can answer questions about the site (name, tagline, theme, and WordPress and PHP versions for admins) and link to the admin screen for a request. **Post-deploy monitoring:** no additional operational monitoring is required. This is an experiment behind the AI Workspace toggle, off by default, and it adds read-only abilities. --- [](https://github.com/EveryInc/compound-engineering-plugin) 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- wp-playground-preview:start --> <a href="https://playground.wordpress.net?blueprint-url=data:application/json,%7B%22preferredVersions%22%3A%7B%22wp%22%3A%22latest%22%7D%2C%22login%22%3Atrue%2C%22landingPage%22%3A%22%2Fwp-admin%2Fadmin.php%3Fpage%3Dai-wp-admin%22%2C%22steps%22%3A%5B%7B%22step%22%3A%22installPlugin%22%2C%22pluginData%22%3A%7B%22resource%22%3A%22url%22%2C%22url%22%3A%22https%3A%2F%2Fgithub.com%2FWordPress%2Fai%2Freleases%2Fdownload%2Fci-artifacts%2Fpr-1315-2113f328ff63bca3163299767db00d0699313222.zip%22%7D%7D%5D%7D" target="_blank" rel="noopener noreferrer"> <img src="https://raw.githubusercontent.com/adamziel/playground-preview/refs/heads/trunk/assets/playground-preview-button.svg" alt="Open WordPress Playground Preview" width="220" height="57" /> </a> <!-- wp-playground-preview:end --> --------- Co-authored-by: Vrishabhsk <vrishabhsk@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
whyisjake
added a commit
that referenced
this pull request
Nov 13, 2026
## What? Related: #1287, #1250 The Command Palette joins the AI Workspace: - **AI suggestions when a search finds nothing.** Type "hide my site from google" into the palette (Cmd/Ctrl+K). If the palette has no match of its own, it asks the model which of its commands fit and shows up to three, such as Settings → Reading. - **"Ask AI" for bigger questions.** For people who can use the AI Workspace, the palette also offers "Ask AI: <your search>". Choosing it opens the AI Workspace with that text in the composer, ready to send. This is the third stacked PR for #1287, on top of #1315 and #1314. ## Why? #1287 asks for one agent surface, with the palette's "Ask AI" (#1250) folded in rather than shipped as a separate experiment. Before this, a plain-language palette search with no match just showed "No results found", and there was no route from the palette into a conversation. ## How? **AI suggestions** port #1250's ability and loader, credited to @JDeepD with Co-authored-by. - When the palette has settled with no results, its search is at least 3 characters, and the person has stopped typing for 450 ms, the loader sends the search and the palette's own command list (names, labels and keywords) to `ai/command-palette-ai-search`. The model picks up to three command IDs. IDs that weren't sent are dropped, on the server and again in the browser. Failures stay silent, and the palette shows its own empty state. - "Settled" means core's own post and page search has finished too. The loader waits for the palette's empty state, which core shows only once its search loaders are done, so an AI request never races a slow post search. - The payload is cut to the ability's limits (500 commands, and caps on label and keyword length), so a large site doesn't fail validation. A search longer than the ability accepts gets no AI request, but still gets the Ask AI row. - Editors and above get suggestions (`edit_posts`); subscribers don't. - #1250's separate experiment and toggle are gone. The loader is enqueued by the AI Workspace experiment, on screens that load the Command Palette. - The ability is hidden from MCP (`meta.mcp.public = false`), and the workspace's tool policy refuses it as an agent tool. It's annotated non-destructive and idempotent, but not read-only: core's REST run route accepts only GET for read-only abilities, and the palette's command list is too long for a URL. **Ask AI** is offered only to workspace users (`manage_options`, the AI Workspace screen's capability). - It appears under the same conditions as the suggestions, after them, and it stays when the AI request fails. - Choosing it opens the AI Workspace with a `wpai-prompt` query arg. The text is seeded into the composer as plain text, cut to 500 characters, and never sent automatically. The arg is removed from the URL after load, so a reload doesn't seed it again. - A notice above the composer says the message came from a link and should be checked before sending. Anyone can send an admin a link like that. - `get_seed()` gains a prompt field. A prompt seed takes precedence over a post seed. Adds `@wordpress/commands` 1.57.0 as a dependency. ### Use of AI Tools AI assistance: Yes. Tool(s): Claude Code (Claude Opus 5.5). Used for: porting #1250, implementing the changes and tests, and code review. I've reviewed the changes, understand them and can explain them under review. They have all been tested locally. ## Testing Instructions 1. Enable AI Workspace and connect a provider. 2. Press Cmd/Ctrl+K and type "hide my site from google". After a moment, Settings → Reading appears selected, and Enter opens it. 3. Type "which of my posts are missing featured images" and choose "Ask AI: …". The AI Workspace opens with that text in the composer, unsent, with a notice above it. 4. As an editor, repeat step 2: you get suggestions but no Ask AI row. 5. Search for one of your post titles. The palette shows the post, and no AI request is made. **Tests run** (all passing): - **PHPUnit, full suite:** 3376 tests, single site and multisite, on WordPress latest. - **`Command_Palette_AI_SearchTest`** (ported from #1250, extended): including `test_ability_is_hidden_from_mcp_and_refused_as_an_agent_tool`, `test_execute_callback_drops_an_id_that_was_not_sent`, `test_execute_callback_drops_invalid_ids_and_caps_results`, `test_permission_callback_for_subscriber` and `test_choose_commands_falls_back_without_structured_output`. - **`Command_PaletteTest`:** `test_palette_search_has_no_experiment_of_its_own`, `test_loader_is_enqueued_with_the_command_palette_for_an_editor`, `test_loader_is_not_enqueued_for_a_subscriber`, `test_loader_offers_ask_ai_to_a_workspace_user`, `test_loader_does_not_offer_ask_ai_to_an_editor` and `test_loader_is_not_enqueued_when_the_experiment_is_disabled`. - **`Admin_PageTest`:** `test_prompt_seed_carries_the_query`, `test_prompt_seed_is_cut_to_the_cap`, `test_prompt_seed_is_plain_text`, `test_empty_or_whitespace_prompt_gives_no_seed`, `test_non_string_prompt_gives_no_seed`, `test_prompt_seed_takes_precedence_over_a_post_seed` and `test_post_seed_has_an_empty_prompt`. - **e2e (Chromium):** all `ai-workspace*` specs plus the palette spec, 157 passed. - `command-palette-ai-search.spec.js`: finds the right screen when the palette has no results; no suggestions when no screen fits; no AI search when the palette has results; a one or two character search makes no request; only the last search is sent and answered when the search changes; an answer naming a command the palette didn't send is dropped; waits for slow post results before searching with AI; a search longer than the ability accepts shows only Ask AI; the palette's own empty state when the request fails; an editor gets suggestions; a subscriber gets none; no AI row and no request when the experiment is disabled. - `ai-workspace-palette-handoff.spec.ts`: Ask AI opens the workspace with the query in the composer, unsent; after a reload the composer is empty and the URL has no prompt; Ask AI comes after the suggestions; an editor sees suggestions but no Ask AI row; a 2,000-character query is cut to the cap; a prompt from a link shows a notice until it's edited; opening the workspace directly shows no notice; a query with markup arrives as plain text; an empty or whitespace query shows no Ask AI row; when the AI request fails, a workspace user sees only Ask AI. - The timing tests were also run three times each, 21 of 21 passing. - **Test-first:** every new PHPUnit test, and 6 of the 8 first Ask AI e2e tests, failed before their change. - **Other checks:** PHPStan finds no errors, phpcs is clean on the changed plugin PHP, and tsc, lint-js and the build are clean. Style lint reports two errors in `ai-workspace/index.scss` that are already on the base branch. - **Not run yet:** a live check against a real provider, and the PHPUnit suite on WordPress trunk. **Code review:** six reviewers ran on this PR's own diff: correctness, security, adversarial, frontend races, testing and maintainability. Each finding was checked in the code before being fixed. Fixed in a4a84fb and a0d7830: - the AI request could fire before core's post and page search finished, showing AI rows next to real results (two reviewers found this); - "Searching with AI…" could stay on screen after an early exit or a changed search; - a cached answer could show for a search that now has real results; - the command list wasn't cut to the ability's limits, so a large site would fail validation, silently; - a composer filled in from a link had no notice; - test gaps: short searches, a changed search, an unsent command name, a slow post search. ## Known limits - Choosing an AI suggestion records it among the palette's recent commands, where it doesn't resolve, so it can take one of the five recent slots. - A cached answer can name a command that was unregistered after a context change. Selecting it runs the original callback. - Suggestions come from the palette's own command list, as in #1250, not from #1315's admin-screen map. ## Screenshots **A palette search with no match gets an AI suggestion**  **Searching with AI**  **Ask AI opens the workspace with the query in the composer, unsent**  **An editor gets suggestions but no Ask AI row**  ## Changelog Entry > Added - The Command Palette suggests admin screens with AI when a search finds nothing, and offers "Ask AI" to continue the question in the AI Workspace. **Post-deploy monitoring:** no additional operational monitoring is required. This is an experiment behind the AI Workspace toggle, off by default. --- [](https://github.com/EveryInc/compound-engineering-plugin) 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- wp-playground-preview:start --> <a href="https://playground.wordpress.net?blueprint-url=data:application/json,%7B%22preferredVersions%22%3A%7B%22wp%22%3A%22latest%22%7D%2C%22login%22%3Atrue%2C%22landingPage%22%3A%22%2Fwp-admin%2Fadmin.php%3Fpage%3Dai-wp-admin%22%2C%22steps%22%3A%5B%7B%22step%22%3A%22installPlugin%22%2C%22pluginData%22%3A%7B%22resource%22%3A%22url%22%2C%22url%22%3A%22https%3A%2F%2Fgithub.com%2FWordPress%2Fai%2Freleases%2Fdownload%2Fci-artifacts%2Fpr-1316-3b897cb8a6b06ce6e099c27b86176305ebc64e54.zip%22%7D%7D%5D%7D" target="_blank" rel="noopener noreferrer"> <img src="https://raw.githubusercontent.com/adamziel/playground-preview/refs/heads/trunk/assets/playground-preview-button.svg" alt="Open WordPress Playground Preview" width="220" height="57" /> </a> <!-- wp-playground-preview:end --> --------- Co-authored-by: Jaydeep Das <jaydeep.das@rtcamp.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
whyisjake
added a commit
that referenced
this pull request
Nov 13, 2026
## What? Related: #1287 The docs pass for the #1287 stack. AI Workspace keeps its name and is documented as the plugin's one agent. The experiment doc, `readme.txt`, `README.md`, the changelog and the settings card now describe what #1314 to #1317 added. No code paths change. This is the fifth and last stacked PR for #1287, on top of #1317, #1316, #1315 and #1314. ## Why? #1287 folds two planned experiments into AI Workspace: Site Agent (#1214) and Command Palette AI Search (#1250). A reader of the docs, readme or changelog should learn that from them. Before this, the settings card and readme still described a workspace that only creates drafts and templates. The changelog had nothing for the write, palette, audit, privacy or Wapuu changes, `README.md` had no AI Workspace entry at all, and "Site Agent" was still listed under Coming Soon. ## How? - **`docs/experiments/ai-workspace.md`** - The summary and key features cover changes to existing content, site answers and screen links, the chats panel, the Wapuu, the audit log and personal-data export. - A new "One agent" section says what Site Agent and Command Palette AI Search proposed and where each now lives. It also says that the name, menu, URL and every identifier, including the experiment ID `ai-workspace`, are unchanged. - The entry-points list names every ability the experiment registers, and `Conversation_Privacy`. - A stale limitation is removed. It said chats have no history screen, but the chats panel ships. - **`readme.txt` and `CHANGELOG.md`** - Added: changes to existing content, the palette's AI search and Ask AI, the `agent` log rows, chats in export and erase, and the Wapuu. - Developer: `wpai_agent_event`, the two new proposal filters, the MCP visibility change, `raw: true`, and the `ability` to `agent` log type change. - `CHANGELOG.md` also gains the two ability lines #1315 added only to `readme.txt`. - **`README.md`:** adds the missing AI Workspace entry. - **Both readme files:** "Site Agent" leaves Coming Soon. - **Settings card:** the AI Workspace description says it answers site questions, proposes changes to posts and the site title and tagline, and adds AI to the command palette. The name stays "AI Workspace". Nothing on #1287 has settled on another name. ### Use of AI Tools AI assistance: Yes. Tool(s): Claude Code (Claude Opus 5.5). Used for: writing the documentation and changelog entries, checking them against the code, and code review. I've reviewed the changes, understand them and can explain them under review. They have all been tested locally. ## Testing Instructions 1. Open Settings → AI. The AI Workspace card reads as in the screenshot below. 2. Read `docs/experiments/ai-workspace.md` → "One agent", and the Unreleased changelog in `readme.txt` and `CHANGELOG.md`. **Tests run** (all passing): - **PHPUnit, full suite:** 3398 tests, single site and multisite, on WordPress latest. Only the settings-card string is code, and no test asserts it. - **Other checks:** phpcs and `php -l` are clean on `AI_Workspace.php`. - **Name check:** a grep for "Site Agent" and "Wordspace" across `includes/`, `src/` and the built assets finds nothing user-visible. - **Claims checked against the code:** - the abilities `AI_Workspace::register()` registers; - `meta.mcp.public` false on the propose and ask-user abilities; - the `wpai_workspace_write_proposals_enabled` and `wpai_workspace_proposal_kinds` filters; - `raw` on `ai/read-content-bodies`; - the chats panel's rename, archive and delete actions; - the three in-page anchors the doc links to. - **Not run:** e2e. No script, style or behavior changes. **Code review:** `ce-code-review` sized this diff to a single-context review: 51 changed lines, two of them code. It found nothing and gave "Ready to merge". Its one residual is applied in 0b06540: the doc's feature bullet now says rows are written while AI Request Logging is on. ## Screenshots **The settings card**  ## Known limits - The changelog lines for #1314, #1316 and #1317 are added here rather than in those PRs, so they land only when this one merges after them. ## Changelog Entry > Changed - AI Workspace is documented as the plugin's one agent: it now includes what the Site Agent and Command Palette AI Search proposals planned, under its existing name. **Post-deploy monitoring:** no additional operational monitoring is required. Documentation and one settings-card string. --- [](https://github.com/EveryInc/compound-engineering-plugin) 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- wp-playground-preview:start --> <a href="https://playground.wordpress.net?blueprint-url=data:application/json,%7B%22preferredVersions%22%3A%7B%22wp%22%3A%22latest%22%7D%2C%22login%22%3Atrue%2C%22landingPage%22%3A%22%2Fwp-admin%2Fadmin.php%3Fpage%3Dai-wp-admin%22%2C%22steps%22%3A%5B%7B%22step%22%3A%22installPlugin%22%2C%22pluginData%22%3A%7B%22resource%22%3A%22url%22%2C%22url%22%3A%22https%3A%2F%2Fgithub.com%2FWordPress%2Fai%2Freleases%2Fdownload%2Fci-artifacts%2Fpr-1318-aa0faf515572fcec68b35f0b8a0634d387875fd1.zip%22%7D%7D%5D%7D" target="_blank" rel="noopener noreferrer"> <img src="https://raw.githubusercontent.com/adamziel/playground-preview/refs/heads/trunk/assets/playground-preview-button.svg" alt="Open WordPress Playground Preview" width="220" height="57" /> </a> <!-- wp-playground-preview:end --> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Author
|
Closing in favour of #1316 |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds an AI fallback to the admin command palette (Cmd/Ctrl+K). When the palette finds nothing for a search, the ai/command-palette-ai-search ability asks the connected model which of the registered commands lead to the right screen, and the palette shows them as normal results.
The model can only choose from commands already in the palette, and each result runs that command's own callback. The ability requires the edit_posts capability.
Adds an AI fallback to the admin command palette: when a search reads like a question, the ai/admin-command-search ability picks the registered commands that lead to the right screen.
What?
Closes #1203
Adds a Command Palette AI Search experiment (Admin Experiments). When the admin command palette (Cmd/Ctrl+K) finds nothing for a search, the new
ai/command-palette-ai-searchability asks the connected model which of the registered commands lead to the right screen, and the palette shows them as normal results.Why?
The command palette is on every admin screen since WordPress 6.9, but it only matches words from a screen's label. People describe what they want to do, for example "hide my site from google" (Settings > Reading) or "stop spam comments" (Settings > Discussion), and get "No results found."
This is the AI half of a two-part approach. Keywords for core admin screens (WordPress/gutenberg#84834, Trac #66322) handle single words such as "favicon". This experiment handles searches phrased in the person's own words. It also sends each command's keywords to the model, so keywords added by core or plugins improve the AI results too.
How?
includes/Experiments/Command_Palette_AI_Search/): registers the ability and enqueues a command loader only on screens that have the command palette, for users withedit_posts.includes/Abilities/Command_Palette_AI_Search/):name,label,keywords).c0: Settings > Reading (keywords)) and asks the model for at most 3 IDs. The JSON response schema is restricted to those IDs. Providers without structured output fall back to a plain prompt, and the JSON is extracted from the reply.edit_posts, so subscribers can't spend the site's AI credits through REST.src/experiments/command-palette-ai-search/):runAbility().Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5.5
Used for: Porting my proof-of-concept plugin into this repo, writing the tests and docs, and code review. I reviewed and edited the final implementation and tests.
Testing Instructions
reading: the normal result appears, and no AI request is sent.how do I hide my site from google: "Searching with AI…" appears, then Settings > Reading, already selected. Press Enter and Settings > Reading opens.stop spam comments: Settings > Discussion.how do I bake a cake: the AI row disappears, then "No results found."Screenshots or screencast
wp-ai-search.mp4
Changelog Entry