ModsCode / Claude Code Mods / Ranking / linear-watch
linear-watch
Linear Watch + PR Watch: your Linear tickets and their PRs above the prompt, hourly. /tickets and /prs panes, compact and expanded modes, toasts on real changes.
What it does
- Draws a pane, the status line, toasts
- Adds /tickets, /prs
- Hooks session.start
- Keeps its own state between turns
- Starts processes
Good points
- No network calls
- Written in TypeScript
- Handles errors
- Writes no files
Code to start from
A starter ModsCode writes from the drawing it read, and the mod's own lines that draw, where there are any.
Starter (register.tsx)
import type { Register } from 'claude-code'
// Drawn like linear-watch by Mark Hickey (pane, band, status, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/mark-hickey-linear-watch/
// Written by ModsCode from that reading, not copied from the mod: use it as you like.
// Each value below stands for one the mod works out at run time; put in your own.
export const register: Register = on => {
// the pane: open it with $.ui.open({ id: 'my-pane', title: "Linear tickets" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Link, Button } = $.ui.resolve(e)
const right = '…'
const url = '…'
const id = '…'
const status = '…'
const l = '…'
const l2 = '…'
const l3 = '…'
const meta = '…'
const glyph = '…'
const label = '…'
const glyph2 = '…'
const glyph3 = '…'
const tail = '…'
const icon = '…'
const text = '…'
const prName = '…'
const PR_WORD = '…'
const glyph4 = '…'
const glyph5 = '…'
const glyph6 = '…'
const tail2 = '…'
const text2 = '…'
const name = '…'
const name2 = '…'
const name3 = '…'
const name4 = '…'
const length = '…'
const name5 = '…'
const value = '…'
const name6 = '…'
const value2 = '…'
const name7 = '…'
const value3 = '…'
const name8 = '…'
const value4 = '…'
const prName2 = '…'
const PR_WORD2 = '…'
const glyph7 = '…'
const glyph8 = '…'
const glyph9 = '…'
const tail3 = '…'
const text3 = '…'
const name9 = '…'
const name10 = '…'
const name11 = '…'
const name12 = '…'
const name13 = '…'
const value5 = '…'
const name14 = '…'
const value6 = '…'
const name15 = '…'
const value7 = '…'
const name16 = '…'
const value8 = '…'
const prName3 = '…'
const PR_WORD3 = '…'
const glyph10 = '…'
const glyph11 = '…'
const glyph12 = '…'
const tail4 = '…'
const text4 = '…'
const name17 = '…'
const name18 = '…'
const name19 = '…'
const name20 = '…'
const name21 = '…'
const value9 = '…'
const name22 = '…'
const value10 = '…'
const name23 = '…'
const value11 = '…'
const name24 = '…'
const value12 = '…'
const prName4 = '…'
const when = '…'
const prName5 = '…'
const prName6 = '…'
return (
<Box flexDirection="column">
<Box flexDirection="column" marginBottom={1}>
<Box flexDirection="row" justifyContent="space-between">
<Text color="cyan" bold>
Linear Tickets
</Text>
<Text dimColor>
{right}
</Text>
</Box>
<Text color="yellow">
⚠ Last check failed. This is older data.
</Text>
</Box>
<Text dimColor>
No open Linear tickets assigned to you.
</Text>
<Box flexDirection="column" borderStyle="round" paddingX={1} marginBottom={1}>
<Box flexDirection="row" justifyContent="space-between">
<Box flexDirection="row">
<Text>
{"◆ "}
</Text>
<Link href={`${url}`}>
{id}
</Link>
</Box>
<Text bold>
{status}
</Text>
</Box>
<Text>
{l}
</Text>
<Text>
{l2}
</Text>
<Text>
{l3}
</Text>
<Text dimColor>
{meta}
</Text>
<Text>
<Text>
<Text dimColor>
{" → "}
</Text>
<Text>
{glyph}
</Text>
<Text>
{` ${label}`}
</Text>
</Text>
<Text>
<Text dimColor>
{" → "}
</Text>
<Text>
{glyph2}
</Text>
<Text>
{` ${label}`}
</Text>
</Text>
<Text>
<Text dimColor>
{" → "}
</Text>
<Text>
{glyph3}
</Text>
<Text>
{` ${label}`}
</Text>
</Text>
<Text dimColor>
{tail}
</Text>
</Text>
<Box flexDirection="row" justifyContent="space-between" marginLeft="0">
<Box flexDirection="row">
<Text>
{`${icon} Next: `}
</Text>
<Link href={`${url}`}>
{text}
</Link>
</Box>
<Button plain label="↗ open" />
</Box>
<Text dimColor>
────────
</Text>
<Text dimColor>
No linked PRs
</Text>
<Box flexDirection="column" marginTop={1}>
<Box flexDirection="row" justifyContent="space-between">
<Box flexDirection="row">
<Text>
{`${glyph} `}
</Text>
<Link href={`${url}`}>
{prName}
</Link>
</Box>
<Text bold>
{PR_WORD}
</Text>
</Box>
<Text dimColor>
{` ${l}`}
</Text>
<Text dimColor>
{` ${l}`}
</Text>
<Text dimColor>
{` ${l}`}
</Text>
<Text>
{" "}
<Text>
<Text>
<Text dimColor>
{" → "}
</Text>
<Text>
{glyph4}
</Text>
<Text>
{` ${label}`}
</Text>
</Text>
<Text>
<Text dimColor>
{" → "}
</Text>
<Text>
{glyph5}
</Text>
<Text>
{` ${label}`}
</Text>
</Text>
<Text>
<Text dimColor>
{" → "}
</Text>
<Text>
{glyph6}
</Text>
<Text>
{` ${label}`}
</Text>
</Text>
<Text dimColor>
{tail2}
</Text>
</Text>
</Text>
<Box flexDirection="row" justifyContent="space-between" marginLeft="2">
<Box flexDirection="row">
<Text>
{`${icon} Next: `}
</Text>
<Link href={`${url}`}>
{text2}
</Link>
</Box>
<Button plain label="↗ open" />
</Box>
<Box flexDirection="column" marginTop={1}>
<Box flexDirection="row">
<Text color="red">
Failed
</Text>
<Link href={`${url}`}>
{name}
</Link>
</Box>
<Box flexDirection="row">
<Text color="red">
Failed
</Text>
<Link href={`${url}`}>
{name2}
</Link>
</Box>
<Box flexDirection="row">
<Text color="red">
Failed
</Text>
<Link href={`${url}`}>
{name3}
</Link>
</Box>
<Box flexDirection="row">
<Text dimColor>
{name4}
</Text>
<Text dimColor>
{`+${length} more failing`}
</Text>
</Box>
<Box flexDirection="row">
<Text dimColor>
{name5}
</Text>
<Text dimColor>
{value}
</Text>
</Box>
<Box flexDirection="row">
<Text dimColor>
{name6}
</Text>
<Text dimColor>
{value2}
</Text>
</Box>
<Box flexDirection="row">
<Text dimColor>
{name7}
</Text>
<Text dimColor>
{value3}
</Text>
</Box>
<Box flexDirection="row">
<Text dimColor>
{name8}
</Text>
<Text dimColor>
{value4}
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Box flexDirection="row" justifyContent="space-between">
<Box flexDirection="row">
<Text>
{`${glyph} `}
</Text>
<Link href={`${url}`}>
{prName2}
</Link>
</Box>
<Text bold>
{PR_WORD2}
</Text>
</Box>
<Text dimColor>
{` ${l}`}
</Text>
<Text dimColor>
{` ${l}`}
</Text>
<Text dimColor>
{` ${l}`}
</Text>
<Text>
{" "}
<Text>
<Text>
<Text dimColor>
{" → "}
</Text>
<Text>
{glyph7}
</Text>
<Text>
{` ${label}`}
</Text>
</Text>
<Text>
<Text dimColor>
{" → "}
</Text>
<Text>
{glyph8}
</Text>
<Text>
{` ${label}`}
</Text>
</Text>
<Text>
<Text dimColor>
{" → "}
</Text>
<Text>
{glyph9}
</Text>
<Text>
{` ${label}`}
</Text>
</Text>
<Text dimColor>
{tail3}
</Text>
</Text>
</Text>
<Box flexDirection="row" justifyContent="space-between" marginLeft="2">
<Box flexDirection="row">
<Text>
{`${icon} Next: `}
</Text>
<Link href={`${url}`}>
{text3}
</Link>
</Box>
<Button plain label="↗ open" />
</Box>
<Box flexDirection="column" marginTop={1}>
<Box flexDirection="row">
<Text color="red">
Failed
</Text>
<Link href={`${url}`}>
{name9}
</Link>
</Box>
<Box flexDirection="row">
<Text color="red">
Failed
</Text>
<Link href={`${url}`}>
{name10}
</Link>
</Box>
<Box flexDirection="row">
<Text color="red">
Failed
</Text>
<Link href={`${url}`}>
{name11}
</Link>
</Box>
<Box flexDirection="row">
<Text dimColor>
{name12}
</Text>
<Text dimColor>
{`+${length} more failing`}
</Text>
</Box>
<Box flexDirection="row">
<Text dimColor>
{name13}
</Text>
<Text dimColor>
{value5}
</Text>
</Box>
<Box flexDirection="row">
<Text dimColor>
{name14}
</Text>
<Text dimColor>
{value6}
</Text>
</Box>
<Box flexDirection="row">
<Text dimColor>
{name15}
</Text>
<Text dimColor>
{value7}
</Text>
</Box>
<Box flexDirection="row">
<Text dimColor>
{name16}
</Text>
<Text dimColor>
{value8}
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Box flexDirection="row" justifyContent="space-between">
<Box flexDirection="row">
<Text>
{`${glyph} `}
</Text>
<Link href={`${url}`}>
{prName3}
</Link>
</Box>
<Text bold>
{PR_WORD3}
</Text>
</Box>
<Text dimColor>
{` ${l}`}
</Text>
<Text dimColor>
{` ${l}`}
</Text>
<Text dimColor>
{` ${l}`}
</Text>
<Text>
{" "}
<Text>
<Text>
<Text dimColor>
{" → "}
</Text>
<Text>
{glyph10}
</Text>
<Text>
{` ${label}`}
</Text>
</Text>
<Text>
<Text dimColor>
{" → "}
</Text>
<Text>
{glyph11}
</Text>
<Text>
{` ${label}`}
</Text>
</Text>
<Text>
<Text dimColor>
{" → "}
</Text>
<Text>
{glyph12}
</Text>
<Text>
{` ${label}`}
</Text>
</Text>
<Text dimColor>
{tail4}
</Text>
</Text>
</Text>
<Box flexDirection="row" justifyContent="space-between" marginLeft="2">
<Box flexDirection="row">
<Text>
{`${icon} Next: `}
</Text>
<Link href={`${url}`}>
{text4}
</Link>
</Box>
<Button plain label="↗ open" />
</Box>
<Box flexDirection="column" marginTop={1}>
<Box flexDirection="row">
<Text color="red">
Failed
</Text>
<Link href={`${url}`}>
{name17}
</Link>
</Box>
<Box flexDirection="row">
<Text color="red">
Failed
</Text>
<Link href={`${url}`}>
{name18}
</Link>
</Box>
<Box flexDirection="row">
<Text color="red">
Failed
</Text>
<Link href={`${url}`}>
{name19}
</Link>
</Box>
<Box flexDirection="row">
<Text dimColor>
{name20}
</Text>
<Text dimColor>
{`+${length} more failing`}
</Text>
</Box>
<Box flexDirection="row">
<Text dimColor>
{name21}
</Text>
<Text dimColor>
{value9}
</Text>
</Box>
<Box flexDirection="row">
<Text dimColor>
{name22}
</Text>
<Text dimColor>
{value10}
</Text>
</Box>
<Box flexDirection="row">
<Text dimColor>
{name23}
</Text>
<Text dimColor>
{value11}
</Text>
</Box>
<Box flexDirection="row">
<Text dimColor>
{name24}
</Text>
<Text dimColor>
{value12}
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Box flexDirection="row">
<Text dimColor>
{`${glyph} `}
</Text>
<Link href={`${url}`}>
{prName4}
</Link>
<Text dimColor>
{` · ${when}`}
</Text>
</Box>
<Box flexDirection="row">
<Text dimColor>
{`${glyph} `}
</Text>
<Link href={`${url}`}>
{prName5}
</Link>
<Text dimColor>
{` · ${when}`}
</Text>
</Box>
<Box flexDirection="row">
<Text dimColor>
{`${glyph} `}
</Text>
<Link href={`${url}`}>
{prName6}
</Link>
<Text dimColor>
{` · ${when}`}
</Text>
</Box>
</Box>
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
const label = '…'
await $.ui.status(`Linear: unreachable`)
await $.ui.toast(`linear-watch: Linear is unreachable. The band shows the last good data.`)
await $.ui.toast(`linear-watch: not opening ${label}: not an https link`)
return next(e)
})
}
The mod's own code
Its licence text was not found at the commit read, so only the places in the source are linked.
linear-watch/hooks/register.tsxlines 324–343linear-watch/hooks/view.tsxlines 294–315linear-watch/hooks/view.tsxlines 469–504linear-watch/hooks/view.tsxlines 392–403linear-watch/hooks/view.tsxlines 351–372linear-watch/hooks/view.tsxlines 319–347
How to build this: Pane (panel), Add a slash command
What its code calls
runs programsrememberscalls tools
What its code shows
Read from the source at commit e7a5ed8e6e17 on 2026-10-11. The first group decides whether a mod is listed; the rest is for you to weigh. A later commit is not read until the next crawl.
| Decides the listing: code you can check | |
|---|---|
| Entry read | Every module hooks/hooks.json names was read.linear-watch/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.3 files parsed |
| All its code is in the mod | Every import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod |
| Readable | No minified lines, no eval or new Function, no import of a computed path, no encoded blobs.no minified code, no eval, no encoded blobs |
| Calls in the open | Network and programs are reached as $.http.fetch and $.process.run in place, never passed around.every call outside goes through $ in the open |
| For you to weigh before installing | |
| Where it draws | The terminal, the desktop app, both, or nothing (hooks only: a guard or a prompt rewriter), as its code says. Shown, never a reason to leave a mod out.draws in the terminal and the desktop app, the same in both |
| Install line | Whether its repository's own .claude-plugin/marketplace.json lists it, so it installs from that marketplace with the lines on its page.listed in its repository's .claude-plugin/marketplace.json: installs from there |
| Programs on Windows | Whether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).runs no program a Windows PC lacks |
| Network | Whether every fetch names its https host in the code.no network |
| Programs | Whether every program it starts is named in the code and is not a shell, an interpreter or a network tool.linear-watch/hooks/register.tsx:277 sh (a shell or interpreter) |
| Reads and sends | Whether it both reads something of yours (files, environment variables, the transcript, settings) and reaches outside (the network, an MCP server, another session, telemetry).reaches the network, but reads no files, no environment variables and no transcript |
| Keys in the source | Whether the source holds what looks like an API key or a private key.no keys in the source |
| Licence | An open licence (MIT, Apache-2.0, BSD, ISC, Unlicense, 0BSD, CC0) with its text lets ModsCode show its code; otherwise the code is linked.no licence |
| Settings hooks | Hooks declared in hooks/hooks.json or plugin.json beside the module: a command (a shell when it has no args), an HTTP request, an MCP tool or a model prompt at an event. They run outside $.no settings hooks: its function hooks alone |
| Servers it ships | MCP servers (a program, or a URL; a headersHelper is a shell command; a .mcpb bundle is unpacked at run time), LSP servers, monitors (a shell command for the whole session) and bin/ (on the PATH of the Bash tool).ships no MCP or LSP server, no monitor, no bin/ |
| Skills, commands, agents | What its Markdown declares beyond text: allowed-tools granted for the turn, hooks added when a skill is invoked, a command run before Claude reads the skill.no skills, commands, agents or workflows |
| Tools and MCP | Whether every tool it calls through $.tool.call and $.mcp.call is named in the code, and none is a shell (Bash through the tool runs a shell without $.process).linear-watch/hooks/register.tsx:119 a tool named at run time |
| Asks of the model | Completions it runs ($.model.complete, fork, classify), subagents it spawns, prompts it submits as you, and the tools, commands and agents it adds.adds command tickets, adds command prs |
| Events it hooks | By what a hook there can do: gates (refuse a tool call, a prompt, a setting, another plugin), shapes (what the model reads: the system prompt, tool descriptions, each request), reads (your input, the events of the settings hooks, every event with *), and the rest.gates: command.run (tickets, prs) · also: session.start, ui.render (Pane, AbovePrompt) · timers: clock.every |
| Reads, by name | The environment variables and files it names, and whether it reads the transcript, settings.json, the prompt box or the mouse selection.reads no files, environment variables, settings or transcript |
| Writes, by name | The files and environment variables it names, and whether it changes settings, the prompt box, the clipboard, the conversation (a row the model reads) or another session.writes no files, environment variables, settings or conversation rows |
This is a reading of the code text, not a security review: it does not run the mod, and it cannot see what a program the mod starts does. The check before installing is yours. How mods are chosen
Install it
Check it yourself before you install it. Mods run unsandboxed, with your permissions, and ModsCode does not vouch for what this code does. Read its code (or run claude plugin validate . in its folder), weigh what it reaches, and install the commit you read.
From its marketplace
Its repository is its marketplace. Add that marketplace (in the terminal with these commands, or in the desktop app's plugin settings) and install the mod from it:
/plugin marketplace add Mark-Hickey/claude-nine/plugin install linear-watch@claude-mods/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (e7a5ed8e6e17). Compare them before you install. /reload-plugins loads it into a session that is already open.
Try the commit ModsCode read
No marketplace needed. In a terminal, clone the repository, check out the commit read, validate the mod, and load it for one session:
git clone https://github.com/Mark-Hickey/claude-ninegit -C claude-nine checkout e7a5ed8e6e17b6df2f7f67c87d36f185cbf43328claude plugin validate claude-nine/linear-watchclaude --plugin-dir claude-nine/linear-watchThe validate line lists the events the mod hooks and what it asks Claude Code to do, without running it. The last line loads the mod for this session only and writes nothing to your settings. If the author has rewritten history, the commit may no longer exist.
Ask Claude about it
With the ModsCode connector added, Claude can read this mod's code and what it reaches, and build on them. Ask it like this:
Read the ModsCode mod "mark-hickey-linear-watch" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- explain-asSumit Paul★ 20
- cc-pr-trackerSeza Akgün★ 5
- ci-autopilotmako-code★ 1
- gh-inboxmako-code★ 1
- ci-invadersSID Technologies★ 0
- delivery-run-viewJob Schepers★ 0
More from this repository
Badge for your README
If this is your mod, paste this into your README. It links to this page.
[](https://modscode.com/claude-mods/mods/mark-hickey-linear-watch/)