ModsCode / Claude Code Mods / Ranking / devbook-config-view
devbook-config-view
A read-only view of how this machine's repositories are set up for the devbook stack, inside Claude Code: /rollout opens a pane whose matrix has one row per repository carrying .devbook/config.json under the configured roots — the parent f…
What it does
- Draws a pane, toasts
- Adds /rollout
- Hooks session.start
- Keeps its own state between turns
Good points
- No network calls
- Starts no processes
- 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 devbook-config-view by Job Schepers (pane, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/jsdotnet-devbook-config-view/
// 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: "Rollout" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button } = $.ui.resolve(e)
const name = '…'
const id = '…'
const index = '…'
const length = '…'
const retired = '…'
const flow = '…'
const when = '…'
const at = '…'
const purpose = '…'
const unattended = '…'
const when2 = '…'
const at2 = '…'
const purpose2 = '…'
const unattended2 = '…'
const when3 = '…'
const at3 = '…'
const purpose3 = '…'
const unattended3 = '…'
const phase = '…'
const mode = '…'
const who = '…'
const extra = '…'
const when4 = '…'
const at4 = '…'
const purpose4 = '…'
const unattended4 = '…'
const when5 = '…'
const at5 = '…'
const purpose5 = '…'
const unattended5 = '…'
const when6 = '…'
const at6 = '…'
const purpose6 = '…'
const unattended6 = '…'
const when7 = '…'
const at7 = '…'
const purpose7 = '…'
const unattended7 = '…'
const when8 = '…'
const at8 = '…'
const purpose8 = '…'
const unattended8 = '…'
const when9 = '…'
const at9 = '…'
const purpose9 = '…'
const unattended9 = '…'
const phase2 = '…'
const mode2 = '…'
const who2 = '…'
const extra2 = '…'
const when10 = '…'
const at10 = '…'
const purpose10 = '…'
const unattended10 = '…'
const when11 = '…'
const at11 = '…'
const purpose11 = '…'
const unattended11 = '…'
const when12 = '…'
const at12 = '…'
const purpose12 = '…'
const unattended12 = '…'
const when13 = '…'
const at13 = '…'
const purpose13 = '…'
const unattended13 = '…'
const when14 = '…'
const at14 = '…'
const purpose14 = '…'
const unattended14 = '…'
const when15 = '…'
const at15 = '…'
const purpose15 = '…'
const unattended15 = '…'
const phase3 = '…'
const mode3 = '…'
const who3 = '…'
const extra3 = '…'
const when16 = '…'
const at16 = '…'
const purpose16 = '…'
const unattended16 = '…'
const when17 = '…'
const at17 = '…'
const purpose17 = '…'
const unattended17 = '…'
const when18 = '…'
const at18 = '…'
const purpose18 = '…'
const unattended18 = '…'
const flow2 = '…'
const when19 = '…'
const at19 = '…'
const purpose19 = '…'
const unattended19 = '…'
const when20 = '…'
const at20 = '…'
const purpose20 = '…'
const unattended20 = '…'
const when21 = '…'
const at21 = '…'
const purpose21 = '…'
const unattended21 = '…'
const phase4 = '…'
const mode4 = '…'
const who4 = '…'
const extra4 = '…'
const when22 = '…'
const at22 = '…'
const purpose22 = '…'
const unattended22 = '…'
const when23 = '…'
const at23 = '…'
const purpose23 = '…'
const unattended23 = '…'
const when24 = '…'
const at24 = '…'
const purpose24 = '…'
const unattended24 = '…'
const when25 = '…'
const at25 = '…'
const purpose25 = '…'
const unattended25 = '…'
const when26 = '…'
const at26 = '…'
const purpose26 = '…'
const unattended26 = '…'
const when27 = '…'
const at27 = '…'
const purpose27 = '…'
const unattended27 = '…'
const phase5 = '…'
const mode5 = '…'
const who5 = '…'
const extra5 = '…'
const when28 = '…'
const at28 = '…'
const purpose28 = '…'
const unattended28 = '…'
const when29 = '…'
const at29 = '…'
const purpose29 = '…'
const unattended29 = '…'
const when30 = '…'
const at30 = '…'
const purpose30 = '…'
const unattended30 = '…'
const when31 = '…'
const at31 = '…'
const purpose31 = '…'
const unattended31 = '…'
const when32 = '…'
const at32 = '…'
const purpose32 = '…'
const unattended32 = '…'
const when33 = '…'
const at33 = '…'
const purpose33 = '…'
const unattended33 = '…'
const phase6 = '…'
const mode6 = '…'
const who6 = '…'
const extra6 = '…'
const when34 = '…'
const at34 = '…'
const purpose34 = '…'
const unattended34 = '…'
const when35 = '…'
const at35 = '…'
const purpose35 = '…'
const unattended35 = '…'
const when36 = '…'
const at36 = '…'
const purpose36 = '…'
const unattended36 = '…'
const flow3 = '…'
const when37 = '…'
const at37 = '…'
const purpose37 = '…'
const unattended37 = '…'
const when38 = '…'
const at38 = '…'
const purpose38 = '…'
const unattended38 = '…'
const when39 = '…'
const at39 = '…'
const purpose39 = '…'
const unattended39 = '…'
const phase7 = '…'
const mode7 = '…'
const who7 = '…'
const extra7 = '…'
const when40 = '…'
const at40 = '…'
const purpose40 = '…'
const unattended40 = '…'
const when41 = '…'
const at41 = '…'
const purpose41 = '…'
const unattended41 = '…'
const when42 = '…'
const at42 = '…'
const purpose42 = '…'
const unattended42 = '…'
const when43 = '…'
const at43 = '…'
const purpose43 = '…'
const unattended43 = '…'
const when44 = '…'
const at44 = '…'
const purpose44 = '…'
const unattended44 = '…'
const when45 = '…'
const at45 = '…'
const purpose45 = '…'
const unattended45 = '…'
const phase8 = '…'
const mode8 = '…'
const who8 = '…'
const extra8 = '…'
const when46 = '…'
const at46 = '…'
const purpose46 = '…'
const unattended46 = '…'
const when47 = '…'
const at47 = '…'
const purpose47 = '…'
const unattended47 = '…'
const when48 = '…'
const at48 = '…'
const purpose48 = '…'
const unattended48 = '…'
const when49 = '…'
const at49 = '…'
const purpose49 = '…'
const unattended49 = '…'
const when50 = '…'
const at50 = '…'
const purpose50 = '…'
const unattended50 = '…'
const when51 = '…'
const at51 = '…'
const purpose51 = '…'
const unattended51 = '…'
const phase9 = '…'
const mode9 = '…'
const who9 = '…'
const extra9 = '…'
const when52 = '…'
const at52 = '…'
const purpose52 = '…'
const unattended52 = '…'
const when53 = '…'
const at53 = '…'
const purpose53 = '…'
const unattended53 = '…'
const when54 = '…'
const at54 = '…'
const purpose54 = '…'
const unattended54 = '…'
const k = '…'
const v = '…'
const k2 = '…'
const v2 = '…'
const k3 = '…'
const v3 = '…'
const k4 = '…'
const v4 = '…'
const k5 = '…'
const v5 = '…'
const k6 = '…'
const v6 = '…'
return (
<Box flexDirection="column">
<Box flexDirection="row" justifyContent="space-between">
<Text bold wrap="truncate-end">
{name}
<Text dimColor>
{" · "}
{id}
</Text>
</Text>
<Box flexDirection="row" gap={1} flexShrink={0}>
<Button plain>
{`‹`}
</Button>
<Text dimColor>
{`${index}1`}
/
{length}
</Text>
<Button plain>
›
</Button>
</Box>
</Box>
<Box flexDirection="row" gap={2} marginBottom={1}>
<Text color="gray">
○ inline
</Text>
<Text color="cyan">
▶ delegate
</Text>
<Text color="blue">
⑂ fork
</Text>
<Text color="magenta">
◆ gate
</Text>
<Text dimColor>
dim = the phase's default
</Text>
</Box>
<Text color="red" wrap="wrap">
{"✗ retired keys: "}
{retired}
{" — devbook-config:update migrates them"}
</Text>
<Text dimColor>
No phase maps: the engine is not configured here.
</Text>
<Box flexDirection="row" gap={4}>
<Box flexDirection="column" marginBottom={1} flexShrink={1} width="50%">
<Text bold>
{flow}
</Text>
<Box flexDirection="column">
<Text color="magenta" wrap="truncate-end">
◆
{" "}
ready
{" "}
<Text dimColor>
· always inline, never configured
</Text>
</Text>
<Text color="magenta" wrap="truncate-end">
◆
{" "}
personal-validation
{" "}
<Text dimColor>
· always inline, never configured
</Text>
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when}
{" "}
{at}
{": "}
{purpose}
{" · unattended "}
{unattended}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when2}
{" "}
{at2}
{": "}
{purpose2}
{" · unattended "}
{unattended2}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when3}
{" "}
{at3}
{": "}
{purpose3}
{" · unattended "}
{unattended3}
</Text>
<Box flexDirection="row" gap={1}>
<Text>
○
</Text>
<Box width={18}>
<Text wrap="truncate-end">
{phase}
</Text>
</Box>
<Box width={9}>
<Text>
{mode}
</Text>
</Box>
<Text dimColor wrap="truncate-end">
{who}
</Text>
</Box>
<Text dimColor wrap="truncate-end">
{" "}
{" "}
{" "}
{extra}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when4}
{" "}
{at4}
{": "}
{purpose4}
{" · unattended "}
{unattended4}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when5}
{" "}
{at5}
{": "}
{purpose5}
{" · unattended "}
{unattended5}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when6}
{" "}
{at6}
{": "}
{purpose6}
{" · unattended "}
{unattended6}
</Text>
</Box>
<Box flexDirection="column">
<Text color="magenta" wrap="truncate-end">
◆
{" "}
ready
{" "}
<Text dimColor>
· always inline, never configured
</Text>
</Text>
<Text color="magenta" wrap="truncate-end">
◆
{" "}
personal-validation
{" "}
<Text dimColor>
· always inline, never configured
</Text>
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when7}
{" "}
{at7}
{": "}
{purpose7}
{" · unattended "}
{unattended7}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when8}
{" "}
{at8}
{": "}
{purpose8}
{" · unattended "}
{unattended8}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when9}
{" "}
{at9}
{": "}
{purpose9}
{" · unattended "}
{unattended9}
</Text>
<Box flexDirection="row" gap={1}>
<Text>
○
</Text>
<Box width={18}>
<Text wrap="truncate-end">
{phase2}
</Text>
</Box>
<Box width={9}>
<Text>
{mode2}
</Text>
</Box>
<Text dimColor wrap="truncate-end">
{who2}
</Text>
</Box>
<Text dimColor wrap="truncate-end">
{" "}
{" "}
{" "}
{extra2}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when10}
{" "}
{at10}
{": "}
{purpose10}
{" · unattended "}
{unattended10}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when11}
{" "}
{at11}
{": "}
{purpose11}
{" · unattended "}
{unattended11}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when12}
{" "}
{at12}
{": "}
{purpose12}
{" · unattended "}
{unattended12}
</Text>
</Box>
<Box flexDirection="column">
<Text color="magenta" wrap="truncate-end">
◆
{" "}
ready
{" "}
<Text dimColor>
· always inline, never configured
</Text>
</Text>
<Text color="magenta" wrap="truncate-end">
◆
{" "}
personal-validation
{" "}
<Text dimColor>
· always inline, never configured
</Text>
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when13}
{" "}
{at13}
{": "}
{purpose13}
{" · unattended "}
{unattended13}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when14}
{" "}
{at14}
{": "}
{purpose14}
{" · unattended "}
{unattended14}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when15}
{" "}
{at15}
{": "}
{purpose15}
{" · unattended "}
{unattended15}
</Text>
<Box flexDirection="row" gap={1}>
<Text>
○
</Text>
<Box width={18}>
<Text wrap="truncate-end">
{phase3}
</Text>
</Box>
<Box width={9}>
<Text>
{mode3}
</Text>
</Box>
<Text dimColor wrap="truncate-end">
{who3}
</Text>
</Box>
<Text dimColor wrap="truncate-end">
{" "}
{" "}
{" "}
{extra3}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when16}
{" "}
{at16}
{": "}
{purpose16}
{" · unattended "}
{unattended16}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when17}
{" "}
{at17}
{": "}
{purpose17}
{" · unattended "}
{unattended17}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when18}
{" "}
{at18}
{": "}
{purpose18}
{" · unattended "}
{unattended18}
</Text>
</Box>
</Box>
<Box flexDirection="column" marginBottom={1} flexShrink={1} width="50%">
<Text bold>
{flow2}
</Text>
<Box flexDirection="column">
<Text color="magenta" wrap="truncate-end">
◆
{" "}
ready
{" "}
<Text dimColor>
· always inline, never configured
</Text>
</Text>
<Text color="magenta" wrap="truncate-end">
◆
{" "}
personal-validation
{" "}
<Text dimColor>
· always inline, never configured
</Text>
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when19}
{" "}
{at19}
{": "}
{purpose19}
{" · unattended "}
{unattended19}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when20}
{" "}
{at20}
{": "}
{purpose20}
{" · unattended "}
{unattended20}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when21}
{" "}
{at21}
{": "}
{purpose21}
{" · unattended "}
{unattended21}
</Text>
<Box flexDirection="row" gap={1}>
<Text>
○
</Text>
<Box width={18}>
<Text wrap="truncate-end">
{phase4}
</Text>
</Box>
<Box width={9}>
<Text>
{mode4}
</Text>
</Box>
<Text dimColor wrap="truncate-end">
{who4}
</Text>
</Box>
<Text dimColor wrap="truncate-end">
{" "}
{" "}
{" "}
{extra4}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when22}
{" "}
{at22}
{": "}
{purpose22}
{" · unattended "}
{unattended22}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when23}
{" "}
{at23}
{": "}
{purpose23}
{" · unattended "}
{unattended23}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when24}
{" "}
{at24}
{": "}
{purpose24}
{" · unattended "}
{unattended24}
</Text>
</Box>
<Box flexDirection="column">
<Text color="magenta" wrap="truncate-end">
◆
{" "}
ready
{" "}
<Text dimColor>
· always inline, never configured
</Text>
</Text>
<Text color="magenta" wrap="truncate-end">
◆
{" "}
personal-validation
{" "}
<Text dimColor>
· always inline, never configured
</Text>
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when25}
{" "}
{at25}
{": "}
{purpose25}
{" · unattended "}
{unattended25}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when26}
{" "}
{at26}
{": "}
{purpose26}
{" · unattended "}
{unattended26}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when27}
{" "}
{at27}
{": "}
{purpose27}
{" · unattended "}
{unattended27}
</Text>
<Box flexDirection="row" gap={1}>
<Text>
○
</Text>
<Box width={18}>
<Text wrap="truncate-end">
{phase5}
</Text>
</Box>
<Box width={9}>
<Text>
{mode5}
</Text>
</Box>
<Text dimColor wrap="truncate-end">
{who5}
</Text>
</Box>
<Text dimColor wrap="truncate-end">
{" "}
{" "}
{" "}
{extra5}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when28}
{" "}
{at28}
{": "}
{purpose28}
{" · unattended "}
{unattended28}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when29}
{" "}
{at29}
{": "}
{purpose29}
{" · unattended "}
{unattended29}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when30}
{" "}
{at30}
{": "}
{purpose30}
{" · unattended "}
{unattended30}
</Text>
</Box>
<Box flexDirection="column">
<Text color="magenta" wrap="truncate-end">
◆
{" "}
ready
{" "}
<Text dimColor>
· always inline, never configured
</Text>
</Text>
<Text color="magenta" wrap="truncate-end">
◆
{" "}
personal-validation
{" "}
<Text dimColor>
· always inline, never configured
</Text>
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when31}
{" "}
{at31}
{": "}
{purpose31}
{" · unattended "}
{unattended31}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when32}
{" "}
{at32}
{": "}
{purpose32}
{" · unattended "}
{unattended32}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when33}
{" "}
{at33}
{": "}
{purpose33}
{" · unattended "}
{unattended33}
</Text>
<Box flexDirection="row" gap={1}>
<Text>
○
</Text>
<Box width={18}>
<Text wrap="truncate-end">
{phase6}
</Text>
</Box>
<Box width={9}>
<Text>
{mode6}
</Text>
</Box>
<Text dimColor wrap="truncate-end">
{who6}
</Text>
</Box>
<Text dimColor wrap="truncate-end">
{" "}
{" "}
{" "}
{extra6}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when34}
{" "}
{at34}
{": "}
{purpose34}
{" · unattended "}
{unattended34}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when35}
{" "}
{at35}
{": "}
{purpose35}
{" · unattended "}
{unattended35}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when36}
{" "}
{at36}
{": "}
{purpose36}
{" · unattended "}
{unattended36}
</Text>
</Box>
</Box>
<Box flexDirection="column" marginBottom={1} flexShrink={1} width="50%">
<Text bold>
{flow3}
</Text>
<Box flexDirection="column">
<Text color="magenta" wrap="truncate-end">
◆
{" "}
ready
{" "}
<Text dimColor>
· always inline, never configured
</Text>
</Text>
<Text color="magenta" wrap="truncate-end">
◆
{" "}
personal-validation
{" "}
<Text dimColor>
· always inline, never configured
</Text>
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when37}
{" "}
{at37}
{": "}
{purpose37}
{" · unattended "}
{unattended37}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when38}
{" "}
{at38}
{": "}
{purpose38}
{" · unattended "}
{unattended38}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when39}
{" "}
{at39}
{": "}
{purpose39}
{" · unattended "}
{unattended39}
</Text>
<Box flexDirection="row" gap={1}>
<Text>
○
</Text>
<Box width={18}>
<Text wrap="truncate-end">
{phase7}
</Text>
</Box>
<Box width={9}>
<Text>
{mode7}
</Text>
</Box>
<Text dimColor wrap="truncate-end">
{who7}
</Text>
</Box>
<Text dimColor wrap="truncate-end">
{" "}
{" "}
{" "}
{extra7}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when40}
{" "}
{at40}
{": "}
{purpose40}
{" · unattended "}
{unattended40}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when41}
{" "}
{at41}
{": "}
{purpose41}
{" · unattended "}
{unattended41}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when42}
{" "}
{at42}
{": "}
{purpose42}
{" · unattended "}
{unattended42}
</Text>
</Box>
<Box flexDirection="column">
<Text color="magenta" wrap="truncate-end">
◆
{" "}
ready
{" "}
<Text dimColor>
· always inline, never configured
</Text>
</Text>
<Text color="magenta" wrap="truncate-end">
◆
{" "}
personal-validation
{" "}
<Text dimColor>
· always inline, never configured
</Text>
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when43}
{" "}
{at43}
{": "}
{purpose43}
{" · unattended "}
{unattended43}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when44}
{" "}
{at44}
{": "}
{purpose44}
{" · unattended "}
{unattended44}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when45}
{" "}
{at45}
{": "}
{purpose45}
{" · unattended "}
{unattended45}
</Text>
<Box flexDirection="row" gap={1}>
<Text>
○
</Text>
<Box width={18}>
<Text wrap="truncate-end">
{phase8}
</Text>
</Box>
<Box width={9}>
<Text>
{mode8}
</Text>
</Box>
<Text dimColor wrap="truncate-end">
{who8}
</Text>
</Box>
<Text dimColor wrap="truncate-end">
{" "}
{" "}
{" "}
{extra8}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when46}
{" "}
{at46}
{": "}
{purpose46}
{" · unattended "}
{unattended46}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when47}
{" "}
{at47}
{": "}
{purpose47}
{" · unattended "}
{unattended47}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when48}
{" "}
{at48}
{": "}
{purpose48}
{" · unattended "}
{unattended48}
</Text>
</Box>
<Box flexDirection="column">
<Text color="magenta" wrap="truncate-end">
◆
{" "}
ready
{" "}
<Text dimColor>
· always inline, never configured
</Text>
</Text>
<Text color="magenta" wrap="truncate-end">
◆
{" "}
personal-validation
{" "}
<Text dimColor>
· always inline, never configured
</Text>
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when49}
{" "}
{at49}
{": "}
{purpose49}
{" · unattended "}
{unattended49}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when50}
{" "}
{at50}
{": "}
{purpose50}
{" · unattended "}
{unattended50}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when51}
{" "}
{at51}
{": "}
{purpose51}
{" · unattended "}
{unattended51}
</Text>
<Box flexDirection="row" gap={1}>
<Text>
○
</Text>
<Box width={18}>
<Text wrap="truncate-end">
{phase9}
</Text>
</Box>
<Box width={9}>
<Text>
{mode9}
</Text>
</Box>
<Text dimColor wrap="truncate-end">
{who9}
</Text>
</Box>
<Text dimColor wrap="truncate-end">
{" "}
{" "}
{" "}
{extra9}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when52}
{" "}
{at52}
{": "}
{purpose52}
{" · unattended "}
{unattended52}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when53}
{" "}
{at53}
{": "}
{purpose53}
{" · unattended "}
{unattended53}
</Text>
<Text color="magenta" wrap="truncate-end">
{"◆ gate "}
{when54}
{" "}
{at54}
{": "}
{purpose54}
{" · unattended "}
{unattended54}
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="column" marginBottom={1}>
<Text bold>
policy
</Text>
<Text wrap="truncate-end">
<Text dimColor>
{k}
</Text>
{" "}
{v}
</Text>
<Text wrap="truncate-end">
<Text dimColor>
{k2}
</Text>
{" "}
{v2}
</Text>
<Text wrap="truncate-end">
<Text dimColor>
{k3}
</Text>
{" "}
{v3}
</Text>
</Box>
<Box flexDirection="column">
<Text bold>
bindings
</Text>
<Text wrap="truncate-end">
<Text dimColor>
{k4}
</Text>
{" "}
{v4}
</Text>
<Text wrap="truncate-end">
<Text dimColor>
{k5}
</Text>
{" "}
{v5}
</Text>
<Text wrap="truncate-end">
<Text dimColor>
{k6}
</Text>
{" "}
{v6}
</Text>
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
await $.ui.toast(`Prompt filled — review it and press Enter to run it.`)
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/devbook-config-view/hooks/register.tsx lines 279–435 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const { Box, Text, Button } = $.ui.resolve(e)
const { value: rollout } = await $.state.get(ROLLOUT)
const view = (await $.state.get(VIEW)).value ?? 'matrix'
const columns = (e.props as any)?.bodyColumns ?? e.viewport?.columns ?? 80
const isWide = columns >= 100
const toolbar = (
<Box flexDirection="row" gap={2} marginBottom={1}>
<Button key="matrix" plain onPress={() => $.state.set(VIEW, 'matrix')}>
{view === 'matrix' ? '[matrix]' : 'matrix'}
</Button>
<Button key="config" plain onPress={() => $.state.set(VIEW, 'config')}>
{view === 'config' ? '[config map]' : 'config map'}
</Button>
<Button key="refresh" plain onPress={() => refresh($, options)}>
↻ refresh
</Button>
</Box>
)
if (!rollout) {
return (
<Box flexDirection="column">
{toolbar}
<Text dimColor>Nothing read yet. Press refresh.</Text>
</Box>
)
}
if (rollout.repos.length === 0) {
return (
<Box flexDirection="column">
{toolbar}
<Text dimColor>No repository with .devbook/config.json under {rollout.roots.join(', ')}.</Text>
<Text dimColor>Set the plugin's roots option to look elsewhere.</Text>
</Box>
)
}
const index = Math.min((await $.state.get(SELECTED)).value ?? 0, rollout.repos.length - 1)
const newest = Object.entries(rollout.newest).map(([k, v]) => `${k} ${v}`).join(' · ')
const header = (
<Text dimColor wrap="truncate-end">
{rollout.repos.length} repositories under {rollout.roots.join(', ')} ·{' '}
{rollout.marketplace ? `newest ${newest}` : 'marketplace not found: versions not compared'}
</Text>
)
if (view === 'config') return configView($, Box, Text, Button, toolbar, rollout.repos, index, columns)
const cols = columnsOf(rollout)
const dots = (all: string[], have: string[]) =>
all.map(f => (
<Text color={have.includes(f) ? 'green' : 'gray'} dimColor={!have.includes(f)}>
{have.includes(f) ? '●' : '·'}
</Text>
))
return (
<Box flexDirection="column">
{toolbar}
{header}
<Box flexDirection="row" gap={2} marginBottom={1}>
<Text color="green">current</Text>
<Text color="yellow">minor behind</Text>
<Text color="red">major behind</Text>
<Text dimColor>● folders {FOLDERS.join(' ')} · procedures {PROCEDURES.join(' ')}</Text>
</Box>
<Box flexDirection="row">
<Box width={18}>
<Text bold>repository</Text>
</Box>
{cols.map(c => (
<Box width={widthOf(c)}>
<Text bold wrap="truncate-end">
{c}
</Text>
</Box>
))}
{isWide && (
<Box width={16}>
<Text bold>folders · procs</Text>
</Box>
)}
</Box>
{rollout.repos.map((repo, i) => {
const cells = cols.map(c => {
const cell = repo.stamps[c]
return (
<Box width={widthOf(c)}>
<Text color={cell ? DISTANCE_COLOR[cell.distance] : 'gray'} dimColor={!cell}>
{cell?.version ?? '–'}
</Text>
</Box>
)
})
const marks = (
<Box flexDirection="row" width={16}>
{dots(FOLDERS, repo.folders)}
<Text> </Text>
{dots(PROCEDURES, repo.procedures)}
</Box>
)
const actions = (
<Box flexDirection="row" gap={1}>
<Button key={`doctor-${i}`} plain onPress={() => fill($, promptFor('doctor', repo))}>
doctor
</Button>
<Button key={`update-${i}`} plain onPress={() => fill($, promptFor('update', repo))}>
update
</Button>
<Button
key={`map-${i}`}
plain
onPress={async () => {
await $.state.set(SELECTED, i)
await $.state.set(VIEW, 'config')
}}
>
map
</Button>
</Box>
)
return (
<Box key={`r${i}`} flexDirection="column">
<Box flexDirection="row">
<Box width={18}>
<Text color={repo.error || repo.retired.length ? 'red' : undefined} wrap="truncate-end">
{repo.name}
</Text>
</Box>
{cells}
{isWide && marks}
{isWide && actions}
</Box>
{!isWide && (
<Box flexDirection="row" gap={2} marginLeft={2}>
{marks}
{actions}
</Box>
)}
{repo.error && (
<Text color="red" wrap="truncate-end">
{' '}✗ {repo.error}
</Text>
)}
{repo.retired.length > 0 && (
<Text color="red" wrap="truncate-end">
{' '}✗ retired: {repo.retired.join(', ')}
</Text>
)}
</Box>
)
})}
</Box>
)
})plugins/devbook-config-view/hooks/register.tsx lines 439–556 · Pane
function configView($: EngineInterface, Box: any, Text: any, Button: any, toolbar: unknown, repos: RepoRow[], index: number, columns: number) {
// Two flows side by side once each column still fits a phase row; stacked below that.
const isSideBySide = columns >= 110 && (repos[index]?.flows.length ?? 0) > 1
const repo = repos[index]!
const step = (by: number) => $.state.set(SELECTED, (index + by + repos.length) % repos.length)
const who = (p: PhaseLink) =>
[p.agent, [p.model, p.effort].filter(Boolean).join('/'), p.skill ? `skill ${p.skill}` : '', p.mcp === null ? '' : `mcp ${p.mcp.join(', ') || 'none'}`, p.app ? `app ${p.app}` : '']
.filter(Boolean)
.join(' · ')
const chores = (p: PhaseLink) =>
[p.before.length ? `before ${p.before.join(', ')}` : '', p.after.length ? `after ${p.after.join(', ')}` : ''].filter(Boolean).join(' · ')
const gateAt = (phase: string, when: string) =>
repo.gates.filter(g => g.at === short(phase.split(':')[0] ?? phase) && g.when === when).map(g => (
<Text color="magenta" wrap="truncate-end">
◆ gate {g.when} {g.at}: {g.purpose} · unattended {g.unattended}
</Text>
))
const fixed = (name: string, isGate: boolean) => (
<Text color={isGate ? 'magenta' : 'gray'} wrap="truncate-end">
{isGate ? '◆' : '○'} {name} <Text dimColor>· always inline, never configured</Text>
</Text>
)
return (
<Box flexDirection="column">
{toolbar as any}
<Box flexDirection="row" justifyContent="space-between">
<Text bold wrap="truncate-end">
{repo.name}
{repo.id && repo.id !== repo.name ? <Text dimColor> · {repo.id}</Text> : ''}
</Text>
<Box flexDirection="row" gap={1} flexShrink={0}>
<Button key="prev" plain onPress={() => step(-1)}>
‹
</Button>
<Text dimColor>
{index + 1}/{repos.length}
</Text>
<Button key="next" plain onPress={() => step(1)}>
›
</Button>
</Box>
</Box>
<Box flexDirection="row" gap={2} marginBottom={1}>
<Text color={MODE_COLOR.inline}>○ inline</Text>
<Text color={MODE_COLOR.delegate}>▶ delegate</Text>
<Text color={MODE_COLOR.fork}>⑂ fork</Text>
<Text color="magenta">◆ gate</Text>
<Text dimColor>dim = the phase's default</Text>
</Box>
{repo.retired.length > 0 && (
<Text color="red" wrap="wrap">
✗ retired keys: {repo.retired.join(', ')} — devbook-config:update migrates them
</Text>
)}
{repo.flows.length === 0 && <Text dimColor>No phase maps: the engine is not configured here.</Text>}
<Box flexDirection={isSideBySide ? 'row' : 'column'} gap={isSideBySide ? 4 : 0}>
{repo.flows.map(flow => (
<Box key={flow.flow} flexDirection="column" marginBottom={1} flexShrink={1} width={isSideBySide ? '50%' : undefined}>
<Text bold>{flow.flow}</Text>
{flow.phases.map((p, i) => {
const isLast = i === flow.phases.length - 1
const extra = chores(p)
return (
<Box key={`${flow.flow}-${p.phase}`} flexDirection="column">
{p.phase === 'phase-create-pr' && fixed('ready', false)}
{p.phase === 'phase-create-pr' && fixed('personal-validation', true)}
{gateAt(p.phase, 'before')}
<Box flexDirection="row" gap={1}>
<Text color={MODE_COLOR[p.mode]}>{p.mode === 'inline' ? '○' : p.mode === 'fork' ? '⑂' : '▶'}</Text>
<Box width={18}>
<Text wrap="truncate-end">{short(p.phase)}</Text>
</Box>
<Box width={9}>
<Text color={MODE_COLOR[p.mode]} dimColor={!p.isConfigured}>
{p.mode}
</Text>
</Box>
<Text dimColor wrap="truncate-end">
{who(p)}
</Text>
</Box>
{extra && (
<Text dimColor wrap="truncate-end">
{isLast ? ' ' : '│'} {' '}
{extra}
</Text>
)}
{gateAt(p.phase, 'after')}
</Box>
)
})}
</Box>
))}
</Box>
{repo.policy.length > 0 && (
<Box flexDirection="column" marginBottom={1}>
<Text bold>policy</Text>
{repo.policy.map(([k, v]) => (
<Text wrap="truncate-end">
<Text dimColor>{k}</Text> {v}
</Text>
))}
</Box>
)}
{repo.bindings.length > 0 && (
<Box flexDirection="column">
<Text bold>bindings</Text>
{repo.bindings.map(([k, v]) => (
<Text wrap="truncate-end">
<Text dimColor>{k}</Text> {v}
</Text>
))}
</Box>
)}
</Box>
)
}Licence text (MIT)
MIT License Copyright (c) 2026 JSdotNet 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), Add a slash command
What its code calls
reads filesenv varsremembers
What its code shows
Read from the source at commit 5a3850d27beb 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/devbook-config-view/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.1 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.starts no programs |
| 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).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 command rollout |
| 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 (rollout) · also: session.start, ui.render (Pane) |
| 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: CLAUDE_CONFIG_DIR, USERPROFILE, HOME; files: a path computed at run time, …/.devbook/config.json |
| 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 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 JSdotNet/devbook/plugin install devbook-config-view@jsdotnet-devbook/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (5a3850d27beb). 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/JSdotNet/devbookgit -C devbook checkout 5a3850d27beb622ebf5d1851712aa5457d8f3e00claude plugin validate devbook/plugins/devbook-config-viewclaude --plugin-dir devbook/plugins/devbook-config-viewThe 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 "jsdotnet-devbook-config-view" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- ruflo-swarmruvnet★ 74,323
- code-modernizationAnthropic★ 37,653
- moai-boardMoAI-ADK★ 1,230
- crit-tuiTomasz Tomczyk★ 1,196
- lcu-approveLCU★ 894
- ai-maestro-secrets23blocks-OS★ 817
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/jsdotnet-devbook-config-view/)