parked
A per-project backlog of items needing your attention, parked by you or the orchestrator
What it does
- Draws a pane, toasts
- Adds /park, /parked
- Watches tool calls and can refuse them
- Hooks prompt.compose, prompt.submit, session.start, state.set and 5 more
- Keeps its own state between turns
Good points
- No network calls
- Starts no processes
- Written in TypeScript
- 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 parked by Kuang Tar Lim (pane, status, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/buddylim-parked/
// 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: "Parked" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button } = $.ui.resolve(e)
const summary = '…'
const glyphOf = '…'
const title = '…'
const meta = '…'
const glyphOf2 = '…'
const meta2 = '…'
const glyphOf3 = '…'
const meta3 = '…'
const meta4 = '…'
const meta5 = '…'
const meta6 = '…'
const meta7 = '…'
const meta8 = '…'
const meta9 = '…'
return (
<Box flexDirection="column" paddingX={2}>
<Text bold>
{"📌 Parked · "}
{summary}
</Text>
<Text dimColor>
────────
</Text>
<Text color="warning" bold>
NEEDS ATTENTION
</Text>
<Box justifyContent="space-between">
<Box>
<Text>
{glyphOf}
{" "}
</Text>
<Button plain label={`${title}`} />
</Box>
<Text dimColor>
{meta}
</Text>
</Box>
<Box justifyContent="space-between">
<Box>
<Text>
{glyphOf2}
{" "}
</Text>
<Button plain label={`${title}`} />
</Box>
<Text dimColor>
{meta2}
</Text>
</Box>
<Box justifyContent="space-between">
<Box>
<Text>
{glyphOf3}
{" "}
</Text>
<Button plain label={`${title}`} />
</Box>
<Text dimColor>
{meta3}
</Text>
</Box>
<Box marginTop={1}>
<Text color="cyan" bold>
FYI
</Text>
</Box>
<Box justifyContent="space-between">
<Box>
<Text>
{" "}
</Text>
<Button plain label={`${title}`} />
</Box>
<Text dimColor>
{meta4}
</Text>
</Box>
<Box justifyContent="space-between">
<Box>
<Text>
{" "}
</Text>
<Button plain label={`${title}`} />
</Box>
<Text dimColor>
{meta5}
</Text>
</Box>
<Box justifyContent="space-between">
<Box>
<Text>
{" "}
</Text>
<Button plain label={`${title}`} />
</Box>
<Text dimColor>
{meta6}
</Text>
</Box>
<Box marginTop={1}>
<Text color="success" bold>
DONE
</Text>
</Box>
<Box justifyContent="space-between">
<Box>
<Text>
{" "}
</Text>
<Button plain label={`${title}`} />
</Box>
<Text dimColor>
{meta7}
</Text>
</Box>
<Box justifyContent="space-between">
<Box>
<Text>
{" "}
</Text>
<Button plain label={`${title}`} />
</Box>
<Text dimColor>
{meta8}
</Text>
</Box>
<Box justifyContent="space-between">
<Box>
<Text>
{" "}
</Text>
<Button plain label={`${title}`} />
</Box>
<Text dimColor>
{meta9}
</Text>
</Box>
<Text dimColor>
────────
</Text>
<Text dimColor>
1-9 open · ↑↓ move · enter open · esc close
</Text>
</Box>
)
})
on('session.start', async ($, e, next) => {
const count = '…'
const id = '…'
await $.ui.toast(`Parked: ${count} in the prompt box. Press Enter to send into the running turn.`)
await $.ui.toast(`Parked #${id}: default accepted. The agent already went that way.`)
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 913–1072 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e, next) => {
// The thread needs a text field, which the mobile surface does not draw.
if (e.surface === 'mobile') {
return next(e)
}
const table = $.ui.resolve(e)
const { Box, Button, Input, Text } = table
// The keyboard view is drawn only where the surface has Client.
const Client = (await read($, lab)) && 'Client' in table ? table.Client : undefined
const waiting = await read($, pending)
const list = await read($, items)
const openId = await read($, selected)
const now = await $.clock.now()
// What is drawn is narrower than the pane by the padding at each side.
const columns = Math.max(30, (e.props.bodyColumns ?? e.viewport?.columns ?? 60) - 2 * PAD)
const rule = '─'.repeat(columns)
const open = list.filter(one => one.status === 'open')
// Those work is blocked on come first, as `orderOf` has them.
const asked = open.filter(one => one.kind === 'needs-you')
const needs = [
...asked.filter(one => one.isBlocking === true),
...asked.filter(one => one.isBlocking !== true),
]
const toneOf = (one: ParkedItem) => (one.isBlocking === true ? 'error' : 'warning')
const glyphOf = (one: ParkedItem) => (one.isBlocking === true ? ICON.blocking : ICON.needs)
const isAnswering = await read($, answering)
const fyi = open.filter(one => one.kind === 'fyi')
const done = list.filter(one => one.status === 'done').slice(-10).reverse()
// The order the list draws in, which Next and Prev walk.
const order = orderOf(list)
const item = order.find(one => one.id === openId)
// A row of the pane's own buttons, one per letter. Claude Code presses one
// when its letter is typed while the pane has the keyboard (ctrl+x tab),
// with no click; the press is handed to the keyboard region as that key.
const legend = (keys: readonly (readonly [string, string])[]) => (
<Box columnGap={2}>
{keys.map(([hot, means]) => (
<Button
key={`key-${hot}`}
plain
dimColor
hotkey={hot}
label={means}
onPress={async () => {
// While the composer is in use a letter is text for it, never a
// shortcut: the press means the text field did not get the key.
if (await read($, typing)) {
await update($, draft, text => `${text}${hot}`)
} else {
await update($, nudge, last => ({ key: hot, n: last.n + 1 }))
}
}}
/>
))}
</Box>
)
const go = async (id: number) => {
await update($, back, () => 0)
await update($, top, () => 0)
await update($, selected, () => id)
}
if (item !== undefined) {
const at = order.indexOf(item)
const before = order[at - 1]
const after = order[at + 1]
const isOpen = item.status === 'open'
const thread = item.thread ?? []
const isWaiting = waiting.includes(item.id)
const tone = !isOpen ? 'success' : item.kind === 'fyi' ? 'cyan' : toneOf(item)
const label = !isOpen
? `${ICON.done} DONE`
: item.kind === 'fyi'
? `${ICON.fyi} FYI`
: item.isBlocking === true
? `${ICON.blocking} NEEDS ATTENTION · BLOCKING`
: `${ICON.needs} NEEDS ATTENTION`
const canAccept = isOpen && item.preferred !== undefined
// Every row is counted so the tree fits the pane's window exactly: the
// header, the ticket and the composer stay put, and only the two regions
// move. Fixed rows: status, title, meta, buttons, rule; then rule and
// thread heading; then the bordered composer (three rows) and the hint.
const bodyRows = Math.max(16, e.props.scroll.bodyRows) - 1
// The note is part of the ticket's own rows, not a row above them.
const noteRows = 0
const doneRows = item.resolution !== undefined ? 1 : 0
// The action buttons wrap in a narrow pane; count the rows they take.
const actions = [
canAccept ? 'a: Accept' : '',
isOpen ? 'd: Done' : 'r: Reopen',
isOpen ? 'w: Answer' : '',
(item.refs ?? []).length > 0 ? 'g: Open' : '',
after !== undefined ? 'n: Next' : '',
before !== undefined ? 'p: Prev' : '',
thread.some(one => one.role === 'agent') ? 's: Send' : '',
'b: Back',
].filter(Boolean)
let buttonRows = 1
let used = 0
for (const action of actions) {
// A button draws as `[ label ]`, with one column between neighbours.
const width = action.length + 4
if (used > 0 && used + 1 + width > columns) {
buttonRows += 1
used = width
} else {
used += (used > 0 ? 1 : 0) + width
}
}
// The keyboard view has six rows beneath its region (actions, composer,
// send, letter keys), one more than the classic view counts with one
// button row.
if (Client !== undefined) {
buttonRows = 3
}
const room = Math.max(6, bodyRows - (4 + buttonRows + noteRows + doneRows + 2 + 4))
const ticket = ticketLines(item, columns)
const ticketRows = Math.min(ticket.length, Math.max(3, Math.floor(room * 0.4)))
const threadRows = Math.max(3, room - ticketRows)
const talk = threadLines(thread, columns)
const maxTop = Math.max(0, ticket.length - ticketRows)
const maxBack = Math.max(0, talk.length - threadRows)
const topAt = Math.min(await read($, top), maxTop)
const backAt = Math.min(await read($, back), maxBack)
const end = talk.length - backAt
const shown = talk.slice(Math.max(0, end - threadRows), end)
const ticketStart = 4 + buttonRows + noteRows + doneRows
layout = { ticketStart, ticketEnd: ticketStart + ticketRows, maxTop, maxBack }
const more = (above: number, below: number) =>
[above > 0 ? `↑${above}` : '', below > 0 ? `↓${below}` : ''].filter(Boolean).join(' ')
// Where the surface has Client, the whole item is one region that owns
// the keyboard once clicked: ↑ and ↓ move between the tickets, the
// actions, the composer and Send, and ← and → act on the level in focus.
// What it posts is answered by the `ui.message` hook.
if (Client !== undefined) {
const inner = 5 + noteRows + doneRows
layout = { ticketStart: inner, ticketEnd: inner + ticketRows, maxTop, maxBack }
const isTyping = await read($, typing)
const typed = await read($, draft)
return (
<Box flexDirection="column" paddingX={PAD}>
<Client
key="detail"
module="./detail.tsx"
height={bodyRows - 5}
props={{
nudge: await read($, nudge),
isTyping,
typingAt: await read($, typingAt),Licence text (MIT)
MIT License Copyright (c) 2026 Kuang Tar Lim 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
drives Claudetool callsremembers
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 698dbffaf529 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.5 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.starts no programs |
| 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 "buddylim-parked" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
Ask Claude…────────Clear doneClaude⋯└─ buildCancelCancelCancel└─ buildCancelCancelCancel└─ buildCancelCancelCancel
-
Ask Claude…🍳 Claude is cooking… puzzle timeFix login🍳 Claude is cooking…┌───────┬───────┬───────Sudoku├───────┼───────┼───────Sudoku├───────┼───────┼───────Sudoku└───────┴───────┴───────SudokuMenurun/81 filledw ↑ a ← s ↓ d →Sudoku SudokuSudoku SudokuSudoku Sudoku0 erasen new puzzleg switch to TTSk play Snake Press the keys shown.Ctrl+X Tab focuses the pane.
-
Ask Claude…Files⋯│●./file-name.tsx│●./file-name.tsx│●./file-name.tsxNew file Move to Recycle Bin?────────./menu-item.tsx./menu-item.tsx./menu-item.tsx────────./menu-item.tsx./menu-item.tsx./menu-item.tsx────────./menu-item.tsx./menu-item.tsx./menu-item.tsx
-
Ask Claude…2h 10m · █████░░░✓ build ✓ build ✓ buildJavaKotlin3 Python■ ok 3 ■ ok 3 ■ ok 3 Razor proven 3 Razor proven 3 Razor proven 3Phases ──────── 3/3build Pythonbuild Pythonbuild Python… 3 more phasesLua ──────── 3/Kotlin■ the whole upgrade Ruby■ build build Ruby■ build build Ruby■ build build Ruby … 3 moreNext ──────── PythonRuby (by hand)Podsclick a button, or ctrl+x tab then Tab, EnterAttention ──────── 3! Scala ! Scala ! Scala … 3 moreSession ──────── okJava
-
Open a file first: /crit-tui file <path>Reopen this one in the crit browser view.Ask Claude…
-
Ask Claude…great_cto: 3 gate waiting — /gatesGatesmy-app · 3 waiting · checked Gates UTCGates — Fix logina1b2c3dExpensive to undo. To approve, type Gates and press Enter.approve: Gates approveGates — Fix logina1b2c3dExpensive to undo. To approve, type Gates and press Enter.approve: Gates approveGates — Fix logina1b2c3dExpensive to undo. To approve, type Gates and press Enter.approve: Gates approve