modscode JA

modscode / Gallery / session-board

session-board

Desktop mod for people who run many sessions: a task brief with criteria and authority at the start, Claude works alone and calls you only for blockers, an acceptance screen and an HTML report at the end. A free mode for brainstorming and …

Code you can checkTerminal + desktopPaneBandStatus lineToastBoxButtonMarkdownSvgText

What it does

  • Draws a pane, a band above the prompt, the status line, toasts
  • Adds /board, /board-update, /board-ask, /board-report
  • Watches mcp__session-board__note, mcp__session-board__show, mcp__session-board__task, mcp__session-board__submit calls and can refuse them
  • Hooks prompt.submit, session.append, session.compact, session.start and 1 more
  • Starts processes

Good points

  • No network calls
  • Written in TypeScript
  • Has a desktop-specific branch
  • Handles errors

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)

register.tsx
import type { Register } from 'claude-code'

// Drawn like session-board by Ilia (pane, band, status, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/oshnilia-session-board/
// 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: "Доска сессии" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Button, Text } = $.ui.resolve(e)
    const key = '…'
    const note = '…'
    const length = '…'
    const n = '…'
    const n2 = '…'
    const n3 = '…'
    return (
      <Box flexDirection="column" paddingRight={1}>
        <Box flexDirection="column">
          <Box flexDirection="row" flexWrap="wrap" columnGap={2} rowGap={1}>
            <Button plain label="Итог" hotkey={`${key}`} />
            <Button plain label="Итог" hotkey={`${key}`} />
            <Button plain label="Итог" hotkey={`${key}`} />
          </Box>
          <Box marginTop={1}>
            <Box flexDirection="row" justifyContent="space-between" alignItems="flex-start" columnGap={2}>
              <Box flexShrink={1} minWidth={0}>
                <Text dimColor wrap="truncate-end">
                  {note}
                </Text>
              </Box>
              <Box flexShrink={0}>
                <Button plain label="↻ обновить" dimColor />
              </Box>
            </Box>
          </Box>
          <Box flexDirection="column" marginTop={1} borderStyle="round" borderColor="#5b8cff" paddingX={1}>
            <Text wrap="wrap">
              <Text bold>
                {"для Claude  "}
              </Text>
              {"заметок: "}
              {length}
              . Уйдут с твоим следующим сообщением.
            </Text>
            <Text dimColor wrap="wrap">
              {"• "}
              {n}
            </Text>
            <Text dimColor wrap="wrap">
              {"• "}
              {n2}
            </Text>
            <Text dimColor wrap="wrap">
              {"• "}
              {n3}
            </Text>
            <Box flexDirection="row" flexWrap="wrap" columnGap={2} rowGap={1} />
          </Box>
        </Box>
      </Box>
    )
  })

  // 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 mark = '…'
    const text = '…'
    const done = '…'
    const length = '…'
    const label = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="row" justifyContent="space-between" columnGap={2} paddingRight={4}>
          <Box flexDirection="row" columnGap={1} flexShrink={1} minWidth={0}>
            <Box flexShrink={0}>
              <Text>
                {mark}
              </Text>
            </Box>
            <Box flexShrink={1} minWidth={0}>
              <Text wrap="truncate-end">
                {text}
              </Text>
            </Box>
          </Box>
          <Box flexDirection="row" columnGap={2} flexShrink={0} alignItems="center">
            <Text dimColor>
              {`${done}/${length} шагов`}
            </Text>
            <Button label={`${label}`} variant="primary" />
            <Button plain label="посмотреть" />
            <Button plain label="доска" />
          </Box>
        </Box>
        <Box flexDirection="row" columnGap={2} alignItems="center" paddingRight={4}>
          <Text dimColor>
            показать иначе:
          </Text>
          <Button plain label={`${label}`} />
          <Button plain label={`${label}`} />
          <Button plain label={`${label}`} />
        </Box>
        {await next(e)}
      </Box>
    )
  })

  on('session.start', async ($, e, next) => {
    const reason = '…'
    const message = '…'
    await $.ui.status(`доска: обновляю карту…`)
    await $.ui.toast(`Доска ждёт места: ${reason}`)
    await $.ui.toast(`Доска не открылась: ${message}`)
    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/session-board/hooks/register.tsx lines 1341–1379 · Pane
  on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
    if (e.surface !== 'desktop' && e.surface !== 'terminal') {
      const { Markdown } = $.ui.resolve(e)
      return <Markdown text={renderMarkdown(await read($, ledger), 'ru').slice(0, 9000)} />
    }
    const els = $.ui.resolve(e)
    const L = await read($, ledger)
    const v = resolveView(await read($, view), L.task?.phase)
    const d: Data = {
      ledger: L,
      view: v,
      expanded: await read($, expanded),
      status: await read($, status),
      // live events redraw the pane on every tool call: read them only where they show
      live: v === 'log-turns' ? await read($, live) : [],
      qa: v === 'ask' ? await read($, qa) : [],
      answering: await read($, answering),
      diff: v === 'log-files' ? await read($, diff) : null,
      verdict: v === 'review' ? await read($, verdict) : emptyVerdict(),
      notes: await read($, notes),
      editing: await read($, editing),
      openTasks: v === 'task' && (!L.task || L.task.mode === 'free') ? await read($, openTasks) : [],
      policy: await read($, policy),
      lean: await read($, lean),
      debt: v === 'task' ? await read($, debt) : null,
      sent: (await read($, sent)).map(x => x.key),
      width: Math.max(24, e.props.bodyColumns - 1),
      ...(e.surface === 'desktop' ? { svg: $.ui.resolve(e).Svg } : {}),
    }
    const a = boardActions($)
    try {
      return Board(els, d, a)
    } catch (err) {
      const msg = `${(err as Error).name}: ${(err as Error).message}\n${((err as Error).stack ?? '').split('\n').slice(0, 6).join('\n')}`
      $.clock.after(0, () => void reportRenderError($, d.view, msg))
      const { Text } = els
      return <Text color="#ff6b6b" wrap="wrap">Доска не смогла нарисовать вид «{d.view}»: {msg}</Text>
    }
  })
