dagyard
Dagyard en Claude Code: lo que te espera y lo que está para tomar sobre el prompt, el menú /dagyard y un aviso cuando algo nuevo te espera
What it does
- Draws a band above the prompt, a pane
- Adds /dagyard
- Hooks session.start, turn.complete
- Calls the network
- Starts processes
Good points
- Written in TypeScript
- Handles errors
- Writes no files
Code to start from
Two kinds: a starter modscode writes from the design above, and the lines of the mod's own code that draw it.
Starter (register.tsx)
import type { Register } from 'claude-code'
// Drawn like dagyard by Cofoundy (pane, band, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/cofoundy-dagyard/
// 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 } = $.ui.resolve(e)
const project = '…'
const progress = '…'
const waitingCount = '…'
const startableCount = '…'
return (
<Box flexDirection="column">
<Text wrap="truncate-end">
<Text color="#9fd3ff">
{"◆ dagyard "}
</Text>
<Text bold>
{project}
</Text>
<Text color="#6b7a93">
{progress}
{" · "}
</Text>
<Text color="#ffb547">
{waitingCount}
</Text>
<Text color="#6b7a93">
{" · "}
</Text>
<Text color="#9fd3ff">
{startableCount}
</Text>
</Text>
{await next(e)}
</Box>
)
})
// the pane: open it with $.ui.open({ id: 'my-pane', title: "Dagyard" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button } = $.ui.resolve(e)
const offlineMenu = '…'
const retry = '…'
return (
<Box flexDirection="column">
<Text color="#6b7a93">
{offlineMenu}
</Text>
<Button label={`${retry}`} />
</Box>
)
})
}
The mod's own code
Shown under the mod's licence (MIT); its text is below. Keep the notice if you copy these lines.
packages/mod/hooks/register.tsx lines 277–380 · Band
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
const below = await next(e)
const v = view
if (!project || e.props.hasSurvey || e.props.isWorking || hidden) return below
if (!v) {
if (!loading && !lastError) void refresh($)
const { Box: B, Text: T } = $.ui.resolve(e)
return (
<B flexDirection="column">
<T color={MUTED}>{s.offline(base, lastError || s.loading)}</T>
{below}
</B>
)
}
const { Box, Button, Text } = $.ui.resolve(e)
const list: Item[] = [...v.waiting, ...v.startable]
const head = (
<Text wrap="truncate-end">
<Text color={BLUE}>◆ dagyard </Text>
<Text bold>{v.project}</Text>
<Text color={MUTED}>{s.progress(v.done, v.total, v.now)} · </Text>
<Text color={v.waiting.length ? AMBER : MUTED}>{s.waitingCount(v.waiting.length)}</Text>
<Text color={MUTED}> · </Text>
<Text color={v.startable.length ? BLUE : MUTED}>{s.startableCount(v.startable.length)}</Text>
</Text>
)
let body = null
const w = working
if (busy) {
body = <Text color={MUTED}>…</Text>
} else if (w) {
body = (
<Box flexDirection="column">
<Text wrap="truncate-end">
<Text color={BLUE}>{s.workingOn}</Text>
<Text bold>{w.title}</Text>
</Text>
<Box flexWrap="wrap">
<Button key="dy-done" label={s.done} hotkey="h" variant="primary" onPress={() => void patchWorking($, w, { status: 'done' }, s.isDone(w.title))} />
<Button key="dy-release" label={s.release} hotkey="l" onPress={() => void patchWorking($, w, { status: 'pending', team: null, progress: 0 }, '')} />
<Button key="dy-open" label={s.openSky} hotkey="o" dimColor onPress={() => void openSky($, w.id)} />
</Box>
</Box>
)
} else if (list.length > 0) {
const i = cursor % list.length
const it = list[i]!
const more =
list.length > 1 ? (
<Button key="dy-next" label={s.other(i + 1, list.length)} hotkey="s" dimColor onPress={() => void skip($)} />
) : null
if (it.kind === 'waiting') {
const b = it.blocker
const label = s.waitingLabel(b.kind)
const buttons =
b.kind === 'access'
? [<Button key="dy-sky" label={s.grantInSky} hotkey="o" variant="primary" onPress={() => void openSky($, it.node.id)} />]
: b.options.slice(0, 3).map((opt, k) => (
<Button key={`dy-opt-${k}`} label={opt} hotkey={String(k + 1)} variant={k === 0 ? 'primary' : undefined} onPress={() => void resolve($, it, k, '')} />
))
body = (
<Box flexDirection="column">
<Text wrap="truncate-end">
<Text color={AMBER}>{label} · </Text>
<Text bold>{it.node.title}</Text>
<Text color={MUTED}> — {b.kind === 'access' ? b.accessLabel ?? b.question : b.question}</Text>
</Text>
<Box flexWrap="wrap">
{buttons}
{more}
<Button key="dy-menu" label={s.seeAll} hotkey="m" dimColor onPress={() => void openMenu($)} />
</Box>
</Box>
)
} else {
const n = it.node
body = (
<Box flexDirection="column">
<Text wrap="truncate-end">
<Text color={BLUE}>{s.readyToTake}</Text>
<Text bold>{n.title}</Text>
{n.goal ? <Text color={MUTED}> — /goal {n.goal}</Text> : null}
</Text>
<Box flexWrap="wrap">
<Button key="dy-take" label={s.workOnThis} hotkey="t" variant="primary" onPress={() => void take($, n)} />
{more}
<Button key="dy-menu" label={s.seeAll} hotkey="m" dimColor onPress={() => void openMenu($)} />
</Box>
</Box>
)
}
}
return (
<Box flexDirection="column">
{head}
{body}
{below}
</Box>
)
})packages/mod/hooks/register.tsx lines 382–485 · Pane
on('ui.render', { component: 'Pane', requestId: MENU }, async ($, e) => {
const els = $.ui.resolve(e)
const { Box, Button, Text } = els
// «Qué cambiarías» se escribe donde la superficie tiene campo de texto (el celular no lo dibuja);
// donde no, «Pedir cambios» se manda sin nota en vez de dejar un «Cancelar» solo
const Input = e.surface !== 'mobile' && 'Input' in els ? els.Input : null
const v = view
if (!v) {
return (
<Box flexDirection="column">
<Text color={MUTED}>{s.offlineMenu(base, lastError || s.loading)}</Text>
<Button key="mn-retry" label={s.retry} onPress={() => void refresh($)} />
</Box>
)
}
const w = working
const rows: any[] = []
rows.push(
<Text key="mn-head" wrap="truncate-end">
<Text bold>{v.project}</Text>
<Text color={MUTED}>{s.progress(v.done, v.total, v.now)}</Text>
</Text>,
)
if (w) {
rows.push(<Text key="mn-w-sec" color={BLUE}>{'\n'}{s.working}</Text>)
rows.push(
<Box key="mn-w" flexDirection="column">
<Text bold>{w.title}</Text>
<Box flexWrap="wrap">
<Button key="mn-w-done" label={s.done} variant="primary" onPress={() => void patchWorking($, w, { status: 'done' }, s.isDone(w.title))} />
<Button key="mn-w-release" label={s.release} onPress={() => void patchWorking($, w, { status: 'pending', team: null, progress: 0 }, '')} />
</Box>
</Box>,
)
}
rows.push(<Text key="mn-wait-sec" color={v.waiting.length ? AMBER : MUTED}>{'\n'}{s.waitingSection(v.waiting.length)}</Text>)
if (v.waiting.length === 0) rows.push(<Text key="mn-wait-none" color={MUTED}>{s.nothingWaiting}</Text>)
v.waiting.forEach(it => {
if (it.kind !== 'waiting') return
const b = it.blocker
const kind = s.kindName(b.kind)
const id = b.id
let actions: any
if (b.kind === 'access') {
actions = <Button key={`mn-${id}-sky`} label={s.grantInSky} variant="primary" onPress={() => void openSky($, it.node.id)} />
} else if (commenting === id && Input) {
const k = b.options.findIndex(o => REQUEST_CHANGES.test(o))
actions = (
<Box flexDirection="column">
<Input key={`mn-${id}-note`} label={s.whatWouldYouChange} placeholder={s.oneLine} submitLabel={s.send} autoFocus onSubmit={(value: string) => void resolve($, it, k < 0 ? b.options.length - 1 : k, value)} />
<Button key={`mn-${id}-cancel`} label={s.cancel} dimColor onPress={() => void comment($, null)} />
</Box>
)
} else {
actions = (
<Box flexWrap="wrap">
{b.options.map((opt, k) =>
b.kind === 'review' && Input && REQUEST_CHANGES.test(opt) ? (
<Button key={`mn-${id}-${k}`} label={opt} onPress={() => void comment($, id)} />
) : (
<Button key={`mn-${id}-${k}`} label={opt} variant={k === 0 ? 'primary' : undefined} onPress={() => void resolve($, it, k, '')} />
),
)}
</Box>
)
}
rows.push(
<Box key={`mn-${id}`} flexDirection="column">
<Text wrap="wrap">
<Text color={AMBER}>{kind} · </Text>
<Text bold>{it.node.title}</Text>
</Text>
<Text wrap="wrap" color={MUTED}>{b.kind === 'access' ? `${b.question} (${b.accessLabel ?? s.access})` : b.question}</Text>
{actions}
</Box>,
)
})
rows.push(<Text key="mn-take-sec" color={v.startable.length ? BLUE : MUTED}>{'\n'}{s.startableSection(v.startable.length)}</Text>)
if (v.startable.length === 0) rows.push(<Text key="mn-take-none" color={MUTED}>{s.nothingStartable}</Text>)
v.startable.forEach(it => {
const n = it.node
rows.push(
<Box key={`mn-t-${n.id}`} flexDirection="column">
<Text bold>{n.title}</Text>
{n.goal ? <Text wrap="wrap" color={MUTED}>/goal {n.goal}</Text> : null}
<Button key={`mn-t-${n.id}-take`} label={s.workOnThis} variant="primary" onPress={() => void take($, n)} />
</Box>,
)
})
rows.push(
<Box key="mn-foot">
<Text>{'\n'}</Text>
<Button key="mn-sky" label={s.openSky} dimColor onPress={() => void openSky($, w?.id)} />
<Button key="mn-band" label={hidden ? s.showBand : s.hideBand} dimColor onPress={() => void toggleBand($)} />
</Box>,
)
return <Box flexDirection="column">{rows}</Box>
})Licence text (MIT)
MIT License Copyright (c) 2026 Cofoundy SAC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
What its code calls
networkruns programsreads filesenv vars
What its code shows
Read from the source at commit 0ec6357adcb6 on 2026-10-06. The first group decides whether a mod is listed; the rest is for you to weigh. A later commit is not read until the next crawl.
| Decides the listing: code you can check | |
|---|---|
| Entry read | Every module hooks/hooks.json names was read.packages/mod/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.3 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.its repository's .claude-plugin/marketplace.json does not list it: no install line to give |
| Programs on Windows | Whether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).packages/mod/hooks/register.tsx:215 open (not on Windows) |
| Network | Whether every fetch names its https host in the code.packages/mod/hooks/register.tsx:130 fetch(`${base}${path}`) |
| Programs | Whether every program it starts is named in the code and is not a shell, an interpreter or a network tool.printenv, open (reaches the network) |
| Reads and sends | Whether it both reads files or environment variables and reaches the network.reads environment variables and files and reaches the network |
| Keys in the source | Whether the source holds what looks like an API key or a private key.no keys in the source |
| Licence | An open licence (MIT, Apache-2.0, BSD, ISC, Unlicense, 0BSD, CC0) with its text lets modscode show its code; otherwise the code is linked.MIT |
This is a reading of the code text, not a security review: it does not run the mod, and it cannot see what a program the mod starts does. The check before installing is yours. How mods are chosen
Install it
Check it yourself before you install it. Mods run unsandboxed, with your permissions, and modscode does not vouch for what this code does. Read the code below (or run claude plugin validate . in its folder), weigh what it reaches, and install the commit you read.
Its repository's .claude-plugin/marketplace.json does not list it, so there is no install line to give. Read it as code, or follow its author's README.
Ask Claude about it
With the modscode connector added, Claude can read this design, what its code reaches and its code, and build on them. Ask it like this:
Read the modscode design "cofoundy-dagyard" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
Ask Claude…2h 10m · █████░░░✓ build ✓ build ✓ buildJavaKotlin3 Python■ ok 3 ■ ok 3 ■ ok 3 Razor proven 3 Razor proven 3 Razor proven 3Phases ──────── 3/3build Pythonbuild Pythonbuild Python… 3 more phasesLua ──────── 3/Kotlin■ the whole upgrade Ruby■ build build Ruby■ build build Ruby■ build build Ruby … 3 moreNext ──────── PythonRuby (by hand)Podsclick a button, or ctrl+x tab then Tab, EnterAttention ──────── 3! Scala ! Scala ! Scala … 3 moreSession ──────── okJava
-
Open a file first: /crit-tui file <path>Reopen this one in the crit browser view.Ask Claude…
-
Ask Claude…TodayOct 63 left · Mar overdueRemCTL: Sep✓ All done for today.● build3● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓● build3● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓● build3● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓● Fix login ● ⚑Jul · build✓Updated 14:32UndoRefresh
-
Ask Claude…TO graph› Fix login › Fix login › Fix loginScopeThis featureWhole projectHide done stepsReconnect
-
Ask Claude…Blast Radius⚠ Blast Radius · buildCommand npm testWould CancelProceed Proceed ProceedBash1 Proceed2 CancelClaude is waiting on your answer
-
Ask Claude…Agent Radar● Edit note · 2h 10m · 0 toolsnow: starting────────No messages yet.agent: (tool calls)agent: (tool calls)agent: (tool calls)Back bClose q