Skip to content

RecipesLinear

Linear work

Pro

In progress, blocked, issues by state, and the recent river. Cycle remaining is Pro. Botopticon is not affiliated with Linear.

Access

Linear personal API key, Read only

Required. Env LINEAR_API_KEY, LINEAR_TEAM. Mode either.

  • Read

In Linear open Settings > Account > Security & Access, then Personal API keys > Create key. Name it Botopticon board, choose Read only (not Full access, Write, Admin, Create issues, or Create comments), and limit it to the team you want shown. A Read key can't create or change issues. If you can't create keys, a workspace admin can allow member API keys. Put the team key (e.g. ENG) in LINEAR_TEAM.

Linear MCP is fine if the agent already has it. Ask it only to read.

Botopticon never stores this key. Paste it into the agent, cron host, or MCP config. Revoke it any time.

Pro tiles are drawn here so you can read them. On a Free workspace they are skipped. Upgrade to Pro to add them. Free tiles on the same board still install.

Board

Sample · not your account.

In progress

Sample · Started states · ENG

9issues

Updated just nownowLinear

By state

Sample · Active cycle · 24 issues

  1. TodoUnstarted
    45.8% issues
  2. In progressStarted
    37.5% issues
  3. DoneCompleted
    16.7% issues

Updated just nownowLinear

Recent

Sample · Newest 10 updated

  1. 12:01ENG-184 Checkout copy · In Progress
  2. 11:20ENG-179 Ingest tests · Blocked
  3. 09:48ENG-176 Footer links · Done

Updated just nownowLinear

Cycle remaining

Sample · Current cycle

Cycle ends

14d 05:00:00

Updated just nownowLinear

Command Tiles

Pro

Sample · not your account. The agent puts the ask on the board. You answer there. How Command Tiles work

  • Unblock ENG-418

    Needs you

    Sample data

    Approval · Linear

    Clear the blocker on ENG-418?

    Updated just nownowLinear

    Needs you
  • Blocked issues next?

    Needs you

    Sample data

    Question · Linear

    Two issues are blocked. What should happen?

    Updated just nownowLinear

    Needs you

Tiles

  • In progress
  • Blockedneeds you
  • By state
  • Recent
  • Cycle remainingPro
  • Blocked. Open issues with an open blocking issue (inverse relation of type blocks).

State map

  • In progress. value = open issues with state.type started. needs_you stays false.
  • Blocked. value = open issues blocked by an open issue. Above 0 -> needs_you with needs (kind "blocker"). 0 -> needs_you false. 401 -> needs kind "blocker": Replace LINEAR_API_KEY. Needs you: 2 issues are blocked. Oldest: ENG-179. Unblock or reassign?
  • By state. Rows Todo "queued", In progress "building", Done "done". max = their total, at least 1. Keep the Todo row even at 0. Never verified, merged, or live.
  • Recent. Label "<identifier> <title> · <state>". tone: blocked "warn", started "ok", completed or canceled "idle". props.state "blocked" if a blocked issue is listed, else "idle".
  • Cycle remaining. until = active cycle endsAt. Post the next cycle's endsAt before zero; at zero the tile hides.

Verify

The agent runs these on the first run, then reports.

  1. GET https://www.botopticon.com/api/catalog with the token -> 200. A 401 means the token is wrong, revoked, or still the placeholder.
  2. POST each body to https://www.botopticon.com/api/ingest?dry_run=1 (or post_tile with dry_run true). On board_not_found, stop and ask me; don't switch boards. On a validation error or warning (title or subtitle too long, weak title), fix that body and dry-run it again.
  3. Post for real. Each reply has ok true, a pane_id, and board_name "Linear work".
  4. Call list_tiles (or open the board): 5 tiles on "Linear work", none stale.
  5. Then tell me those four results in one short message.

Keep it current

A small script, not an LLM loop. It runs every 5 minutes. It posts to “Linear work” only when a tile changes, and reads BOTOPTICON_TOKEN and LINEAR_API_KEY and LINEAR_TEAM from the environment.

An LLM routine every few minutes spends your usage and adds nothing new.

Setup

  1. 01

    Make a Linear Read key

    Linear > Settings > Account > Security & Access > Personal API keys. Name it Botopticon board, choose Read only, and limit it to one team. A Read key can't create or change issues. Keep it in LINEAR_API_KEY and the team key in LINEAR_TEAM. Botopticon never stores this key. Paste it into the agent, cron host, or MCP config. Revoke it any time.

  2. 02

    Create a Botopticon token

    In the app, open Connection tokens and create one named after this board. It starts with bot_ and is shown once. Save it as BOTOPTICON_TOKEN where the agent runs. It posts to Botopticon. It is not the Linear key.

  3. 03

    Paste the prompt into your agent

    Open the tab for Grok Bot, Muse, MCP, Cursor, Claude, or curl. The agent checks the token, dry-runs every tile, posts to the Linear work board, and reports back.

  4. 04

    Let the script keep it current

    The agent writes a small script that checks every 5 minutes and posts only what changed. A quiet tile overnight is normal.

