modscode / Gallery / linear-claude-mod
linear-claude-mod
A Claude Code pane of your assigned Linear tickets by status; click one to load it into the session, read its details, comment, or change its status and priority
What it does
- Draws a pane, toasts
- Adds /tickets
- Hooks session.start
- Starts processes
Good points
- No network calls
- Written in TypeScript
- Handles errors
- Writes no files
Code to start from
Two kinds: a starter modscode writes from the design above, and the lines of the mod's own code that draw it.
Starter (register.tsx)
import type { Register } from 'claude-code'
// Drawn like linear-claude-mod by rjohnt (pane, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/rjohnt-linear-claude-mod/
// 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" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Button, Text, Input, Select, Markdown } = $.ui.resolve(e)
const id = '…'
const title = '…'
const meta = '…'
const labels = '…'
const branch = '…'
const saving = '…'
const stateValue = '…'
const priority = '…'
const detailError = '…'
const length = '…'
const author = '…'
const ago = '…'
const body = '…'
const author2 = '…'
const author3 = '…'
return (
<Box flexDirection="column" gap={1}>
<Box justifyContent="space-between">
<Button plain hotkey="b" label="Back to list" />
<Box gap={2}>
<Button plain hotkey="w" label="Work on this" />
<Button plain hotkey="o" label="Open in Linear" />
</Box>
</Box>
<Box flexDirection="column">
<Text bold>
{id}
{" "}
{title}
</Text>
<Text dimColor>
{meta}
</Text>
<Text color="magenta">
{labels}
</Text>
<Text dimColor>
{"branch "}
{branch}
</Text>
</Box>
<Box flexDirection="column">
<Box gap={2}>
<Button plain hotkey="c" label="Comment" />
<Button plain hotkey="m" label="Move" />
<Button plain hotkey="p" label="Priority" />
<Button plain hotkey="x" label="Cancel" />
</Box>
<Text dimColor>
{saving}
</Text>
<Input label="Comment: " placeholder="Markdown; Enter posts it" submitLabel="post" autoFocus />
<Text dimColor>
Loading statuses…
</Text>
<Select label="Move to: " value={`${stateValue}`} autoFocus />
<Select label="Priority: " value={`${priority}`} autoFocus />
</Box>
<Text dimColor>
Loading ticket…
</Text>
<Text color="red">
{"Linear: "}
{detailError}
</Text>
<Markdown text="_No description._" />
<Box flexDirection="column">
<Text bold>
Comments (
{length}
)
</Text>
<Text dimColor>
None yet.
</Text>
<Box flexDirection="column" marginTop={1}>
<Text color="cyan">
{author}
<Text dimColor>
{` ${ago}`}
</Text>
</Text>
<Markdown text={`${body}`} />
</Box>
<Box flexDirection="column" marginTop={1}>
<Text color="cyan">
{author2}
<Text dimColor>
{` ${ago}`}
</Text>
</Text>
<Markdown text={`${body}`} />
</Box>
<Box flexDirection="column" marginTop={1}>
<Text color="cyan">
{author3}
<Text dimColor>
{` ${ago}`}
</Text>
</Text>
<Markdown text={`${body}`} />
</Box>
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
const url = '…'
const id = '…'
await $.ui.toast(`Couldn't open a browser: ${url}`)
await $.ui.toast(`Loading ${id} into the session`)
return next(e)
})
}
The mod's own code
Shown under the mod's licence (MIT); its text is below. Keep the notice if you copy these lines.
hooks/register.tsx lines 216–375 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const ui = $.ui.resolve(e)
const { Box, Text, Button, Markdown } = ui
// Mobile draws no Input or Select yet, so it gets no actions.
const fields = 'Input' in ui && 'Select' in ui ? { Input: ui.Input, Select: ui.Select } : null
const now = await $.clock.now()
const {
selected,
detail,
isLoading: isDetailLoading,
error: detailError,
action,
states,
saving,
} = await read($, view)
if (selected) {
const t = detail ?? selected
const meta = [
t.status,
PRIORITY_LABEL[t.priority]?.trim() || null,
t.project,
detail?.assignee,
detail?.updatedAt ? `updated ${ago(now - Date.parse(detail.updatedAt))}` : null,
].filter(Boolean)
return (
<Box flexDirection="column" gap={1}>
<Box justifyContent="space-between">
<Button key="back" plain hotkey="b" label="Back to list" onPress={() => void backToList($)} />
<Box gap={2}>
<Button
key="work"
plain
hotkey="w"
label="Work on this"
onPress={() => {
void $.prompt.submit({ text: workPrompt(selected), asUser: true })
$.ui.toast(`Loading ${selected.id} into the session`)
}}
/>
<Button key="open" plain hotkey="o" label="Open in Linear" onPress={() => void openUrl($, t.url)} />
</Box>
</Box>
<Box flexDirection="column">
<Text bold>
{t.id} {t.title}
</Text>
<Text dimColor>{meta.join(' · ')}</Text>
{detail && detail.labels.length > 0 && <Text color="magenta">{detail.labels.join(', ')}</Text>}
{detail?.branch && <Text dimColor>branch {detail.branch}</Text>}
</Box>
{fields && (
<Box flexDirection="column">
<Box gap={2}>
<Button key="act:comment" plain hotkey="c" label="Comment" onPress={() => void openAction($, 'comment')} />
<Button key="act:move" plain hotkey="m" label="Move" onPress={() => void openAction($, 'move')} />
<Button key="act:priority" plain hotkey="p" label="Priority" onPress={() => void openAction($, 'priority')} />
{action && <Button key="act:cancel" plain hotkey="x" label="Cancel" onPress={() => void closeAction($)} />}
</Box>
{saving && <Text dimColor>{saving}</Text>}
{!saving && action === 'comment' && (
<fields.Input
key={ACTION_KEY.comment}
label="Comment: "
placeholder="Markdown; Enter posts it"
submitLabel="post"
autoFocus
onSubmit={value => void postComment($, value)}
/>
)}
{!saving && action === 'move' && !states && <Text dimColor>Loading statuses…</Text>}
{!saving && action === 'move' && states && states.length > 0 && (
<fields.Select
key={ACTION_KEY.move}
label="Move to: "
options={states.map(s => ({ value: stateValue(s), label: s.name }))}
value={stateValue(states.find(s => s.name === t.status) ?? states[0]!)}
autoFocus
onSelect={value => void moveTo($, value)}
/>
)}
{!saving && action === 'priority' && (
<fields.Select
key={ACTION_KEY.priority}
label="Priority: "
options={PRIORITY_OPTIONS}
value={String(t.priority)}
autoFocus
onSelect={value => void setPriority($, value)}
/>
)}
</Box>
)}
{isDetailLoading && <Text dimColor>Loading ticket…</Text>}
{detailError && <Text color="red">Linear: {detailError}</Text>}
{detail && (
<Markdown key="description" text={detail.description.trim() || '_No description._'} />
)}
{detail && (
<Box flexDirection="column">
<Text bold>Comments ({detail.comments.length})</Text>
{detail.comments.length === 0 && <Text dimColor>None yet.</Text>}
{detail.comments.map((c, i) => (
<Box key={`c:${i}`} flexDirection="column" marginTop={1}>
<Text color="cyan">
{c.author}
<Text dimColor>{c.createdAt ? ` ${ago(now - Date.parse(c.createdAt))}` : ''}</Text>
</Text>
<Markdown key={`cm:${i}`} text={c.body} />
</Box>
))}
</Box>
)}
</Box>
)
}
const { tickets, loadedAt, isLoading, error } = await read($, board)
const cols = e.props.bodyColumns || e.viewport?.columns || 80
const room = Math.max(3, (e.viewport?.rows ?? 24) - 3)
const groups = groupTickets(tickets)
const rows: RenderNode[] = []
let hotkey = 1
for (const g of groups) {
if (rows.length >= room) break
rows.push(
<Text key={`h:${g.status}`} bold color={g.tickets[0]?.statusType === 'started' ? 'cyan' : undefined}>
{g.status} ({g.tickets.length})
</Text>,
)
for (const t of g.tickets) {
if (rows.length >= room) break
const key = hotkey <= 9 ? String(hotkey++) : undefined
const label = `${PRIORITY_LABEL[t.priority] ?? ' '} ${t.id} ${t.title}`
rows.push(
<Button
key={t.id}
plain
hotkey={key}
dimColor={t.statusType === 'backlog'}
label={label.length > cols - 6 ? `${label.slice(0, cols - 7)}…` : label}
onPress={() => void showTicket($, t)}
/>,
)
}
}
const hidden = tickets.length + groups.length - rows.length
return (
<Box flexDirection="column">
<Box justifyContent="space-between">
<Text dimColor>
{isLoading ? 'Refreshing…' : loadedAt ? `${tickets.length} open · ${ago(now - loadedAt)}` : ''}
</Text>
<Button key="refresh" plain hotkey="r" label="Refresh" onPress={() => void refresh($)} />
</Box>
{error && <Text color="red">Linear: {error}</Text>}
{!isLoading && !error && loadedAt && tickets.length === 0 && <Text dimColor>No open tickets assigned to you.</Text>}Licence text (MIT)
MIT License Copyright (c) 2026 Ryan Timmons Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
What its code calls
runs programsdrives Claude
The design, read from code
Drawn from the mod's source at the commit read, not from a run: a list is drawn three times, a condition takes its first branch that draws in the desktop app, and a value only the run time knows is shown as a made-up sample (dotted underline) or left out. Colours and type are this site's.
What its code shows
Read from the source at commit 629eb7d23bb8 on 2026-10-06. 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.hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.2 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.its repository's .claude-plugin/marketplace.json does not list it: no install line to give |
| 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.hooks/register.tsx:92 a program named at run time |
| Reads and sends | Whether it both reads files or environment variables and reaches the network.reaches no network |
| 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.MIT |
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 the code below (or run claude plugin validate . in its folder), weigh what it reaches, and install the commit you read.
Its repository's .claude-plugin/marketplace.json does not list it, so there is no install line to give. Read it as code, or follow its author's README.
Ask Claude about it
With the modscode connector added, Claude can read this design, what its code reaches and its code, and build on them. Ask it like this:
Read the modscode design "rjohnt-linear-claude-mod" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
Ask Claude…Skins0 Your promptadd rate limiting to the hub api0 Tool rows: finished, running, failedYour prompt Spinner0 Folded group of reads and searches●main · note 3 · note 3 · note 30 Edit diff cardDesktop only; the terminal keeps Claude Code's diff.0 Shell output cardDesktop only.0 Code block cardDesktop only; the terminal keeps Claude Code's markdown.0 TableAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentCopyAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentCopyAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentCopy0 SpinnerAccent SpinnerSpinnerSpinner… 2h 10m0 Band above the prompt: normal, then nudging to compact█████░░░ 42% build█████░░░ 42% build█████░░░ 42% buildContext is 42% full0 Compact now0 Band above a questionTable BashBashBash0 Turn footer (terminal)3 build in 2h 10m · Grep · +3 −3
-
Ask Claude…PR securityall3 shown · 3 ignoredLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — Editignored (3)⋯src/app.ts:Approve Pull requests: Mergesrc/app.ts:Approve Pull requests: Mergesrc/app.ts:Approve Pull requests: Merge
-
a1b2c3d's result did not fit in the promptAsk Claude…
-
Ask Claude…QuestList 1 Kanban 2Fleet f This repo l Refs g Refresh r Normal size z Collapse cOpen FilterokAll reposDoneClosedClose itList* marks a task whose refs disagree about its status; origin/dev is drawn where it has one. Resolving it is that reposit…New task in acme/app CreateClosed tracker change in acme/app not committed yet. Until they land, this repository's other checkouts cannot see the ids in them and can mint the same… Ask Claude to land them⋯
-
Ask Claude…Vikunja 3 doing · 3 blockedVikunjaloading… · demo dataRefresh rAnyoneVikunjaAnyMarBlocked ShowHideDue buildbuildbuildClearFind # Mar findClearFOUND #Marlooking…MarNo task has that number.Apr✓ Fix loginOct 6my-app buildPhighApr✓ Fix loginOct 6my-app buildPhighApr✓ Fix loginOct 6my-app buildPhighTHIS SESSION3Apr✓ Fix loginOct 6my-app buildPhighApr✓ Fix loginOct 6my-app buildPhighApr✓ Fix loginOct 6my-app buildPhighbuild3Nothing here.my-appApr✓ Fix loginOct 6Done buildPhighApr✓ Fix loginOct 6Done buildPhighApr✓ Fix loginOct 6Done buildPhighmy-appApr✓ Fix loginOct 6Done buildPhighApr✓ Fix loginOct 6Done buildPhighApr✓ Fix loginOct 6Done buildPhighmy-appApr✓ Fix loginOct 6Done buildPhighApr✓ Fix loginOct 6Done buildPhighApr✓ Fix loginOct 6Done buildPhigh3 more not shown. Narrow them with the filters.build3Nothing here.my-appApr✓ Fix loginOct 6Done buildPhighApr✓ Fix loginOct 6Done buildPhighApr✓ Fix loginOct 6Done buildPhighmy-appApr✓ Fix loginOct 6Done buildPhighApr✓ Fix loginOct 6Done buildPhighApr✓ Fix loginOct 6Done buildPhighmy-appApr✓ Fix loginOct 6Done buildPhighApr✓ Fix loginOct 6Done buildPhighApr✓ Fix loginOct 6Done buildPhigh
-
Ask Claude…agent-discoverbuildbuildbuildRefreshMCP Browse/3Tab / shift+Tab move · Enter presses · ↑↓ scroll · Esc back to the promptBrowse...Audit asks:DeclineAcceptDeclineCancelAudit asks:DeclineAcceptDeclineCancelAudit asks:DeclineAcceptDeclineCancel