modscode JA

modscode / Gallery / breadcrumbs

breadcrumbs

An always-on pane with what this session is about: the task, your last prompt, what Claude is doing and last said, and the explanations it wrote, saved as notes you can preview.

Code you can checkTerminal + desktopPaneStatus lineToastBoxButtonInputMarkdownText

What it does

  • Draws a pane, the status line, toasts
  • Adds /whereami, /tests
  • Watches tool calls and can refuse them
  • Hooks agent.spawn, classic.SessionStart, prompt.compose, prompt.submit and 2 more
  • Keeps its own state between turns

Good points

  • No network calls
  • Written in TypeScript
  • 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 breadcrumbs by crockalet (pane, status, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/crockalet-breadcrumbs/
// 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: "tests" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text, Button, Input, Markdown } = $.ui.resolve(e)
    const repo = '…'
    const branch = '…'
    const title = '…'
    const map = '…'
    const asking = '…'
    const question = '…'
    const context = '…'
    const option = '…'
    const optionNotes = '…'
    const optionNotes2 = '…'
    const optionNotes3 = '…'
    const value = '…'
    const question2 = '…'
    const context2 = '…'
    const optionNotes4 = '…'
    const optionNotes5 = '…'
    const optionNotes6 = '…'
    const question3 = '…'
    const context3 = '…'
    const optionNotes7 = '…'
    const optionNotes8 = '…'
    const optionNotes9 = '…'
    const answeredCount = '…'
    const ago = '…'
    const text = '…'
    const ago2 = '…'
    const text2 = '…'
    const ago3 = '…'
    const text3 = '…'
    const ago4 = '…'
    const text4 = '…'
    const activity = '…'
    const head = '…'
    const length = '…'
    const text5 = '…'
    const text6 = '…'
    const text7 = '…'
    const name = '…'
    const state = '…'
    const name2 = '…'
    const branch2 = '…'
    const state2 = '…'
    const name3 = '…'
    const branch3 = '…'
    const state3 = '…'
    const f = '…'
    const f2 = '…'
    const f3 = '…'
    const length2 = '…'
    const ago5 = '…'
    const ago6 = '…'
    const ago7 = '…'
    const narrowTables = '…'
    const length3 = '…'
    const length4 = '…'
    const deadEnds = '…'
    const d = '…'
    const d2 = '…'
    const d3 = '…'
    const text8 = '…'
    const text9 = '…'
    const text10 = '…'
    return (
      <Box flexDirection="column" gap={1}>
        <Text dimColor wrap="truncate-end">
          {`${repo} · ${branch}`}
        </Text>
        <Box flexDirection="column">
          <Box>
            <Text color="claude">
              {"● "}
            </Text>
            <Text>
              {title}
            </Text>
          </Box>
          <Text dimColor wrap="truncate-end">
            {"  ⎿ before: "}
            {map}
          </Text>
        </Box>
        <Box flexDirection="column">
          <Text color="warning">
            Needs you
          </Text>
          <Box flexDirection="column">
            <Box>
              <Text color="warning">
                {"● "}
              </Text>
              <Text bold>
                {asking}
              </Text>
            </Box>
            <Text dimColor>
              {"  answer in the dialog below"}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Box>
              <Text color="warning">
                {"▾ "}
              </Text>
              <Text>
                {question}
              </Text>
            </Box>
            <Box marginLeft={2}>
              <Text dimColor>
                {context}
              </Text>
            </Box>
            <Box marginLeft={2} flexDirection="column">
              <Box flexDirection="column">
                <Button label={`✓ ${option}`} variant="primary" />
                <Box marginLeft={2}>
                  <Text dimColor>
                    {optionNotes}
                  </Text>
                </Box>
              </Box>
              <Box flexDirection="column">
                <Button label={`✓ ${option}`} variant="primary" />
                <Box marginLeft={2}>
                  <Text dimColor>
                    {optionNotes2}
                  </Text>
                </Box>
              </Box>
              <Box flexDirection="column">
                <Button label={`✓ ${option}`} variant="primary" />
                <Box marginLeft={2}>
                  <Text dimColor>
                    {optionNotes3}
                  </Text>
                </Box>
              </Box>
            </Box>
            <Box marginLeft={2}>
              <Input placeholder="or type an answer…" value="" submitLabel={`${value}`} />
            </Box>
            <Box marginLeft={2}>
              <Input placeholder="extra details (optional)…" value="" />
            </Box>
            <Box marginLeft={2} columnGap={2}>
              <Button plain dimColor label="less" />
              <Button plain dimColor label="reply…" />
              <Button plain dimColor label="dismiss" />
            </Box>
          </Box>
          <Box flexDirection="column">
            <Box>
              <Text color="warning">
                {"▾ "}
              </Text>
              <Text>
                {question2}
              </Text>
            </Box>
            <Box marginLeft={2}>
              <Text dimColor>
                {context2}
              </Text>
            </Box>
            <Box marginLeft={2} flexDirection="column">
              <Box flexDirection="column">
                <Button label={`✓ ${option}`} variant="primary" />
                <Box marginLeft={2}>
                  <Text dimColor>
                    {optionNotes4}
                  </Text>
                </Box>
              </Box>
              <Box flexDirection="column">
                <Button label={`✓ ${option}`} variant="primary" />
                <Box marginLeft={2}>
                  <Text dimColor>
                    {optionNotes5}
                  </Text>
                </Box>
              </Box>
              <Box flexDirection="column">
                <Button label={`✓ ${option}`} variant="primary" />
                <Box marginLeft={2}>
                  <Text dimColor>
                    {optionNotes6}
                  </Text>
                </Box>
              </Box>
            </Box>
            <Box marginLeft={2}>
              <Input placeholder="or type an answer…" value="" submitLabel={`${value}`} />
            </Box>
            <Box marginLeft={2}>
              <Input placeholder="extra details (optional)…" value="" />
            </Box>
            <Box marginLeft={2} columnGap={2}>
              <Button plain dimColor label="less" />
              <Button plain dimColor label="reply…" />
              <Button plain dimColor label="dismiss" />
            </Box>
          </Box>
          <Box flexDirection="column">
            <Box>
              <Text color="warning">
                {"▾ "}
              </Text>
              <Text>
                {question3}
              </Text>
            </Box>
            <Box marginLeft={2}>
              <Text dimColor>
                {context3}
              </Text>
            </Box>
            <Box marginLeft={2} flexDirection="column">
              <Box flexDirection="column">
                <Button label={`✓ ${option}`} variant="primary" />
                <Box marginLeft={2}>
                  <Text dimColor>
                    {optionNotes7}
                  </Text>
                </Box>
              </Box>
              <Box flexDirection="column">
                <Button label={`✓ ${option}`} variant="primary" />
                <Box marginLeft={2}>
                  <Text dimColor>
                    {optionNotes8}
                  </Text>
                </Box>
              </Box>
              <Box flexDirection="column">
                <Button label={`✓ ${option}`} variant="primary" />
                <Box marginLeft={2}>
                  <Text dimColor>
                    {optionNotes9}
                  </Text>
                </Box>
              </Box>
            </Box>
            <Box marginLeft={2}>
              <Input placeholder="or type an answer…" value="" submitLabel={`${value}`} />
            </Box>
            <Box marginLeft={2}>
              <Input placeholder="extra details (optional)…" value="" />
            </Box>
            <Box marginLeft={2} columnGap={2}>
              <Button plain dimColor label="less" />
              <Button plain dimColor label="reply…" />
              <Button plain dimColor label="dismiss" />
            </Box>
          </Box>
          <Box marginTop={1}>
            <Button variant="primary" label={`Send ${answeredCount} answers`} />
          </Box>
        </Box>
        <Box flexDirection="column">
          <Box justifyContent="space-between">
            <Text dimColor>
              {"You asked · "}
              {ago}
            </Text>
            <Button plain dimColor label="less" />
          </Box>
          <Text>
            {text}
          </Text>
          <Text dimColor wrap="truncate-end">
            {"  "}
            {ago2}
            {" · "}
            {text2}
          </Text>
          <Text dimColor wrap="truncate-end">
            {"  "}
            {ago3}
            {" · "}
            {text3}
          </Text>
          <Text dimColor wrap="truncate-end">
            {"  "}
            {ago4}
            {" · "}
            {text4}
          </Text>
        </Box>
        <Box flexDirection="column">
          <Text dimColor>
            Claude
            {` · ${ago}`}
          </Text>
          <Box>
            <Text color="claude">
              {"● "}
            </Text>
            <Text wrap="truncate-end">
              {activity}
            </Text>
          </Box>
          <Box>
            <Text dimColor>
              {"⎿ "}
            </Text>
            <Box flexShrink={1}>
              <Markdown dimColor text={`${head}`} />
            </Box>
          </Box>
        </Box>
        <Box flexDirection="column">
          <Box justifyContent="space-between">
            <Text dimColor>
              Done
              {` · ${length}`}
            </Text>
            <Button plain dimColor label="less" />
          </Box>
          <Box>
            <Text color="success">
              {"✓ "}
            </Text>
            <Text>
              {text5}
            </Text>
          </Box>
          <Box>
            <Text color="success">
              {"✓ "}
            </Text>
            <Text>
              {text6}
            </Text>
          </Box>
          <Box>
            <Text color="success">
              {"✓ "}
            </Text>
            <Text>
              {text7}
            </Text>
          </Box>
          <Text wrap="truncate-end">
            <Text dimColor>
              {"⎇ "}
            </Text>
            {name}
            {" · "}
            {branch}
            {" ·"}
            {" "}
            <Text color="success">
              {state}
            </Text>
          </Text>
          <Text wrap="truncate-end">
            <Text dimColor>
              {"⎇ "}
            </Text>
            {name2}
            {" · "}
            {branch2}
            {" ·"}
            {" "}
            <Text color="success">
              {state2}
            </Text>
          </Text>
          <Text wrap="truncate-end">
            <Text dimColor>
              {"⎇ "}
            </Text>
            {name3}
            {" · "}
            {branch3}
            {" ·"}
            {" "}
            <Text color="success">
              {state3}
            </Text>
          </Text>
          <Text dimColor>
            {length}
            {" file"}
            s
            {" edited"}
          </Text>
          <Text dimColor wrap="truncate-start">
            {"  "}
            {f}
          </Text>
          <Text dimColor wrap="truncate-start">
            {"  "}
            {f2}
          </Text>
          <Text dimColor wrap="truncate-start">
            {"  "}
            {f3}
          </Text>
        </Box>
        <Box flexDirection="column">
          <Text dimColor>
            {"Notes · "}
            {length2}
          </Text>
          <Box justifyContent="space-between">
            <Button plain label={`▾ ${title} ★`} />
            <Text dimColor>
              {ago5}
            </Text>
          </Box>
          <Box justifyContent="space-between">
            <Button plain label={`▾ ${title} ★`} />
            <Text dimColor>
              {ago6}
            </Text>
          </Box>
          <Box justifyContent="space-between">
            <Button plain label={`▾ ${title} ★`} />
            <Text dimColor>
              {ago7}
            </Text>
          </Box>
          <Box flexDirection="column" borderStyle="round" borderDimColor paddingX={1}>
            <Markdown text={`${narrowTables}`} />
            <Box gap={2}>
              <Button label="Pin" />
              <Button label="Close" />
            </Box>
          </Box>
        </Box>
        <Box flexDirection="column">
          <Box justifyContent="space-between">
            <Text dimColor>
              {length3}
              {" decided · "}
              {length4}
              {" tried"}
              {` · ${deadEnds} dead ends`}
            </Text>
            <Button plain dimColor label="less" />
          </Box>
          <Box flexDirection="column">
            <Box>
              <Text color="suggestion">
                {"· "}
              </Text>
              <Text>
                {d}
              </Text>
            </Box>
            <Box>
              <Text color="suggestion">
                {"· "}
              </Text>
              <Text>
                {d2}
              </Text>
            </Box>
            <Box>
              <Text color="suggestion">
                {"· "}
              </Text>
              <Text>
                {d3}
              </Text>
            </Box>
            <Box>
              <Text color="success">
                {"✓ "}
              </Text>
              <Text>
                {text8}
              </Text>
            </Box>
            <Box>
              <Text color="success">
                {"✓ "}
              </Text>
              <Text>
                {text9}
              </Text>
            </Box>
            <Box>
              <Text color="success">
                {"✓ "}
              </Text>
              <Text>
                {text10}
              </Text>
            </Box>
          </Box>
        </Box>
      </Box>
    )
  })

  on('session.start', async ($, e, next) => {
    const open = '…'
    const title = '…'
    await $.ui.status(`⏳ ${open} test steps waiting on you`)
    await $.ui.toast(`Pinned "${title}"`)
    await $.ui.toast(`Pick or type an answer first`)
    return next(e)
  })
}

The mod's own code

Its licence text was not found at the commit read, so only the places in the source are linked.

What its code calls

runs programswrites filesenv varsdrives Claudetool callsremembers

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 ba3e9bef4b0c 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/breadcrumbs/hooks/register.tsx
ParsesEvery file parses as TypeScript or JavaScript.5 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, the same in both
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/breadcrumbs/hooks/register.tsx:194 mkdir (not on Windows); plugins/breadcrumbs/hooks/register.tsx:195 mv (not on Windows); plugins/breadcrumbs/hooks/register.tsx:199 rm (not on Windows); plugins/breadcrumbs/hooks/register.tsx:203 rm (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.git (reaches the network), mkdir, mv, rm, sleep
Reads and sendsWhether it both reads files or environment variables and reaches the network.reads environment variables and 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.no licence

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 crockalet/claude-mods
/plugin install breadcrumbs@claude-mods

This installs the marketplace's latest commit, which may not be the one read here (ba3e9bef4b0c). 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 "crockalet-breadcrumbs" with its code and make me a pane like it

Search them from Claude: the MCP connector

Similar designs