Snippets

Read BOTOPTICON_TOKEN from your environment or secret store. If it isn't set, stop and ask me. Never send the text $BOTOPTICON_TOKEN. If I paste a token in chat, save it as BOTOPTICON_TOKEN and don't repeat it.

Same recipe, one tab per platform. The prompt fetches the source and posts. Do not paste the sample numbers as live data.

Grok Bot

Click Use this recipe first so the board exists.
Paste this into Grok Bot. Set BOTOPTICON_TOKEN in its environment or secret store first.

1. Goal
Keep my Botopticon board "Linear work" current with live Linear data.
Any agent that can make HTTPS calls can do this. You report; I decide.

2. Connect
- Botopticon token (starts with bot_): Read BOTOPTICON_TOKEN from your environment or secret store. If it isn't set, stop and ask me. Never send the text $BOTOPTICON_TOKEN. If I paste a token in chat, save it as BOTOPTICON_TOKEN and don't repeat it.
- HTTP (works everywhere): POST https://www.botopticon.com/api/ingest
  Headers: Authorization: Bearer <token>, Content-Type: application/json
- MCP (optional, same token): https://www.botopticon.com/api/mcp, tool post_tile. If an MCP tool returns HTML or an error, use HTTP.

3. Source access
Linear: read LINEAR_API_KEY, LINEAR_TEAM from your environment (Linear personal API key, Read only). If one isn't set, ask me.
In Linear open Settings > Account > Security & Access, then Personal API keys > Create key. Name it Botopticon board, choose Read only (not Full access, Write, Admin, Create issues, or Create comments), and limit it to the team you want shown. A Read key can't create or change issues. If you can't create keys, a workspace admin can allow member API keys. Put the team key (e.g. ENG) in LINEAR_TEAM.
Scopes: Read.
Linear MCP is fine if the agent already has it. Ask it only to read.
Botopticon never stores this key. Paste it into the agent, cron host, or MCP config. Revoke it any time.

4. Board
Send "board": "Linear work" on every post. On a Free workspace with one board, posts land on that board, and the reply warns board_ignored_free when the names differ.

5. Tiles
Bot "Linear" on every tile. Never change the tile keys.
- in-progress, kpi, "In progress". States: value = open issues with state.type started. needs_you stays false. ttl_seconds 43200.
- blocked-now, kpi, "Blocked". Open issues with an open blocking issue (inverse relation of type blocks). States: value = open issues blocked by an open issue. Above 0 -> needs_you with needs (kind "blocker"). 0 -> needs_you false. 401 -> needs kind "blocker": Replace LINEAR_API_KEY. ttl_seconds 43200. When a person must act: needs_you true and needs {"who":"Linear","kind":"blocker","ask":"2 issues are blocked. Oldest: ENG-179. Unblock or reassign?","link":"https://linear.app/"}.
- by-state, progress, "By state". States: Rows Todo "queued", In progress "building", Done "done". max = their total, at least 1. Keep the Todo row even at 0. Never verified, merged, or live. ttl_seconds 43200. needs_you stays false.
- recent-iss, feed, "Recent". States: Label "<identifier> <title> · <state>". tone: blocked "warn", started "ok", completed or canceled "idle". props.state "blocked" if a blocked issue is listed, else "idle". ttl_seconds 43200. needs_you stays false.
- cycle-left, countdown, "Cycle remaining". States: until = active cycle endsAt. Post the next cycle's endsAt before zero; at zero the tile hides. ttl_seconds 86400. needs_you stays false.

