Skip to content

Move generated-command search keywords into upstream API specs #661

Open

Description

@petebacondarwin

PR #623 adds search keywords for generated commands in packages/cli/src/commands/cli/search-keywords.ts so common agent queries find the intended command. Keeping this product-specific metadata in a CLI-owned table is brittle and separates it from the product owners who maintain the API.

Move ownership of these keywords into the upstream API specifications, and carry them through Forge and the cf generator into generated command metadata.

Suggested scope:

  • Define an upstream API-spec annotation for operation search keywords/synonyms that product owners can maintain, with any CLI-specific mapping handled by Forge.
  • Propagate the annotation through Forge and the cf generator into search.keywords in generated command metadata.
  • Migrate the entries introduced by feat: add cf cli search keywords for common agent queries #623 and remove the local generated-command keyword table once upstream metadata supplies them. Keep hand-written command keywords in their existing meta.ts sidecars.
  • Preserve the search-ranking improvements and regression coverage added by feat: add cf cli search keywords for common agent queries #623.

Original request: #623 (comment)

Activity

  1. MattieTK commented on Nov 17, 2026

    @MattieTK
    Member

    Agree that we should do this, but I think we need to work with the Forge team to work out where app-specific overlays should live.

    This doesn't have a huge amount of benefit outside of the CLI's search implementation, so unless we abstract that and allow other systems to use it also, then changing this centrally could adjust the results of each search implementation differently.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions