Interactive helper that picks the right backend for the host and walks through prerequisites. Two paths:
Details
Positron (recommended): installs the hal-bridge extension from the VSIX bundled with hal, so hal talks to
vscode.lmdirectly. No Node.js, no Copilot CLI, no GitHub CLI, no download – the only requirement is that you are signed in to GitHub Copilot inside Positron itself (the account menu in the lower left).Other hosts (RStudio, VS Code, command-line R): installs the GitHub Copilot CLI (
gh copilotextension preferred, npm@github/copilotfallback).Claude Code: verifies the
claudeCLI and points at the download and one-time sign-in. hal does not install this one for you: Claude Code's sign-in is an interactive browser flow, and installing it via npm yields a shim whose output is unreliable when driven from R.
Detection is via POSITRON_VERSION. Pass backend = "copilot" to force
the Copilot CLI path inside Positron, or backend = "claude" to check the
Claude Code CLI instead.