plugins/session-board/hooks/views.tsx lines 1063–1076 · Pane
export function Board(els: Els, d: Data, a: Actions) {
  const { Box } = els
  const body = d.view === 'task' ? TaskView(els, d, a)
    : d.view === 'work' ? WorkView(els, d, a)
      : d.view === 'review' ? ReviewView(els, d, a)
        : d.view === 'ask' ? AskView(els, d, a)
          : LogView(els, d, a)
  return (
    <Box flexDirection="column" paddingRight={1}>
      {Header(els, d, a)}
      {body}
    </Box>
  )
}
plugins/session-board/hooks/views.tsx lines 225–253 · Pane
export function Header(els: Els, d: Data, a: Actions) {
  const { Box, Text, Button } = els
  const s = d.status
  const tab = d.view.startsWith('log') ? 'log' : d.view
  const note =
    s.phase === 'mapping' ? `⟳ ставлю на карту: ${s.note.includes(',') ? 'ходы' : s.note === 'вся сессия' ? '' : 'ход'} ${s.note}`
      : s.phase === 'error' ? '⚠ карта не обновилась'
        : `${phaseLabel(d.ledger.task?.phase ?? 'none', d.ledger.task?.mode === 'free')}${d.ledger.turns.length ? ` · ход ${d.ledger.turns.at(-1)?.n ?? 0}` : ''}`
  return (
    <Box flexDirection="column">
      <Box flexDirection="row" flexWrap="wrap" columnGap={2} rowGap={SPACE.item}>
        {VIEWS.map(v => (
          <Button key={`view-${v.id}`} plain label={v.id === 'review' && d.ledger.task?.mode === 'free' ? 'Итог' : v.label} hotkey={v.key} dimColor={tab !== v.id} onPress={() => a.setView(v.id)} />
        ))}
      </Box>
      <Box marginTop={SPACE.item}>
        {Split(els, 'status', <Text dimColor wrap="truncate-end">{note}</Text>,
          <Button key="refresh" plain label="↻ обновить" dimColor onPress={() => a.refresh()} />)}
      </Box>
      {d.notes.length ? (
        <Box flexDirection="column" marginTop={SPACE.item} borderStyle="round" borderColor={BLUE} paddingX={1}>
          <Text wrap="wrap">{Tag(els, 'для Claude  ', BLUE)}заметок: {d.notes.length}. Уйдут с твоим следующим сообщением.</Text>
          {d.notes.slice(-3).map((n, i) => <Text key={`note-${i}`} dimColor wrap="wrap">• {n}</Text>)}
          {ActionBar(els, 'notes-a', [Once(els, d, 'notes', <Button key="notes-send" label="Отправить сейчас" onPress={() => a.sendNotes()} />)])}
        </Box>
      ) : null}
    </Box>
  )
}
plugins/session-board/hooks/views.tsx lines 147–155 · Pane
function Split(els: Els, key: string, left: unknown, right: unknown) {
  const { Box } = els
  return (
    <Box key={key} flexDirection="row" justifyContent="space-between" alignItems="flex-start" columnGap={2}>
      <Box flexShrink={1} minWidth={0}>{left as never}</Box>
      <Box flexShrink={0}>{right as never}</Box>
    </Box>
  )
}
plugins/session-board/hooks/views.tsx lines 173–176 · Pane
function Tag(els: Els, label: string, color: string) {
  const { Text } = els
  return <Text color={color} bold>{label}</Text>
}
plugins/session-board/hooks/views.tsx lines 158–165 · Pane
function ActionBar(els: Els, key: string, buttons: unknown[], indent = 0, top: number = SPACE.item) {
  const { Box } = els
  return (
    <Box key={key} flexDirection="row" flexWrap="wrap" columnGap={2} rowGap={SPACE.item} paddingLeft={indent} marginTop={top}>
      {buttons.filter(Boolean) as never}
    </Box>
  )
}
Licence text (MIT)
MIT License

