Opens one of the files list_agent_instructions() shows, in Positron or
RStudio when you are working in one, or in R's own editor otherwise.
Usage
edit_agent_instructions(agent = NULL, scope = c("user", "project"))Details
Run it with no arguments to pick from a numbered list. Or name the file by the
agent that reads it: "claude" for Claude Code, "codex" for Codex, "posit"
for Posit Assistant, or "agents" for the project's shared AGENTS.md. When
that still matches more than one file (Claude Code has one for you and one for
the project, for instance), you pick from a short list, or narrow it with
scope.
If the file does not exist yet, you are asked whether to create it, empty. Existing files are only opened, never changed.