Engineering context from LinearB, right inside your AI coding agent.
Quick start · Plugins · How it works · Privacy · Security
AI agents write code the same way whether the target is a calm, well-tested module or a file that's been rewritten five times this quarter. These plugins give the 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.
| Plugin | What it does |
|---|---|
| agentic-advisor | Before writing code, grades how fragile the target is (LinearB rework, incidents and unreviewed merges, plus local git history on the files being touched) and holds the agent to a matching LOW / MEDIUM / HIGH effort level: lean on calm repos, defensive on fragile ones. |
1. Add the marketplace and install (in Claude Code):
/plugin marketplace add linear-b/agent-plugins
/plugin install agentic-advisor@linearb-ai
2. Create a LinearB API token (LinearB → Settings → API Tokens → Create API Token, step-by-step guide) and export it:
export LINEARB_API_TOKEN="<your LinearB API token>"3. Restart Claude Code from that shell. Hooks and the skill read the environment at launch.
That's it. Start a code task (fix the retry bug in billing/client.ts) and the agent prints its verdict before it edits anything:
LinearB: api-service — LOW effort (healthy: rework 0.4%, 0 unreviewed merges, no incidents).
LinearB: payments-service — HIGH effort (rework 9.5% NEEDS FOCUS; target PaymentForm.tsx: ~140 lines rewritten/90d) — smallest viable change, defensive validation, focused test.
flowchart LR
A[Code task starts] --> B{Trivial edit?}
B -- yes --> L[LOW]
B -- no --> C[Repo health<br/>LinearB API]
C --> D[Task complexity<br/>from the prompt]
D --> H{Repo MEDIUM/HIGH or<br/>sensitive files?}
H -- yes --> E[Change area<br/>local git history]
H -- no --> F
E --> F[effort = highest axis]
F --> G[Agent works at that level]
- Repo health comes from LinearB's public API: rework rate (bands match LinearB's own benchmark), unreviewed merges and recent incidents. It's cached per repo for 24 hours.
- Task complexity is graded from the request itself, so a demanding change in a calm repo still gets real care.
- Change area runs when the repo already grades MEDIUM/HIGH or the change touches sensitive code (auth, payments, migrations, concurrency, public API, crypto). It looks at the exact files being touched, using local git history only: how much existing code was rewritten over 90 days, and who owns it.
- It never blocks. If LinearB is unreachable or no token is set, the grade falls back to MEDIUM and work continues.
See the plugin README for triggers, the full grading rules and configuration.
- Claude Code with plugin support
- A LinearB account and an org API token (
LINEARB_API_TOKEN). See Generating a LinearB API Token git,curlandjqon yourPATH;python3is optional (enables token accounting)- macOS or Linux
| Variable | Default | Purpose |
|---|---|---|
LINEARB_API_TOKEN |
(none) | LinearB org API token. Used to read health signals and to report usage. |
LINEARB_API_URL |
https://public-api.linearb.io |
Point at a regional or on-prem LinearB API. |
LINEARB_TELEMETRY |
1 |
Set to 0 to turn off usage reporting. Not recommended: the plugin keeps working, but your usage won't show up in LinearB dashboards. |
The plugin reports each effort decision to your own LinearB org, the one your token belongs to, as the custom metric agentic_advisor.effort_decision. That lets you see adoption and grades per developer and repo inside LinearB. Nothing is sent anywhere else.
- What's sent: the grade and its one-line evidence, repo, branch, session title, contributor email and token counts. The full field list is in the plugin README.
- What's never sent: source code, file contents or the full text of your prompts.
- Turn it off with
export LINEARB_TELEMETRY=0. We don't recommend it: your usage then won't appear in your LinearB dashboards. - Token handling: the API token is passed to
curlon stdin, never as a command-line argument, and is never printed or logged.
Please report vulnerabilities privately to security@linearb.io. Don't open a public issue. See SECURITY.md.
Questions or problems? Open a GitHub issue or email support@linearb.io.
Apache-2.0 © LinearB, Inc.