techno
A long techno set above your chat box: three drops, auto mixing into the next track, favorites, Mac media keys. Claude changes it from chat.
What it does
- Draws a band above the prompt
- Adds /techno
- Watches tool calls
- Hooks prompt.submit, session.end, session.start, ui.message
- Keeps its own state between turns
Good points
- Handles errors
- Writes no files
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 techno by Ruslan Shchuchkin (band, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/ruslanshchuchkin-techno/
// 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 } = $.ui.resolve(e)
return (
<Box flexDirection="column">
<Box flexDirection="row" justifyContent="space-between" alignItems="center" columnGap={2}>
<Box flexDirection="row" flexWrap="wrap" columnGap={1} alignItems="center" />
<Box flexDirection="row" flexWrap="wrap" columnGap={1} alignItems="center" />
</Box>
{await next(e)}
</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/register.js lines 321–416 · Band
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
if (!s.isOpen && !(s.used && !s.barClosed && (s.ps || s.down))) return next(e)
const ui = $.ui.resolve(e)
const ps = s.ps
const v = ps?.view
const t = v ? parseCode(v.code) : null
const now = await $.clock.now()
const heard = t ? activeLayers(t) : {}
const all = v ? gridFor(v.code) : {}
// the rows: every layer that plays, plus the next one as a dashed row
const rows = t ? GRID_LAYERS.filter((n) => heard[n] || t.layers[n] === false).map((n) => [n, all[n] ?? '.'.repeat(16), LAYER_COLORS[n], !!heard[n], t.layers[n] === false]) : []
if (v?.next?.layer && GRID_LAYERS.includes(v.next.layer) && !rows.some((r) => r[0] === v.next.layer)) rows.push([v.next.layer, all[v.next.layer] ?? '.'.repeat(16), LAYER_COLORS[v.next.layer], false, false, true])
const looping = !!(ps?.playing && ps.barStartedAt)
const sinceBar = looping ? Math.max(0, now - ps.barStartedAt) : 0
const step = looping ? (v.bar * 16 + Math.min(15, Math.floor(sinceBar / ps.stepMs))) % 128 : 0
const nextIn = ps?.nextInMs !== null && ps?.nextInMs !== undefined ? Math.max(0, ps.nextInMs - (now - ps.now)) : null
// where the set is, for the section words: the parts of the plan and
// how far in the set it plays (in loops)
let where = null
if (v) {
const barMs = ps.barMs || 1800
const plan = v.plan ?? PLAN.map((_, k) => k)
const loops = plan.map((k) => PLAN[k].loops)
const totalLoops = loops.reduce((n, x) => n + x, 0)
const at = v.part === null ? plan.length : v.at ?? Math.max(0, plan.indexOf(v.part))
const before = loops.slice(0, at).reduce((n, x) => n + x, 0)
const inPart = v.part === null ? 0 : Math.max(0, loops[at] - v.loopsLeft)
const pos = Math.min(totalLoops, before + inPart + (v.part === null ? 0 : (v.bar + Math.min(1, sinceBar / barMs)) / 8))
where = { parts: plan.map((k) => ({ name: PLAN[k].name, section: PLAN[k].section, loops: PLAN[k].loops })), pos, loopMs: 8 * barMs, elapsed: pos * 8 * barMs, total: totalLoops * 8 * barMs }
}
// the edit card opens on the bass (or the first sound that plays)
const editTab = s.editTab ?? (heard.bass ? 'bass' : ['kick', 'hats', 'acid'].find((n) => heard[n]) ?? 'kick')
const vm = {
surface: e.surface,
screen: s.screen,
down: s.down,
ps,
view: v,
playing: !!ps?.playing,
auto: !!ps?.auto,
fav: !!ps?.fav,
volume: ps?.volume ?? 4,
nextIn,
where,
editOpen: s.editOpen,
editTab,
heard,
info: t && editTab && !['song', 'master', 'add'].includes(editTab) ? soundInfo(t, editTab) : null,
master: t?.master ?? [0, 0, 0],
plan: t ? planOf(t).map((k, i) => ({ k: i, name: PLAN[k].name, now: v.part !== null && i === (v.at ?? -1) })) : [],
planAdds: t ? planAdds(t) : [],
planEdited: !!t?.plan,
favorites: ps?.favorites ?? [],
recent: ps?.recent ?? [],
playlist: ps?.playlist ?? null,
canUndo: !!ps?.canUndo,
said: ps?.said ?? '',
you: s.you,
status: s.status,
crate: { repo: s.repo, starters: STARTERS },
gridEl: rows.length ? ui.Client({ key: 'grid', module: './grid.client.js', props: { rows, step, stepMs: ps?.stepMs || 115, playing: looping, stamp: ps?.barStartedAt ?? 0 } }) : null,
}
const go = (body) => () => cmd($, body)
const act = {
play: go({ op: 'play' }),
stop: go({ op: 'pause' }),
auto: go({ op: 'auto', on: !ps?.auto }),
next: go({ op: 'next' }),
skip: go({ op: 'skip' }),
prev: go({ op: 'prev' }),
fav: go({ op: 'fav' }),
volume: (level) => cmd($, { op: 'volume', level }),
toggleFav: (code) => cmd($, { op: 'fav', code }),
mood: (name) => cmd($, { op: 'jam', mood: name }),
dice: go({ op: 'dice' }),
undo: go({ op: 'undo' }),
bpm: (d) => cmd($, { op: 'jam', bpm: Math.max(BPM_MIN, Math.min(BPM_MAX, (v?.bpm ?? 128) + d)) }),
pick: (code) => { s.screen = 'deck'; return cmd($, { op: 'pick', code, playlist: null }) },
playFavorite: (code) => { s.screen = 'deck'; return cmd($, { op: 'pick', code, playlist: 'favorites' }) },
playFavorites: () => { s.screen = 'deck'; return cmd($, { op: 'playlist', name: 'favorites' }) },
phrase: (text) => (String(text).trim() ? act.pick(String(text).trim()) : undefined),
share: (code) => share($, code ?? v.code),
copy: (code) => copyLine($, code ?? v.code),
screen: (id) => { s.screen = id; $.ui.invalidate('ui.render') },
edit: () => { s.editOpen = !s.editOpen; $.ui.invalidate('ui.render') },
editTab: (id) => { s.editTab = id; $.ui.invalidate('ui.render') },
tweak: (e) => cmd($, { op: 'edit', ...e }),
layer: (name) => cmd($, { op: 'layer', name }),
open: () => { s.isOpen = true; s.screen = 'deck'; $.ui.invalidate('ui.render') },
close: () => { s.isOpen = false; $.ui.invalidate('ui.render') },
closeBar: () => { s.barClosed = true; $.store.set('bar', false); $.ui.invalidate('ui.render') },
retry: () => ensurePlayer($).then(() => $.ui.invalidate('ui.render')),
}
const theirs = await next(e)
return ui.Box({ flexDirection: 'column', children: [s.isOpen ? appView(ui, vm, act) : miniView(ui, vm, act), theirs] })
})hooks/views.js lines 294–305 · Band
export function miniView(ui, vm, act) {
if (!vm.view) return spread(ui, [ui.Text({ bold: true, children: ['♪'] }), dim(ui, vm.down || 'starting the player…')], [link(ui, 'mini-close', '×', () => act.closeBar())], 'mini')
const v = vm.view
return spread(ui, [
ui.Text({ bold: true, children: ['♪'] }),
...transport(ui, vm, act, 'mini-'),
], [
toggle(ui, 'mini-auto', vm.auto ? '● auto' : '○ auto', vm.auto, () => act.auto()),
link(ui, 'mini-open', 'open', () => act.open()),
link(ui, 'mini-close', '×', () => act.closeBar()),
], 'mini')
}hooks/views.js lines 22–22 · Band
const spread = (ui, left, right, key) => ui.Box({ key, flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', columnGap: 2, children: [row(ui, left), row(ui, right)] })hooks/views.js lines 21–21 · Band
const dim = (ui, text, extra = {}) => ui.Text({ dimColor: true, children: [text], ...extra })hooks/views.js lines 19–19 · Band
const row = (ui, children, extra = {}) => ui.Box({ flexDirection: 'row', flexWrap: 'wrap', columnGap: 1, alignItems: 'center', children: children.filter(Boolean), ...extra })hooks/views.js lines 33–45 · Band
function transport(ui, vm, act, prefix) {
const v = vm.view
return [
vm.recent.length ? ui.Button({ key: prefix + 'prev', label: '⏮', onPress: () => act.prev() }) : null,
toggle(ui, prefix + 'play', vm.playing ? '■ stop' : '▶ play', !vm.playing, () => (vm.playing ? act.stop() : act.play()), prefix ? {} : { hotkey: 'p' }),
ui.Button({ key: prefix + 'skip', label: '⏭', onPress: () => act.skip() }),
ui.Text({ bold: true, wrap: 'truncate-end', children: [v.phrase] }),
ui.Button({ key: prefix + 'fav', label: vm.fav ? '♥' : '♡', plain: true, onPress: () => act.fav() }),
// the word, not an arrow (Ruslan, 2026-10-05, option B of arrow / word / under the grid)
ui.Button({ key: prefix + 'share', label: 'share', onPress: () => act.copy() }),
volume(ui, vm, act, prefix),
]
}Licence text (MIT)
MIT License Copyright (c) 2026 Ruslan Shchuchkin 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 programsenv varstool callsremembers
What its code shows
Read from the source at commit d2049a290186 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.js |
| 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).hooks/register.js:141 mkdir (not on Windows); hooks/register.js:146 rm (not on Windows); hooks/register.js:147 mv (not on Windows); hooks/register.js:148 open (not on Windows); hooks/register.js:162 pbcopy (not on Windows) |
| Network | Whether every fetch names its https host in the code.hooks/register.js:63 fetch('http://techno' + (body ? '/cmd' : '/state')) |
| Programs | Whether every program it starts is named in the code and is not a shell, an interpreter or a network tool.hooks/register.js:79 sh (a shell or interpreter); hooks/register.js:84 sh (a shell or interpreter); hooks/register.js:85 sh (a shell or interpreter); hooks/register.js:86 sh (a shell or interpreter); hooks/register.js:142 sh (a shell or interpreter) |
| Reads and sends | Whether it both reads files or environment variables and reaches the network.reads environment variables 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 ruslanshchuchkin/claude-techno-mod/plugin install techno@techno-modThis installs the marketplace's latest commit, which may not be the one read here (d2049a290186). 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 "ruslanshchuchkin-techno" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
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
-
could not fill the prompt boxcould not fill:Ask Claude…
-
▴Token OptimizerCheckpointCheckpointCheckpointbuildStart freshbuildStart freshbuildStart freshbuildCheckpointCheckpointCheckpointCheckpointCheckpointCheckpointCheckpointCheckpointCheckpointbuildbuildbuildTokens savedSaved Clean up tokens in 30 days (chat 2 this session)Ask Claude…
-
reflect · "Skip" ×3Save to ./CLAUDE.mdGlobal insteadEditSkipreflect · "Skip" ×3Save to ./CLAUDE.mdGlobal insteadEditSkipreflect · "Skip" ×3reflect · +3 more · /reflect-queueSave to ./CLAUDE.mdGlobal insteadEditSkipAsk Claude…
-
Open a file first: /crit-tui file <path>Reopen this one in the crit browser view.Ask Claude…
-
✉ 3 unread AMP message ReadHideAsk Claude…