modscode / Gallery / human-tasks
human-tasks
A persistent pane of actions Claude needs you to run: tick them off, pick an outcome, or reply, and Claude is told
What it does
- Draws a pane, toasts in the desktop app
- Watches mcp__human-tasks__task calls
- Hooks classic.SessionStart, prompt.compose, session.start, ui.close
- Keeps its own state between turns
Good points
- No network calls
- Starts no processes
- Written in TypeScript
- Has a desktop-specific branch
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 human-tasks by Andrew Stephenson (pane, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/andrewstephenson-v1-human-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: "Tasks for you" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Button, Markdown, Text, Code, Input } = $.ui.resolve(e)
const count = '…'
const id = '…'
const title = '…'
const i = '…'
const text = '…'
const command = '…'
const expect = '…'
const opt = '…'
return (
<Box flexDirection="column">
<Box flexDirection="column">
<Box flexDirection="row" justifyContent="space-between">
<Box flexDirection="row" columnGap={1}>
<Button label={`● Open (${count})`} />
<Button label={`● Completed (${count})`} />
</Box>
<Button label="Auto: on" />
</Box>
<Markdown text="---" dimColor />
</Box>
<Box flexDirection="column" marginBottom={1}>
<Text bold>
Let Claude use this pane on its own?
</Text>
<Text wrap="wrap" dimColor>
Claude would post anything only you can do here, and check tasks off when you confirm them in chat.
</Text>
<Box flexDirection="row" flexWrap="wrap" columnGap={1}>
<Button label="Yes, automatically" />
<Button label="Only when I ask" />
</Box>
</Box>
<Text dimColor>
Nothing for you to do right now.
</Text>
<Box flexDirection="column">
<Markdown text="---" dimColor />
<Text bold>
{`#${id} ${title}`}
</Text>
<Box flexDirection="column">
<Text wrap="wrap">
{`${i}1. ${text}`}
</Text>
<Button label="Copy" />
<Code source={`${command}`} language="sh" />
</Box>
<Box flexDirection="column">
<Text wrap="wrap">
{`${i}1. ${text}`}
</Text>
<Button label="Copy" />
<Code source={`${command}`} language="sh" />
</Box>
<Box flexDirection="column">
<Text wrap="wrap">
{`${i}1. ${text}`}
</Text>
<Button label="Copy" />
<Code source={`${command}`} language="sh" />
</Box>
<Text dimColor wrap="wrap">
{`Expect: ${expect}`}
</Text>
<Box flexDirection="row" flexWrap="wrap" columnGap={1}>
<Button label="Done" />
<Button label={`${opt}`} />
<Button label={`${opt}`} />
<Button label={`${opt}`} />
<Button label="Cancel reply" />
</Box>
<Input label="Reply" placeholder="What happened? Paste output or describe it" value="" submitLabel="send" autoFocus />
</Box>
<Box flexDirection="column">
<Markdown text="---" dimColor />
<Text bold>
{`#${id} ${title}`}
</Text>
<Box flexDirection="column">
<Text wrap="wrap">
{`${i}1. ${text}`}
</Text>
<Button label="Copy" />
<Code source={`${command}`} language="sh" />
</Box>
<Box flexDirection="column">
<Text wrap="wrap">
{`${i}1. ${text}`}
</Text>
<Button label="Copy" />
<Code source={`${command}`} language="sh" />
</Box>
<Box flexDirection="column">
<Text wrap="wrap">
{`${i}1. ${text}`}
</Text>
<Button label="Copy" />
<Code source={`${command}`} language="sh" />
</Box>
<Text dimColor wrap="wrap">
{`Expect: ${expect}`}
</Text>
<Box flexDirection="row" flexWrap="wrap" columnGap={1}>
<Button label="Done" />
<Button label={`${opt}`} />
<Button label={`${opt}`} />
<Button label={`${opt}`} />
<Button label="Cancel reply" />
</Box>
<Input label="Reply" placeholder="What happened? Paste output or describe it" value="" submitLabel="send" autoFocus />
</Box>
<Box flexDirection="column">
<Markdown text="---" dimColor />
<Text bold>
{`#${id} ${title}`}
</Text>
<Box flexDirection="column">
<Text wrap="wrap">
{`${i}1. ${text}`}
</Text>
<Button label="Copy" />
<Code source={`${command}`} language="sh" />
</Box>
<Box flexDirection="column">
<Text wrap="wrap">
{`${i}1. ${text}`}
</Text>
<Button label="Copy" />
<Code source={`${command}`} language="sh" />
</Box>
<Box flexDirection="column">
<Text wrap="wrap">
{`${i}1. ${text}`}
</Text>
<Button label="Copy" />
<Code source={`${command}`} language="sh" />
</Box>
<Text dimColor wrap="wrap">
{`Expect: ${expect}`}
</Text>
<Box flexDirection="row" flexWrap="wrap" columnGap={1}>
<Button label="Done" />
<Button label={`${opt}`} />
<Button label={`${opt}`} />
<Button label={`${opt}`} />
<Button label="Cancel reply" />
</Box>
<Input label="Reply" placeholder="What happened? Paste output or describe it" value="" submitLabel="send" autoFocus />
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
const id = '…'
const title = '…'
await $.ui.toast(`New task #${id}: ${title}`)
await $.ui.toast(`human-tasks: run /human-tasks to choose whether Claude uses the task pane automatically`)
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 310–469 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const ui = $.ui.resolve(e)
const { Box, Text, Button, Code, Markdown } = ui
// Not every surface can draw a text input; those fall back to buttons only
const Input = 'Input' in ui ? ui.Input : undefined
const { tasks } = await read($, board)
const replying = await read($, replyingId)
const currentMode = await read($, mode)
const currentTab = await read($, tab)
const expanded = await read($, expandedIds)
const open = tasks.filter((t) => t.status === 'open')
// Newest first
const finished = tasks.filter(isFinished).reverse()
const ruleWidth = Math.max(10, e.props.bodyColumns)
// A run of box-drawing characters renders as two lines on the desktop, so it draws a markdown rule
const rule = (key: string) =>
e.surface === 'terminal' ? (
<Text key={key} dimColor>
{'─'.repeat(ruleWidth)}
</Text>
) : (
<Markdown key={key} text="---" dimColor />
)
const tabButton = (id: Tab, name: string, count: number) => (
<Button
key={`tab-${id}`}
label={`${currentTab === id ? '●' : '○'} ${name} (${count})`}
onPress={() => update($, tab, () => id)}
/>
)
const modeButton =
currentMode !== 'unset' ? (
<Button
key="mode-toggle"
label={currentMode === 'auto' ? 'Auto: on' : 'Auto: off'}
onPress={() => setMode($, currentMode === 'auto' ? 'manual' : 'auto')}
/>
) : null
const tabs = (
<Box key="tabs" flexDirection="column">
<Box flexDirection="row" justifyContent="space-between">
<Box flexDirection="row" columnGap={1}>
{tabButton('open', 'Open', open.length)}
{tabButton('completed', 'Completed', finished.length)}
</Box>
{modeButton}
</Box>
{rule('tabs-rule')}
</Box>
)
const onboarding = currentMode === 'unset' && (
<Box key="onboarding" flexDirection="column" marginBottom={1}>
<Text bold>Let Claude use this pane on its own?</Text>
<Text wrap="wrap" dimColor>
Claude would post anything only you can do here, and check tasks off when you confirm them in chat.
</Text>
<Box flexDirection="row" flexWrap="wrap" columnGap={1}>
<Button key="mode-auto" label="Yes, automatically" onPress={() => setMode($, 'auto')} />
<Button key="mode-manual" label="Only when I ask" onPress={() => setMode($, 'manual')} />
</Box>
</Box>
)
if (currentTab === 'completed') {
return (
<Box flexDirection="column">
{tabs}
{finished.length === 0 && <Text dimColor>Nothing completed yet.</Text>}
{finished.map((t, idx) => {
const isOpen = expanded.includes(t.id)
return (
<Box key={`fin-${t.id}`} flexDirection="column">
{idx > 0 && rule(`fin-rule-${t.id}`)}
<Box flexDirection="row">
<Button
key={`toggle-${t.id}`}
label={`${isOpen ? '▾' : '▸'} ✓ #${t.id} ${t.title}`}
onPress={() =>
update($, expandedIds, (ids) => (ids.includes(t.id) ? ids.filter((i) => i !== t.id) : [...ids, t.id]))
}
/>
</Box>
{isOpen && (
<Box flexDirection="column" paddingLeft={2}>
{t.steps.map((st, i) => (
<Box key={`fstep-${t.id}-${i}`} flexDirection="column">
{st.text && <Text dimColor wrap="wrap">{`${i + 1}. ${st.text}`}</Text>}
{st.command && <Code source={st.command} language="sh" />}
</Box>
))}
{t.expect && <Text dimColor wrap="wrap">{`Expect: ${t.expect}`}</Text>}
<Text wrap="wrap">{t.answer ? `${t.status}: ${t.answer}` : t.status}</Text>
</Box>
)}
</Box>
)
})}
{finished.length > 0 && (
<Box key="clear" marginTop={1}>
<Button label={`Clear completed (${finished.length})`} onPress={() => clearCompleted($)} />
</Box>
)}
</Box>
)
}
return (
<Box flexDirection="column">
{tabs}
{onboarding}
{open.length === 0 && <Text dimColor>Nothing for you to do right now.</Text>}
{open.map((t, idx) => (
<Box key={`task-${t.id}`} flexDirection="column">
{idx > 0 && rule(`rule-${t.id}`)}
<Text bold>{`#${t.id} ${t.title}`}</Text>
{t.steps.map((s, i) => (
<Box key={`step-${i}`} flexDirection="column">
{s.text && <Text wrap="wrap">{`${i + 1}. ${s.text}`}</Text>}
{s.command && e.surface === 'terminal' && (
<Button
key={`copy-${t.id}-${i}`}
label="Copy"
onPress={async (press) => {
// Selecting wrapped text copies the soft wraps as newlines; this copies the raw command
const { isCopied } = await $.ui.copy({ text: s.command, surface: press.surface })
$.ui.toast(isCopied ? 'Command copied' : 'Could not copy the command')
}}
/>
)}
{s.command && <Code source={s.command} language="sh" />}
</Box>
))}
{t.expect && (
<Text dimColor wrap="wrap">
{`Expect: ${t.expect}`}
</Text>
)}
<Box flexDirection="row" flexWrap="wrap" columnGap={1}>
<Button
label="Done"
onPress={() =>
resolveTask($, t.id, 'done', '', (r) => `The user ticked off task ${label(r)} as done.`)
}
/>
{t.options.map((opt, j) => (
<Button
key={`opt-${j}`}
label={opt}
onPress={() =>
resolveTask($, t.id, 'chosen', opt, (r) => `For task ${label(r)} the user chose: "${opt}".`)
}
/>
))}
{Input && (
<Button
label={replying === t.id ? 'Cancel reply' : 'Reply'}Licence text (MIT)
MIT License Copyright (c) 2026 Andrew Stephenson 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
npm testnpm testnpm testnpm testnpm testnpm testnpm testnpm testnpm testDrawn 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 4af8bed3e0c8 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.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 andrewstephenson-v1/mod-claude-tasks/plugin install human-tasks@human-tasksThis installs the marketplace's latest commit, which may not be the one read here (4af8bed3e0c8). 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 "andrewstephenson-v1-human-tasks" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
Ask Claude…Desktop Markdown ReaderDesktop Markdown ReaderMarkdown file README.md applyChoose a Markdown file.No document loaded.Copy Markdown sourceRefresh
-
Ask Claude…⏺ src/ WriteUpdated·0·0·0search: Edit nextUpdated1/3── Updated ────────› Edit› Edit› Edit⎿Updated> what to change in lines Warp-Edit sendenter to send to Claude ·cancel⎿ open the original⎿ open the original⎿ open the original✎> what to change in lines Warp-Edit sendenter to send to Claude ·cancel⎿ open the original⎿ open the original⎿ open the original✎> what to change in lines Warp-Edit sendenter to send to Claude ·cancel⎿ open the original⎿ open the original⎿ open the original✎⋯> what to change in lines Warp-Edit sendenter to send to Claude ·cancel⎿ open the original⎿ open the original⎿ open the original✎> what to change in lines Warp-Edit sendenter to send to Claude ·cancel⎿ open the original⎿ open the original⎿ open the original✎> what to change in lines Warp-Edit sendenter to send to Claude ·cancel⎿ open the original⎿ open the original⎿ open the original✎
-
Ask Claude…ReviewPR #3 Fix loginbranche couranteà traiter ▸3 ▸3 ▸3 · en relecture ▸3 ▸3 ▸3▸◉3 a1b2c3d ↩ répondu obsolète → Claude Review▸◉3 a1b2c3d ↩ répondu obsolète → Claude Review▸◉3 a1b2c3d ↩ répondu obsolète → Claude Review────────fil 31/3 Review ↗ GitHub
Review@alexReview@alexReview@alexReviewRéponse : Review publierEntrée publie · Esc annule la réponse · les touches n, p… tapent dans le champ… ReviewLe panneau n'a pas le clavier : ctrl+x tab ou un clic, et les touches marchent.p préc. n suiv. t PR suiv. x démarquer a tout démarquer f corriger (3) r répondre v résoudre o web q fermer -
Ask Claude…PR securityall3 shown · 3 ignoredLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — EditLApprove [high] Pull requests: Merge — Editignored (3)⋯src/app.ts:Approve Pull requests: Mergesrc/app.ts:Approve Pull requests: Mergesrc/app.ts:Approve Pull requests: Merge
-
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
-
What it does
- Draws a pane
- Watches tool calls and can refuse them
- Hooks agent.spawn, prompt.submit, session.end, session.start and 5 more
- Keeps its own state between turns