modscode / Gallery / your-serve
your-serve
πΎ Tells you when Claude needs you: one line with the question it ended on, and its answers as buttons.
What it does
- Draws a band above the prompt, a pane, toasts
- Adds /your-serve
- Hooks prompt.submit, session.end, session.start, turn.complete
- 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 your-serve by Lorcan Chinnock (pane, band, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/lorcanchinnock-your-serve/
// 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 band above the prompt; what else goes there is drawn under it
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
const { Box, Text, Button } = $.ui.resolve(e)
const line = 'β¦'
const HOTKEYS = 'β¦'
const label = 'β¦'
return (
<Box flexDirection="column">
<Box flexDirection="row" flexWrap="wrap" columnGap={2}>
<Box flexShrink={1}>
<Text>
{line}
</Text>
</Box>
<Box flexShrink={0} flexWrap="wrap" gap={1}>
<Button hotkey={`${HOTKEYS}`} plain label={`${label}`} />
<Button hotkey={`${HOTKEYS}`} plain label={`${label}`} />
<Button hotkey={`${HOTKEYS}`} plain label={`${label}`} />
<Button plain dimColor label="other" />
<Button plain dimColor label="skip" />
</Box>
</Box>
{await next(e)}
</Box>
)
})
// the pane: open it with $.ui.open({ id: 'my-pane', title: "βΉtitleβΊ" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button } = $.ui.resolve(e)
const index = 'β¦'
const question = 'β¦'
const question2 = 'β¦'
const question3 = 'β¦'
const step = 'β¦'
const question4 = 'β¦'
const HOTKEYS = 'β¦'
const label = 'β¦'
const clockTime = 'β¦'
const question5 = 'β¦'
const clockTime2 = 'β¦'
const question6 = 'β¦'
const clockTime3 = 'β¦'
const question7 = 'β¦'
const toast = 'β¦'
return (
<Box flexDirection="column">
<Box flexDirection="row" marginBottom={1}>
<Text bold>
πΎ Your Serve
</Text>
<Text dimColor>
{" Β· "}
nothing waiting on you
</Text>
</Box>
<Text dimColor>
{`${index}1`}
{". "}
{question}
{" "}
(skipped, type it in the prompt)
</Text>
<Text dimColor>
{`${index}1`}
{". "}
{question2}
{" "}
(skipped, type it in the prompt)
</Text>
<Text dimColor>
{`${index}1`}
{". "}
{question3}
{" "}
(skipped, type it in the prompt)
</Text>
<Text>
{`${step}1. `}
{question4}
</Text>
<Box flexDirection="row" gap={1} marginTop={1}>
<Button hotkey={`${HOTKEYS}`} plain label={`${label}`} autoFocus />
<Button hotkey={`${HOTKEYS}`} plain label={`${label}`} autoFocus />
<Button hotkey={`${HOTKEYS}`} plain label={`${label}`} autoFocus />
<Button plain dimColor label="other" autoFocus />
<Button plain dimColor label="skip" />
</Box>
<Box flexDirection="column" marginTop={0}>
<Text dimColor>
Earlier this session
</Text>
<Box flexDirection="row">
<Box width={7} flexShrink={0}>
<Text dimColor>
{clockTime}
</Text>
</Box>
<Box flexShrink={1}>
<Text>
{question5}
</Text>
</Box>
</Box>
<Box flexDirection="row">
<Box width={7} flexShrink={0}>
<Text dimColor>
{clockTime2}
</Text>
</Box>
<Box flexShrink={1}>
<Text>
{question6}
</Text>
</Box>
</Box>
<Box flexDirection="row">
<Box width={7} flexShrink={0}>
<Text dimColor>
{clockTime3}
</Text>
</Box>
<Box flexShrink={1}>
<Text>
{question7}
</Text>
</Box>
</Box>
</Box>
<Text dimColor>
No questions yet. The ball's with Claude.
</Text>
<Box marginTop={1}>
<Text dimColor>
{toast}
{" Β· /config to change Β· esc closes"}
</Text>
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
await $.ui.toast(`πΎ Claude needs a decision`)
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.
plugins/your-serve/hooks/register.tsx lines 275β324 Β· Band
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
if (e.props.hasSurvey) return next(e)
const shown = await read($, serve)
if (shown === null) return next(e)
const below = await next(e)
const elements = $.ui.resolve(e)
const { Box, Text, Button } = elements
// The mobile app draws no field, so there `other` isn't offered and a question is skipped instead.
const Input = 'Input' in elements ? elements.Input : null
const current = currentStep(shown)
const count = shown.questions.length
const isMany = count > 1
const line =
current === null
? `πΎ Your serve: all ${count} answers are in your prompt`
: `πΎ Your serve${isMany ? ` (${current.step + 1}/${count})` : ''}: ${current.asked.question}`
return (
<Box flexDirection="column">
{/* Wraps rather than truncates: answers you can't read are no use. */}
<Box flexDirection="row" flexWrap="wrap" columnGap={2} width={e.props.bodyColumns - MARKER}>
<Box flexShrink={1}>
<Text>{line}</Text>
</Box>
{current !== null && (current.asked.options.length > 0 || isMany) && (
<Box flexShrink={0} flexWrap="wrap" gap={1}>
{shown.isTyping && Input !== null ? (
<Input key="serve-other" placeholder="your answer" submitLabel="answer" autoFocus onSubmit={value => void chooseTyped($, value, false)} />
) : (
current.asked.options.map((option, index) => (
<Button
key={`serve-${index + 1}`}
hotkey={HOTKEYS[index]}
plain
label={option.label}
onPress={() => void choose($, option.reply, false)}
/>
))
)}
{/* No digit left to spare for these two: they're clicked, or reached with the focus ring. */}
{isMany && !shown.isTyping && Input !== null && (
<Button key="serve-other" plain dimColor label="other" onPress={() => void startTyping($)} />
)}
{isMany && <Button key="serve-skip" plain dimColor label="skip" onPress={() => void choose($, null, false)} />}
</Box>
)}
</Box>
{below}
</Box>
)
})plugins/your-serve/hooks/register.tsx lines 339β427 Β· Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const elements = $.ui.resolve(e)
const { Box, Text, Button } = elements
const Input = 'Input' in elements ? elements.Input : null
const shown = await read($, serve)
const waiting = new Set(shown?.questions.map(asked => asked.question))
const earlier = (await read($, history)).filter(asked => !waiting.has(asked.question))
const current = shown === null ? null : currentStep(shown)
const isMany = shown !== null && shown.questions.length > 1
const isTyping = shown?.isTyping === true && Input !== null
const toast = `toast after ${Math.round(toastAfterMs / 1000)}s Β· voice ${shouldSpeak ? 'on' : 'off'}`
return (
<Box flexDirection="column">
<Box flexDirection="row" marginBottom={1}>
<Text bold>πΎ Your Serve</Text>
<Text dimColor> Β· {shown === null ? 'nothing waiting on you' : current === null ? 'answers in your prompt' : 'waiting on you'}</Text>
</Box>
{shown !== null &&
isMany &&
shown.answers.map((reply, index) => (
<Text dimColor>
{index + 1}. {shown.questions[index]?.question} {reply ?? '(skipped, type it in the prompt)'}
</Text>
))}
{current !== null && (
<Text>
{isMany ? `${current.step + 1}. ` : ''}
{current.asked.question}
</Text>
)}
{current !== null && (current.asked.options.length > 0 || isMany) && (
<Box flexDirection="row" gap={1} marginTop={1}>
{isTyping && Input !== null ? (
<Input key="pane-serve-other" placeholder="your answer" submitLabel="answer" autoFocus onSubmit={value => void chooseTyped($, value, true)} />
) : (
current.asked.options.map((option, index) => (
<Button
key={`pane-serve-${index + 1}`}
hotkey={HOTKEYS[index]}
plain
label={option.label}
autoFocus={index === 0 ? true : undefined}
onPress={() => void choose($, option.reply, true)}
/>
))
)}
{isMany && !isTyping && Input !== null && (
<Button
key="pane-serve-other"
plain
dimColor
label="other"
autoFocus={current.asked.options.length === 0 ? true : undefined}
onPress={() => void startTyping($)}
/>
)}
{isMany && (
<Button
key="pane-serve-skip"
plain
dimColor
label="skip"
onPress={() => void choose($, null, true)}
/>
)}
</Box>
)}
{earlier.length > 0 && (
<Box flexDirection="column" marginTop={shown === null ? 0 : 1}>
<Text dimColor>Earlier this session</Text>
{earlier.map(asked => (
<Box flexDirection="row" width={e.props.bodyColumns}>
<Box width={7} flexShrink={0}>
<Text dimColor>{clockTime(asked.at)}</Text>
</Box>
<Box flexShrink={1}>
<Text>{asked.question}</Text>
</Box>
</Box>
))}
</Box>
)}
{shown === null && earlier.length === 0 && <Text dimColor>No questions yet. The ball's with Claude.</Text>}
<Box marginTop={1}>
<Text dimColor>{toast} Β· /config to change Β· esc closes</Text>
</Box>
</Box>
)
})Licence text (MIT)
MIT License Copyright (c) 2026 Lorcan Chinnock 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 Clauderemembers
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 985685d682c0 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.plugins/your-serve/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.1 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.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 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 LorcanChinnock/claude-desk-neighbours/plugin install your-serve@claude-desk-neighboursThis installs the marketplace's latest commit, which may not be the one read here (985685d682c0). Compare them before you install.
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 "lorcanchinnock-your-serve" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
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
-
slop Edit1 of 3accepteditrejectAsk Claudeβ¦
-
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β¦agent-discoverbuildbuildbuildRefreshMCP Browse/3Tab / shift+Tab move Β· Enter presses Β· ββ scroll Β· Esc back to the promptBrowse...Audit asks:DeclineAcceptDeclineCancelAudit asks:DeclineAcceptDeclineCancelAudit asks:DeclineAcceptDeclineCancel
-
Ask Claudeβ¦Fanyi settingsOnAPI Β· OpusenOn this MacAPIHost src/ SaveKey K Β· paste a new one, Enter SaveOpusβ» RefreshCustom model model id, for an API that lists none UseFanyi settingsHostClose
-
Ask Claudeβ¦Glossary BrowserGlossary openContextsContextsContextsβ² prevWrite1/GlossaryβΌ nextContexts