Copyright (c) 2026 Ilia

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

runs programswrites filesdrives Claudetool calls

The design, read from code

Drawn from the mod's source at the commit read, not from a run: a list is drawn three times, a condition takes its first branch that draws in the desktop app, and a value only the run time knows is shown as a made-up sample (dotted underline) or left out. Colours and type are this site's.

What its code shows

Read from the source at commit c37d0d52be1a 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 readEvery module hooks/hooks.json names was read.plugins/session-board/hooks/register.tsx
ParsesEvery file parses as TypeScript or JavaScript.11 files parsed
All its code is in the modEvery import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod
ReadableNo 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 openNetwork 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 drawsThe 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, with its own branch for the desktop
Install lineWhether 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 WindowsWhether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).plugins/session-board/hooks/register.tsx:342 open (not on Windows); plugins/session-board/hooks/register.tsx:1264 mv (not on Windows)
NetworkWhether every fetch names its https host in the code.no network
ProgramsWhether every program it starts is named in the code and is not a shell, an interpreter or a network tool.plugins/session-board/hooks/register.tsx:355 a program named at run time
Reads and sendsWhether it both reads files or environment variables and reaches the network.reads files and reaches the network
Keys in the sourceWhether the source holds what looks like an API key or a private key.no keys in the source
LicenceAn 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 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 oshnilia/claude-plugins
/plugin install session-board@oshn

This installs the marketplace's latest commit, which may not be the one read here (c37d0d52be1a). Compare them before you install.

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 "oshnilia-session-board" with its code and make me a pane like it

Search them from Claude: the MCP connector

Similar designs