ModsCode / Claude Code Mods / Ranking / linear
linear
Sidebar of your assigned Linear issues; Start creates a git worktree and begins implementing the issue.
What it does
- Draws a pane, toasts
- Hooks session.start
- 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 by omeerdvrn (pane, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/omeerdvrn-linear/
// 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: my issues" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button, Link } = $.ui.resolve(e)
const time = '…'
const length = '…'
const inProgress = '…'
const failed = '…'
const statusGlyph = '…'
const status = '…'
const id = '…'
const title = '…'
const estimate = '…'
const team = '…'
const text = '…'
const labels = '…'
const branch = '…'
const previewOf = '…'
const message = '…'
const worktree = '…'
const url = '…'
const id2 = '…'
const title2 = '…'
const estimate2 = '…'
const team2 = '…'
const labels2 = '…'
const branch2 = '…'
const previewOf2 = '…'
const message2 = '…'
const id3 = '…'
const title3 = '…'
const estimate3 = '…'
const team3 = '…'
const labels3 = '…'
const branch3 = '…'
const previewOf3 = '…'
const message3 = '…'
const statusGlyph2 = '…'
const status2 = '…'
const length2 = '…'
const id4 = '…'
const title4 = '…'
const estimate4 = '…'
const team4 = '…'
const labels4 = '…'
const branch4 = '…'
const previewOf4 = '…'
const message4 = '…'
const id5 = '…'
const title5 = '…'
const estimate5 = '…'
const team5 = '…'
const labels5 = '…'
const branch5 = '…'
const previewOf5 = '…'
const message5 = '…'
const id6 = '…'
const title6 = '…'
const estimate6 = '…'
const team6 = '…'
const labels6 = '…'
const branch6 = '…'
const previewOf6 = '…'
const message6 = '…'
const statusGlyph3 = '…'
const status3 = '…'
const length3 = '…'
const id7 = '…'
const title7 = '…'
return (
<Box flexDirection="column">
<Box flexDirection="row" justifyContent="space-between">
<Text bold>
My issues
</Text>
<Box flexDirection="row" gap={1}>
<Text dimColor>
connecting…
</Text>
<Text dimColor>
syncing…
</Text>
<Text dimColor>
{time}
</Text>
<Button label="⟳" plain dimColor />
</Box>
</Box>
<Box flexDirection="row" flexWrap="wrap" columnGap={3} marginTop={1}>
<Button label={`All ${length}`} plain variant="primary" />
<Button label={`Todo ${length}`} plain variant="primary" />
<Button label={`In progress ${inProgress}`} plain variant="primary" />
<Button label={`In review ${length}`} plain variant="primary" />
<Button label={`Done ${length}`} plain variant="primary" />
</Box>
<Box flexDirection="column" marginTop={1}>
<Text color="error">
Couldn't sync with Linear.
</Text>
<Text dimColor wrap="wrap">
{failed}
</Text>
<Text dimColor>
Check /mcp, then press ⟳.
</Text>
</Box>
<Box marginTop={1}>
<Text dimColor>
Loading your issues from Linear…
</Text>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text color="success">
Nothing assigned to you.
</Text>
<Text dimColor>
New assignments show up here on the next sync.
</Text>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text dimColor>
Nothing is waiting for review.
</Text>
</Box>
<Box flexDirection="column" marginTop={1}>
<Box flexDirection="row" gap={1}>
<Text>
{statusGlyph}
</Text>
<Text bold>
{status}
</Text>
<Text dimColor>
{length}
</Text>
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="error" paddingX={1}>
<Box flexDirection="row" justifyContent="space-between">
<Text color="#5E6AD2">
{id}
</Text>
<Button label="✕" plain dimColor />
</Box>
<Text bold wrap="wrap">
{title}
</Text>
<Box flexDirection="column" marginTop={1}>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Status
</Text>
</Box>
<Text>
{`${statusGlyph} ${status}`}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Priority
</Text>
</Box>
<Text>
No priority
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Estimate
</Text>
</Box>
<Text>
{estimate}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Project
</Text>
</Box>
<Text>
No project
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Team
</Text>
</Box>
<Text>
{team}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Due
</Text>
</Box>
<Text color="error">
{`${text}, overdue`}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Labels
</Text>
</Box>
<Text color="ide">
{labels}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Branch
</Text>
</Box>
<Text dimColor>
{branch}
</Text>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text dimColor wrap="wrap">
{previewOf}
</Text>
</Box>
<Box marginTop={1}>
<Text color="error" wrap="wrap">
{"✕ "}
{message}
{`
⎇ ${worktree}`}
</Text>
</Box>
<Box flexDirection="row" flexWrap="wrap" columnGap={2} marginTop={1}>
<Button label="⟳ Starting…" variant="primary" autoFocus />
<Button label="Less" plain dimColor />
<Link href={`${url}`} label="Open in Linear ↗" />
</Box>
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="error" paddingX={1}>
<Box flexDirection="row" justifyContent="space-between">
<Text color="#5E6AD2">
{id2}
</Text>
<Button label="✕" plain dimColor />
</Box>
<Text bold wrap="wrap">
{title2}
</Text>
<Box flexDirection="column" marginTop={1}>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Status
</Text>
</Box>
<Text>
{`${statusGlyph} ${status}`}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Priority
</Text>
</Box>
<Text>
No priority
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Estimate
</Text>
</Box>
<Text>
{estimate2}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Project
</Text>
</Box>
<Text>
No project
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Team
</Text>
</Box>
<Text>
{team2}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Due
</Text>
</Box>
<Text color="error">
{`${text}, overdue`}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Labels
</Text>
</Box>
<Text color="ide">
{labels2}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Branch
</Text>
</Box>
<Text dimColor>
{branch2}
</Text>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text dimColor wrap="wrap">
{previewOf2}
</Text>
</Box>
<Box marginTop={1}>
<Text color="error" wrap="wrap">
{"✕ "}
{message2}
{`
⎇ ${worktree}`}
</Text>
</Box>
<Box flexDirection="row" flexWrap="wrap" columnGap={2} marginTop={1}>
<Button label="⟳ Starting…" variant="primary" autoFocus />
<Button label="Less" plain dimColor />
<Link href={`${url}`} label="Open in Linear ↗" />
</Box>
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="error" paddingX={1}>
<Box flexDirection="row" justifyContent="space-between">
<Text color="#5E6AD2">
{id3}
</Text>
<Button label="✕" plain dimColor />
</Box>
<Text bold wrap="wrap">
{title3}
</Text>
<Box flexDirection="column" marginTop={1}>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Status
</Text>
</Box>
<Text>
{`${statusGlyph} ${status}`}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Priority
</Text>
</Box>
<Text>
No priority
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Estimate
</Text>
</Box>
<Text>
{estimate3}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Project
</Text>
</Box>
<Text>
No project
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Team
</Text>
</Box>
<Text>
{team3}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Due
</Text>
</Box>
<Text color="error">
{`${text}, overdue`}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Labels
</Text>
</Box>
<Text color="ide">
{labels3}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Branch
</Text>
</Box>
<Text dimColor>
{branch3}
</Text>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text dimColor wrap="wrap">
{previewOf3}
</Text>
</Box>
<Box marginTop={1}>
<Text color="error" wrap="wrap">
{"✕ "}
{message3}
{`
⎇ ${worktree}`}
</Text>
</Box>
<Box flexDirection="row" flexWrap="wrap" columnGap={2} marginTop={1}>
<Button label="⟳ Starting…" variant="primary" autoFocus />
<Button label="Less" plain dimColor />
<Link href={`${url}`} label="Open in Linear ↗" />
</Box>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Box flexDirection="row" gap={1}>
<Text>
{statusGlyph2}
</Text>
<Text bold>
{status2}
</Text>
<Text dimColor>
{length2}
</Text>
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="error" paddingX={1}>
<Box flexDirection="row" justifyContent="space-between">
<Text color="#5E6AD2">
{id4}
</Text>
<Button label="✕" plain dimColor />
</Box>
<Text bold wrap="wrap">
{title4}
</Text>
<Box flexDirection="column" marginTop={1}>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Status
</Text>
</Box>
<Text>
{`${statusGlyph} ${status}`}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Priority
</Text>
</Box>
<Text>
No priority
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Estimate
</Text>
</Box>
<Text>
{estimate4}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Project
</Text>
</Box>
<Text>
No project
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Team
</Text>
</Box>
<Text>
{team4}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Due
</Text>
</Box>
<Text color="error">
{`${text}, overdue`}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Labels
</Text>
</Box>
<Text color="ide">
{labels4}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Branch
</Text>
</Box>
<Text dimColor>
{branch4}
</Text>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text dimColor wrap="wrap">
{previewOf4}
</Text>
</Box>
<Box marginTop={1}>
<Text color="error" wrap="wrap">
{"✕ "}
{message4}
{`
⎇ ${worktree}`}
</Text>
</Box>
<Box flexDirection="row" flexWrap="wrap" columnGap={2} marginTop={1}>
<Button label="⟳ Starting…" variant="primary" autoFocus />
<Button label="Less" plain dimColor />
<Link href={`${url}`} label="Open in Linear ↗" />
</Box>
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="error" paddingX={1}>
<Box flexDirection="row" justifyContent="space-between">
<Text color="#5E6AD2">
{id5}
</Text>
<Button label="✕" plain dimColor />
</Box>
<Text bold wrap="wrap">
{title5}
</Text>
<Box flexDirection="column" marginTop={1}>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Status
</Text>
</Box>
<Text>
{`${statusGlyph} ${status}`}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Priority
</Text>
</Box>
<Text>
No priority
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Estimate
</Text>
</Box>
<Text>
{estimate5}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Project
</Text>
</Box>
<Text>
No project
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Team
</Text>
</Box>
<Text>
{team5}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Due
</Text>
</Box>
<Text color="error">
{`${text}, overdue`}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Labels
</Text>
</Box>
<Text color="ide">
{labels5}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Branch
</Text>
</Box>
<Text dimColor>
{branch5}
</Text>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text dimColor wrap="wrap">
{previewOf5}
</Text>
</Box>
<Box marginTop={1}>
<Text color="error" wrap="wrap">
{"✕ "}
{message5}
{`
⎇ ${worktree}`}
</Text>
</Box>
<Box flexDirection="row" flexWrap="wrap" columnGap={2} marginTop={1}>
<Button label="⟳ Starting…" variant="primary" autoFocus />
<Button label="Less" plain dimColor />
<Link href={`${url}`} label="Open in Linear ↗" />
</Box>
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="error" paddingX={1}>
<Box flexDirection="row" justifyContent="space-between">
<Text color="#5E6AD2">
{id6}
</Text>
<Button label="✕" plain dimColor />
</Box>
<Text bold wrap="wrap">
{title6}
</Text>
<Box flexDirection="column" marginTop={1}>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Status
</Text>
</Box>
<Text>
{`${statusGlyph} ${status}`}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Priority
</Text>
</Box>
<Text>
No priority
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Estimate
</Text>
</Box>
<Text>
{estimate6}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Project
</Text>
</Box>
<Text>
No project
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Team
</Text>
</Box>
<Text>
{team6}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Due
</Text>
</Box>
<Text color="error">
{`${text}, overdue`}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Labels
</Text>
</Box>
<Text color="ide">
{labels6}
</Text>
</Box>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Branch
</Text>
</Box>
<Text dimColor>
{branch6}
</Text>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text dimColor wrap="wrap">
{previewOf6}
</Text>
</Box>
<Box marginTop={1}>
<Text color="error" wrap="wrap">
{"✕ "}
{message6}
{`
⎇ ${worktree}`}
</Text>
</Box>
<Box flexDirection="row" flexWrap="wrap" columnGap={2} marginTop={1}>
<Button label="⟳ Starting…" variant="primary" autoFocus />
<Button label="Less" plain dimColor />
<Link href={`${url}`} label="Open in Linear ↗" />
</Box>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Box flexDirection="row" gap={1}>
<Text>
{statusGlyph3}
</Text>
<Text bold>
{status3}
</Text>
<Text dimColor>
{length3}
</Text>
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="error" paddingX={1}>
<Box flexDirection="row" justifyContent="space-between">
<Text color="#5E6AD2">
{id7}
</Text>
<Button label="✕" plain dimColor />
</Box>
<Text bold wrap="wrap">
{title7}
</Text>
<Box flexDirection="column" marginTop={1}>
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>
Status
</Text>
</Box>
<Text>
{`${statusGlyph} ${status}`}
</Text>
</Box>
<Box flexDirection="row" />
</Box>
</Box>
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
const id = '…'
const verb = '…'
const branch = '…'
await $.ui.toast(`${id}: ${verb} worktree ${branch}`)
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.
mods/linear/hooks/register.tsx lines 307–466 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const { Box, Text, Button, Link, Markdown } = $.ui.resolve(e)
const all = await read($, issues)
const done = await read($, doneIssues)
const shown = await read($, filter)
const isTodo = (issue: LinearIssue) => issue.statusType === 'unstarted'
const list =
shown === 'started'
? all.filter(isInProgress)
: shown === 'review'
? all.filter(isInReview)
: shown === 'todo'
? all.filter(isTodo)
: shown === 'done'
? done
: all
const loading = await read($, isLoading)
const connecting = await read($, isConnecting)
const failed = await read($, error)
const at = await read($, fetchedAt)
const open = await read($, expanded)
const full = await read($, fullDescriptions)
const started = await read($, starts)
const focus = await read($, selected)
const columns = Math.max(30, e.props.bodyColumns)
const time = at === null ? '' : new Date(at).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })
const inProgress = all.filter(isInProgress).length
const custom = parseStatusColors(options.statusColors ?? '')
// inside a card: border and padding take two columns each side
const titleRoom = columns - 4
const field = (name: string, value: RenderChildren) => (
<Box flexDirection="row">
<Box width={10} flexShrink={0}>
<Text dimColor>{name}</Text>
</Box>
{value}
</Box>
)
const card = (issue: LinearIssue) => {
const color = statusColor(issue, custom)
const priority = priorityLook(issue.priority)
const estimate = shortEstimate(issue.estimate)
const due = dueLook(issue.dueDate, at)
const state = started[issue.id]
const isFull = open[issue.id] === true
const description = cleanDescription(full[issue.id] ?? issue.description)
return (
<Box
key={`card:${issue.id}`}
flexDirection="column"
borderStyle="round"
borderColor={state?.phase === 'error' ? 'error' : state?.phase === 'started' ? 'success' : ACCENT}
paddingX={1}
>
<Box flexDirection="row" justifyContent="space-between">
<Text color={ACCENT}>{issue.id}</Text>
<Button
key={`close:${issue.id}`}
label="✕"
plain
dimColor
onPress={() => update($, selected, () => null)}
/>
</Box>
<Text bold wrap="wrap">
{issue.title}
</Text>
<Box flexDirection="column" marginTop={1}>
{field('Status', <Text color={color}>{`${statusGlyph(issue)} ${issue.status}`}</Text>)}
{field('Priority', <Text>{issue.priority ?? 'No priority'}</Text>)}
{estimate !== null && field('Estimate', <Text>{estimate}</Text>)}
{field('Project', <Text dimColor={issue.project === null}>{issue.project ?? 'No project'}</Text>)}
{issue.team !== null && field('Team', <Text>{issue.team}</Text>)}
{due !== null &&
field(
'Due',
<Text color={due.isOverdue ? 'error' : 'text'}>
{due.isOverdue ? `${due.text}, overdue` : due.text}
</Text>,
)}
{issue.labels.length > 0 && field('Labels', <Text color="ide">{issue.labels.join(' ')}</Text>)}
{issue.branch !== null && field('Branch', <Text dimColor>{issue.branch}</Text>)}
</Box>
{description !== '' && (
<Box flexDirection="column" marginTop={1}>
{isFull ? (
<Markdown text={description} />
) : (
<Text dimColor wrap="wrap">
{previewOf(description, (columns - 4) * 4)}
</Text>
)}
</Box>
)}
{state !== undefined && (
<Box marginTop={1}>
<Text
color={state.phase === 'error' ? 'error' : state.phase === 'started' ? 'success' : 'warning'}
wrap="wrap"
>
{state.phase === 'error' ? '✕ ' : state.phase === 'started' ? '✓ ' : '⟳ '}
{state.message}
{state.worktree ? `\n⎇ ${state.worktree}` : ''}
</Text>
</Box>
)}
<Box flexDirection="row" flexWrap="wrap" columnGap={2} marginTop={1}>
{!isFinished(issue) && (
<Button
key={`start:${issue.id}`}
label={
state?.phase === 'working'
? '⟳ Starting…'
: state?.phase === 'started'
? '▶ Start again'
: '▶ Start in worktree'
}
variant="primary"
autoFocus
onPress={() => start($, options, issue)}
/>
)}
{description.length > (columns - 4) * 4 && (
<Button
key={`more:${issue.id}`}
label={isFull ? 'Less' : 'Full description'}
plain
dimColor
onPress={async () => {
if (!isFull) await fullDescription($, options, issue)
await update($, expanded, all => ({ ...all, [issue.id]: !all[issue.id] }))
}}
/>
)}
<Link href={issue.url} label="Open in Linear ↗" />
</Box>
</Box>
)
}
const row = (issue: LinearIssue) => {
const priority = priorityLook(issue.priority)
const estimate = shortEstimate(issue.estimate)
const state = started[issue.id]
const color = statusColor(issue, custom)
const where = issue.project ?? issue.team
const canStart = !isFinished(issue)
const startLabel = !canStart
? ''
: state?.phase === 'working'
? '⟳'
: state?.phase === 'started'
? '✓ Started'
: '▶ Start'
return (
<BoxLicence text (MIT)
MIT License Copyright (c) 2026 omeerdvrn and o-mods contributors 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.
How to build this: Pane (panel), Toast
What its code calls
runs programsdrives Claudecalls tools
What its code shows
Read from the source at commit 1ec0b1fdcf01. 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.mods/linear/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.git (reaches the network) |
| 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, an MCP server, 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.MIT |
| 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.1 command: text only |
| 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).mods/linear/hooks/register.tsx:84 an MCP 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.agent.spawn, prompt.submit (as the person), adds command linear |
| 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 · also: session.start, ui.render (Pane) · timers: clock.after, 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 omeerdvrn/o-mods/plugin install linear@o-mods/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (1ec0b1fdcf01). 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/omeerdvrn/o-modsgit -C o-mods checkout 1ec0b1fdcf01f962ecf441e38f02e506ead32890claude plugin validate o-mods/mods/linearclaude --plugin-dir o-mods/mods/linearThe 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 or ChatGPT about it
With ModsCode added as a connector, Claude or ChatGPT can read this mod's code, what it reaches and how its controls are wired, and build on them. Ask it like this:
Read the ModsCode mod "omeerdvrn-linear" with its code and make me one like itAdd the ModsCode MCP to Claude or ChatGPT
Similar mods
- codebuildawesome-claude-mods★ 3
- pr-commentsaguiddir★ 2
- pr-inbox2bo★ 2
- gh-inboxmako-code★ 1
- ccmod-chroniclem-aoki★ 0
- issue-boardastrosteveo★ 0
More from this repository
- faahomeerdvrn★ 0
- heatomeerdvrn★ 0
- huhomeerdvrn★ 0
- personaomeerdvrn★ 0
- pr-statusomeerdvrn★ 0
- scenesomeerdvrn★ 0
See all 12 mods in 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/omeerdvrn-linear/)