Needs a LinearB API token.
Export LINEARB_API_TOKEN in the shell you launch Claude Code from; it reads the environment at startup.
Ask Claude
Claude installs it for you.
Paste into Claude Code, press Enter.
Terminal
Run one command.
claude plugin marketplace add linear-b/agent-plugins && claude plugin install agentic-advisor@linearb-ai
Then run /reload-plugins in Claude Code, or restart it if you just exported the token.
Claude Code plugins
Engineering context from LinearB, right inside your AI coding agent.
Plugins that give your agent the context a senior engineer would have: how healthy the repo is, how fragile the files are, and how much care the change deserves.
In Claude Code, run /plugin marketplace add linear-b/agent-plugins.
Install a plugin
For example /plugin install agentic-advisor@linearb-ai.
Connect LinearB
Create a token in LinearB → Settings → API Tokens, export LINEARB_API_TOKEN=…, then restart Claude Code.
Roll out to your whole org
Admins can install and enable this for every developer from Claude.ai admin console → Claude Code → Managed settings. Paste this, then replace the token placeholder.
The token in managed settings is pushed to every developer's machine. Use a token created for this purpose, so you can rotate it on its own.
Before writing code, grades how fragile the target is from LinearB health signals + local git history and holds the agent to a matching effort level (LOW/MEDIUM/HIGH) — lean on calm repos, defensive on fragile ones.
The troubleshooting log is now on by default, so a missing event can be diagnosed without asking the user to re-run anything. Turn it off with LINEARB_DEBUG=0. It stays local and private (0600), rotates at 1 MB, and never contains the token, prompt or payload.
Ticket context: when the prompt or branch names a ticket (e.g. ABC-123), the skill fetches its type, priority, estimate and labels from LinearB (one call, same token) and uses them to raise the task-complexity grade, e.g. a Highest-priority bug. Skipped silently when there's no key or no PM integration.
Opt-in troubleshooting log: LINEARB_DEBUG=1 writes each report's outcome (skip reason or HTTP status) to ${XDG_CACHE_HOME:-~/.cache}/agentic-advisor/report.log, rotated at 1 MB. Lines for sent events include the grade and repo name; no line contains the token, email, prompt or payload. The log stays private (folder 0700, file 0600, symlinked logs and rotation targets refused).