ModsCode / Claude Code Mods / Ranking / owner-inbox
owner-inbox
Collect open owner questions, confirm replies, and navigate to available terminal tabs.
What it does
- Draws a band above the prompt, a pane, the status line
- Adds /inbox
- Watches AskUserQuestion calls and can refuse them
- Hooks prompt.compose, prompt.submit, session.start, skill.prompt and 1 more
- Starts processes
Good points
- No network calls
- Written in TypeScript
- Handles errors
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 owner-inbox by navigator contributors (pane, band, status), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/kanevry-owner-inbox/
// 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, Text, Button } = $.ui.resolve(e)
const dieserTab = '…'
const zeichen = '…'
const kopfDran = '…'
const kurz = '…'
const zumTab = '…'
return (
<Box flexDirection="column">
<Box flexDirection="row" gap={1}>
<Text dimColor>
{dieserTab}
</Text>
<Button plain>
<Text dimColor>
[
Run autonomously
]
</Text>
</Button>
</Box>
<Box flexDirection="row" gap={1}>
<Text bold>
{zeichen}
{" "}
{`${kopfDran}`}
{": "}
{kurz}
</Text>
<Button variant="primary" label={`${zumTab}`} />
</Box>
{await next(e)}
</Box>
)
})
// the pane: open it with $.ui.open({ id: 'my-pane', title: "Inbox" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button, Input } = $.ui.resolve(e)
const kopfDran = '…'
const veraltet = '…'
const length = '…'
const meldung = '…'
const zeile = '…'
const worum = '…'
const modus = '…'
const frischGrund = '…'
const vorschlagGrund = '…'
const worum2 = '…'
const header = '…'
const text = '…'
const i = '…'
const label = '…'
const beschreibung = '…'
const label2 = '…'
const beschreibung2 = '…'
const label3 = '…'
const beschreibung3 = '…'
const text2 = '…'
const label4 = '…'
const beschreibung4 = '…'
const label5 = '…'
const beschreibung5 = '…'
const label6 = '…'
const beschreibung6 = '…'
const text3 = '…'
const label7 = '…'
const beschreibung7 = '…'
const label8 = '…'
const beschreibung8 = '…'
const label9 = '…'
const beschreibung9 = '…'
const t = '…'
const t2 = '…'
const t3 = '…'
const wann = '…'
const dauerKurz = '…'
const aktivesKonto = '…'
const kuerzen = '…'
const nochmal = '…'
const zumTab = '…'
const zeile2 = '…'
const worum3 = '…'
const modus2 = '…'
const worum4 = '…'
const text4 = '…'
const label10 = '…'
const beschreibung10 = '…'
const label11 = '…'
const beschreibung11 = '…'
const label12 = '…'
const beschreibung12 = '…'
const text5 = '…'
const label13 = '…'
const beschreibung13 = '…'
const label14 = '…'
const beschreibung14 = '…'
const label15 = '…'
const beschreibung15 = '…'
const text6 = '…'
const label16 = '…'
const beschreibung16 = '…'
const label17 = '…'
const beschreibung17 = '…'
const label18 = '…'
const beschreibung18 = '…'
const t4 = '…'
const t5 = '…'
const t6 = '…'
const kuerzen2 = '…'
const zeile3 = '…'
const worum5 = '…'
const modus3 = '…'
const worum6 = '…'
const text7 = '…'
const label19 = '…'
const beschreibung19 = '…'
const label20 = '…'
const beschreibung20 = '…'
const label21 = '…'
const beschreibung21 = '…'
const text8 = '…'
const label22 = '…'
const beschreibung22 = '…'
const label23 = '…'
const beschreibung23 = '…'
const label24 = '…'
const beschreibung24 = '…'
const text9 = '…'
const label25 = '…'
const beschreibung25 = '…'
const label26 = '…'
const beschreibung26 = '…'
const label27 = '…'
const beschreibung27 = '…'
const t7 = '…'
const t8 = '…'
const t9 = '…'
const kuerzen3 = '…'
const leadFragt = '…'
const ueber = '…'
const map = '…'
const nochmalSchliessen = '…'
const gesamt = '…'
return (
<Box flexDirection="column" gap={1}>
<Box flexDirection="column" gap={1} flexGrow={1}>
<Box flexDirection="row" justifyContent="space-between">
<Text color="yellow">
{`● ${kopfDran}`}
</Text>
<Text dimColor>
{`${veraltet}`}
</Text>
</Box>
<Box flexDirection="row" gap={1}>
<Button variant="primary" hotkey="j" label="Now" />
<Button variant="primary" hotkey="s" label="Sessions" />
<Button variant="primary" hotkey="q" label={`Queue ${length}`} />
<Button variant="primary" hotkey="r" label="Repos" />
</Box>
<Text bold wrap="wrap">
{meldung}
</Text>
<Box flexDirection="column" gap={1}>
<Box flexDirection="column">
<Button plain>
<Text bold>
{zeile}
</Text>
</Button>
<Text wrap="truncate-end">
{" "}
{worum}
</Text>
<Box flexDirection="column">
<Text wrap="wrap">
{" "}
Suggestion
{": "}
{modus}
</Text>
<Text dimColor wrap="wrap">
{" "}
{`${frischGrund}`}
</Text>
<Text dimColor wrap="wrap">
{" "}
{`${vorschlagGrund}`}
</Text>
</Box>
<Text wrap="truncate-end">
{" "}
{worum2}
</Text>
<Box flexDirection="column">
<Box flexDirection="column" borderStyle="round" borderColor="gray" paddingX={1}>
<Box flexDirection="column">
<Box flexDirection="column">
<Text bold wrap="wrap">
{`${header}: `}
{text}
</Text>
<Box flexDirection="column">
<Button plain hotkey={`${i}`}>
<Text bold>
{label}
</Text>
<Text bold>
{" "}
★ recommended
</Text>
</Button>
<Text dimColor wrap="wrap">
{" "}
{beschreibung}
</Text>
</Box>
<Box flexDirection="column">
<Button plain hotkey={`${i}`}>
<Text bold>
{label2}
</Text>
<Text bold>
{" "}
★ recommended
</Text>
</Button>
<Text dimColor wrap="wrap">
{" "}
{beschreibung2}
</Text>
</Box>
<Box flexDirection="column">
<Button plain hotkey={`${i}`}>
<Text bold>
{label3}
</Text>
<Text bold>
{" "}
★ recommended
</Text>
</Button>
<Text dimColor wrap="wrap">
{" "}
{beschreibung3}
</Text>
</Box>
</Box>
<Box flexDirection="column">
<Text bold wrap="wrap">
{`${header}: `}
{text2}
</Text>
<Box flexDirection="column">
<Button plain hotkey={`${i}`}>
<Text bold>
{label4}
</Text>
<Text bold>
{" "}
★ recommended
</Text>
</Button>
<Text dimColor wrap="wrap">
{" "}
{beschreibung4}
</Text>
</Box>
<Box flexDirection="column">
<Button plain hotkey={`${i}`}>
<Text bold>
{label5}
</Text>
<Text bold>
{" "}
★ recommended
</Text>
</Button>
<Text dimColor wrap="wrap">
{" "}
{beschreibung5}
</Text>
</Box>
<Box flexDirection="column">
<Button plain hotkey={`${i}`}>
<Text bold>
{label6}
</Text>
<Text bold>
{" "}
★ recommended
</Text>
</Button>
<Text dimColor wrap="wrap">
{" "}
{beschreibung6}
</Text>
</Box>
</Box>
<Box flexDirection="column">
<Text bold wrap="wrap">
{`${header}: `}
{text3}
</Text>
<Box flexDirection="column">
<Button plain hotkey={`${i}`}>
<Text bold>
{label7}
</Text>
<Text bold>
{" "}
★ recommended
</Text>
</Button>
<Text dimColor wrap="wrap">
{" "}
{beschreibung7}
</Text>
</Box>
<Box flexDirection="column">
<Button plain hotkey={`${i}`}>
<Text bold>
{label8}
</Text>
<Text bold>
{" "}
★ recommended
</Text>
</Button>
<Text dimColor wrap="wrap">
{" "}
{beschreibung8}
</Text>
</Box>
<Box flexDirection="column">
<Button plain hotkey={`${i}`}>
<Text bold>
{label9}
</Text>
<Text bold>
{" "}
★ recommended
</Text>
</Button>
<Text dimColor wrap="wrap">
{" "}
{beschreibung9}
</Text>
</Box>
</Box>
<Text dimColor>
Multiple questions: answer in the tab.
</Text>
<Text wrap="wrap">
{"· "}
{t}
</Text>
<Text wrap="wrap">
{"· "}
{t2}
</Text>
<Text wrap="wrap">
{"· "}
{t3}
</Text>
<Box flexDirection="column">
<Text>
{`Reset ${wann} (in ${dauerKurz})`}
</Text>
<Button hotkey="w" label="Resume after reset" />
<Button hotkey="k" label={`${aktivesKonto} · not tested yet`} />
</Box>
<Text dimColor wrap="wrap">
"
{kuerzen}
"
</Text>
<Box flexDirection="column">
<Text dimColor>
or
:
</Text>
<Button plain>
<Text bold color="yellow">
{" "}
{`${nochmal}`}
</Text>
</Button>
<Button plain>
<Text bold color="yellow">
{" "}
{`${nochmal}`}
</Text>
</Button>
<Button plain>
<Text bold color="yellow">
{" "}
{`${nochmal}`}
</Text>
</Button>
</Box>
<Button variant="primary" hotkey="g" label={`${zumTab}`} />
</Box>
</Box>
<Input />
</Box>
</Box>
<Box flexDirection="column">
<Button plain>
<Text bold>
{zeile2}
</Text>
</Button>
<Text wrap="truncate-end">
{" "}
{worum3}
</Text>
<Box flexDirection="column">
<Text wrap="wrap">
{" "}
Suggestion
{": "}
{modus2}
</Text>
<Text dimColor wrap="wrap">
{" "}
{`${frischGrund}`}
</Text>
<Text dimColor wrap="wrap">
{" "}
{`${vorschlagGrund}`}
</Text>
</Box>
<Text wrap="truncate-end">
{" "}
{worum4}
</Text>
<Box flexDirection="column">
<Box flexDirection="column" borderStyle="round" borderColor="gray" paddingX={1}>
<Box flexDirection="column">
<Box flexDirection="column">
<Text bold wrap="wrap">
{`${header}: `}
{text4}
</Text>
<Box flexDirection="column">
<Button plain hotkey={`${i}`}>
<Text bold>
{label10}
</Text>
<Text bold>
{" "}
★ recommended
</Text>
</Button>
<Text dimColor wrap="wrap">
{" "}
{beschreibung10}
</Text>
</Box>
<Box flexDirection="column">
<Button plain hotkey={`${i}`}>
<Text bold>
{label11}
</Text>
<Text bold>
{" "}
★ recommended
</Text>
</Button>
<Text dimColor wrap="wrap">
{" "}
{beschreibung11}
</Text>
</Box>
<Box flexDirection="column">
<Button plain hotkey={`${i}`}>
<Text bold>
{label12}
</Text>
<Text bold>
{" "}
★ recommended
</Text>
</Button>
<Text dimColor wrap="wrap">
{" "}
{beschreibung12}
</Text>
</Box>
</Box>
<Box flexDirection="column">
<Text bold wrap="wrap">
{`${header}: `}
{text5}
</Text>
<Box flexDirection="column">
<Button plain hotkey={`${i}`}>
<Text bold>
{label13}
</Text>
<Text bold>
{" "}
★ recommended
</Text>
</Button>
<Text dimColor wrap="wrap">
{" "}
{beschreibung13}
</Text>
</Box>
<Box flexDirection="column">
<Button plain hotkey={`${i}`}>
<Text bold>
{label14}
</Text>
<Text bold>
{" "}
★ recommended
</Text>
</Button>
<Text dimColor wrap="wrap">
{" "}
{beschreibung14}
</Text>
</Box>
<Box flexDirection="column">
<Button plain hotkey={`${i}`}>
<Text bold>
{label15}
</Text>
<Text bold>
{" "}
★ recommended
</Text>
</Button>
<Text dimColor wrap="wrap">
{" "}
{beschreibung15}
</Text>
</Box>
</Box>
<Box flexDirection="column">
<Text bold wrap="wrap">
{`${header}: `}
{text6}
</Text>
<Box flexDirection="column">
<Button plain hotkey={`${i}`}>
<Text bold>
{label16}
</Text>
<Text bold>
{" "}
★ recommended
</Text>
</Button>
<Text dimColor wrap="wrap">
{" "}
{beschreibung16}
</Text>
</Box>
<Box flexDirection="column">
<Button plain hotkey={`${i}`}>
<Text bold>
{label17}
</Text>
<Text bold>
{" "}
★ recommended
</Text>
</Button>
<Text dimColor wrap="wrap">
{" "}
{beschreibung17}
</Text>
</Box>
<Box flexDirection="column">
<Button plain hotkey={`${i}`}>
<Text bold>
{label18}
</Text>
<Text bold>
{" "}
★ recommended
</Text>
</Button>
<Text dimColor wrap="wrap">
{" "}
{beschreibung18}
</Text>
</Box>
</Box>
<Text dimColor>
Multiple questions: answer in the tab.
</Text>
<Text wrap="wrap">
{"· "}
{t4}
</Text>
<Text wrap="wrap">
{"· "}
{t5}
</Text>
<Text wrap="wrap">
{"· "}
{t6}
</Text>
<Box flexDirection="column">
<Text>
{`Reset ${wann} (in ${dauerKurz})`}
</Text>
<Button hotkey="w" label="Resume after reset" />
<Button hotkey="k" label={`${aktivesKonto} · not tested yet`} />
</Box>
<Text dimColor wrap="wrap">
"
{kuerzen2}
"
</Text>
<Box flexDirection="column">
<Text dimColor>
or
:
</Text>
<Button plain>
<Text bold color="yellow">
{" "}
{`${nochmal}`}
</Text>
</Button>
<Button plain>
<Text bold color="yellow">
{" "}
{`${nochmal}`}
</Text>
</Button>
<Button plain>
<Text bold color="yellow">
{" "}
{`${nochmal}`}
</Text>
</Button>
</Box>
<Button variant="primary" hotkey="g" label={`${zumTab}`} />
</Box>
</Box>
<Input />
</Box>
</Box>
<Box flexDirection="column">
<Button plain>
<Text bold>
{zeile3}
</Text>
</Button>
<Text wrap="truncate-end">
{" "}
{worum5}
</Text>
<Box flexDirection="column">
<Text wrap="wrap">
{" "}
Suggestion
{": "}
{modus3}
</Text>
<Text dimColor wrap="wrap">
{" "}
{`${frischGrund}`}
</Text>
<Text dimColor wrap="wrap">
{" "}
{`${vorschlagGrund}`}
</Text>
</Box>
<Text wrap="truncate-end">
{" "}
{worum6}
</Text>
<Box flexDirection="column">
<Box flexDirection="column" borderStyle="round" borderColor="gray" paddingX={1}>
<Box flexDirection="column">
<Box flexDirection="column">
<Text bold wrap="wrap">
{`${header}: `}
{text7}
</Text>
<Box flexDirection="column">
<Button plain hotkey={`${i}`}>
<Text bold>
{label19}
</Text>
<Text bold>
{" "}
★ recommended
</Text>
</Button>
<Text dimColor wrap="wrap">
{" "}
{beschreibung19}
</Text>
</Box>
<Box flexDirection="column">
<Button plain hotkey={`${i}`}>
<Text bold>
{label20}
</Text>
<Text bold>
{" "}
★ recommended
</Text>
</Button>
<Text dimColor wrap="wrap">
{" "}
{beschreibung20}
</Text>
</Box>
<Box flexDirection="column">
<Button plain hotkey={`${i}`}>
<Text bold>
{label21}
</Text>
<Text bold>
{" "}
★ recommended
</Text>
</Button>
<Text dimColor wrap="wrap">
{" "}
{beschreibung21}
</Text>
</Box>
</Box>
<Box flexDirection="column">
<Text bold wrap="wrap">
{`${header}: `}
{text8}
</Text>
<Box flexDirection="column">
<Button plain hotkey={`${i}`}>
<Text bold>
{label22}
</Text>
<Text bold>
{" "}
★ recommended
</Text>
</Button>
<Text dimColor wrap="wrap">
{" "}
{beschreibung22}
</Text>
</Box>
<Box flexDirection="column">
<Button plain hotkey={`${i}`}>
<Text bold>
{label23}
</Text>
<Text bold>
{" "}
★ recommended
</Text>
</Button>
<Text dimColor wrap="wrap">
{" "}
{beschreibung23}
</Text>
</Box>
<Box flexDirection="column">
<Button plain hotkey={`${i}`}>
<Text bold>
{label24}
</Text>
<Text bold>
{" "}
★ recommended
</Text>
</Button>
<Text dimColor wrap="wrap">
{" "}
{beschreibung24}
</Text>
</Box>
</Box>
<Box flexDirection="column">
<Text bold wrap="wrap">
{`${header}: `}
{text9}
</Text>
<Box flexDirection="column">
<Button plain hotkey={`${i}`}>
<Text bold>
{label25}
</Text>
<Text bold>
{" "}
★ recommended
</Text>
</Button>
<Text dimColor wrap="wrap">
{" "}
{beschreibung25}
</Text>
</Box>
<Box flexDirection="column">
<Button plain hotkey={`${i}`}>
<Text bold>
{label26}
</Text>
<Text bold>
{" "}
★ recommended
</Text>
</Button>
<Text dimColor wrap="wrap">
{" "}
{beschreibung26}
</Text>
</Box>
<Box flexDirection="column">
<Button plain hotkey={`${i}`}>
<Text bold>
{label27}
</Text>
<Text bold>
{" "}
★ recommended
</Text>
</Button>
<Text dimColor wrap="wrap">
{" "}
{beschreibung27}
</Text>
</Box>
</Box>
<Text dimColor>
Multiple questions: answer in the tab.
</Text>
<Text wrap="wrap">
{"· "}
{t7}
</Text>
<Text wrap="wrap">
{"· "}
{t8}
</Text>
<Text wrap="wrap">
{"· "}
{t9}
</Text>
<Box flexDirection="column">
<Text>
{`Reset ${wann} (in ${dauerKurz})`}
</Text>
<Button hotkey="w" label="Resume after reset" />
<Button hotkey="k" label={`${aktivesKonto} · not tested yet`} />
</Box>
<Text dimColor wrap="wrap">
"
{kuerzen3}
"
</Text>
<Box flexDirection="column">
<Text dimColor>
or
:
</Text>
<Button plain>
<Text bold color="yellow">
{" "}
{`${nochmal}`}
</Text>
</Button>
<Button plain>
<Text bold color="yellow">
{" "}
{`${nochmal}`}
</Text>
</Button>
<Button plain>
<Text bold color="yellow">
{" "}
{`${nochmal}`}
</Text>
</Button>
</Box>
<Button variant="primary" hotkey="g" label={`${zumTab}`} />
</Box>
</Box>
<Input />
</Box>
</Box>
<Button plain>
<Text bold color="yellow">
{"◆ "}
{`${leadFragt}`}
</Text>
<Text color="red">
{" · "}
{ueber}
{" "}
overdue
</Text>
<Text dimColor>
{" → Queue"}
</Text>
</Button>
<Box flexDirection="column">
<Text dimColor wrap="wrap">
Running
{": "}
laeuft
</Text>
<Text dimColor wrap="wrap">
Quiet
{": "}
ruhig
</Text>
<Text dimColor wrap="wrap">
Done
{": "}
{map}
</Text>
<Button plain>
<Text color="yellow">
{" ⨯ "}
{`${nochmalSchliessen}`}
</Text>
<Text dimColor>
{" "}
History saved, claude --resume restores it
</Text>
</Button>
</Box>
<Box flexDirection="row" gap={1}>
<Text>
All sessions:
</Text>
<Button variant="primary" label={`${gesamt}`} />
<Button variant="primary" label={`${gesamt}`} />
<Button variant="primary" label={`${gesamt}`} />
</Box>
</Box>
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
const status = '…'
await $.ui.status(`${status}`)
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.
mods/owner-inbox/hooks/register.tsx lines 851–879 · Band
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
if (!stand) return next(e)
const { Box, Text, Button } = $.ui.resolve(e)
const neu = () => $.ui.invalidate('ui.render')
const x = stand.eintraege.find(y => y.id === ich)
const dran = stand.eintraege.filter(y => y.gruppe === 'dran' && y.id !== ich)
const erste = dran[0]
const istLead = ich !== null && ich === leadSession
return (
<Box flexDirection="column">
{x && !istLead && (
<Box flexDirection="row" gap={1}>
<Text dimColor>{EN.dieserTab(x.phase === 'keine' ? '' : EN.phase[x.phase], x.naechster, x.modus, x.modusQuelle).replace(/^ · /, '')}</Text>
{x.modusQuelle !== 'alle' && (
<Button key="band-modus" plain onPress={() => { void modusSetzen(x, x.modus === 'ich' ? 'lead' : 'ich', neu) }}>
<Text dimColor>[{x.modus === 'ich' ? EN.leadUebernehmen : EN.selbstFuehren}]</Text>
</Button>
)}
</Box>
)}
{!paneSichtbar && erste && (
<Box flexDirection="row" gap={1}>
<Text color={AMPEL[erste.ampel].farbe} bold>{AMPEL[erste.ampel].zeichen} {EN.kopfDran(dran.length)}: {erste.kurz}</Text>
{terminalAktiv && <Button key="band-tab" variant="primary" label={EN.zumTab(erste.tab)} onPress={() => { void w?.fokus(erste.tty) }} />}
</Box>
)}
</Box>
)
}).catch(($, e, next) => next(e))mods/owner-inbox/hooks/register.tsx lines 881–1040 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const tafel = $.ui.resolve(e)
const { Box, Text, Button } = tafel
const Input = 'Input' in tafel ? tafel.Input : null // mobil gibt es noch kein Eingabefeld
const jetzt = await $.clock.now()
if (meldung !== meldungText) { meldungText = meldung; meldungAm = jetzt }
const neu = () => $.ui.invalidate('ui.render')
if (!stand) return (
<Box flexDirection="column">
<Text dimColor>Inbox checking …</Text>
{meldung && <Text color="red" wrap="wrap">{meldung}</Text>}
{nurLesen && <Text dimColor>{EN.nurLesenFuss}</Text>}
</Box>
)
const st = stand
const liste = st.eintraege
const aktivesKonto = st.konten.claude && st.konten.claude !== 'unlesbar' ? st.konten.claude.aktiv : null
const alt = Math.round((jetzt - st.gemessen) / 1000)
const breite = Math.max(30, e.props.bodyColumns)
const fuerDich = liste.filter(x => x.gruppe === 'dran' || x.gruppe === 'fragen')
const anzahl = fuerDich.filter(x => x.id !== ich).length
const rot = fuerDich.some(x => x.ampel === 'rot' && x.id !== ich)
const fragen = (st.leadFragen ?? []).filter(f => !beantwortet.has(f.id))
const ueber = fragen.filter(f => f.ueberfaellig).length
const istLead = ich !== null && ich === leadSession
const zeile = (links: string, rechts: string) => `${kuerzen(links, breite - rechts.length - 3)}${' '.repeat(Math.max(1, breite - Math.min(links.length, breite - rechts.length - 3) - rechts.length - 2))}${rechts}`
const name = (x: Eintrag) => `${AMPEL[x.ampel].zeichen} ${x.kurz}${x.id === ich ? ` · ${EN.hier}` : ''}`
const worum = (x: Eintrag): string => {
const d = x.detail
if (d.grund === 'limit') return d.limitBis ? EN.limitBis(wann(d.limitBis)) : EN.grund.limit
if (d.grund === 'frage') return d.fragen[0] ? `${d.fragen[0].header ? `${d.fragen[0].header}: ` : ''}${d.fragen[0].text}` : EN.grund.frage
if (d.grund === 'text') return d.textFragen[0] ?? EN.grund.text
if (d.grund === 'freigabe') return `${EN.grund.freigabe}: ${d.werkzeug ?? ''}`
if (d.grund) return EN.grund[d.grund]
if (d.unbekannt) return EN.nichtLesbar
return x.naechster ? EN.wartetAuf(x.naechster) : ''
}
// Start-Knopf: der nächste SO-Schritt, sonst der Vorschlag des Mode-Selectors; nur wenn der Owner führt.
// Ein Vorschlag erscheint nur, wenn startEntscheid ihn freigibt: keine offene Owner-Frage, Sicherheit ≥ 0,5.
const zeigtVorschlag = (x: Eintrag) => !x.naechster && x.vorschlag !== null && startEntscheid(x) !== null
const knopf = (x: Eintrag, befehl: string, schluessel: string, frisch = false) => terminalAktiv ? (
<Button key={`${schluessel}-${x.id}-${befehl}`} plain onPress={() => { void starten(x, befehl, Date.now(), neu, frisch) }}>
<Text bold color={istBereit(x, befehl, jetzt) ? 'yellow' : undefined}> {istBereit(x, befehl, jetzt) ? EN.nochmal(befehl) : frisch ? EN.frischStarten(befehl) : EN.starten(befehl)}</Text>
</Button>
) : null
const startKnopf = (x: Eintrag) => {
const s = startEntscheid(x)
return s ? knopf(x, s.befehl, 'st', s.frisch) : null
}
const schliessKnopf = (xs: readonly Eintrag[], schluessel: string) => {
if (!terminalAktiv) return null
const bereit = schliessenIst(xs, jetzt)
return (
<Button key={`zu-${schluessel}`} plain onPress={() => { void schliessen(xs, neu) }}>
<Text bold={bereit} color={bereit ? 'yellow' : undefined}> ⨯ {bereit ? EN.nochmalSchliessen(xs.length) : EN.fertigeSchliessen(xs.length)}</Text>
{bereit ? <Text dimColor> {EN.schliessenHinweis}</Text> : ''}
</Button>
)
}
const vorschlagZeile = (x: Eintrag) => zeigtVorschlag(x) && x.vorschlag && (
<Box flexDirection="column">
<Text wrap="wrap"> {EN.vorschlag}: {EN.modusLang[x.vorschlag.modus] ?? x.vorschlag.modus}</Text>
{startEntscheid(x)?.frisch && <Text dimColor wrap="wrap"> {EN.frischGrund(x.phase !== 'geschlossen', x.kontext)}</Text>}
{EN.vorschlagGrund(x.vorschlag.kritisch, x.vorschlag.hoch, x.vorschlag.schwerpunkt) && <Text dimColor wrap="wrap"> {EN.vorschlagGrund(x.vorschlag.kritisch, x.vorschlag.hoch, x.vorschlag.schwerpunkt)}</Text>}
</Box>
)
const details = (x: Eintrag) => {
const d = x.detail
// Antwortfeld unter dem Rahmen, nie darin (kasten.tsx).
return gerahmtMitFeld({ Box, Input }, `d-${x.id}`, (
<Box flexDirection="column">
{d.grund === 'frage' && d.fragen.map((f, fi) => (
<Box key={`f-${x.id}-${fi}`} flexDirection="column">
<Text bold wrap="wrap">{f.header ? `${f.header}: ` : ''}{f.text}</Text>
{terminalAktiv && fi === 0 && d.fragen.length === 1 && !f.mehrfach && f.optionen.slice(0, 4).map((o, i) => (
<Box key={`o-${x.id}-${i}`} flexDirection="column">
<Button key={`ob-${x.id}-${i}`} plain hotkey={String(i + 1)} onPress={() => { void ausfuehren(x, `Option ${i + 1} "${kuerzen(o.label, 40)}"`, 'taste', String(i + 1), neu) }}>
<Text bold>{o.label}</Text>
{o.empfohlen ? <Text bold> {EN.empfohlen}</Text> : ''}
</Button>
{o.beschreibung ? <Text dimColor wrap="wrap"> {o.beschreibung}</Text> : null}
</Box>
))}
</Box>
))}
{d.grund === 'frage' && (d.fragen.length > 1 || d.fragen[0]?.mehrfach) && <Text dimColor>{EN.imTab}</Text>}
{d.grund === 'text' && d.textFragen.map((t, i) => <Text key={`t-${x.id}-${i}`} wrap="wrap">· {t}</Text>)}
{d.grund === 'limit' && terminalAktiv && (
<Box flexDirection="column">
<Text>{d.limitBis ? `Reset ${wann(d.limitBis)} (in ${dauerKurz(d.limitBis - jetzt)})` : EN.grund.limit}</Text>
<Button key={`w-${x.id}`} hotkey="w" label={EN.weiterAbReset} onPress={() => { void ausfuehren(x, EN.weiterAbReset, 'taste', '2', neu) }} />
<Button key={`k-${x.id}`} hotkey="k" label={`${EN.aktivesKonto(aktivesKonto)} · ${EN.ungeprueft}`} onPress={() => { void ausfuehren(x, EN.aktivesKonto(aktivesKonto), 'stop-weiter', '1', neu) }} />
</Box>
)}
{(d.grund === 'dialog' || d.grund === 'freigabe') && d.zeile && <Text dimColor wrap="wrap">"{kuerzen(d.zeile, 240)}"</Text>}
{zeigtVorschlag(x) && x.vorschlag && x.vorschlag.alternativen.length > 0 && (
<Box flexDirection="column">
<Text dimColor>{EN.oder}:</Text>
{x.vorschlag.alternativen.map(a => knopf(x, a.befehl, 'alt', startEntscheid(x)?.frisch ?? false))}
</Box>
)}
{terminalAktiv && <Button key={`g-${x.id}`} variant="primary" hotkey="g" label={EN.zumTab(x.tab)} onPress={() => { void w?.fokus(x.tty) }} />}
</Box>
), terminalAktiv && x.gruppe === 'fragen' ? {
key: `i-${x.id}`, placeholder: EN.antwortPlatzhalter, submitLabel: EN.senden,
onSubmit: v => { const t = v.trim(); if (!sichererText(t)) return; void ausfuehren(x, `"${kuerzen(t, 400)}"`, 'text', t, neu) },
} : null)
}
// Fertige Tabs stehen in einer eigenen Zeile mit Schließen-Knopf, nicht unter „Ruhig“.
const fertige = liste.filter(x => schliessbar(x) && x.id !== ich && !zugemacht.has(x.id))
const namen = (g: Gruppe) => liste.filter(x => x.gruppe === g && !fertige.includes(x)).map(x => `${x.kurz}${x.modus === 'lead' ? ' (autonomous)' : ''}`).join(', ')
// Steuerung auch in „Now“ (Owner 11.10.: Schalter nicht gefunden). Nur lesen (#436): Stand ohne Knöpfe.
const globalAktiv = st.gesamt !== null && st.gesamt !== undefined && st.gesamt.modus !== 'je-session'
const leadTab = leadSession !== null && leadSession !== 'unbekannt' ? liste.find(y => y.id === leadSession)?.tab ?? null : null
const gesamtSchalter = () => (nurLesen
? <Text dimColor>{EN.gesamtTitel} {EN.gesamt[st.gesamt?.modus ?? 'je-session']}</Text>
: (
<Box flexDirection="row" gap={1}>
<Text>{EN.gesamtTitel}</Text>
{GESAMT.map(g => (
<Button key={`ga-${g}`} variant={(st.gesamt?.modus ?? 'je-session') === g ? 'primary' : 'secondary'} label={EN.gesamt[g]} onPress={() => { void gesamtSetzen(g, neu) }} />
))}
</Box>
))
const steuerZeile = () => {
if (istLead) return gesamtSchalter()
const x = liste.find(y => y.id === ich)
if (!x) return globalAktiv ? <Text dimColor>{EN.globalHinweis(leadTab)}</Text> : null
if (x.modusQuelle === 'alle') return <Text dimColor wrap="wrap">{EN.dieseSession(x.modus, true)} · {EN.globalHinweis(leadTab)}</Text>
return (
<Box flexDirection="row" gap={1}>
<Text dimColor>{EN.dieseSession(x.modus, false)}</Text>
{!nurLesen && <Button key="jm-hier" variant="secondary" label={x.modus === 'ich' ? EN.leadUebernehmen : EN.selbstFuehren} onPress={() => { void modusSetzen(x, x.modus === 'ich' ? 'lead' : 'ich', neu) }} />}
</Box>
)
}
const ansichtJetzt = () => {
const gewaehlt = fuerDich.find(x => x.id === auswahl) ?? null
return (
<Box flexDirection="column" gap={1}>
{fuerDich.map(x => (
<Box key={`z-${x.id}`} flexDirection="column">
<Button key={`b-${x.id}`} plain onPress={() => { auswahl = auswahl === x.id ? null : x.id; neu() }}>
<Text bold color={AMPEL[x.ampel].farbe}>{zeile(name(x), `Tab ${x.tab ?? '?'}${x.seit ? ` · ${dauerKurz(jetzt - x.seit)}` : ''}`)}</Text>
</Button>
{zeigtVorschlag(x) ? <Text wrap="truncate-end"> {worum(x)}</Text> : null}
{vorschlagZeile(x)}
{startKnopf(x) ?? <Text wrap="truncate-end"> {worum(x)}</Text>}
{gewaehlt?.id === x.id && details(x)}
</Box>
))}
{st.leadFragen === undefined
? <Text dimColor>{EN.leadFragenNichtGemessen}</Text>
: st.leadFragen === null
? <Text dimColor>{EN.leadFragenNichtLesbar}</Text>
: fragen.length > 0 && (
<Button key="lj" plain onPress={() => { ansicht = 'lead'; neu() }}>
<Text bold color="yellow">◆ {EN.leadFragt(fragen.length)}</Text>mods/owner-inbox/hooks/kasten.tsx lines 7–20 · Pane
export function gerahmtMitFeld(
t: { Box: ElementConstructor<BoxProps>; Input: ElementConstructor<InputProps> | null },
key: string,
inhalt: RenderChildren,
feld: InputProps | null,
): RenderElement {
const { Box, Input } = t
return (
<Box key={`${key}-w`} flexDirection="column">
<Box key={key} flexDirection="column" borderStyle="round" borderColor="gray" paddingX={1}>{inhalt}</Box>
{Input && feld ? <Input {...feld} /> : null}
</Box>
)
}Licence text (MIT)
MIT License Copyright (c) 2026 Kanevry 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
runs programswrites filesenv varstool callsships servers
What its code shows
Read from the source at commit 2c119c8e855e. 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.mods/owner-inbox/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.11 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).mods/owner-inbox/hooks/register.tsx:230 ps (not on Windows); mods/owner-inbox/hooks/register.tsx:272 ps (not on Windows); mods/owner-inbox/hooks/register.tsx:291 ps (not on Windows); mods/owner-inbox/hooks/register.tsx:297 ps (not on Windows); mods/owner-inbox/hooks/register.tsx:374 rm (not on Windows) |
| 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.mods/owner-inbox/hooks/register.tsx:145 a program named at run time; mods/owner-inbox/hooks/register.tsx:159 a program named at run time; mods/owner-inbox/hooks/register.tsx:172 a program named at run time; mods/owner-inbox/hooks/register.tsx:182 a program named at run time; mods/owner-inbox/hooks/register.tsx:253 osascript (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, files, but reaches nothing outside |
| 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).bin/: gitlab-host.mjs, repos.mjs, vorschlag.mjs on the Bash tool's PATH |
| 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 command inbox |
| 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: prompt.submit, tool.call (AskUserQuestion), command.run (inbox) · shapes: skill.prompt, prompt.compose · also: session.start, turn.complete, ui.render (AbovePrompt, Pane) · 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, NAVIGATOR_CONFIG_DIR; files: a path computed at run time, its own folder/.claude-plugin/plugin.js…, …/.claude/sessions, …/aktionen/….jsonl, …/scripts/lib/build-live-signals.mjs (+2) |
| 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.files: ….tmp-… |
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 Kanevry/lead-session-orchestrator/plugin install owner-inbox@navigator-mods/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (2c119c8e855e). 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/Kanevry/lead-session-orchestratorgit -C lead-session-orchestrator checkout 2c119c8e855e335f3c8e9d608be13ca18962c91fclaude plugin validate lead-session-orchestrator/mods/owner-inboxclaude --plugin-dir lead-session-orchestrator/mods/owner-inboxThe 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 or ChatGPT about it
With ModsCode added as a connector, Claude or ChatGPT can read this mod's code, what it reaches and how its controls are wired, and build on them. Ask it like this:
Read the ModsCode mod "kanevry-owner-inbox" with its code and make me one like itAdd the ModsCode MCP to Claude or ChatGPT
Similar mods
- code-modernizationAnthropic★ 37,809
- agent-discoverkeshrath★ 7
- devtoolsNMenzel★ 2
- snitchyuntaengtaeng★ 2
- a2a-modAliasgar Khimani★ 1
- agent-atcMatteo Hertel★ 1
More from this repository
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/kanevry-owner-inbox/)