modscode / Gallery / next-steps-desktop
next-steps-desktop
After each turn, suggests up to three next prompts: above the input in the terminal, behind a π‘ chip in the footer of Claude Code Desktop that opens a numbered Next steps pane. Press 1, 2 or 3 (or click one) to put it in the prompt box asβ¦
What it does
- Draws a pane, toasts
- Hooks session.start, turn.complete, turn.start
Good points
- No network calls
- Starts no processes
- Small: 381 lines
- Written in TypeScript
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 next-steps-desktop by Thariq Shihipar (pane, band, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/bqnhat-next-steps-desktop/
// 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: "Next steps" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button } = $.ui.resolve(e)
const index = 'β¦'
const fitLabel = 'β¦'
const prompt = 'β¦'
const index2 = 'β¦'
const fitLabel2 = 'β¦'
const prompt2 = 'β¦'
const index3 = 'β¦'
const fitLabel3 = 'β¦'
const prompt3 = 'β¦'
return (
<Box flexDirection="column" gap={1}>
<Box position="relative" flexDirection="row" alignItems="flex-start" gap={1} paddingX={1} minWidth={0}>
<Text dimColor>
{index}
</Text>
<Box flexDirection="column" flexGrow={1} minWidth={0}>
<Text wrap="truncate">
{fitLabel}
</Text>
<Text dimColor wrap="truncate">
{prompt}
</Text>
</Box>
<Box position="absolute" top={0} bottom={0} left={0} right={0} flexDirection="row" alignItems="stretch">
<Button plain label="Β Β Β Β Β Β Β Β " />
</Box>
</Box>
<Box position="relative" flexDirection="row" alignItems="flex-start" gap={1} paddingX={1} minWidth={0}>
<Text dimColor>
{index2}
</Text>
<Box flexDirection="column" flexGrow={1} minWidth={0}>
<Text wrap="truncate">
{fitLabel2}
</Text>
<Text dimColor wrap="truncate">
{prompt2}
</Text>
</Box>
<Box position="absolute" top={0} bottom={0} left={0} right={0} flexDirection="row" alignItems="stretch">
<Button plain label="Β Β Β Β Β Β Β Β " />
</Box>
</Box>
<Box position="relative" flexDirection="row" alignItems="flex-start" gap={1} paddingX={1} minWidth={0}>
<Text dimColor>
{index3}
</Text>
<Box flexDirection="column" flexGrow={1} minWidth={0}>
<Text wrap="truncate">
{fitLabel3}
</Text>
<Text dimColor wrap="truncate">
{prompt3}
</Text>
</Box>
<Box position="absolute" top={0} bottom={0} left={0} right={0} flexDirection="row" alignItems="stretch">
<Button plain label="Β Β Β Β Β Β Β Β " />
</Box>
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
const error = 'β¦'
await $.ui.toast(`close the open dialog, then pick again`)
await $.ui.toast(`could not fill: ${error}`)
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/next-steps-desktop/hooks/register.tsx lines 334β380 Β· Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e): Promise<RenderElement> => {
const t = $.ui.resolve(e)
const { Box, Button, Text } = t
const shown = view
if (shown.kind !== 'offer') return <Text dimColor>No suggestions right now.</Text>
const isDesktop = e.surface === 'desktop'
const columns = e.props.bodyColumns || 40
const room = Math.max(LABEL_MIN, columns - 8)
const rowFill = ROW_FILL_CHAR.repeat(Math.max(1, Math.floor(columns * ROW_FILL_PER_COLUMN)))
return (
<Box flexDirection="column" gap={1}>
{shown.items.map((item, index) => (
<Box
key={`next-step-row-${index + 1}`}
position="relative"
flexDirection="row"
alignItems="flex-start"
gap={1}
paddingX={1}
minWidth={0}
{...(isDesktop ? {} : { hover: { backgroundColor: HOVER_BG } })}
>
<Text dimColor>{isDesktop ? String(index + 1) : `${index + 1}.`}</Text>
<Box flexDirection="column" flexGrow={1} minWidth={0}>
{isDesktop ? (
<Text key={`next-step-label-${index + 1}`} wrap="truncate">
{fitLabel(item.label, room)}
</Text>
) : (
<Button key={`next-step-${index + 1}`} plain label={fitLabel(item.label, room)} onPress={() => fillDraft($, item.prompt)} />
)}
<Text dimColor wrap="truncate">
{clean(item.prompt, PREVIEW_MAX)}
</Text>
</Box>
{isDesktop ? (
<Box key={`next-step-hit-${index + 1}`} position="absolute" top={0} bottom={0} left={0} right={0} flexDirection="row" alignItems="stretch">
<Button key={`next-step-${index + 1}`} plain label={rowFill} onPress={() => fillDraft($, item.prompt)} />
</Box>
) : (
[]
)}
</Box>
))}
</Box>
)
})Licence text (MIT)
MIT License Copyright (c) 2026 bqnhat Copyright (c) 2026 Kirill Serditov (plan-progress, from https://github.com/zycck/claude-mods) Copyright (c) Thariq Shihipar (next-steps, from https://github.com/anthropics/claude-plugins-community) 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 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 8f776935292d 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/next-steps-desktop/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, with its own branch for the desktop |
| 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 bqnhat/claude-local-plugins/plugin install next-steps-desktop@nhat-localThis installs the marketplace's latest commit, which may not be the one read here (8f776935292d). 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 "bqnhat-next-steps-desktop" 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
-
Open a file first: /crit-tui file <path>Reopen this one in the crit browser view.Ask Claudeβ¦
-
Ask Claudeβ¦TodayOct 63 left Β· Mar overdueRemCTL: Sepβ All done for today.β build3β Fix login β βJul Β· buildββ Fix login β βJul Β· buildββ Fix login β βJul Β· buildββ build3β Fix login β βJul Β· buildββ Fix login β βJul Β· buildββ Fix login β βJul Β· buildββ build3β Fix login β βJul Β· buildββ Fix login β βJul Β· buildββ Fix login β βJul Β· buildβUpdated 14:32UndoRefresh
-
Ask Claudeβ¦TO graphβΊ Fix login βΊ Fix login βΊ Fix loginScopeThis featureWhole projectHide done stepsReconnect
-
Ask Claudeβ¦Blast Radiusβ Blast Radius Β· buildCommand npm testWould CancelProceed Proceed ProceedBash1 Proceed2 CancelClaude is waiting on your answer
-
Ask Claudeβ¦Agent Radarβ Edit note Β· 2h 10m Β· 0 toolsnow: startingββββββββNo messages yet.agent: (tool calls)agent: (tool calls)agent: (tool calls)Back bClose q