modscode / Gallery / vikunja-tasks
vikunja-tasks
A live Vikunja pane for Claude Code: the Doing, Blocked and To-Do lanes, the task the session is working on, and a button to start a session on a task in its folder
What it does
- Draws a pane, the status line, toasts
- Adds /vikunja
- Watches tool calls and can refuse them
- Hooks session.start
- Calls the network
Good points
- Written in TypeScript
- Has a desktop-specific branch
- Handles errors
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 vikunja-tasks by Tim Moore (pane, status, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/angusmaul-vikunja-tasks/
// 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: "Vikunja" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button, Select, Input } = $.ui.resolve(e)
const assignee = '…'
const project = '…'
const priority = '…'
const label = '…'
const error = '…'
const query = '…'
const error2 = '…'
const identifier = '…'
const title = '…'
const dueLabel = '…'
const identifier2 = '…'
const dueLabel2 = '…'
const project2 = '…'
const priority2 = '…'
const identifier3 = '…'
const dueLabel3 = '…'
const project3 = '…'
const priority3 = '…'
const length = '…'
const identifier4 = '…'
const dueLabel4 = '…'
const project4 = '…'
const priority4 = '…'
const identifier5 = '…'
const dueLabel5 = '…'
const project5 = '…'
const priority5 = '…'
const identifier6 = '…'
const dueLabel6 = '…'
const project6 = '…'
const priority6 = '…'
const name = '…'
const project7 = '…'
const identifier7 = '…'
const dueLabel7 = '…'
const assignees = '…'
const priority7 = '…'
const identifier8 = '…'
const dueLabel8 = '…'
const assignees2 = '…'
const priority8 = '…'
const identifier9 = '…'
const dueLabel9 = '…'
const assignees3 = '…'
const priority9 = '…'
const project8 = '…'
const identifier10 = '…'
const dueLabel10 = '…'
const assignees4 = '…'
const priority10 = '…'
const identifier11 = '…'
const dueLabel11 = '…'
const assignees5 = '…'
const priority11 = '…'
const identifier12 = '…'
const dueLabel12 = '…'
const assignees6 = '…'
const priority12 = '…'
const project9 = '…'
const identifier13 = '…'
const dueLabel13 = '…'
const assignees7 = '…'
const priority13 = '…'
const identifier14 = '…'
const dueLabel14 = '…'
const assignees8 = '…'
const priority14 = '…'
const identifier15 = '…'
const dueLabel15 = '…'
const assignees9 = '…'
const priority15 = '…'
const length2 = '…'
const name2 = '…'
const project10 = '…'
const identifier16 = '…'
const dueLabel16 = '…'
const assignees10 = '…'
const priority16 = '…'
const identifier17 = '…'
const dueLabel17 = '…'
const assignees11 = '…'
const priority17 = '…'
const identifier18 = '…'
const dueLabel18 = '…'
const assignees12 = '…'
const priority18 = '…'
const project11 = '…'
const identifier19 = '…'
const dueLabel19 = '…'
const assignees13 = '…'
const priority19 = '…'
const identifier20 = '…'
const dueLabel20 = '…'
const assignees14 = '…'
const priority20 = '…'
const identifier21 = '…'
const dueLabel21 = '…'
const assignees15 = '…'
const priority21 = '…'
const project12 = '…'
const identifier22 = '…'
const dueLabel22 = '…'
const assignees16 = '…'
const priority22 = '…'
const identifier23 = '…'
const dueLabel23 = '…'
const assignees17 = '…'
const priority23 = '…'
const identifier24 = '…'
const dueLabel24 = '…'
const assignees18 = '…'
const priority24 = '…'
return (
<Box flexDirection="column" gap={1}>
<Box flexDirection="row" justifyContent="space-between">
<Text dimColor>
loading…
{" · demo data"}
</Text>
<Button label="Refresh" hotkey="r" autoFocus />
</Box>
<Box flexDirection="row" flexWrap="wrap" columnGap={2} borderStyle="round" borderColor="#808080" paddingX={1}>
<Select label="Who" value={`${assignee}`} options={[{"value":"all","label":"Anyone"},{"label":"‹option›"},{"value":"nobody","label":"Unassigned"}]} />
<Select label="Project" value={`${project}`} options={[{"label":"‹option›"},{"label":"‹option›"}]} />
<Select label="Priority" value={`${priority}`} options={[{"value":"all","label":"Any"},{"value":"5","label":"P5 only"},{"value":"4","label":"P4 and up"},{"value":"3","label":"P3 and up"},{"value":"2","label":"P2 and up"},{"value":"1","label":"P1 and up"},{"value":"unset","label":"Not set"}]} />
<Box flexDirection="row" alignItems="center">
<Text dimColor>
{"Blocked "}
</Text>
<Button label="Show" variant="secondary" />
<Button label="Hide" variant="primary" />
</Box>
<Box flexDirection="row" alignItems="center">
<Text dimColor>
{"Due "}
</Text>
<Button label={`${label}`} variant="primary" />
<Button label={`${label}`} variant="primary" />
<Button label={`${label}`} variant="primary" />
</Box>
<Button plain label="Clear" />
</Box>
<Text bold color="red">
{error}
</Text>
<Box flexDirection="row" flexWrap="wrap" columnGap={2} paddingX={1}>
<Input label="Find #" placeholder="card number" value={`${query}`} submitLabel="find" />
<Button plain label="Clear" />
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="#808080" paddingX={1}>
<Box flexDirection="row" gap={1}>
<Text bold>
FOUND #
{query}
</Text>
<Text dimColor>
looking…
</Text>
</Box>
<Text color="#e5484d">
{error2}
</Text>
<Text dimColor>
No task has that number.
</Text>
<Box flexDirection="row" gap={1}>
<Box width={4} flexShrink={0}>
<Text color="cyan">
{identifier}
</Text>
</Box>
<Box flexShrink={1} overflow="hidden">
<Button plain label={`✓ ${title}`} />
</Box>
<Box flexGrow={1} />
<Text color="#e5484d">
{dueLabel}
</Text>
<Text dimColor>
{project}
</Text>
<Text bold color="#ffffff">
{` ${label} `}
</Text>
<Box width={4} flexShrink={0} justifyContent="center">
<Text bold color="#ffffff">
P
{priority}
</Text>
</Box>
</Box>
<Box flexDirection="row" gap={1}>
<Box width={4} flexShrink={0}>
<Text color="cyan">
{identifier2}
</Text>
</Box>
<Box flexShrink={1} overflow="hidden">
<Button plain label={`✓ ${title}`} />
</Box>
<Box flexGrow={1} />
<Text color="#e5484d">
{dueLabel2}
</Text>
<Text dimColor>
{project2}
</Text>
<Text bold color="#ffffff">
{` ${label} `}
</Text>
<Box width={4} flexShrink={0} justifyContent="center">
<Text bold color="#ffffff">
P
{priority2}
</Text>
</Box>
</Box>
<Box flexDirection="row" gap={1}>
<Box width={4} flexShrink={0}>
<Text color="cyan">
{identifier3}
</Text>
</Box>
<Box flexShrink={1} overflow="hidden">
<Button plain label={`✓ ${title}`} />
</Box>
<Box flexGrow={1} />
<Text color="#e5484d">
{dueLabel3}
</Text>
<Text dimColor>
{project3}
</Text>
<Text bold color="#ffffff">
{` ${label} `}
</Text>
<Box width={4} flexShrink={0} justifyContent="center">
<Text bold color="#ffffff">
P
{priority3}
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="cyan" paddingX={1}>
<Box flexDirection="row" gap={1}>
<Text bold color="cyan">
THIS SESSION
</Text>
<Text dimColor>
{length}
</Text>
</Box>
<Box flexDirection="row" gap={1}>
<Box width={4} flexShrink={0}>
<Text color="cyan">
{identifier4}
</Text>
</Box>
<Box flexShrink={1} overflow="hidden">
<Button plain label={`✓ ${title}`} />
</Box>
<Box flexGrow={1} />
<Text color="#e5484d">
{dueLabel4}
</Text>
<Text dimColor>
{project4}
</Text>
<Text bold color="#ffffff">
{` ${label} `}
</Text>
<Box width={4} flexShrink={0} justifyContent="center">
<Text bold color="#ffffff">
P
{priority4}
</Text>
</Box>
</Box>
<Box flexDirection="row" gap={1}>
<Box width={4} flexShrink={0}>
<Text color="cyan">
{identifier5}
</Text>
</Box>
<Box flexShrink={1} overflow="hidden">
<Button plain label={`✓ ${title}`} />
</Box>
<Box flexGrow={1} />
<Text color="#e5484d">
{dueLabel5}
</Text>
<Text dimColor>
{project5}
</Text>
<Text bold color="#ffffff">
{` ${label} `}
</Text>
<Box width={4} flexShrink={0} justifyContent="center">
<Text bold color="#ffffff">
P
{priority5}
</Text>
</Box>
</Box>
<Box flexDirection="row" gap={1}>
<Box width={4} flexShrink={0}>
<Text color="cyan">
{identifier6}
</Text>
</Box>
<Box flexShrink={1} overflow="hidden">
<Button plain label={`✓ ${title}`} />
</Box>
<Box flexGrow={1} />
<Text color="#e5484d">
{dueLabel6}
</Text>
<Text dimColor>
{project6}
</Text>
<Text bold color="#ffffff">
{` ${label} `}
</Text>
<Box width={4} flexShrink={0} justifyContent="center">
<Text bold color="#ffffff">
P
{priority6}
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="#2f9e5b" paddingX={1}>
<Box flexDirection="row" gap={1}>
<Text bold color="#2f9e5b">
{name}
</Text>
<Text dimColor>
{`${length}`}
</Text>
</Box>
<Text dimColor>
Nothing here.
</Text>
<Box flexDirection="column" marginTop={1}>
<Text dimColor italic>
{project7}
</Text>
<Box flexDirection="row" gap={1}>
<Box width={4} flexShrink={0}>
<Text color="cyan">
{identifier7}
</Text>
</Box>
<Box flexShrink={1} overflow="hidden">
<Button plain label={`✓ ${title}`} />
</Box>
<Box flexGrow={1} />
<Text color="#e5484d">
{dueLabel7}
</Text>
<Text dimColor>
{assignees}
</Text>
<Text bold color="#ffffff">
{` ${label} `}
</Text>
<Box width={4} flexShrink={0} justifyContent="center">
<Text bold color="#ffffff">
P
{priority7}
</Text>
</Box>
</Box>
<Box flexDirection="row" gap={1}>
<Box width={4} flexShrink={0}>
<Text color="cyan">
{identifier8}
</Text>
</Box>
<Box flexShrink={1} overflow="hidden">
<Button plain label={`✓ ${title}`} />
</Box>
<Box flexGrow={1} />
<Text color="#e5484d">
{dueLabel8}
</Text>
<Text dimColor>
{assignees2}
</Text>
<Text bold color="#ffffff">
{` ${label} `}
</Text>
<Box width={4} flexShrink={0} justifyContent="center">
<Text bold color="#ffffff">
P
{priority8}
</Text>
</Box>
</Box>
<Box flexDirection="row" gap={1}>
<Box width={4} flexShrink={0}>
<Text color="cyan">
{identifier9}
</Text>
</Box>
<Box flexShrink={1} overflow="hidden">
<Button plain label={`✓ ${title}`} />
</Box>
<Box flexGrow={1} />
<Text color="#e5484d">
{dueLabel9}
</Text>
<Text dimColor>
{assignees3}
</Text>
<Text bold color="#ffffff">
{` ${label} `}
</Text>
<Box width={4} flexShrink={0} justifyContent="center">
<Text bold color="#ffffff">
P
{priority9}
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text dimColor italic>
{project8}
</Text>
<Box flexDirection="row" gap={1}>
<Box width={4} flexShrink={0}>
<Text color="cyan">
{identifier10}
</Text>
</Box>
<Box flexShrink={1} overflow="hidden">
<Button plain label={`✓ ${title}`} />
</Box>
<Box flexGrow={1} />
<Text color="#e5484d">
{dueLabel10}
</Text>
<Text dimColor>
{assignees4}
</Text>
<Text bold color="#ffffff">
{` ${label} `}
</Text>
<Box width={4} flexShrink={0} justifyContent="center">
<Text bold color="#ffffff">
P
{priority10}
</Text>
</Box>
</Box>
<Box flexDirection="row" gap={1}>
<Box width={4} flexShrink={0}>
<Text color="cyan">
{identifier11}
</Text>
</Box>
<Box flexShrink={1} overflow="hidden">
<Button plain label={`✓ ${title}`} />
</Box>
<Box flexGrow={1} />
<Text color="#e5484d">
{dueLabel11}
</Text>
<Text dimColor>
{assignees5}
</Text>
<Text bold color="#ffffff">
{` ${label} `}
</Text>
<Box width={4} flexShrink={0} justifyContent="center">
<Text bold color="#ffffff">
P
{priority11}
</Text>
</Box>
</Box>
<Box flexDirection="row" gap={1}>
<Box width={4} flexShrink={0}>
<Text color="cyan">
{identifier12}
</Text>
</Box>
<Box flexShrink={1} overflow="hidden">
<Button plain label={`✓ ${title}`} />
</Box>
<Box flexGrow={1} />
<Text color="#e5484d">
{dueLabel12}
</Text>
<Text dimColor>
{assignees6}
</Text>
<Text bold color="#ffffff">
{` ${label} `}
</Text>
<Box width={4} flexShrink={0} justifyContent="center">
<Text bold color="#ffffff">
P
{priority12}
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text dimColor italic>
{project9}
</Text>
<Box flexDirection="row" gap={1}>
<Box width={4} flexShrink={0}>
<Text color="cyan">
{identifier13}
</Text>
</Box>
<Box flexShrink={1} overflow="hidden">
<Button plain label={`✓ ${title}`} />
</Box>
<Box flexGrow={1} />
<Text color="#e5484d">
{dueLabel13}
</Text>
<Text dimColor>
{assignees7}
</Text>
<Text bold color="#ffffff">
{` ${label} `}
</Text>
<Box width={4} flexShrink={0} justifyContent="center">
<Text bold color="#ffffff">
P
{priority13}
</Text>
</Box>
</Box>
<Box flexDirection="row" gap={1}>
<Box width={4} flexShrink={0}>
<Text color="cyan">
{identifier14}
</Text>
</Box>
<Box flexShrink={1} overflow="hidden">
<Button plain label={`✓ ${title}`} />
</Box>
<Box flexGrow={1} />
<Text color="#e5484d">
{dueLabel14}
</Text>
<Text dimColor>
{assignees8}
</Text>
<Text bold color="#ffffff">
{` ${label} `}
</Text>
<Box width={4} flexShrink={0} justifyContent="center">
<Text bold color="#ffffff">
P
{priority14}
</Text>
</Box>
</Box>
<Box flexDirection="row" gap={1}>
<Box width={4} flexShrink={0}>
<Text color="cyan">
{identifier15}
</Text>
</Box>
<Box flexShrink={1} overflow="hidden">
<Button plain label={`✓ ${title}`} />
</Box>
<Box flexGrow={1} />
<Text color="#e5484d">
{dueLabel15}
</Text>
<Text dimColor>
{assignees9}
</Text>
<Text bold color="#ffffff">
{` ${label} `}
</Text>
<Box width={4} flexShrink={0} justifyContent="center">
<Text bold color="#ffffff">
P
{priority15}
</Text>
</Box>
</Box>
</Box>
<Box marginTop={1}>
<Text dimColor>
{length2}
{" more not shown. Narrow them with the filters."}
</Text>
</Box>
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="#e0a800" paddingX={1}>
<Box flexDirection="row" gap={1}>
<Text bold color="#e0a800">
{name2}
</Text>
<Text dimColor>
{`${length}`}
</Text>
</Box>
<Text dimColor>
Nothing here.
</Text>
<Box flexDirection="column" marginTop={1}>
<Text dimColor italic>
{project10}
</Text>
<Box flexDirection="row" gap={1}>
<Box width={4} flexShrink={0}>
<Text color="cyan">
{identifier16}
</Text>
</Box>
<Box flexShrink={1} overflow="hidden">
<Button plain label={`✓ ${title}`} />
</Box>
<Box flexGrow={1} />
<Text color="#e5484d">
{dueLabel16}
</Text>
<Text dimColor>
{assignees10}
</Text>
<Text bold color="#ffffff">
{` ${label} `}
</Text>
<Box width={4} flexShrink={0} justifyContent="center">
<Text bold color="#ffffff">
P
{priority16}
</Text>
</Box>
</Box>
<Box flexDirection="row" gap={1}>
<Box width={4} flexShrink={0}>
<Text color="cyan">
{identifier17}
</Text>
</Box>
<Box flexShrink={1} overflow="hidden">
<Button plain label={`✓ ${title}`} />
</Box>
<Box flexGrow={1} />
<Text color="#e5484d">
{dueLabel17}
</Text>
<Text dimColor>
{assignees11}
</Text>
<Text bold color="#ffffff">
{` ${label} `}
</Text>
<Box width={4} flexShrink={0} justifyContent="center">
<Text bold color="#ffffff">
P
{priority17}
</Text>
</Box>
</Box>
<Box flexDirection="row" gap={1}>
<Box width={4} flexShrink={0}>
<Text color="cyan">
{identifier18}
</Text>
</Box>
<Box flexShrink={1} overflow="hidden">
<Button plain label={`✓ ${title}`} />
</Box>
<Box flexGrow={1} />
<Text color="#e5484d">
{dueLabel18}
</Text>
<Text dimColor>
{assignees12}
</Text>
<Text bold color="#ffffff">
{` ${label} `}
</Text>
<Box width={4} flexShrink={0} justifyContent="center">
<Text bold color="#ffffff">
P
{priority18}
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text dimColor italic>
{project11}
</Text>
<Box flexDirection="row" gap={1}>
<Box width={4} flexShrink={0}>
<Text color="cyan">
{identifier19}
</Text>
</Box>
<Box flexShrink={1} overflow="hidden">
<Button plain label={`✓ ${title}`} />
</Box>
<Box flexGrow={1} />
<Text color="#e5484d">
{dueLabel19}
</Text>
<Text dimColor>
{assignees13}
</Text>
<Text bold color="#ffffff">
{` ${label} `}
</Text>
<Box width={4} flexShrink={0} justifyContent="center">
<Text bold color="#ffffff">
P
{priority19}
</Text>
</Box>
</Box>
<Box flexDirection="row" gap={1}>
<Box width={4} flexShrink={0}>
<Text color="cyan">
{identifier20}
</Text>
</Box>
<Box flexShrink={1} overflow="hidden">
<Button plain label={`✓ ${title}`} />
</Box>
<Box flexGrow={1} />
<Text color="#e5484d">
{dueLabel20}
</Text>
<Text dimColor>
{assignees14}
</Text>
<Text bold color="#ffffff">
{` ${label} `}
</Text>
<Box width={4} flexShrink={0} justifyContent="center">
<Text bold color="#ffffff">
P
{priority20}
</Text>
</Box>
</Box>
<Box flexDirection="row" gap={1}>
<Box width={4} flexShrink={0}>
<Text color="cyan">
{identifier21}
</Text>
</Box>
<Box flexShrink={1} overflow="hidden">
<Button plain label={`✓ ${title}`} />
</Box>
<Box flexGrow={1} />
<Text color="#e5484d">
{dueLabel21}
</Text>
<Text dimColor>
{assignees15}
</Text>
<Text bold color="#ffffff">
{` ${label} `}
</Text>
<Box width={4} flexShrink={0} justifyContent="center">
<Text bold color="#ffffff">
P
{priority21}
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text dimColor italic>
{project12}
</Text>
<Box flexDirection="row" gap={1}>
<Box width={4} flexShrink={0}>
<Text color="cyan">
{identifier22}
</Text>
</Box>
<Box flexShrink={1} overflow="hidden">
<Button plain label={`✓ ${title}`} />
</Box>
<Box flexGrow={1} />
<Text color="#e5484d">
{dueLabel22}
</Text>
<Text dimColor>
{assignees16}
</Text>
<Text bold color="#ffffff">
{` ${label} `}
</Text>
<Box width={4} flexShrink={0} justifyContent="center">
<Text bold color="#ffffff">
P
{priority22}
</Text>
</Box>
</Box>
<Box flexDirection="row" gap={1}>
<Box width={4} flexShrink={0}>
<Text color="cyan">
{identifier23}
</Text>
</Box>
<Box flexShrink={1} overflow="hidden">
<Button plain label={`✓ ${title}`} />
</Box>
<Box flexGrow={1} />
<Text color="#e5484d">
{dueLabel23}
</Text>
<Text dimColor>
{assignees17}
</Text>
<Text bold color="#ffffff">
{` ${label} `}
</Text>
<Box width={4} flexShrink={0} justifyContent="center">
<Text bold color="#ffffff">
P
{priority23}
</Text>
</Box>
</Box>
<Box flexDirection="row" gap={1}>
<Box width={4} flexShrink={0}>
<Text color="cyan">
{identifier24}
</Text>
</Box>
<Box flexShrink={1} overflow="hidden">
<Button plain label={`✓ ${title}`} />
</Box>
<Box flexGrow={1} />
<Text color="#e5484d">
{dueLabel24}
</Text>
<Text dimColor>
{assignees18}
</Text>
<Text bold color="#ffffff">
{` ${label} `}
</Text>
<Box width={4} flexShrink={0} justifyContent="center">
<Text bold color="#ffffff">
P
{priority24}
</Text>
</Box>
</Box>
</Box>
<Box marginTop={1} />
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
const length = '…'
const identifier = '…'
const url = '…'
await $.ui.status(`Vikunja ${length} doing · ${length} blocked`)
await $.ui.toast(`Vikunja ${identifier} updated`)
await $.ui.toast(`Demo: this would open ${url}`)
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 806–965 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const table = $.ui.resolve(e)
const { Box, Button, Markdown, Text } = table
const now = await read($, board)
const shown = await read($, openId)
const detail = shown === 0 ? null : await read($, selected)
const open = detail !== null && detail.task.id === shown ? detail : null
const start = { ...NO_LAUNCH, ...(await read($, launch)) }
const columns = Math.max(30, e.props.bodyColumns ?? e.viewport?.columns ?? 80)
const touched = new Set(now.touched.map(t => t.id))
const doing = new Set(now.doing.map(t => t.id))
const blocked = new Set(now.blocked.map(t => t.id))
// The desktop draws the focus ring outside its button, and the pane's edge
// clips it; the top row keeps a cell clear of the edge so the ring fits.
const ringRoom = e.surface === 'terminal' ? {} : { paddingX: 1, paddingTop: 1 }
const isDemoShown = await read($, demo)
const laneOf = (t: Task) =>
t.isDone ? 'done' : doing.has(t.id) ? 'doing' : blocked.has(t.id) ? 'blocked' : 'to-do'
// A filled chip: the fill says which level or lane, the label which one.
const pill = (label: string, fill: string | undefined) => (
<Text bold backgroundColor={fill} color={INK[fill ?? ''] ?? LIGHT_INK}>
{` ${label} `}
</Text>
)
// A priority's chip: the fill is a box of one fixed width with the label
// centred in it, so P1 and P4 take the same room whatever the font.
const priorityPill = (priority: number) => (
<Box width={4} flexShrink={0} justifyContent="center" backgroundColor={PRIORITY_COLOR[priority]}>
<Text bold color={INK[PRIORITY_COLOR[priority]] ?? LIGHT_INK}>
P{priority}
</Text>
</Box>
)
if (open !== null) {
const t = open.task
const lane = laneOf(t)
return (
<Box flexDirection="column" gap={1}>
<Box flexDirection="row" justifyContent="space-between" {...ringRoom}>
<Button
key="back"
label="‹ All tasks"
hotkey="b"
autoFocus
onPress={async () => {
await update($, openId, () => 0)
void keepFocus($, 'refresh')
}}
/>
<Box flexDirection="row" gap={1}>
<Button key="reload" label="Refresh" hotkey="r" onPress={() => void loadDetail($, t)} />
{/^https?:\/\//.test(config.webUrl) && (
<Button
key="open"
label="Open in Vikunja ↗"
hotkey="o"
onPress={() => void openInBrowser($, `${config.webUrl}/tasks/${t.id}`)}
/>
)}
</Box>
</Box>
<Box flexDirection="column">
<Text dimColor>
{[t.project, t.identifier].filter(Boolean).join(' · ')}
</Text>
<Text bold>{t.title}</Text>
<Box flexDirection="row" gap={1}>
{pill(lane.toUpperCase(), LANE_COLOR[lane])}
{t.priority > 0 && priorityPill(t.priority)}
{t.assignees.length > 0 && <Text dimColor>{t.assignees.join(', ')}</Text>}
{t.dueAt > 0 && (
<Text color={t.dueAt < now.fetchedAt && !t.isDone ? '#e5484d' : undefined} dimColor={t.dueAt >= now.fetchedAt || t.isDone}>
due {dueLabel(t.dueAt)}
</Text>
)}
</Box>
<Text dimColor>
{open.isLoading
? 'loading…'
: `updated ${open.updated} · live, checked every ${LIVE_MS / 1000}s`}
</Text>
</Box>
<Box flexDirection="column">
<Text bold dimColor>
SESSION
</Text>
{config.folderRoot === '' ? (
<Text dimColor>Set folderRoot in this plugin's options to give tasks a folder.</Text>
) : 'Select' in table ? (
<Box flexDirection="row" flexWrap="wrap" columnGap={2}>
<table.Select
key="folder"
label="Folder"
value={start.isTyping ? OTHER : t.folder}
options={[
{ value: '', label: 'Not set' },
...[...new Set([t.folder, ...start.folders].filter(Boolean))].slice(0, CHOICES + 1).map(value => ({ value })),
{ value: OTHER, label: 'Another or new folder…' },
]}
onSelect={value =>
value === OTHER
? void update($, launch, was => ({ ...NO_LAUNCH, ...was, isTyping: true, note: '' }))
: void setFolder($, t, value)
}
/>
{t.folder !== '' && (
<Button
key="start-session"
variant="primary"
label="Start session"
onPress={() => void startSession($, open)}
/>
)}
</Box>
) : (
<Text dimColor>{t.folder === '' ? 'No folder set.' : t.folder}</Text>
)}
{start.isTyping && 'Input' in table && (
<table.Input
key="folder-path"
label={`Folder name ${config.folderRoot}`}
placeholder="project-name"
submitLabel="use or create"
onSubmit={value => void createFolder($, t, value)}
/>
)}
{t.folder === '' && !start.isTyping && (
<Text dimColor>Pick the folder this task is worked on in to start a session there.</Text>
)}
{start.note !== '' && <Text>{start.note}</Text>}
</Box>
<Box flexDirection="column">
<Text bold dimColor>
DESCRIPTION
</Text>
{!open.isLoading && open.body.length === 0 && <Text dimColor>None.</Text>}
{open.body.map(block => (
<Markdown text={block} />
))}
</Box>
{open.comments.length > 0 && (
<Box flexDirection="column" gap={1}>
<Text bold dimColor>
COMMENTS · {open.comments.length} · newest first
</Text>
{open.comments.map(c => (
<Box flexDirection="column">
<Box flexDirection="row" gap={1}>
<Text bold>{c.author}</Text>Licence text (MIT)
MIT License Copyright (c) 2026 Tim Moore 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
networkruns programswrites filesenv varstool calls
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 a7a8630b8cb5 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.hooks/register.tsx:160 fetch(base + path) |
| 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:692 a program named at run time |
| Reads and sends | Whether it both reads files or environment variables and reaches the network.reads environment variables and files and reaches the 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 "angusmaul-vikunja-tasks" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
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…agent-discoverbuildbuildbuildRefreshMCP Browse/3Tab / shift+Tab move · Enter presses · ↑↓ scroll · Esc back to the promptBrowse...Audit asks:DeclineAcceptDeclineCancelAudit asks:DeclineAcceptDeclineCancelAudit asks:DeclineAcceptDeclineCancel
-
Ask Claude…────────Clear doneClaude⋯└─ buildCancelCancelCancel└─ buildCancelCancelCancel└─ buildCancelCancelCancel
-
Ask Claude…GitHub inboxGitHubloading…Refresh rbuildbuildbuildClose xStealth IssuesNo open issues in this view.#3 Fix login · Pinned notice · 2h 10m · Top row commentsWork on itopen#3 Fix login · Pinned notice · 2h 10m · Top row commentsWork on itopen#3 Fix login · Pinned notice · 2h 10m · Top row commentsWork on itopenPull requestsNo open pull requests.#3 Fix login · main · draft · build · HiddenChecksReviewopen#3 Fix login · main · draft · build · HiddenChecksReviewopen#3 Fix login · main · draft · build · HiddenChecksReviewopenChecks for #3Plain
-
Ask Claude…AskSide questions. Answers stay here, out of the chat.Nothing asked yet.────────Remove ask────────› Copythinking…No answer.(empty)Use promptUse promptUse promptCopyRetryRemove────────› Copythinking…No answer.(empty)Use promptUse promptUse promptCopyRetryRemove────────› Copythinking…No answer.(empty)Use promptUse promptUse promptCopyRetryRemoveSuggest next promptsClear answered