temper
Claude cannot write code before you approve the intent. Gated plan, TDD, review and check for AI written code, with a phase bar in Claude Code.
What it does
- Draws a pane
- Watches tool calls and can refuse them
- Hooks attribution.text, classic.SessionStart, prompt.compose, session.start and 4 more
- 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 temper by galando (pane, band, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/galando-temper/
// 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: "Temper Run" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button } = $.ui.resolve(e)
const passed = '…'
const total = '…'
const text = '…'
const length = '…'
const whereText = '…'
const task = '…'
const MARK = '…'
const label = '…'
const now = '…'
const sync = '…'
const line = '…'
const line2 = '…'
const line3 = '…'
const id = '…'
const severity = '…'
const claim = '…'
const key = '…'
const desc = '…'
return (
<Box flexDirection="column" rowGap={1} backgroundColor="#1c1c1c">
<Box flexDirection="column">
<Text bold color="#ffafd7">
◈ Temper
</Text>
<Text color="#a8a8a8">
Intent
</Text>
<Text bold color="#e4e4e4">
Untitled run
</Text>
</Box>
<Box flexDirection="column">
<Text color="#a8a8a8">
{`Acceptance criteria (what must be true) · ${passed} of ${total} met`}
</Text>
<Text color="#a8a8a8">
No criteria found in intent.md.
</Text>
<Text color="#87d787">
{`✔ ${text}`}
</Text>
<Text color="#87d787">
{`✔ ${text}`}
</Text>
<Text color="#87d787">
{`✔ ${text}`}
</Text>
<Text color="#a8a8a8">
{`and ${length} more. Open the pane in a wider terminal.`}
</Text>
</Box>
<Box flexDirection="column">
<Text color="#a8a8a8">
{`Phase · ${whereText}${task} · paused`}
</Text>
<Box flexDirection="row" flexWrap="wrap" columnGap={2}>
<Text>
{`${MARK} ${label}`}
</Text>
<Text>
{`${MARK} ${label}`}
</Text>
<Text>
{`${MARK} ${label}`}
</Text>
</Box>
<Text color="#a8a8a8">
✓ done ● you are here ○ upcoming ↺ redo
</Text>
<Text color="#e4e4e4">
{now}
</Text>
<Text color="#ffd787">
{sync}
</Text>
</Box>
<Box flexDirection="column">
<Text color="#a8a8a8">
Timeline, oldest first
</Text>
<Text color="#e4e4e4">
{line}
</Text>
<Text color="#e4e4e4">
{line2}
</Text>
<Text color="#e4e4e4">
{line3}
</Text>
</Box>
<Box flexDirection="column">
<Text color="#a8a8a8">
{`Open findings · ${length}`}
</Text>
<Box flexDirection="row" columnGap={1} flexWrap="wrap">
<Text color="#e4e4e4">
{`#${id} ${severity}: ${claim}`}
</Text>
<Button label="Fix" variant="primary" />
<Button label="Accept with reason" variant="primary" />
<Button label="Explain" variant="primary" />
</Box>
<Box flexDirection="row" columnGap={1} flexWrap="wrap">
<Text color="#e4e4e4">
{`#${id} ${severity}: ${claim}`}
</Text>
<Button label="Fix" variant="primary" />
<Button label="Accept with reason" variant="primary" />
<Button label="Explain" variant="primary" />
</Box>
<Box flexDirection="row" columnGap={1} flexWrap="wrap">
<Text color="#e4e4e4">
{`#${id} ${severity}: ${claim}`}
</Text>
<Button label="Fix" variant="primary" />
<Button label="Accept with reason" variant="primary" />
<Button label="Explain" variant="primary" />
</Box>
</Box>
<Box flexDirection="column">
<Text color="#a8a8a8">
More actions. Press the number shown.
</Text>
<Box flexDirection="column">
<Button label={`${key} ${label}`} hotkey={`${key}`} variant="primary" />
<Text color="#a8a8a8">
{` ${desc}`}
</Text>
</Box>
<Box flexDirection="column">
<Button label={`${key} ${label}`} hotkey={`${key}`} variant="primary" />
<Text color="#a8a8a8">
{` ${desc}`}
</Text>
</Box>
<Box flexDirection="column">
<Button label={`${key} ${label}`} hotkey={`${key}`} variant="primary" />
<Text color="#a8a8a8">
{` ${desc}`}
</Text>
</Box>
<Box flexDirection="column">
<Button label="0 Fewer actions" hotkey="0" variant="primary" />
<Text color="#a8a8a8">
{" Show or hide the other actions."}
</Text>
</Box>
<Box flexDirection="column">
<Button label="8 Close the game" hotkey="8" variant="primary" />
<Text color="#a8a8a8">
{" A small game for the wait."}
</Text>
</Box>
</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.
hooks/temper-mod/register.tsx lines 1263–1274 · Pane
on('ui.render', { component: 'Pane', requestId: PANE_ID }, async ($, e, next) => {
const ui = await readUi($).catch(() => null)
if (ui === null || ui.mode !== 'full') return next(e)
return renderPane(
$.ui.resolve(e),
ui.view,
action => runAction($, action, undefined, ui.view.phase).catch(() => undefined),
(kind, id) => runFindingAction($, kind, id).catch(() => undefined),
e.props.placement === 'inline',
{ show: working && gameOffered(), open: gameOpen },
)
})hooks/temper-mod/ui/pane.tsx lines 25–152 · Pane
export function renderPane(
kit: Kit,
view: View,
onAction: OnAction,
onFinding: OnFinding,
inline = false,
// The game offer: shown while a phase is working (the game setting is on). Key 8, as in the band.
game: { show: boolean; open: boolean } = { show: false, open: false },
): RenderElement {
const { Box, Text, Button } = kit
const playButton = game.show ? (
<Box key="pane-item-play" flexDirection="column">
<Button
key="pane-play"
label={game.open ? '8 Close the game' : '8 Play while you wait'}
hotkey="8"
variant="primary"
onPress={() => onAction({ key: '1', id: 'play', label: 'Play', desc: 'Play a small game.', command: 'play' })}
/>
<Text color={MUTED}>{' A small game for the wait.'}</Text>
</Box>
) : null
if (view.phase === null) {
return (
<Box flexDirection="column" backgroundColor={CARD_BG}>
<Text bold color={PINK}>{'◈ Temper'}</Text>
<Text color={MUTED}>No Temper run is active. Start one with /temper:temper and a feature description.</Text>
</Box>
)
}
const task = view.task ? ` · task ${view.task.n} of ${view.task.of}` : ''
const timeline = inline ? [] : view.timeline.map((line, i) => `${i + 1}. ${line}`)
// Seated inline above the prompt (a narrow terminal) the pane stays short so the band is not
// pushed off screen: the buttons live in the band there, and a long checklist is cut.
// When the person asks for the full list (key 0), it shows even here.
const a = inline && !view.expanded ? null : view.actions
const criteria = inline ? view.criteria.slice(0, 4) : view.criteria
return (
<Box flexDirection="column" rowGap={1} backgroundColor={CARD_BG}>
<Box flexDirection="column">
<Text bold color={PINK}>{'◈ Temper'}</Text>
<Text color={MUTED}>Intent</Text>
<Text bold color={FG}>{view.title ?? 'Untitled run'}</Text>
</Box>
<Box flexDirection="column">
<Text color={MUTED}>{`Acceptance criteria (what must be true) · ${view.passed} of ${view.total} met`}</Text>
{view.criteria.length === 0 ? <Text color={MUTED}>No criteria found in intent.md.</Text> : null}
{criteria.map(c => (
<Text key={`criterion-${c.id}`} color={c.status === 'passed' ? GREEN : FG}>
{`${c.status === 'passed' ? '✔' : '○'} ${c.text}`}
</Text>
))}
{inline && view.criteria.length > 4 ? <Text color={MUTED}>{`and ${view.criteria.length - 4} more. Open the pane in a wider terminal.`}</Text> : null}
</Box>
<Box flexDirection="column">
<Text color={MUTED}>{`Phase · ${whereText(view)}${task}${view.paused ? ' · paused' : ''}`}</Text>
<Box flexDirection="row" flexWrap="wrap" columnGap={2}>
{view.steps.map(s => (
<Text key={`pane-step-${s.id}`} bold={s.status === 'current'} color={STEP_COLOR[s.status]}>
{`${MARK[s.status]} ${s.label}`}
</Text>
))}
</Box>
{inline ? null : <Text color={MUTED}>{LEGEND}</Text>}
{view.now ? <Text color={FG}>{view.now}</Text> : null}
{view.sync ? <Text color={YELLOW}>{view.sync}</Text> : null}
</Box>
{timeline.length > 0 ? (
<Box key="timeline" flexDirection="column">
<Text color={MUTED}>Timeline, oldest first</Text>
{clip(timeline.join('\n'))
.split('\n')
.map((line, i) => (
<Text key={`timeline-${i}`} color={FG}>{line}</Text>
))}
</Box>
) : null}
{view.findings.length > 0 ? (
<Box flexDirection="column">
<Text color={MUTED}>{`Open findings · ${view.findings.length}`}</Text>
{view.findings.map(f => (
<Box key={`finding-${f.id}`} flexDirection="row" columnGap={1} flexWrap="wrap">
<Text color={FG}>{`#${f.id} ${f.severity}: ${f.claim}`}</Text>
<Button key={`fix-${f.id}`} label="Fix" variant="primary" onPress={() => onFinding('fix', f.id)} />
<Button key={`accept-${f.id}`} label="Accept with reason" variant="primary" onPress={() => onFinding('accept', f.id)} />
<Button key={`explain-${f.id}`} label="Explain" variant="primary" onPress={() => onFinding('explain', f.id)} />
</Box>
))}
</Box>
) : null}
{a ? (
<Box flexDirection="column">
<Text color={MUTED}>{view.expanded && a.more.length > 0 ? MENU_HINT : 'Actions'}</Text>
{/* The menu (key 0) takes the place of the main actions, so no digit is used twice. */}
{(view.expanded && a.more.length > 0 ? a.more : inline ? [] : [...a.primary, a.discuss, ...(a.override ? [a.override] : [])]).map(x => (
<Box key={`pane-item-${x.id}`} flexDirection="column">
<Button key={`pane-${x.id}`} label={`${x.key} ${x.label}`} hotkey={x.key} variant="primary" onPress={() => onAction(x)} />
<Text color={MUTED}>{` ${x.desc}`}</Text>
</Box>
))}
{a.more.length > 0 ? (
<Box key="pane-item-more-actions" flexDirection="column">
<Button
key="pane-more-actions"
label={view.expanded ? '0 Fewer actions' : '0 More actions'}
hotkey="0"
variant="primary"
onPress={() => onAction({ key: '0', id: 'more-actions', label: 'More actions', desc: 'Show or hide the other actions.', command: 'pane-expand' })}
/>
<Text color={MUTED}>{' Show or hide the other actions.'}</Text>
</Box>
) : null}
{view.expanded && a.more.length > 0 ? null : playButton}
</Box>
) : playButton ? (
<Box flexDirection="column">{playButton}</Box>
) : null}
</Box>
)
}Licence text (MIT)
MIT License Copyright (c) 2025 Gal Naor 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
reads filesdrives 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 c4b892bc6081 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/temper-mod/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.28 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 galando/temper/plugin install temper@temperThis installs the marketplace's latest commit, which may not be the one read here (c4b892bc6081). 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 "galando-temper" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
Open a file first: /crit-tui file <path>Reopen this one in the crit browser view.Ask Claude…
-
Ask Claude…Agents●●●✻ AgentsEditNo agents yet. They show here while they run.Agent──Fix login────────● build ········━━━━━━━━········2h 10m● build ········━━━━━━━━········2h 10m● build ········━━━━━━━━········2h 10m✗ Grepclick an agent to open it · click "done" to hide finished ones
-
Ask Claude…Pick a look for builddraw your own with /familiar draw. esc closes●●●●●●●●●clawd 3●●●●●●●●●clawd 3●●●●●●●●●clawd 3
-
Ask Claude…────────Clear doneClaude⋯└─ buildCancelCancelCancel└─ buildCancelCancelCancel└─ buildCancelCancelCancel
-
What it does
- Draws a pane, a band above the prompt
- Adds /lingo
- Hooks prompt.edit, prompt.submit, session.start
- Keeps its own state between turns
-
Ask Claude…主控台主控台 示範資料 3 個專案2h 10m 更新執行者Opus·預設·預設⋯專案模式 build/console mode console 切回主控台下一步 Opus─ auto build ─ auto build ─ auto buildClaude3./spinner.tsx下一步./spinner.tsx下一步派工鎖定:Bypass./spinner.tsx下一步⇢ 改用 Claude 派工(build)執行者[下一步][下一步][下一步]手動交接:面板不派工(CARD、驗證、關卡照常)Codex 未派工:Claude驗證指令:Codex✓ 最後驗證 Codex(未正常結束)輸出已被執行器截斷,以下是擷取內容GitGitGit