Compares each installed agent's recorded commit SHA against the latest commit on GitHub. Local agents are reported as not updatable.
Arguments
- path
The agents directory. Can be one of:
A known coding agent name such as
'claude_code','cursor', or'github_copilot'(seeagent_path()for the full list) to use that agent's conventional project-scope path.A character string giving the directory path directly.
NULL(the default), in which case the path is resolved from theWF_AGENTenvironment variable, or by prompting in interactive sessions. SetWF_AGENTin your.Renviron(e.g. withusethis::edit_r_environ()) to avoid the prompt.
Value
A data frame with columns:
name: agent name.installed_sha: the SHA recorded at install time (NAfor local).latest_sha: the current HEAD SHA on GitHub (NAfor local or on network failure).update_available:TRUEif installed and latest SHAs differ.
Examples
check_agents(tempfile())
#> name installed_sha latest_sha update_available
#> 1 example <NA> <NA> FALSE