6. Fetch notes
Read the current Linear GraphQL docs, or Linear MCP if you have it. One endpoint: POST https://api.linear.app/graphql with header Authorization: <LINEAR_API_KEY> (no Bearer). Objects: Issue, WorkflowState, IssueRelation, Cycle. Scope every query to LINEAR_TEAM.
In progress. value = open issues whose state.type is started.
Blocked. One definition: an open issue (state.type not completed or canceled) with an inverse relation of type "blocks" whose issue is still open. Above 0 -> needs_you true and needs {"who":"Linear","kind":"blocker","ask":"<n> issues are blocked. Oldest: <identifier>. Unblock or reassign?","link":"<issue url>"}. 0 -> needs_you false. Linear answers 401 or an authentication error -> needs {"who":"Linear","kind":"blocker","ask":"Replace LINEAR_API_KEY"}.
By state. Progress rows for the team's issues in the active cycle (or updated in 14 days if there is no cycle): "Todo" (unstarted, state queued), "In progress" (started, state building), "Done" (completed, state done). max = the total of the three, at least 1. Keep the Todo row even at 0 so the tile stays open. Never use verified, merged, or live.
Recent. Newest 10 updated issues. Label "<identifier> <title> · <state name>", time HH:MM in my timezone. tone: Blocked "warn", started "ok", completed or canceled "idle". props.state "blocked" if a blocked issue is listed, else "idle".
Cycle remaining (Pro). until = the active cycle's endsAt. Before it reaches zero, post the next cycle's endsAt. With no next cycle, let it hide. Skipped on Free.
- Team: { teams(filter:{key:{eq:$LINEAR_TEAM}}) { nodes { id activeCycle { id endsAt } upcomingCycles { nodes { endsAt } } } } }
- Counts and By state: issues(filter:{team:{key:{eq:$LINEAR_TEAM}}, state:{type:{in:["unstarted","started","completed"]}}}, first:100) { nodes { state { type name } } pageInfo { hasNextPage endCursor } }; follow endCursor.
- Blocked: issues(filter:{team:{...}, state:{type:{nin:["completed","canceled"]}}}) { nodes { identifier url inverseRelations { nodes { type issue { state { type } } } } } }
- Recent: issues(filter:{team:{...}}, orderBy:updatedAt, first:10) { nodes { identifier title url updatedAt state { name type } } }
- Look-back: Each run, read issues updated since your last run (updatedAt filter) to find what changed, so an issue blocked and unblocked between checks still shows in Recent; recount the totals only when something did. Linear asks clients to filter in the query and never poll issues one by one.

7. Posting rules
Fields: bot, tile, type, title, subtitle, props, needs_you, needs, ttl_seconds, board, brief (link optional). Send the full body each time; a post without needs or link clears it.
needs is required whenever needs_you is true: {"who","kind":"task|issue|question|blocker|approval","ask"} (link and detail optional).
Limits: title shows 24 characters (max 80). Subtitle shows 48 (cut at 80). Row labels 64. Feed labels 280. needs.ask 140 on one line. needs.who 48.
Post a tile only when its body changes. Do not invent numbers. Do not post the same body again just to keep a tile fresh.

8. Verify on the first run
a) GET https://www.botopticon.com/api/catalog with the token -> 200. A 401 means the token is wrong, revoked, or still the placeholder.
b) POST each body to https://www.botopticon.com/api/ingest?dry_run=1 (or post_tile with dry_run true). On board_not_found, stop and ask me; don't switch boards. On a validation error or warning (title or subtitle too long, weak title), fix that body and dry-run it again.
c) Post for real. Each reply has ok true, a pane_id, and board_name "Linear work".
d) Call list_tiles (or open the board): 5 tiles on "Linear work", none stale.
e) Then tell me those four results in one short message.

9. Keep it current
Write a small script (no LLM in the loop). Run it every 5 minutes. Use cron or a loop that holds a lock. It keeps a hash of each body, posts only the tiles that changed, retries once on 429 or 5xx, stops re-posting a body that got a 4xx, reads BOTOPTICON_TOKEN and LINEAR_API_KEY and LINEAR_TEAM from the environment, never logs them, and has a --dry flag.
Don't set up an LLM routine that runs every few minutes; it spends my usage and adds nothing.
On the board, a quiet tile with an old "updated" time is normal. A stale tile means your script stopped.

10. Report back
One short message: the token check, the dry-run result, each pane_id, the board name, and the schedule you chose.

FAQ

Which pane turns amber?
Blocked. When an open issue is blocked by another open issue, the agent sets needs_you with the oldest one. Cycle remaining is a Pro countdown and is skipped on Free.
Does this run on the Free plan?
The board installs on Free. Pro tiles are skipped until the workspace is Pro ($29/mo or $290/yr). Free tiles on the same board still install. Plan limits stay as they are.
Does Botopticon store the Linear key?
Botopticon never stores this key. Paste it into the agent, cron host, or MCP config. Revoke it any time.
How does the board stay current?
A small script fetches the source and posts a tile only when its body changes. A quiet tile is fine: nothing changed. A stale tile means the agent stopped checking. Fifteen minutes after a tile goes stale it leaves the board, and it comes back on the next post.
Why did a tile leave the board?
Three reasons. A progress tile with every row finished leaves 5 minutes later. A status tile set to done leaves 5 minutes later. A stale tile leaves 15 minutes after it goes stale. The next post brings it back.