ModsCode / Claude Code Mods / Ranking / ziel-graph
ziel-graph
Der Plan eines Repos in zwei Ansichten, mit GOAL.md als Anker: /graph zeigt schmal die laufenden Chats und den Plan als Graph, /orchestrator breit denselben Plan als Prozesskarten
What it does
- Draws a pane, toasts
- Adds /graph, /orchestrator
- Hooks prompt.submit, session.receive, session.start, turn.complete
- Starts processes
Good points
- No network calls
- Written in TypeScript
- Has a desktop-specific branch
- 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 ziel-graph by Tzy197 (pane, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/tzy197-ziel-graph/
// 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: "Ziel-Graph" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button, Select } = $.ui.resolve(e)
const endzielZeile = '…'
const zaehler = '…'
const faktenZeile = '…'
const neue = '…'
const fertigZeile = '…'
const fertigZeile2 = '…'
const fertigZeile3 = '…'
const status = '…'
const farben = '…'
const label = '…'
const festZeile = '…'
const kopf = '…'
const one = '…'
const length = '…'
const kopf2 = '…'
const titel = '…'
const text = '…'
const nameVon = '…'
const alter = '…'
const naechster = '…'
const frage = '…'
const kopf3 = '…'
const titel2 = '…'
const satz = '…'
return (
<Box flexDirection="column" gap={1}>
<Box flexDirection="column">
<Box flexDirection="row" flexWrap="wrap" columnGap={1} alignItems="center">
<Text bold wrap="wrap">
{endzielZeile}
</Text>
<Button label="Endziel festlegen" />
</Box>
<Text dimColor wrap="wrap">
{zaehler}
</Text>
<Text dimColor wrap="wrap">
{faktenZeile}
</Text>
<Text wrap="wrap">
{neue}
</Text>
</Box>
<Box flexDirection="column">
<Text bold wrap="wrap">
GOAL.md ist noch leer
</Text>
<Text wrap="wrap">
GOAL.md in der Wurzel des Repos ist der Anker des Plans: Sie nennt das Endziel, die Zwischenziele und je Strang sein Zi…
</Text>
<Box>
<Button label="GOAL.md mit dem Chat entwerfen" variant="primary" />
</Box>
</Box>
<Box flexDirection="column">
<Box flexDirection="row" flexWrap="wrap" columnGap={1} alignItems="center">
<Text wrap="wrap">
{fertigZeile}
</Text>
<Button label="Zum Dauerläufer machen" />
</Box>
<Box flexDirection="row" flexWrap="wrap" columnGap={1} alignItems="center">
<Text wrap="wrap">
{fertigZeile2}
</Text>
<Button label="Zum Dauerläufer machen" />
</Box>
<Box flexDirection="row" flexWrap="wrap" columnGap={1} alignItems="center">
<Text wrap="wrap">
{fertigZeile3}
</Text>
<Button label="Zum Dauerläufer machen" />
</Box>
</Box>
<Box flexDirection="column">
<Text bold wrap="wrap">
{status}
</Text>
<Text dimColor wrap="wrap">
Ein Modell-Aufruf mit claude-sonnet-5-5 liest GOAL.md, Doku, Chats und Commits des Repos. Die Leiste zeigt den Plan, so…
</Text>
<Text dimColor wrap="wrap">
Darunter steht weiter der vorige Plan.
</Text>
<Text wrap="wrap">
Noch kein Plan für dieses Repo. „Neu ableiten“ liest GOAL.md, README.md, CLAUDE.md und die Doku unter docs/, die laufen…
</Text>
<Box flexDirection="row" flexWrap="wrap" columnGap={1}>
<Button label="Neu ableiten" variant="primary" />
<Button label="Neu laden" />
<Select label="Farben" value={`${farben}`} />
<Button label={`Farben: ${label}`} />
</Box>
</Box>
<Box flexDirection="column">
<Text bold wrap="wrap">
{festZeile}
</Text>
<Text dimColor wrap="wrap">
Eine Festlegung ist ein Satz von dir, der bei jedem Ableiten gewinnt: wohin etwas gehört, was zuerst kommt, was zusamme…
</Text>
<Text wrap="wrap">
Die Festlegungen sind andere als beim letzten Ableiten: „Neu ableiten“ wendet sie an.
</Text>
<Text dimColor wrap="wrap">
Diese Oberfläche zeichnet kein Eingabefeld: Eine neue Festlegung gibst du am Rechner ein.
</Text>
<Box flexDirection="row" flexWrap="wrap" columnGap={1}>
<Button label="Festlegen" />
<Button label="In GOAL.md eintragen lassen" />
</Box>
</Box>
<Box flexDirection="column">
<Text wrap="wrap">
{kopf}
</Text>
<Text wrap="wrap">
{`– ${one}`}
</Text>
<Text wrap="wrap">
{`– ${one}`}
</Text>
<Text wrap="wrap">
{`– ${one}`}
</Text>
<Text dimColor wrap="wrap">
{`… und ${length} weitere in der Datei des Plans.`}
</Text>
</Box>
<Box flexDirection="row" alignItems="flex-start" columnGap={2}>
<Box flexDirection="column" gap={1}>
<Box flexDirection="column">
<Text dimColor wrap="wrap">
{kopf2}
</Text>
<Text bold wrap="wrap">
{titel}
</Text>
<Text wrap="wrap">
{`– ${text}`}
</Text>
<Text wrap="wrap">
{`– ${text}`}
</Text>
<Text wrap="wrap">
{`– ${text}`}
</Text>
</Box>
<Box flexDirection="column">
<Text bold wrap="wrap">
{`○ Chat: ${nameVon} (dieser Chat)`}
</Text>
<Text dimColor wrap="wrap">
{`${alter}`}
</Text>
<Text wrap="wrap">
Stand: noch keiner
</Text>
<Text wrap="wrap">
{`Weiter: ${naechster}`}
</Text>
<Text bold wrap="wrap">
{`Wartet auf dich: ${frage}`}
</Text>
</Box>
<Box flexDirection="column">
<Text bold wrap="wrap">
{`○ Chat: ${nameVon} (dieser Chat)`}
</Text>
<Text dimColor wrap="wrap">
{`${alter}`}
</Text>
<Text wrap="wrap">
Stand: noch keiner
</Text>
<Text wrap="wrap">
{`Weiter: ${naechster}`}
</Text>
<Text bold wrap="wrap">
{`Wartet auf dich: ${frage}`}
</Text>
</Box>
<Box flexDirection="column">
<Text bold wrap="wrap">
{`○ Chat: ${nameVon} (dieser Chat)`}
</Text>
<Text dimColor wrap="wrap">
{`${alter}`}
</Text>
<Text wrap="wrap">
Stand: noch keiner
</Text>
<Text wrap="wrap">
{`Weiter: ${naechster}`}
</Text>
<Text bold wrap="wrap">
{`Wartet auf dich: ${frage}`}
</Text>
</Box>
<Box flexDirection="row" flexWrap="wrap" columnGap={1}>
<Button label="Auftrag ins Eingabefeld legen" variant="primary" />
<Button label="Erklären lassen" />
<Button label="Endziel festlegen" />
</Box>
<Box flexDirection="column">
<Text dimColor wrap="wrap">
Seine Bündel haben gerade keine eigene Karte. Arbeitet ein Chat an einem davon, stehen sie nach dem nächsten Ableiten w…
</Text>
<Box flexDirection="row" flexWrap="wrap" columnGap={1}>
<Button label={`Auftrag: ${titel}`} />
<Button label={`Auftrag: ${titel}`} />
<Button label={`Auftrag: ${titel}`} />
</Box>
</Box>
<Box flexDirection="column" />
</Box>
</Box>
<Box flexDirection="column">
<Text bold wrap="wrap">
Laufende Chats
</Text>
<Button plain label={`▸ ○ ${nameVon} (dieser Chat)`} />
<Button plain label={`▸ ○ ${nameVon} (dieser Chat)`} />
<Button plain label={`▸ ○ ${nameVon} (dieser Chat)`} />
</Box>
<Box flexDirection="column" gap={1}>
<Box flexDirection="column">
<Text dimColor wrap="wrap">
{kopf3}
</Text>
<Text bold wrap="wrap">
{titel2}
</Text>
<Text wrap="wrap">
{`– ${text}`}
</Text>
<Text wrap="wrap">
{`– ${text}`}
</Text>
<Text wrap="wrap">
{`– ${text}`}
</Text>
</Box>
<Box flexDirection="column">
<Text bold wrap="wrap">
{`○ Chat: ${nameVon} (dieser Chat)`}
</Text>
<Text dimColor wrap="wrap">
{`${alter}`}
</Text>
<Text wrap="wrap">
Stand: noch keiner
</Text>
<Text wrap="wrap">
{`Weiter: ${naechster}`}
</Text>
<Text bold wrap="wrap">
{`Wartet auf dich: ${frage}`}
</Text>
</Box>
<Box flexDirection="column">
<Text bold wrap="wrap">
{`○ Chat: ${nameVon} (dieser Chat)`}
</Text>
<Text dimColor wrap="wrap">
{`${alter}`}
</Text>
<Text wrap="wrap">
Stand: noch keiner
</Text>
<Text wrap="wrap">
{`Weiter: ${naechster}`}
</Text>
<Text bold wrap="wrap">
{`Wartet auf dich: ${frage}`}
</Text>
</Box>
<Box flexDirection="column">
<Text bold wrap="wrap">
{`○ Chat: ${nameVon} (dieser Chat)`}
</Text>
<Text dimColor wrap="wrap">
{`${alter}`}
</Text>
<Text wrap="wrap">
Stand: noch keiner
</Text>
<Text wrap="wrap">
{`Weiter: ${naechster}`}
</Text>
<Text bold wrap="wrap">
{`Wartet auf dich: ${frage}`}
</Text>
</Box>
<Box flexDirection="row" flexWrap="wrap" columnGap={1}>
<Button label="Auftrag ins Eingabefeld legen" variant="primary" />
<Button label="Erklären lassen" />
<Button label="Endziel festlegen" />
</Box>
<Box flexDirection="column">
<Text dimColor wrap="wrap">
Seine Bündel haben gerade keine eigene Karte. Arbeitet ein Chat an einem davon, stehen sie nach dem nächsten Ableiten w…
</Text>
<Box flexDirection="row" flexWrap="wrap" columnGap={1}>
<Button label={`Auftrag: ${titel}`} />
<Button label={`Auftrag: ${titel}`} />
<Button label={`Auftrag: ${titel}`} />
</Box>
</Box>
<Box flexDirection="column" />
</Box>
<Box flexDirection="column">
<Text bold wrap="wrap">
{`Festlegungen (${length})`}
</Text>
<Box flexDirection="row" flexWrap="wrap" columnGap={1} alignItems="center">
<Text wrap="wrap">
{`– ${satz} (noch nicht in GOAL.md)`}
</Text>
<Button label="Entfernen" />
</Box>
<Box flexDirection="row" flexWrap="wrap" columnGap={1} alignItems="center">
<Text wrap="wrap">
{`– ${satz} (noch nicht in GOAL.md)`}
</Text>
<Button label="Entfernen" />
</Box>
<Box flexDirection="row" flexWrap="wrap" columnGap={1} alignItems="center">
<Text wrap="wrap">
{`– ${satz} (noch nicht in GOAL.md)`}
</Text>
<Button label="Entfernen" />
</Box>
</Box>
<Box flexDirection="column">
<Text bold wrap="wrap">
{`Beim Ableiten aufgefallen (${length})`}
</Text>
<Text dimColor wrap="wrap">
{`– ${one}`}
</Text>
<Text dimColor wrap="wrap">
{`– ${one}`}
</Text>
<Text dimColor wrap="wrap">
{`– ${one}`}
</Text>
<Text dimColor wrap="wrap">
{`… und ${length} weitere in der Datei des Plans.`}
</Text>
</Box>
<Text dimColor wrap="wrap">
Diesen Plan hat ein Modell aus GOAL.md, Doku, Chats und Git-Verlauf abgeleitet. Festgelegt ist nur, was in GOAL.md steh…
</Text>
</Box>
)
})
on('session.start', async ($, e, next) => {
const nameVon = '…'
await $.ui.toast(`Die Antwort ist leer.`)
await $.ui.toast(`Antwort an „${nameVon}“ zugestellt.`)
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/ziel-graph/hooks/register.tsx lines 571–598 · Pane
on('ui.render', { component: 'Pane', requestId: KARTEN }, async ($, e) => {
const lage: KartenLage = {
stand: await liesGeladen($),
laufend: await read($, chats),
jetzt: await read($, lauf),
wahl: await read($, karten),
zellen: e.props.bodyColumns,
entwurf: festEntwurf,
}
// Das Terminal hat kein Svg, die mobile App weder Select noch Eingabefeld: dort
// zeichnet der Ersatz.
if (e.surface === 'terminal') {
const { Box, Text, Button, Select, Input } = $.ui.resolve(e)
return zeichneKartenLeiste({ Box, Text, Button, Select, Svg: null, Input }, lage, tatenVon($))
}
if (e.surface === 'mobile') {
const { Box, Text, Button, Svg } = $.ui.resolve(e)
return zeichneKartenLeiste({ Box, Text, Button, Select: null, Svg, Input: null }, lage, tatenVon($))
}
const { Box, Text, Button, Select, Svg, Input } = $.ui.resolve(e)
return zeichneKartenLeiste({ Box, Text, Button, Select, Svg, Input }, lage, tatenVon($))
})plugins/ziel-graph/hooks/karten/leiste.tsx lines 595–711 · Pane
export const zeichneKartenLeiste = (teile: Teile, lage: KartenLage, taten: Taten): RenderElement => {
const { Box, Text, Button } = teile
const { stand, laufend, wahl } = lage
const plan = stand.plan ?? LEERER_PLAN
// Offene Tickets, die es beim letzten Ableiten noch nicht gab: Sie stehen in keinem Bündel.
const neue = neueTicketsZeile(stand.neueTickets)
// Ein Dauerläufer, an dem gerade niemand arbeitet, ruht: Seine Spalte zeigt eine Karte.
const ruhend = ruhende(plan, laufend, laufend.gelesen || stand.gelesen)
const bild = sicht(plan, laufend, wahl.wahl, stand.aenderungen, ruhend)
const flaeche =
stand.plan === null || teile.Svg === null ? null : baueFlaeche(bild, { zellen: lage.zellen, farben: wahl.farben })
const steht = flaeche?.art === 'neben'
const karten =
stand.plan === null
? null
: flaeche === null
? zeichneListe(teile, plan, bild, taten)
: zeichneFlaeche(teile, plan, flaeche, taten)
const zurKarte = zeichneDetail(
teile,
plan,
detail(plan, laufend, bild.gewaehlt),
laufend.gelesen,
steht ? Math.floor(DETAIL / ZELLE_PX) : null,
taten,
)
return (
<Box flexDirection="column" gap={1}>
{stand.plan !== null && (
<Box flexDirection="column">
<Box flexDirection="row" flexWrap="wrap" columnGap={1} alignItems="center">
<Text bold wrap="wrap">
{endzielZeile(plan)}
</Text>
{plan.endziel.herkunft !== 'goal' && (
<Button key="endziel-festlegen" label="Endziel festlegen" onPress={() => taten.lege(endzielAuftrag(plan))} />
)}
</Box>
<Text dimColor wrap="wrap">
{bild.zaehler}
</Text>
{stand.fakten !== null && (
<Text dimColor wrap="wrap">
{faktenZeile(stand.fakten, laufend.gelesen || stand.gelesen)}
</Text>
)}
{neue !== '' && <Text wrap="wrap">{neue}</Text>}
</Box>
)}
{zeichneGoal(teile, stand, taten)}
{zeichneFertige(teile, stand, taten)}
{zeichneKopf(teile, lage, taten)}
{zeichneFestEingabe(teile, lage, taten)}
{zeichneAenderungen(teile, stand)}
{steht ? (
<Box flexDirection="row" alignItems="flex-start" columnGap={2}>
{karten}
{zurKarte}
</Box>
) : (
karten
)}
{bild.ohneKarte.length > 0 && (
<Box flexDirection="column">
<Text bold wrap="wrap">
{stand.plan === null ? 'Laufende Chats' : 'Chats ohne Karte'}
</Text>
{bild.ohneKarte.map(chat => (
<Button
key={`karte-${chatId(chat.id)}`}
plain
label={
`${chatId(chat.id) === bild.gewaehlt ? '▸' : ' '} ${chat.frage === '' ? '○' : '●'} ${nameVon(chat)}` +
`${chat.frage === '' ? '' : ' · wartet auf dich'}${chat.id === laufend.ich ? ' (dieser Chat)' : ''}`
}
onPress={() => taten.waehle(chatId(chat.id))}
/>
))}
</Box>
)}
{!steht && (stand.plan !== null || bild.ohneKarte.length > 0) && zurKarte}
{zeichneFestListe(teile, stand, taten)}
{stand.warnungen.length > 0 && (
<Box flexDirection="column">
<Text bold wrap="wrap">
{`Beim Ableiten aufgefallen (${stand.warnungen.length})`}
</Text>
{stand.warnungen.slice(0, HINWEISE).map(one => (
<Text dimColor wrap="wrap">
{`– ${one}`}
</Text>
))}
{stand.warnungen.length > HINWEISE && (
<Text dimColor wrap="wrap">
{`… und ${stand.warnungen.length - HINWEISE} weitere in der Datei des Plans.`}
</Text>
)}
</Box>
)}
{stand.plan !== null && (
<Text dimColor wrap="wrap">
{'Diesen Plan hat ein Modell aus GOAL.md, Doku, Chats und Git-Verlauf abgeleitet. ' +
'Festgelegt ist nur, was in GOAL.md steht und was du als Festlegung eingegeben hast.' +
(stand.fakten === null || stand.fakten.datei === '' ? '' : ` Der Plan liegt in ${stand.fakten.datei}.`)}
</Text>
)}
</Box>
)
}plugins/ziel-graph/hooks/karten/leiste.tsx lines 412–444 · Pane
const zeichneGoal = (teile: Teile, stand: ZielGraphGeladen, taten: Taten): RenderElement | null => {
const { Box, Text, Button } = teile
const { goal } = stand
if (!goal.vorhanden || goal.leer) {
return (
<Box flexDirection="column">
<Text bold wrap="wrap">
{goal.vorhanden ? 'GOAL.md ist noch leer' : 'GOAL.md fehlt'}
</Text>
<Text wrap="wrap">
{'GOAL.md in der Wurzel des Repos ist der Anker des Plans: Sie nennt das Endziel, die ' +
'Zwischenziele und je Strang sein Ziel, und ohne sie ist hier alles über Ziele nur vermutet.'}
</Text>
<Box>
<Button
key="goal-anlegen"
label="GOAL.md mit dem Chat entwerfen"
variant="primary"
onPress={() => taten.lege(goalAuftrag())}
/>
</Box>
</Box>
)
}
return goal.geaendert && stand.plan !== null ? (
<Text wrap="wrap">
{'GOAL.md hat sich seit dem letzten Ableiten geändert. Ihre Ziele und Stränge stehen schon ' +
'hier; „Neu ableiten“ ordnet die Bündel neu zu.'}
</Text>
) : null
}plugins/ziel-graph/hooks/karten/leiste.tsx lines 449–477 · Pane
const zeichneFertige = (teile: Teile, stand: ZielGraphGeladen, taten: Taten): RenderElement | null => {
const { Box, Text, Button } = teile
const { goal, plan } = stand
if (plan === null || !goal.vorhanden || goal.leer) {
return null
}
const fertige = fertigeZiele(plan)
if (fertige.length === 0) {
return null
}
return (
<Box flexDirection="column">
{fertige.map(strang => (
<Box flexDirection="row" flexWrap="wrap" columnGap={1} alignItems="center">
<Text wrap="wrap">{fertigZeile(strang)}</Text>
<Button
key={`dauer-${strang.id}`}
label="Zum Dauerläufer machen"
onPress={() => taten.lege(dauerAuftrag(plan, strang.id))}
/>
</Box>
))}
</Box>
)
}plugins/ziel-graph/hooks/karten/leiste.tsx lines 348–408 · Pane
const zeichneKopf = (teile: Teile, lage: KartenLage, taten: Taten): RenderElement => {
const { Box, Text, Button, Select, Svg } = teile
const { stand, jetzt, wahl } = lage
const { plan } = stand
const status = laufZeile(jetzt)
const naechsteFarbe = FARBEN[(FARBEN.findIndex(one => one.value === wahl.farben) + 1) % FARBEN.length]
return (
<Box flexDirection="column">
{status !== '' && (
<Text bold wrap="wrap">
{status}
</Text>
)}
{jetzt.phase === 'laeuft' && (
<Text dimColor wrap="wrap">
{`Ein Modell-Aufruf mit ${MODELL} liest GOAL.md, Doku, Chats und Commits des Repos. ` +
'Die Leiste zeigt den Plan, sobald er fertig ist.'}
</Text>
)}
{jetzt.phase === 'fehler' && plan !== null && (
<Text dimColor wrap="wrap">
Darunter steht weiter der vorige Plan.
</Text>
)}
{jetzt.phase !== 'laeuft' && plan === null && (
<Text wrap="wrap">
{'Noch kein Plan für dieses Repo. „Neu ableiten“ liest GOAL.md, README.md, CLAUDE.md und ' +
'die Doku unter docs/, die laufenden Chats und die letzten 30 Commits. Daraus leitet ein ' +
'Modell-Aufruf den Plan ab.'}
</Text>
)}
<Box flexDirection="row" flexWrap="wrap" columnGap={1}>
<Button
key="neu"
label="Neu ableiten"
variant={plan === null ? 'primary' : 'secondary'}
dimColor={jetzt.phase === 'laeuft'}
onPress={taten.ableiten}
/>
<Button key="laden" label="Neu laden" onPress={taten.laden} />
{Svg !== null && Select !== null && (
<Select
key="farben"
label="Farben"
options={FARBEN}
value={wahl.farben}
onSelect={wert => taten.faerbe(FARBEN.find(one => one.value === wert)?.value ?? 'auto')}
/>
)}
{Svg !== null && Select === null && (
<Button
key="farben"
label={`Farben: ${FARBEN.find(one => one.value === wahl.farben)?.label ?? 'Auto'}`}
onPress={() => taten.faerbe(naechsteFarbe?.value ?? 'auto')}
/>
)}
</Box>
</Box>
)
}plugins/ziel-graph/hooks/karten/leiste.tsx lines 483–533 · Pane
const zeichneFestEingabe = (teile: Teile, lage: KartenLage, taten: Taten): RenderElement => {
const { Box, Text, Button, Input } = teile
const { stand } = lage
const { liste, geaendert } = stand.festlegungen
const hatLokale = liste.some(one => one.ort === 'lokal')
return (
<Box flexDirection="column">
<Text bold wrap="wrap">
{festZeile(liste)}
</Text>
{liste.length === 0 && (
<Text dimColor wrap="wrap">
{'Eine Festlegung ist ein Satz von dir, der bei jedem Ableiten gewinnt: wohin etwas ' +
'gehört, was zuerst kommt, was zusammengehört.'}
</Text>
)}
{geaendert && stand.plan !== null && (
<Text wrap="wrap">
Die Festlegungen sind andere als beim letzten Ableiten: „Neu ableiten“ wendet sie an.
</Text>
)}
{Input === null ? (
<Text dimColor wrap="wrap">
Diese Oberfläche zeichnet kein Eingabefeld: Eine neue Festlegung gibst du am Rechner ein.
</Text>
) : (
<Input
key="fest-eingabe"
placeholder="Neue Festlegung: ein Satz, der bei jedem Ableiten gewinnt …"
value={lage.entwurf}
submitLabel="festlegen"
onInput={wert => taten.merkeFest(wert)}
onSubmit={wert => taten.festlegen(wert)}
/>
)}
{(Input !== null || hatLokale) && (
<Box flexDirection="row" flexWrap="wrap" columnGap={1}>
{Input !== null && <Button key="festlegen" label="Festlegen" onPress={() => taten.festlegen()} />}
{hatLokale && (
<Button
key="fest-eintragen"
label="In GOAL.md eintragen lassen"
onPress={() => taten.lege(festAuftrag(liste, stand.goal.vorhanden))}
/>
)}
</Box>
)}
</Box>
)
}Licence text (MIT)
MIT License Copyright (c) 2026 Tzy197 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), Rewrite the prompt
What its code calls
runs programswrites filesenv varsdrives Claude
What its code shows
Read from the source at commit 6be3c7828efa 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.plugins/ziel-graph/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.27 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.no network |
| Programs | Whether every program it starts is named in the code and is not a shell, an interpreter or a network tool.plugins/ziel-graph/hooks/register.tsx:87 a program named at run time |
| 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, the transcript, the prompt box and reaches another session |
| 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.prompt.submit (as the person), model.complete, adds command graph, adds command orchestrator |
| 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, command.run (graph, orchestrator) · reads: session.receive · also: ui.render (Pane), session.start, turn.complete · timers: clock.after, 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: USERPROFILE, HOME; files: a path computed at run time; the transcript; the prompt box |
| 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: a path computed at run time; another session; the prompt box |
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 Tzy197/claude-mods/plugin install ziel-graph@claude-mods/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (6be3c7828efa). 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/Tzy197/claude-modsgit -C claude-mods checkout 6be3c7828efac3c6152d94f5af346acfe0621a61claude plugin validate claude-mods/plugins/ziel-graphclaude --plugin-dir claude-mods/plugins/ziel-graphThe 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 "tzy197-ziel-graph" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- agent-discoverkeshrath★ 7
- command-hubMichael Goldenberg★ 6
- fanyijax★ 5
- mod-storehellosverre★ 2
- sc-toolboxSimpleCORE★ 2
- cockpitSyed Muhammad Hassaan★ 1
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/tzy197-ziel-graph/)