Ranking|Claude Code Mods

ModsCode / Claude Code Mods / Ranking / temper

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.

Code you can checkTerminal + desktopPaneBandToastBoxButtonClientTextIn Anthropic's plugin directory
drives Claude, draws

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

A starter ModsCode writes from the drawing it read, and the mod's own lines that draw, where there are any.

Starter (register.tsx)

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/claude-mods/mods/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 1276–1287 · 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.

How to build this: Pane (panel), Deny a tool call

What its code calls

reads filesdrives Claudetool callsrememberssettings hookscalls tools

What its code shows

Read from the source at commit c8fc548e423c on 2026-10-11. 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 readEvery module hooks/hooks.json names was read.hooks/temper-mod/register.tsx
ParsesEvery file parses as TypeScript or JavaScript.29 files parsed
All its code is in the modEvery import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod
ReadableNo 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 openNetwork 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 drawsThe 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 lineWhether 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 WindowsWhether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).runs no program a Windows PC lacks
NetworkWhether every fetch names its https host in the code.no network
ProgramsWhether every program it starts is named in the code and is not a shell, an interpreter or a network tool.bash (a settings hook)
Reads and sendsWhether it both reads something of yours (files, environment variables, the transcript, settings) and reaches outside (the network, an MCP server, another session, telemetry).reads files, but reaches nothing outside
Keys in the sourceWhether the source holds what looks like an API key or a private key.no keys in the source
LicenceAn 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
Settings hooksHooks declared in hooks/hooks.json or plugin.json beside the module: a command (a shell when it has no args), an HTTP request, an MCP tool or a model prompt at an event. They run outside $.UserPromptSubmit: bash (through a shell); Stop: bash (through a shell)
Servers it shipsMCP servers (a program, or a URL; a headersHelper is a shell command; a .mcpb bundle is unpacked at run time), LSP servers, monitors (a shell command for the whole session) and bin/ (on the PATH of the Bash tool).ships no MCP or LSP server, no monitor, no bin/
Skills, commands, agentsWhat its Markdown declares beyond text: allowed-tools granted for the turn, hooks added when a skill is invoked, a command run before Claude reads the skill.5 skills, 11 commands, 8 agents: text only
Tools and MCPWhether every tool it calls through $.tool.call and $.mcp.call is named in the code, and none is a shell (Bash through the tool runs a shell without $.process).command.run: /temper:temper
Asks of the modelCompletions it runs ($.model.complete, fork, classify), subagents it spawns, prompts it submits as you, and the tools, commands and agents it adds.prompt.submit (as the person)
Events it hooksBy what a hook there can do: gates (refuse a tool call, a prompt, a setting, another plugin), shapes (what the model reads: the system prompt, tool descriptions, each request), reads (your input, the events of the settings hooks, every event with *), and the rest.gates: command.run, tool.call · shapes: attribution.text, prompt.compose, turn.step · reads: classic.SessionStart, ui.message · also: session.start, ui.render (AbovePrompt, Pane, Spinner (+2)), ui.close, turn.complete
Reads, by nameThe environment variables and files it names, and whether it reads the transcript, settings.json, the prompt box or the mouse selection.files: a path computed at run time, …/.temper/build-state.json, .
Writes, by nameThe files and environment variables it names, and whether it changes settings, the prompt box, the clipboard, the conversation (a row the model reads) or another session.the prompt box; settings (config.set)

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 its code (or run claude plugin validate . in its folder), weigh what it reaches, and install the commit you read.

From its marketplace

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@temper
/reload-plugins

This installs the marketplace's latest commit, which may not be the one read here (c8fc548e423c). Compare them before you install. /reload-plugins loads it into a session that is already open.

Try the commit ModsCode read

No marketplace needed. In a terminal, clone the repository, check out the commit read, validate the mod, and load it for one session:

git clone https://github.com/galando/temper
git -C temper checkout c8fc548e423c2dc3542d80758b98e0a01287ee36
claude plugin validate temper
claude --plugin-dir temper

The validate line lists the events the mod hooks and what it asks Claude Code to do, without running it. The last line loads the mod for this session only and writes nothing to your settings. If the author has rewritten history, the commit may no longer exist.

Ask Claude about it

With the ModsCode connector added, Claude can read this mod's code and what it reaches, and build on them. Ask it like this:

Read the ModsCode mod "galando-temper" with its code and make me one like it

Search them from Claude: the MCP connector

Similar mods

Badge for your README

If this is your mod, paste this into your README. It links to this page.

README.md
[![ModsCode](https://modscode.com/badge/galando-temper.svg)](https://modscode.com/claude-mods/mods/galando-temper/)