ModsCode / Claude Code Mods / Ranking / techno
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 and can refuse them
- 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
A starter ModsCode writes from the drawing it read, and the mod's own lines that draw, where there are any.
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/claude-mods/mods/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 362–464 · 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: (() => {
const classics = Array.from({ length: 4 }, (_, i) => CLASSICS[(s.classicTurn * 4 + i) % CLASSICS.length])
const ex = trackFor(classics[0])
return { chats: ps?.chats ?? [], classics, example: { phrase: ex.phrase, mood: moodName(ex), bpm: ex.bpm }, now }
})(),
update: s.update,
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')),
moreClassics: () => { s.classicTurn++; $.ui.invalidate('ui.render') },
update: () => runUpdate($),
}
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 336–349 · 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-'),
], [
vm.update?.state === 'ready' ? ui.Button({ key: 'mini-update', label: '↑ update', variant: 'primary', onPress: () => act.update() }) : null,
vm.update?.state === 'done' ? dim(ui, '✓ updated · new chat') : null,
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.
How to build this: Band above the prompt, Deny a tool call
What its code calls
networkruns programsenv varstool callsremembers
What its code shows
Read from the source at commit 6f52df72638d 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 read | Every module hooks/hooks.json names was read.hooks/register.js |
| Parses | Every file parses as TypeScript or JavaScript.7 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:151 mkdir (not on Windows); hooks/register.js:156 rm (not on Windows); hooks/register.js:157 mv (not on Windows); hooks/register.js:158 open (not on Windows); hooks/register.js:172 pbcopy (not on Windows) |
| Network | Whether every fetch names its https host in the code.hooks/register.js:73 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:89 sh (a shell or interpreter); hooks/register.js:94 sh (a shell or interpreter); hooks/register.js:95 sh (a shell or interpreter); hooks/register.js:96 sh (a shell or interpreter); hooks/register.js:152 sh (a shell or interpreter) |
| Reads and sends | Whether it both reads something of yours (files, environment variables, the transcript, settings) and reaches outside (the network, an MCP server, another session, telemetry).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 |
| Settings hooks | Hooks 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 $.no settings hooks: its function hooks alone |
| Servers it ships | MCP 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, agents | What 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.no skills, commands, agents or workflows |
| Tools and MCP | Whether 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).calls no tool, MCP server or command |
| Asks of the model | Completions it runs ($.model.complete, fork, classify), subagents it spawns, prompts it submits as you, and the tools, commands and agents it adds.adds tool jam, adds command techno |
| Events it hooks | By 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 (techno), tool.call, prompt.submit · reads: ui.message · also: session.start, ui.render (AbovePrompt), session.end · timers: clock.every |
| Reads, by name | The environment variables and files it names, and whether it reads the transcript, settings.json, the prompt box or the mouse selection.env: HOME, TECHNO_DEBUG |
| Writes, by name | The 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 clipboard |
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 ruslanshchuchkin/claude-techno-mod/plugin install techno@techno-mod/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (6f52df72638d). 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/ruslanshchuchkin/claude-techno-modgit -C claude-techno-mod checkout 6f52df72638da4ad559fc75da52e28b6c47d4656claude plugin validate claude-techno-modclaude --plugin-dir claude-techno-modThe 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 "ruslanshchuchkin-techno" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- code-modernizationAnthropic★ 37,653
- next-stepsThariq Shihipar★ 4,505
- token-optimizerAlex Greenshpun★ 2,534
- reflect-modBayram Annakov★ 1,703
- crit-tuiTomasz Tomczyk★ 1,196
- ai-maestro-secrets23blocks-OS★ 817
Badge for your README
If this is your mod, paste this into your README. It links to this page.
[](https://modscode.com/claude-mods/mods/ruslanshchuchkin-techno/)