{"version":"2.1.198","anchor":"bg-and-allow-tools-flags-for-claude-agents","canonical_anchor":"bg-and-allow-tools-flags-for-claude-agents","heading":"--bg and --allow-tools Flags for claude agents","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.198\/e\/bg-and-allow-tools-flags-for-claude-agents","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.198","markdown":"### `--bg` and `--allow-tools` Flags for `claude agents`\n\n**What**\n\nTwo new flags for the `claude agents` command.\n\n**Usage**\n\n`# Attach to a named background session claude agents --bg <session-name> # Grant specific tools when launching an agent claude agents --allow-tools Bash,Read,Write` **Details** - `--bg` moves a session to the background and detaches (conflicts with `--print` \u2014 the interactive session that `claude agents` attaches to is never started with `--print`) - `--allow-tools` grants specific tool permissions inline; denied tools are listed with an advisory to pass `--allow-tools` to grant them - The background session keeps running after detach; re-attach with `claude agents` from another terminal **Evidence** Error message (search for `\"--bg and --print conflict\"`) and denied-tool notice (search for `\": denied tools (pass --allow-tools to grant):\"`)"}