task-eta
长任务进度行:一轮跑满 3 分钟时让模型估一次剩余步骤,之后按工具调用推进状态栏里的步骤、进度条和剩余时间
What it does
- Draws a band above the prompt, a pane
- Adds /steps
- Watches tool calls and can refuse them
- Hooks session.end, session.start, turn.complete, turn.start
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 task-eta by Bearisbug (pane, band), as modscode read it from the mod's code:
// https://modscode.com/gallery/bearisbug-task-eta/
// 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 } = $.ui.resolve(e)
const text = '…'
const text2 = '…'
const text3 = '…'
return (
<Box flexDirection="column">
<Box flexDirection="row" gap={1}>
<Box flexShrink={0}>
<Text color="autoAccept" bold>
▍进度
</Text>
</Box>
<Text wrap="truncate-end">
{text}
</Text>
<Text wrap="truncate-end">
{text2}
</Text>
<Text wrap="truncate-end">
{text3}
</Text>
</Box>
{await next(e)}
</Box>
)
})
// the pane: open it with $.ui.open({ id: 'my-pane', title: "任务步骤" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button } = $.ui.resolve(e)
const taskTitle = '…'
const parts = '…'
const activity = '…'
return (
<Box flexDirection="column" paddingX={1}>
<Box flexDirection="row" gap={1}>
<Text color="autoAccept" bold>
任务
</Text>
<Text>
{taskTitle}
</Text>
</Box>
<Box flexDirection="row" gap={1} marginBottom={1}>
<Text dimColor>
{parts}
</Text>
<Text color="autoAccept">
▰▰▰▰▰▰▰▰▱▱▱▱▱▱▱▱
</Text>
</Box>
<Box flexDirection="column">
<Text dimColor>
正在估算步骤,几秒后出现清单…
</Text>
<Text color="ide">
{"└ "}
{activity}
</Text>
</Box>
<Box flexDirection="row" gap={2} marginTop={1}>
<Button plain hotkey="c">
让 Claude 重新核对
</Button>
<Button plain hotkey="d">
整份标为完成
</Button>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text dimColor>
✓ 只在下一步真正开始、或 Claude 核对确认后才打勾;中断后发下一条消息,接着这份清单,不重新估算。
</Text>
<Text dimColor>
{"Esc 或 "}
ctrl+x p
{" 关闭(面板开着时 Esc 只关面板,不会中断 Claude)"}
</Text>
</Box>
</Box>
)
})
}
The mod's own code
Shown under the mod's licence (MIT); its text is below. Keep the notice if you copy these lines.
task-eta/hooks/register.tsx lines 611–679 · Band
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
const below = await next(e)
const now = Date.now()
const t = task
if (!t || e.props.hasSurvey) return below
const isRunning = t.ending === 'running'
if (isRunning ? !isRunningVisible(t, now) : now >= bandUntil) return below
const { Box, Text } = $.ui.resolve(e)
const at = active(t)
const cur = t.items[at]
const doneCount = finishedCount(t)
const hint: Part = { text: `${TOGGLE_KEY} 看步骤`, rank: 2, isDim: true }
let parts: Part[]
if (!isRunning) {
const total = t.items.length
const skipped = t.items.filter(i => i.status === 'skipped').length
const word: Part = { text: endingLabel(t.ending, t.isFinalChecking), rank: 0 }
parts = t.isFinalChecking
? [word, { text: 'Claude 在确认哪些步骤真的做完了', rank: 3, isDim: true }, { text: `已打勾 ${doneCount}/${total}`, rank: 1, isDim: true }, hint]
: t.ending === 'done'
? [word, { text: `用时 ${spent(elapsed(t, now))}`, rank: 1, isDim: true }, ...(skipped > 0 ? [{ text: `${skipped} 步后来不需要了`, rank: 3, isDim: true }] : []), hint]
: t.ending === 'unchecked'
? [word, { text: `完成 ${doneCount}/${total} 步(未经 Claude 确认)`, rank: 1, isDim: true }, { text: '面板里按 c 重试', rank: 3, isDim: true }, hint]
: [word, { text: `完成 ${doneCount}/${total} 步`, rank: 1, isDim: true }, { text: '下一条消息接着这份清单', rank: 4, isDim: true }, hint]
} else if (!cur) {
parts = [
{ text: t.isBusy ? '正在估算步骤…' : t.isWaitingFirstReply ? '等 Claude 第一次回复后估算' : '还没有步骤估算', rank: 0 },
{ text: `已 ${spent(elapsed(t, now))}`, rank: 3, isDim: true },
{ text: `${t.tools} 次工具调用`, rank: 4, isDim: true },
{ ...hint, rank: 1 },
]
} else {
const remain = left(t, now)
const nextItem = t.items[at + 1]
parts = [
{ text: `${at + 1}/${t.items.length} ${cur.title}`, rank: 0 },
{ text: bar(doneCount, t.items.length), rank: 2, color: 'autoAccept' },
{ text: `已 ${spent(elapsed(t, now))}`, rank: 4, isDim: true },
{ text: remain > 0 ? `约剩 ${duration(remain)}` : '已超出预估', rank: 1, isDim: true },
...(nextItem ? [{ text: `下一步 ${nextItem.title}`, rank: 5, isDim: true }] : []),
{ ...hint, rank: 3 },
]
}
const runs: Part[] = []
// 右端 4 格是 Claude Code 自己画的折叠按钮「 [-]」,bodyColumns 里含着它
for (const p of fitBand(parts, e.props.bodyColumns - 4)) {
const last = runs.at(-1)
if (last?.isDim && p.isDim) last.text += ` · ${p.text}`
else runs.push({ ...p })
}
return (
<Box flexDirection="column">
<Box flexDirection="row" gap={1}>
<Box flexShrink={0}>
<Text color="autoAccept" bold>
{BAND_LABEL}
</Text>
</Box>
{runs.map((r, i) => (
<Text key={String(i)} color={r.color} dimColor={r.isDim} wrap="truncate-end">
{r.text}
</Text>
))}
</Box>
{below}
</Box>
)
})task-eta/hooks/register.tsx lines 681–795 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const { Box, Text, Button } = $.ui.resolve(e)
const now = Date.now()
const t = task
const width = Math.max(40, e.props.bodyColumns - 2)
const titleWidth = Math.min(30, Math.max(14, Math.floor(width * 0.4)))
const footer = (
<Box flexDirection="column" marginTop={1}>
<Text dimColor>✓ 只在下一步真正开始、或 Claude 核对确认后才打勾;中断后发下一条消息,接着这份清单,不重新估算。</Text>
<Text dimColor>Esc 或 {TOGGLE_KEY} 关闭(面板开着时 Esc 只关面板,不会中断 Claude)</Text>
</Box>
)
if (!t) {
return (
<Box flexDirection="column" paddingX={1}>
<Text>还没有任务记录。Claude 开始干活后,这里会显示步骤。</Text>
{footer}
</Box>
)
}
const at = active(t)
const doneCount = finishedCount(t)
const parts = [`已 ${spent(elapsed(t, now))}`]
if (t.ending === 'running') {
if (at >= 0) parts.push(left(t, now) > 0 ? `约剩 ${duration(left(t, now))}` : '已超出预估', `第 ${at + 1}/${t.items.length} 步`)
else parts.push(`${t.tools} 次工具调用`)
if (t.isBusy && t.items.length > 0) parts.push('Claude 正在核对进度…')
} else {
parts.unshift(endingLabel(t.ending, t.isFinalChecking))
parts.push(`完成 ${doneCount}/${t.items.length} 步`)
if (t.ending === 'unchecked') parts.push('没能让 Claude 确认,按 c 重试')
else if (t.ending !== 'done' && !t.isFinalChecking) parts.push('下一条消息接着这份清单')
}
const stepRow = (it: Item, n: number) => {
const isNow = it.status === 'active'
const isLive = isNow && t.ending === 'running'
const mark = it.status === 'done' ? '✓' : it.status === 'skipped' ? '–' : isNow ? '▶' : '○'
const markColor = it.status === 'done' ? 'success' : isNow ? 'autoAccept' : undefined
const inStep = (t.ending === 'running' ? now : t.pausedAt) - it.startedAt
const calls = it.tools > 0 ? ` · ${it.tools} 次调用` : ''
let note
if (it.status === 'done') note = it.isUntimed ? '已完成(核对确认)' : `${spent(it.endedAt - it.startedAt)}(预计 ${duration(it.minutes)})${calls}`
else if (it.status === 'skipped') note = '后来不需要了(核对确认)'
else if (isNow) note = `${spent(inStep)} / 预计 ${duration(it.minutes)}${calls}${isLive ? '' : ' · 已暂停'}`
else note = `预计 ${duration(it.minutes)}`
return (
<Box flexDirection="column" key={`step-${n}`}>
<Box flexDirection="row" gap={1}>
<Text color={markColor} bold={isNow}>
{mark}
</Text>
<Box width={2}>
<Text dimColor={!isNow}>{String(n + 1)}</Text>
</Box>
<Box width={titleWidth}>
<Text bold={isNow} dimColor={it.status === 'done' || it.status === 'skipped'} strikethrough={it.status === 'skipped'}>
{it.title}
</Text>
</Box>
{isNow && <Text color="autoAccept">{bar(inStep, it.minutes * MINUTE, 5)}</Text>}
<Text dimColor>{note}</Text>
</Box>
{isLive && t.activity !== '' && (
<Box paddingLeft={5}>
<Text color="ide">└ {t.activity}</Text>
</Box>
)}
</Box>
)
}
return (
<Box flexDirection="column" paddingX={1}>
<Box flexDirection="row" gap={1}>
<Text color="autoAccept" bold>
任务
</Text>
<Text>{taskTitle(t.text)}</Text>
</Box>
<Box flexDirection="row" gap={1} marginBottom={1}>
<Text dimColor>{parts.join(' · ')}</Text>
{t.items.length > 0 && <Text color="autoAccept">{bar(doneCount, t.items.length)}</Text>}
</Box>
{t.items.map(stepRow)}
{t.items.length === 0 && (
<Box flexDirection="column">
<Text dimColor>
{t.isBusy
? '正在估算步骤,几秒后出现清单…'
: t.isWaitingFirstReply
? '等 Claude 第一次回复后估算'
: '还没有步骤估算(跑满 3 分钟或按 ctrl+x p 时估算)'}
</Text>
{t.ending === 'running' && t.activity !== '' && <Text color="ide">└ {t.activity}</Text>}
</Box>
)}
{t.items.length > 0 && (
<Box flexDirection="row" gap={2} marginTop={1}>
<Button key="recheck" plain hotkey="c" onPress={() => void recheck($, t)}>
让 Claude 重新核对
</Button>
{t.ending !== 'running' && t.ending !== 'done' && (
<Button key="finish" plain hotkey="d" onPress={() => finishByHand($, t)}>
整份标为完成
</Button>
)}
</Box>
)}
{footer}
</Box>
)
})Licence text (MIT)
MIT License Copyright (c) 2026 Bearisbug 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 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 cd2be78744da 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.task-eta/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 Bearisbug/cc-mods/plugin install task-eta@cc-modsThis installs the marketplace's latest commit, which may not be the one read here (cd2be78744da). 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 "bearisbug-task-eta" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
Ask Claude…Blast RadiusBlast Radius: npm testWould Cancel. Proceed Proceed ProceedProceed 1Cancel 2
-
Ask Claude…Replay TheaterReplay Theater 31 31 31src/app.ts (step 01 of 3)● Write● Write● WritePrev pNext nClose q
-
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
-
What it does
- Draws a band above the prompt
- Adds /seo-spend, /seo-doctor, /seo-cockpit
- Watches Agent calls and can refuse them
- Hooks agent.spawn, classic.SessionStart, prompt.submit, session.compact and 3 more
-
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