Skip to content
Logo

Chat prompts

Bundles can ship [[prompt]] actions in the chat composer. These are separate from editor commands and Agent Skills.

Type / at the start of the composer to see available actions. Actions without arguments run on selection. Actions with arguments let you fill them before sending.

Shipped actions

PromptPurpose
/reviewReview the workspace or pull request and file findings
/re-reviewRe-review after fixes, reusing the previous review session when it can
/fix-findingsFix or dispute open findings in Agent mode
/simplify-reviewReview the diff for unnecessary complexity
/simplify-auditAudit the whole repository for unnecessary complexity
/commit, /commit-pushCommit all changes, optionally pushing them
/open-pr, /open-draft-prOpen a GitHub pull request or draft with an agent-written description
/fix-checksInvestigate and fix failing GitHub checks
/address-reviewFix or answer unresolved review comments on the pull request, then reply and resolve
/fix-problemFix one language server diagnostic (sent by the Problems panel's AI button)
/fix-mergeFix what blocked a failed merge (sent when the titlebar Merge fails)
/updateBring the branch up to date with its base; an agent steps in only for conflicts
/githubWork on a GitHub issue (GitHub bundle)
/linearWork on a Linear issue (Linear bundle)

These start a workflow in an Autopilot chat:

PromptWorkflow
/to-a-prTo a PR
/review-and-fixReview & fix
/review-to-prReview & fix to a PR
/security-reviewSecurity review & fix
/write-docsDocs

Author an action

Add a prompt to bundle.toml:

[[prompt]]
id = "my.pack.explain"
name = "Explain selection"
slash = "explain-selection"
mode = "ask"
takesArgs = false
interpreter = "typescript"
script = "src/explain.ts"

The script returns { prompt, display? }. Its context includes workspace environment and an editor snapshot. Start from a script in the shipped Chat bundle when you need context fields or SDK helpers.

Optional mode (ask, plan, agent, review, or autopilot) routes the action to that mode. With mode = "autopilot", set workflow to a [[workflow]] id to start that workflow. The older mode = "loop" and loop keys still work. tab_group routes actions into the nearest idle chat in the same group; without a group, mode routing reuses the nearest idle chat in that mode. fresh_session = true starts fresh provider context while keeping the chat UI. It cannot be used with Autopilot mode.

For arguments, use takesArgs = true, or declare named [[prompt.arg]] tables. Named arguments imply takesArgs and are available in ctx.params; the combined argument text is in ctx.args. Keep the prompt's scalar fields before its nested argument tables in TOML.

Validate with recur bundles lint. The Recur repository's docs/bundles.md documents the full authoring contract, and bundles/Chat provides working scripts and manifests.