Skip to contents

Dispatches by backend:

  • vscode: bridge port file exists and /version responds.

  • copilot: Copilot CLI binary found and --version succeeds.

  • claude: Claude CLI binary found and --version succeeds.

Usage

hal_available(backend = NULL)

Arguments

backend

Optional backend id ("vscode", "copilot", "claude"). If NULL, uses the resolved default for this session.

Value

TRUE if the backend's transport is reachable, FALSE otherwise.

Details

Honors the hal.backend option / explicit argument so callers can probe a specific backend without switching the session default.

See also

HalChat, hal_models(), hal_bridge_status() for richer vscode-backend diagnostics.

Examples

hal_available()
#> [1] TRUE
if (FALSE) { # \dontrun{
hal_available(backend = "vscode")
hal_available(backend = "claude")
} # }