Skip to content

Agent instructions command

bb agent-instructions prints the instructions for AI coding agents that ship with the installed version of bb. It is the same text as the AI Agent Integration guide shows, so a skill or rules file generated from it always matches the CLI you have.

Terminal window
bb agent-instructions [options]
Terminal window
bb agent-instructions
bb agent-instructions >> AGENTS.md
bb agent-instructions --json --jq '.instructions'
{
"version": "2.3.0",
"instructions": "## Bitbucket CLI\n\nUse `bb` for Bitbucket Cloud operations.\n..."
}

version is the installed CLI version the instructions belong to.