Skip to content

Print canonical docs shortlinks in --help, api show, and plugin errors #2063

Description

@waldekmastykarz

Problem

Agents rely heavily on CLI output. devproxy --help and devproxy api show were the decisive sources in these runs, but neither points to the docs. When agents wanted more detail (request bodies, plugin options), they guessed Learn URLs and hit 404s.

Proposal

Add stable shortlinks in the form https://go.devproxy.net?go=<code> to CLI output:

  • Every command's --help: a final line such as Docs: https://go.devproxy.net?go=cli-api-show.
  • devproxy api show (text and JSON output): a link to the Proxy API reference, https://go.devproxy.net?go=api.
  • Plugin load and configuration errors: a link to the plugin's reference page, for example https://go.devproxy.net?go=executionsummaryplugin.

The codes map to Learn pages through redirects (codes: api, cli, cli-<command>, <pluginname>, ci, record, system-proxy, proxy-reset), so the CLI never hard-codes Learn paths.

Found while evaluating how coding agents use Dev Proxy: VS Code + GitHub Copilot Chat with Claude Sonnet 5.5, Dev Proxy 4.0.0 on Windows, 5 runs of the task "add a CI script that starts Dev Proxy in the background, starts and stops recording through the API around npm start, and shuts Dev Proxy down through the API".

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

Metadata

Metadata

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions