avatars
Claude speaks a short version of each reply through ElevenLabs, as a narrator or a cast of characters with animated portraits above the prompt
What it does
- Draws a pane, toasts
- Adds /avatar
- Watches mcp__avatars__search_voices, mcp__avatars__my_voices, mcp__avatars__audition, mcp__avatars__paths calls and can refuse them
- Hooks session.start, turn.complete
- Calls the network
Good points
- Written in TypeScript
- Has a desktop-specific branch
- 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 avatars by Dead Money (pane, band, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/dead-money-avatars/
// 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: "Avatars" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Select, Button } = $.ui.resolve(e)
const description = '…'
const voice = '…'
const model = '…'
const note = '…'
return (
<Box flexDirection="column" gap={1}>
<Box flexDirection="column">
<Text>
{"Spoken replies: "}
<Text bold>
on
</Text>
{" "}
{"API key: "}
<Text color="green">
set
</Text>
</Text>
<Text dimColor>
Set it with /plugin (Avatars, configure), or export ELEVENLABS_API_KEY and restart.
</Text>
</Box>
<Box flexDirection="column">
<Select label="Mode " autoFocus value="off" options={[{"label":"‹option›"},{"value":"off","label":"Off"}]} />
<Text dimColor>
{description}
</Text>
</Box>
<Select label="Voice " value={`${voice}`} />
<Button dimColor>
Load my ElevenLabs voices
</Button>
<Select label="Model " value={`${model}`} />
<Select label="Scenario " value="" options={[{"value":"","label":"Pick one to play"},{"label":"‹option›"}]} />
<Box flexDirection="row" gap={1} flexWrap="wrap">
<Button hotkey="t" variant="primary">
Test
</Button>
<Button hotkey="r">
Replay
</Button>
<Button hotkey="s">
Stop
</Button>
<Button hotkey="o">
Turn off
</Button>
<Button hotkey="d">
Save as default
</Button>
<Button hotkey="c">
Check setup
</Button>
<Button role="dismiss">
Close
</Button>
</Box>
<Text>
{note}
</Text>
<Text dimColor>
{"New modes: ask Claude to create one (the create-mode skill), or see "}
.
</Text>
</Box>
)
})
on('session.start', async ($, e, next) => {
const error = '…'
await $.ui.toast(`avatars: ${error}`)
await $.ui.toast(`avatars: ${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/avatars/hooks/register.tsx lines 889–971 · Pane
on('ui.render', { component: 'Pane', requestId: MENU }, async ($, e) => {
const { Box, Text, Button, Select } = $.ui.resolve(e)
const mode = await modeOf($)
const isOn = await isEnabled($)
const model = await modelOf($)
const voice = await voiceOf($, mode)
const voices = await read($, libraryVoices)
const note = await read($, menuNote)
const hasKey = (await apiKey($)) !== undefined
const scenarios = [...modes.values()].flatMap(m => Object.entries(m.scenarios ?? {}).map(([key, s]) => ({ key, title: `${m.title}: ${s.title}` })))
const act = (work: () => Promise<string>) => () => {
void work().then(text => update($, menuNote, () => text)).catch(err => update($, menuNote, () => String(err)))
}
const voiceOptions = [
...(mode?.voice ? [{ value: mode.voice, label: `${mode.title} default` }] : []),
...(voices ?? []).filter(v => v.id !== mode?.voice).map(v => ({ value: v.id, label: v.name })),
]
if (voice && !voiceOptions.some(o => o.value === voice)) voiceOptions.unshift({ value: voice, label: voice })
return (
<Box flexDirection="column" gap={1}>
<Box flexDirection="column">
<Text>
Spoken replies: <Text bold>{isOn ? 'on' : 'off'}</Text>
{' '}API key: {hasKey ? <Text color="green">set</Text> : <Text color="red">missing</Text>}
</Text>
{!hasKey && <Text dimColor>Set it with /plugin (Avatars, configure), or export ELEVENLABS_API_KEY and restart.</Text>}
</Box>
<Box flexDirection="column">
<Select
key="mode"
label="Mode "
autoFocus
value={mode?.name ?? 'off'}
options={[...[...modes.values()].map(m => ({ value: m.name, label: m.title })), { value: 'off', label: 'Off' }]}
onSelect={value => act(() => setMode($, value))()}
/>
{mode && <Text dimColor>{mode.description}</Text>}
</Box>
{mode && !mode.call && voiceOptions.length > 0 && (
<Select key="voice" label="Voice " value={voice} options={voiceOptions} onSelect={value => act(() => setVoice($, value))()} />
)}
{mode && !mode.call && voices === null && hasKey && (
<Button key="load-voices" dimColor onPress={() => void refreshLibrary($)}>
Load my ElevenLabs voices
</Button>
)}
<Select
key="model"
label="Model "
value={model}
options={[...new Set([model, ...MODELS])].map(m => ({ value: m, label: `${m}${hasTags(m) ? ' (audio tags)' : ''}` }))}
onSelect={value => act(() => setModel($, value))()}
/>
{scenarios.length > 0 && (
<Select
key="scenario"
label="Scenario "
value=""
options={[{ value: '', label: 'Pick one to play' }, ...scenarios.map(s => ({ value: s.key, label: s.title }))]}
onSelect={value => value && act(() => playScenario($, value))()}
/>
)}
<Box flexDirection="row" gap={1} flexWrap="wrap">
<Button key="test" hotkey="t" variant="primary" onPress={act(() => playDemo($, ''))}>Test</Button>
<Button key="replay" hotkey="r" onPress={act(async () => {
const last = await read($, lastSaid)
if (!last) return 'Nothing spoken yet.'
background($, say($, last))
return 'Replaying.'
})}>Replay</Button>
<Button key="stop" hotkey="s" onPress={act(async () => (await stop(), 'Stopped.'))}>Stop</Button>
<Button key="toggle" hotkey="o" onPress={act(() => setEnabled($, !isOn))}>{isOn ? 'Turn off' : 'Turn on'}</Button>
<Button key="default" hotkey="d" onPress={act(() => saveDefaults($))}>Save as default</Button>
<Button key="doctor" hotkey="c" onPress={act(() => doctor($))}>Check setup</Button>
<Button key="close" role="dismiss" onPress={() => void $.ui.close({ id: MENU })}>Close</Button>
</Box>
{note !== '' && <Text>{note}</Text>}
<Text dimColor>New modes: ask Claude to create one (the create-mode skill), or see {userModesDir}.</Text>
</Box>
)
})Licence text (MIT)
MIT License Copyright (c) 2026 Dead Money 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
networkruns programswrites filesenv varsdrives 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 3e573da398fc 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/avatars/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.6 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.plugins/avatars/hooks/register.tsx:508 fetch(`${API}/v1/voices/add/${owner}/${voice}`); plugins/avatars/hooks/register.tsx:703 fetch(`${API}${path}`); plugins/avatars/hooks/register.tsx:740 fetch(`${API}/v1/voices/${voice}`); plugins/avatars/hooks/register.tsx:1105 fetch(`${API}/v1/voices/${voice}`) |
| Programs | Whether every program it starts is named in the code and is not a shell, an interpreter or a network tool.plugins/avatars/hooks/register.tsx:458 a program named at run time; plugins/avatars/hooks/register.tsx:726 a program named at run time |
| Reads and sends | Whether it both reads files or environment variables and reaches the network.reads environment variables and files and reaches the 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 dead-money/claude-plugins/plugin install avatars@dead-moneyThis installs the marketplace's latest commit, which may not be the one read here (3e573da398fc). 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 "dead-money-avatars" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
Ask Claude…Xcodebuild · App · 31/3◐ Rendering App…Write↻ Re-render (r) r✦ Ask Claude (x) x◀ (h) h▶ (l) lOpen (o) o
-
Ask Claude…Skins0 Your promptadd rate limiting to the hub api0 Tool rows: finished, running, failedYour prompt Spinner0 Folded group of reads and searches●main · note 3 · note 3 · note 30 Edit diff cardDesktop only; the terminal keeps Claude Code's diff.0 Shell output cardDesktop only.0 Code block cardDesktop only; the terminal keeps Claude Code's markdown.0 TableAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentCopyAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentCopyAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentCopy0 SpinnerAccent SpinnerSpinnerSpinner… 2h 10m0 Band above the prompt: normal, then nudging to compact█████░░░ 42% build█████░░░ 42% build█████░░░ 42% buildContext is 42% full0 Compact now0 Band above a questionTable BashBashBash0 Turn footer (terminal)3 build in 2h 10m · Grep · +3 −3
-
Ask Claude…agent-discoverbuildbuildbuildRefreshMCP Browse/3Tab / shift+Tab move · Enter presses · ↑↓ scroll · Esc back to the promptBrowse...Audit asks:DeclineAcceptDeclineCancelAudit asks:DeclineAcceptDeclineCancelAudit asks:DeclineAcceptDeclineCancel
-
Ask Claude…Fanyi settingsOnAPI · OpusenOn this MacAPIHost src/ SaveKey K · paste a new one, Enter SaveOpus↻ RefreshCustom model model id, for an API that lists none UseFanyi settingsHostClose
-
● pace Write · Park to1 park 12 dismiss 2pace: resume point 2h 10m · Fix login · 33 resume 34 discard 45 all 3 5pace: Park to resume point older than 7 days6 clear 6Ask Claude…
-
Ask Claude…Model routerLast reply: Fix login → a1b2c3dKept off Opus to save the cache. Start a prompt with @Opus to force it.OnOffRoutes model and effort for each kind of prompt0 Fix loginbuildbuildbuildbuildbuildbuild0 Fix loginbuildbuildbuildbuildbuildbuild0 Fix loginbuildbuildbuildbuildbuildbuildYour rules checked firstNo rules yet. Pick a model and effort, type the words, press Add rule.Tasksa1b2c3d✕Tasksa1b2c3d✕Tasksa1b2c3d✕words, for example landing page, redesign Add rulebuildbuildbuildbuildbuildbuildOptions CoolingWhen still broken after xhigh, move tobuildbuildbuildCache saver: skip one-off model switches in long chatsbuildbuildbuildOne prompt only: start it with @opus, @max or @hardReset