Ranking|Claude Code Mods

ModsCode / Claude Code Mods / Ranking / links-bar

links-bar

A links bar above the prompt in Claude Desktop's Code tab: up to 4 pinned links per project or session with favicons, the session's 10 latest links, and a pane of every pinned link. Reads the session transcript; asks a link's own site for …

Code you can checkTerminal + desktopPaneBandToastBoxButtonClientInputSvgText
network, draws

What it does

  • Draws a band above the prompt, a pane, toasts
  • Hooks prompt.submit, session.start, turn.complete, ui.close and 2 more
  • Keeps its own state between turns
  • Calls the network
  • Starts processes

Good points

  • Written in TypeScript
  • Has a desktop-specific branch
  • Handles errors
  • Speaks more than one language

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)

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

// Drawn like links-bar by tripolskiydigital (pane, band, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/tripolskiydigital-links-bar/
// 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, Button, Svg, Text } = $.ui.resolve(e)
    const t = '…'
    const shown = '…'
    const faviconSvg = '…'
    const host = '…'
    const name = '…'
    const shortUrl = '…'
    const name2 = '…'
    const shortUrl2 = '…'
    const name3 = '…'
    const shortUrl3 = '…'
    const labelOf = '…'
    const total = '…'
    return (
      <Box flexDirection="column" rowGap={1}>
        <Box flexDirection="column" rowGap={1}>
          <Box flexDirection="row" alignItems="center" justifyContent="space-between" columnGap={1}>
            <Box flexDirection="row" alignItems="center" columnGap={1} flexShrink={1}>
              <Box flexDirection="row" alignItems="center" columnGap={1} flexShrink={0}>
                <Button label={`${t}`} />
                <Button label={`${t}`} />
                <Button label={`${t}`} />
              </Box>
              <Box flexShrink={0}>
                <Button label="+" />
              </Box>
              <Box position="relative" flexShrink={0}>
                <Button label={`   ${shown}`} plain />
                <Box position="absolute" top={0} left={1}>
                  <Svg source={`${faviconSvg}`} alt={`${host}`} width={20} height={20} />
                </Box>
                <Box position="absolute" bottom={2} left={0} display="none" flexDirection="column" paddingX={1} borderStyle="round" borderColor="inactive" backgroundColor="userMessageBackground">
                  <Text>
                    {name}
                  </Text>
                  <Text dimColor wrap="truncate">
                    {shortUrl}
                  </Text>
                </Box>
              </Box>
              <Box position="relative" flexShrink={0}>
                <Button label={`   ${shown}`} plain />
                <Box position="absolute" top={0} left={1}>
                  <Svg source={`${faviconSvg}`} alt={`${host}`} width={20} height={20} />
                </Box>
                <Box position="absolute" bottom={2} left={0} display="none" flexDirection="column" paddingX={1} borderStyle="round" borderColor="inactive" backgroundColor="userMessageBackground">
                  <Text>
                    {name2}
                  </Text>
                  <Text dimColor wrap="truncate">
                    {shortUrl2}
                  </Text>
                </Box>
              </Box>
              <Box position="relative" flexShrink={0}>
                <Button label={`   ${shown}`} plain />
                <Box position="absolute" top={0} left={1}>
                  <Svg source={`${faviconSvg}`} alt={`${host}`} width={20} height={20} />
                </Box>
                <Box position="absolute" bottom={2} left={0} display="none" flexDirection="column" paddingX={1} borderStyle="round" borderColor="inactive" backgroundColor="userMessageBackground">
                  <Text>
                    {name3}
                  </Text>
                  <Text dimColor wrap="truncate">
                    {shortUrl3}
                  </Text>
                </Box>
              </Box>
            </Box>
            <Box flexDirection="row" alignItems="center" columnGap={1} flexShrink={0}>
              <Box position="relative" flexShrink={0}>
                <Button label="Recent" />
                <Box position="absolute" bottom={2} display="none" flexDirection="column" paddingX={1} borderStyle="round" borderColor="inactive" backgroundColor="userMessageBackground">
                  <Box flexDirection="row" alignItems="center" columnGap={2}>
                    <Box flexShrink={0} overflow="hidden">
                      <Text dimColor wrap="truncate">
                        Recent links
                      </Text>
                    </Box>
                    <Box flexDirection="row" alignItems="center" flexShrink={0}>
                      <Box justifyContent="center" />
                      <Box justifyContent="center" />
                      <Box width={3} justifyContent="center" />
                    </Box>
                  </Box>
                  <Text dimColor>
                    No links in this session yet.
                  </Text>
                  <Box flexDirection="row" alignItems="center" columnGap={2}>
                    <Box flexShrink={0} flexDirection="row" alignItems="center" columnGap={1} overflow="hidden">
                      <Svg source={`${faviconSvg}`} alt={`${host}`} width={20} height={20} />
                      <Button label={`${labelOf}`} plain />
                    </Box>
                    <Box flexDirection="row" alignItems="center" flexShrink={0}>
                      <Box justifyContent="center" />
                      <Box justifyContent="center" />
                      <Box width={3} justifyContent="center" />
                    </Box>
                  </Box>
                  <Box flexDirection="row" alignItems="center" columnGap={2}>
                    <Box flexShrink={0} flexDirection="row" alignItems="center" columnGap={1} overflow="hidden">
                      <Svg source={`${faviconSvg}`} alt={`${host}`} width={20} height={20} />
                      <Button label={`${labelOf}`} plain />
                    </Box>
                    <Box flexDirection="row" alignItems="center" flexShrink={0}>
                      <Box justifyContent="center" />
                      <Box justifyContent="center" />
                      <Box width={3} justifyContent="center" />
                    </Box>
                  </Box>
                  <Box flexDirection="row" alignItems="center" columnGap={2}>
                    <Box flexShrink={0} flexDirection="row" alignItems="center" columnGap={1} overflow="hidden">
                      <Svg source={`${faviconSvg}`} alt={`${host}`} width={20} height={20} />
                      <Button label={`${labelOf}`} plain />
                    </Box>
                    <Box flexDirection="row" alignItems="center" flexShrink={0}>
                      <Box justifyContent="center" />
                      <Box justifyContent="center" />
                      <Box width={3} justifyContent="center" />
                    </Box>
                  </Box>
                </Box>
              </Box>
              <Button label={`All · ${total}`} />
            </Box>
          </Box>
          <Box flexDirection="row" alignItems="center" columnGap={1}>
            <Box flexGrow={1} flexShrink={1} width={0} minWidth={0} />
            <Box flexGrow={1} flexShrink={1} width={0} minWidth={0} />
            <Box flexDirection="row" alignItems="center" columnGap={1} flexShrink={0}>
              <Button label={`${t}`} />
              <Button label={`${t}`} />
              <Button label={`${t}`} />
            </Box>
            <Box flexDirection="row" alignItems="center" justifyContent="flex-end" columnGap={1} flexShrink={0}>
              <Button label="Cancel" />
              <Button label="Save" variant="primary" />
            </Box>
          </Box>
        </Box>
        {await next(e)}
      </Box>
    )
  })

  // the pane: open it with $.ui.open({ id: 'my-pane', title: "All links" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Client, Text, Button } = $.ui.resolve(e)
    const title = '…'
    const length = '…'
    const label = '…'
    return (
      <Box flexDirection="column" rowGap={1}>
        <Client module="./text-field.tsx" />
        <Box flexDirection="column" rowGap={1}>
          <Box flexDirection="row" alignItems="center" justifyContent="space-between" columnGap={1}>
            <Text bold wrap="truncate-end">
              {`${title} (${length})`}
            </Text>
            <Box flexDirection="row" alignItems="center" columnGap={1} flexShrink={0}>
              <Button label={`${label} ↑`} />
              <Button label={`${label} ↑`} />
            </Box>
          </Box>
          <Text dimColor>
            Nothing pinned.
          </Text>
          <Text dimColor />
        </Box>
      </Box>
    )
  })

  on('session.start', async ($, e, next) => {
    const error = '…'
    await $.ui.toast(`Could not open the link: ${error}`)
    await $.ui.toast(`Already pinned to the project`)
    return next(e)
  })
}

The mod's own code

Shown under the mod's licence (Apache-2.0); its text is below. Keep the notice if you copy these lines.

hooks/register.tsx lines 719–878 · Band
  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
    // The band is one site: what the plugins beneath draw (project tabs, say)
    // stays, and the links row goes under it.
    const below = await next(e)
    if (e.props.hasSurvey) return below
    // A fault in the links row costs the row alone: what the plugins beneath
    // drew (the tabs) is drawn as it is.
    try {

      const [rec, pLinks, sLinks, sc, sec, d, icons, l, isPaneOpen, dragged, typing] = await Promise.all([
        read($, recent),
        read($, projectLinks),
        read($, sessionLinks),
        read($, scope),
        read($, section),
        read($, draft),
        read($, favicons),
        read($, lang),
        read($, paneOpen),
        read($, drag),
        read($, activeField),
      ])
      const k = kitOf($.ui.resolve(e), e.surface, icons)
      const { Box, Text, Button } = k
      // The add form's parts that need `$`, made here: the fields and the buttons' actions.
      // Made only while the form is open: a surface module made and not drawn
    // left the whole band undrawn, the tabs too.
    const formTitle = sec === 'add' ? textField($, e, 'draft-title', fieldProps(l, d, 'draft-title', typing), '100%') : null
      const formUrl = sec === 'add' ? textField($, e, 'draft-url', fieldProps(l, d, 'draft-url', typing), '100%') : null
      const formActions: FormActions = {
        scope: s => void update($, draft, now => ({ ...now, scope: s })),
        cancel: () => void closeDraft($),
        save: () => void submitDraft($, {}),
      }
      const budget = labelBudget(e.props.bodyColumns, Math.min(BAR_LINKS, (sc === 'project' ? pLinks : sLinks).length))

      const links = sc === 'project' ? pLinks : sLinks
      const onBar = links.slice(0, BAR_LINKS)
      const total = pLinks.length + sLinks.length

      const scopeSwitch = (
        <Box flexDirection="row" alignItems="center" columnGap={1} flexShrink={0}>
          {/* The chosen scope is the desktop's own (rounded) button; the other one is
              plain and dim. A Box fill behind a button draws square corners. */}
          {(['project', 'session'] as const).map(s =>
            s === sc ? (
              <Button key={`scope-${s}`} label={t(l, s)} onPress={() => void setScope($, s)} />
            ) : (
              <Button key={`scope-${s}`} label={t(l, s)} plain dimColor onPress={() => void setScope($, s)} />
            ),
          )}
        </Box>
      )

      const chips =
        onBar.length === 0 ? (
          <Text dimColor wrap="truncate">
            {t(l, sc === 'project' ? 'emptyProject' : 'emptySession')}
          </Text>
        ) : (
          onBar.map((link, i) => {
            const name = labelOf(link)
            const shown = truncate(name, budget)
            // The chip is the desktop's own button, so it lights rounded and as
            // tall as «Recent» and «All». The favicon lies over the button's left
            // end, room kept for it by figure spaces (plain ones would collapse).
            const host = hostOf(link.url)
            return (
              <Box key={`chip-${i}`} position="relative" flexShrink={0}>
                <Button
                  key={`open-${i}`}
                  label={k.Svg !== undefined ? `${ICON_ROOM}${shown}` : shown}
                  plain
                  onPress={() => void openUrl($, link.url)}
                />
                {k.Svg !== undefined && (
                  <Box position="absolute" top={0} left={1}>
                    <k.Svg
                      source={faviconSvg(icons[host], host, BUTTON_HEIGHT)}
                      alt={host}
                      width={ICON_BOX}
                      height={BUTTON_HEIGHT}
                    />
                  </Box>
                )}
                {/* The full name and the URL, over the chip under the pointer. */}
                <Box
                  position="absolute"
                  bottom={2}
                  left={0}
                  display="none"
                  hover={{ display: 'flex' }}
                  flexDirection="column"
                  minWidth={Math.min(64, Math.max([...name].length, shortUrl(link.url).length) + 4)}
                  paddingX={1}
                  borderStyle="round"
                  borderColor="inactive"
                  backgroundColor="userMessageBackground"
                >
                  <Text>{name}</Text>
                  <Text dimColor wrap="truncate">
                    {shortUrl(link.url)}
                  </Text>
                </Box>
              </Box>
            )
          })
        )

      // «Recent» as a tab's recent sessions in the tabs mod: hovering the button
      // shows the list above it, sized to its rows; the pointer may move into it.
      const recentWidth = Math.max(16, Math.min(40, Math.floor(e.props.bodyColumns / 3)))
      // Two columns, «Project» and «Session», named once in the header: 📌 pins the
      // link there, ✓ says it is pinned there and unpins it; ✎ renames a pinned one.
      // Every row is as wide as the header: the name has a column of its own, so the
      // marks stand under their titles whatever the name's length.
      const columnWidth = Math.max([...t(l, 'project')].length, [...t(l, 'session')].length) + 3
      // The window's width is set, not left to its rows, and it fits the band: its
      // right edge at the button's, it opens leftward over the bar.
      const columnsWidth = 2 * columnWidth + 3
      const popupChrome = 2 + 2 + 2
      const nameWidth = Math.max(12, Math.min(recentWidth + 4, e.props.bodyColumns - 4 - columnsWidth - popupChrome))
      const popupWidth = nameWidth + columnsWidth + popupChrome
      const recentButtonWidth = [...t(l, 'recent')].length + 4
      const columns = (cells: [RenderChildren, RenderChildren, RenderChildren]) => (
        <Box flexDirection="row" alignItems="center" flexShrink={0}>
          <Box width={columnWidth} justifyContent="center">
            {cells[0]}
          </Box>
          <Box width={columnWidth} justifyContent="center">
            {cells[1]}
          </Box>
          <Box width={3} justifyContent="center">
            {cells[2]}
          </Box>
        </Box>
      )
      const recentList = (
        <Box
          position="absolute"
          bottom={2}
          left={recentButtonWidth - popupWidth}
          width={popupWidth}
          display="none"
          hover={{ display: 'flex' }}
          flexDirection="column"
          paddingX={1}
          borderStyle="round"
          borderColor="inactive"
          backgroundColor="userMessageBackground"
        >
          <Box flexDirection="row" alignItems="center" columnGap={2}>
            <Box width={nameWidth} flexShrink={0} overflow="hidden">
              <Text dimColor wrap="truncate">
                {t(l, 'recentTitle')}
              </Text>
            </Box>
            {rec.length > 0 &&
              columns([
                <Text dimColor>{t(l, 'project')}</Text>,
hooks/register.tsx lines 447–452 · Band
function linkIcon(k: Kit, url: string) {
  if (k.Svg === undefined) return null
  const { Svg } = k
  const host = hostOf(url)
  return <Svg source={faviconSvg(k.icons[host], host)} alt={host} width={ICON_BOX} height={ICON_BOX} />
}
hooks/register.tsx lines 592–647 · Band
function formLayout(
  k: Kit,
  l: Lang,
  d: Draft,
  title: RenderChildren,
  url: RenderChildren,
  act: FormActions,
  isNarrow = false,
) {
  const { Box, Button } = k
  // One height for both: the chosen scope is lit (primary, as «All» is), the
  // other dim; a new link starts on the bar's scope, «Project» by default.
  const scopes = (
    <Box flexDirection="row" alignItems="center" columnGap={1} flexShrink={0}>
      {(['project', 'session'] as const).map(s => (
        <Button
          key={`draft-${s}`}
          label={t(l, s)}
          {...(d.scope === s ? { variant: 'primary' as const } : { dimColor: true })}
          onPress={() => act.scope(s)}
        />
      ))}
    </Box>
  )
  const buttons = (
    <Box flexDirection="row" alignItems="center" justifyContent="flex-end" columnGap={1} flexShrink={0}>
      <Button key="draft-cancel" label={t(l, 'cancel')} onPress={act.cancel} />
      <Button key="draft-save" label={t(l, 'saveEdit')} variant="primary" onPress={act.save} />
    </Box>
  )
  if (isNarrow) {
    return (
      <Box flexDirection="column" alignItems="stretch" rowGap={1}>
        {title}
        {url}
        <Box flexDirection="row" alignItems="center" justifyContent="space-between" columnGap={1} flexWrap="wrap">
          {scopes}
          {buttons}
        </Box>
      </Box>
    )
  }
  // Under the bar each field fills a Box that grows from no width: half each.
  return (
    <Box flexDirection="row" alignItems="center" columnGap={1}>
      <Box key="draft-title-box" flexGrow={1} flexShrink={1} width={0} minWidth={0}>
        {title}
      </Box>
      <Box key="draft-url-box" flexGrow={1} flexShrink={1} width={0} minWidth={0}>
        {url}
      </Box>
      {scopes}
      {buttons}
    </Box>
  )
}
hooks/register.tsx lines 983–1111 · Pane
  on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
    const [pLinks, sLinks, d, icons, l, query, dragged, typingIn, pressed] = await Promise.all([
      read($, projectLinks),
      read($, sessionLinks),
      read($, draft),
      read($, favicons),
      read($, lang),
      read($, search),
      read($, drag),
      read($, activeField),
      read($, sorts),
    ])
    const k = kitOf($.ui.resolve(e), e.surface, icons)
    const { Box, Text, Button, Input } = k
    // A field of the pane holds the keys only while the pane has the focus.
    const isTyping = e.props.isFocused ? typingIn : null
    // The edit form's parts that need `$`, made here: the fields and the buttons' actions.
    // Made only while a link is edited: a surface module made and not drawn
    // left the whole site undrawn.
    const paneTitle = d.edit !== null ? textField($, e, 'draft-title', fieldProps(l, d, 'draft-title', isTyping), '100%') : null
    const paneUrl = d.edit !== null ? textField($, e, 'draft-url', fieldProps(l, d, 'draft-url', isTyping), '100%') : null
    const paneActions: FormActions = {
      scope: s => void update($, draft, now => ({ ...now, scope: s })),
      cancel: () => void closeDraft($),
      save: () => void submitDraft($, {}),
    }
    // The name has its line to itself, the URL and the buttons the next one.
    const width = Math.max(16, e.props.bodyColumns - 14)
    const isSearching = query.trim() !== ''
    const groups: [Scope, PinnedLink[], string][] = [
      ['project', pLinks, t(l, 'project')],
      ['session', sLinks, t(l, 'sessionSection')],
    ]

    const sortButton = (s: Scope, list: PinnedLink[], by: SortBy) => {
      // Only the pressed sort lights, and only while the list stands in its order
      // (a drag undoes it); two lists may stand sorted both ways at once.
      const sort = pressed[s]
      const dir = sort !== null && sort.by === by && sortedAs(list, by) === sort.dir ? sort.dir : null
      const label = t(l, by === 'title' ? 'byTitle' : 'byUrl')
      // Both are the desktop's own button, so lighting one moves nothing: the
      // pressed sort is primary (lit as «All» is), the other dim. The arrow is
      // the order: ↓ A→Z, what a press gives first; ↑ Z→A.
      return (
        <Button
          key={`sort-${s}-${by}`}
          label={`${label} ${dir === 'desc' ? '↑' : '↓'}`}
          {...(dir === null ? { dimColor: true } : { variant: 'primary' as const })}
          onPress={() => void sortBy($, s, by)}
        />
      )
    }

    return (
      <Box flexDirection="column" rowGap={1}>
        {drawsModules(e) ? (
          textField($, e, 'search', { value: query, placeholder: t(l, 'search'), isActive: isTyping === 'search', icon: '🔍', rev: 0 }, '100%')
        ) : (
          Input !== undefined && (
            <Input
              key="search"
              placeholder={t(l, 'search')}
              value={query}
              onInput={value => void update($, search, () => value)}
              onSubmit={value => void update($, search, () => value)}
            />
          )
        )}
        {groups.map(([s, list, title]) => {
          const shown = list.map((link, i) => ({ link, i })).filter(({ link }) => matches(link, query))
          const paneDrag = dragged?.where === 'pane' && dragged.scope === s ? dragged : null
          // Dragging needs the whole list in its place: not while searching or editing.
          const canDrag = !isSearching && d.edit === null && list.length > 1
          return (
            <Box key={`group-${s}`} flexDirection="column" rowGap={1}>
              <Box flexDirection="row" alignItems="center" justifyContent="space-between" columnGap={1}>
                <Text bold wrap="truncate-end">{`${title} (${list.length})`}</Text>
                {list.length > 1 && (
                  <Box flexDirection="row" alignItems="center" columnGap={1} flexShrink={0}>
                    {sortButton(s, list, 'title')}
                    {sortButton(s, list, 'url')}
                  </Box>
                )}
              </Box>
              {list.length === 0 && <Text dimColor>{t(l, 'none')}</Text>}
              {list.length > 0 && shown.length === 0 && <Text dimColor>{t(l, 'noMatches')}</Text>}
              {shown.map(({ link, i }) => {
                const isEdited = d.edit?.scope === s && d.edit.index === i
                const row = linkRow(
                  $,
                  k,
                  `all-${s}-${i}`,
                  link,
                  width,
                  [
                    <Button key={`all-edit-${s}-${i}`} label="✎" plain onPress={() => void editPin($, s, i, link)} />,
                    <Button key={`all-unpin-${s}-${i}`} label="✕" plain onPress={() => void unpin($, s, i)} />,
                  ],
                  i >= BAR_LINKS,
                  // One cell wide, so the column centres it under the favicon.
                  canDrag ? dragHandle($, e, `drag-pane-${s}-${i}`, paneDrag?.from === i, 1) : null,
                  paneDrag !== null && paneDrag.to === i && paneDrag.from !== i,
                )
                return isEdited ? (
                  <Box key={`all-edit-box-${s}-${i}`} flexDirection="column" rowGap={1}>
                    {row}
                    <Box
                      flexDirection="column"
                      alignItems="stretch"
                      marginLeft={3}
                      marginBottom={1}
                      paddingX={1}
                      paddingY={1}
                      borderStyle="round"
                      borderColor="inactive"
                    >
                      {formLayout(k, l, d, paneTitle, paneUrl, paneActions, true)}
                    </Box>
                  </Box>
                ) : (
                  row
                )
              })}
            </Box>
          )
        })}
      </Box>
    )
  })
hooks/register.tsx lines 469–473 · Pane
function textField($: Engine, e: ResolveInput, key: string, props: FieldProps, width: string) {
  if (e.surface !== 'desktop' && e.surface !== 'terminal') return null
  const els = $.ui.resolve(e)
  return <els.Client key={key} width={width} module="./text-field.tsx" props={props} />
}
Licence text (Apache-2.0)
                                 Apache License
                           Version 2.0, January 2004
                        http://www.apache.org/licenses/

   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

   1. Definitions.

      "License" shall mean the terms and conditions for use, reproduction,
      and distribution as defined by Sections 1 through 9 of this document.

      "Licensor" shall mean the copyright owner or entity authorized by
      the copyright owner that is granting the License.

      "Legal Entity" shall mean the union of the acting entity and all
      other entities that control, are controlled by, or are under common
      control with that entity. For the purposes of this definition,
      "control" means (i) the power, direct or indirect, to cause the
      direction or management of such entity, whether by contract or
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
      outstanding shares, or (iii) beneficial ownership of such entity.

      "You" (or "Your") shall mean an individual or Legal Entity
      exercising permissions granted by this License.

      "Source" form shall mean the preferred form for making modifications,
      including but not limited to software source code, documentation
      source, and configuration files.

      "Object" form shall mean any form resulting from mechanical
      transformation or translation of a Source form, including but
      not limited to compiled object code, generated documentation,
      and conversions to other media types.

      "Work" shall mean the work of authorship, whether in Source or
      Object form, made available under the License, as indicated by a
      copyright notice that is included in or attached to the work
      (an example is provided in the Appendix below).

      "Derivative Works" shall mean any work, whether in Source or Object
      form, that is based on (or derived from) the Work and for which the
      editorial revisions, annotations, elaborations, or other modifications
      represent, as a whole, an original work of authorship. For the purposes
      of this License, Derivative Works shall not include works that remain
      separable from, or merely link (or bind by name) to the interfaces of,
      the Work and Derivative Works thereof.

      "Contribution" shall mean any work of authorship, including
      the original version of the Work and any modifications or additions
      to that Work or Derivative Works thereof, that is intentionally
      submitted to Licensor for inclusion in the Work by the copyright owner
      or by an individual or Legal Entity authorized to submit on behalf of
      the copyright owner. For the purposes of this definition, "submitted"
      means any form of electronic, verbal, or written communication sent
      to the Licensor or its representatives, including but not limited to
      communication on electronic mailing lists, source code control systems,
      and issue tracking systems that are managed by, or on behalf of, the
      Licensor for the purpose of discussing and improving the Work, but
      excluding communication that is conspicuously marked or otherwise
      designated in writing by the copyright owner as "Not a Contribution."

      "Contributor" shall mean Licensor and any individual or Legal Entity
      on behalf of whom a Contribution has been received by Licensor and
      subsequently incorporated within the Work.

   2. Grant of Copyright License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      copyright license to reproduce, prepare Derivative Works of,
      publicly display, publicly perform, sublicense, and distribute the
      Work and such Derivative Works in Source or Object form.

   3. Grant of Patent License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      (except as stated in this section) patent license to make, have made,
      use, offer to sell, sell, import, and otherwise transfer the Work,
      where such license applies only to those patent claims licensable
      by such Contributor that are necessarily infringed by their
      Contribution(s) alone or by combination of their Contribution(s)
      with the Work to which such Contribution(s) was submitted. If You
      institute patent litigation against any entity (including a
      cross-claim or counterclaim in a lawsuit) alleging that the Work
      or a Contribution incorporated within the Work constitutes direct
      or contributory patent infringement, then any patent licenses
      granted to You under this License for that Work shall terminate
      as of the date such litigation is filed.

   4. Redistribution. You may reproduce and distribute copies of the
      Work or Derivative Works thereof in any medium, with or without
      modifications, and in Source or Object form, provided that You
      meet the following conditions:

      (a) You must give any other recipients of the Work or
          Derivative Works a copy of this License; and

      (b) You must cause any modified files to carry prominent notices
          stating that You changed the files; and

      (c) You must retain, in the Source form of any Derivative Works
          that You distribute, all copyright, patent, trademark, and
          attribution notices from the Source form of the Work,
          excluding those notices that do not pertain to any part of
          the Derivative Works; and

      (d) If the Work includes a "NOTICE" text file as part of its
          distribution, then any Derivative Works that You distribute must
          include a readable copy of the attribution notices contained
          within such NOTICE file, excluding those notices that do not
          pertain to any part of the Derivative Works, in at least one
          of the following places: within a NOTICE text file distributed
          as part of the Derivative Works; within the Source form or
          documentation, if provided along with the Derivative Works; or,
          within a display generated by the Derivative Works, if and
          wherever such third-party notices normally appear. The contents
          of the NOTICE file are for informational purposes only and
          do not modify the License. You may add Your own attribution
          notices within Derivative Works that You distribute, alongside
          or as an addendum to the NOTICE text from the Work, provided
          that such additional attribution notices cannot be construed
          as modifying the License.

      You may add Your own copyright statement to Your modifications and
      may provide additional or different license terms and conditions
      for use, reproduction, or distribution of Your modifications, or
      for any such Derivative Works as a whole, provided Your use,
      reproduction, and distribution of the Work otherwise complies with
      the conditions stated in this License.

   5. Submission of Contributions. Unless You explicitly state otherwise,
      any Contribution intentionally submitted for inclusion in the Work
      by You to the Licensor shall be under the terms and conditions of
      this License, without any additional terms or conditions.
      Notwithstanding the above, nothing herein shall supersede or modify
      the terms of any separate license agreement you may have executed
      with Licensor regarding such Contributions.

   6. Trademarks. This License does not grant permission to use the trade
      names, trademarks, service marks, or product names of the Licensor,
      except as required for reasonable and customary use in describing the
      origin of the Work and reproducing the content of the NOTICE file.

   7. Disclaimer of Warranty. Unless required by applicable law or
      agreed to in writing, Licensor provides the Work (and each
      Contributor provides its Contributions) on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
      implied, including, without limitation, any warranties or conditions
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
      PARTICULAR PURPOSE. You are solely responsible for determining the
      appropriateness of using or redistributing the Work and assume any
      risks associated with Your exercise of permissions under this License.

   8. Limitation of Liability. In no event and under no legal theory,
      whether in tort (including negligence), contract, or otherwise,
      unless required by applicable law (such as deliberate and grossly
      negligent acts) or agreed to in writing, shall any Contributor be
      liable to You for damages, including any direct, indirect, special,
      incidental, or consequential damages of any character arising as a
      result of this License or out of the use or inability to use the
      Work (including but not limited to damages for loss of goodwill,
      work stoppage, computer failure or malfunction, or any and all
      other commercial damages or losses), even if such Contributor
      has been advised of the possibility of such damages.

   9. Accepting Warranty or Additional Liability. While redistributing
      the Work or Derivative Works thereof, You may choose to offer,
      and charge a fee for, acceptance of support, warranty, indemnity,
      or other liability obligations and/or rights consistent with this
      License. However, in accepting such obligations, You may act only
      on Your own behalf and on Your sole responsibility, not on behalf
      of any other Contributor, and only if You agree to indemnify,
      defend, and hold each Contributor harmless for any liability
      incurred by, or claims asserted against, such Contributor by reason
      of your accepting any such warranty or additional liability.

   END OF TERMS AND CONDITIONS

   APPENDIX: How to apply the Apache License to your work.

      To apply the Apache License to your work, attach the following
      boilerplate notice, with the fields enclosed by brackets "[]"
      replaced with your own identifying information. (Don't include
      the brackets!)  The text should be enclosed in the appropriate
      comment syntax for the file format. We also recommend that a
      file or class name and description of purpose be included on the
      same "printed page" as the copyright notice for easier
      identification within third-party archives.

   Copyright [yyyy] [name of copyright owner]

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

How to build this: Pane (panel), Rewrite the prompt

What its code calls

networkruns programsreads filesenv varsremembers

What its code shows

Read from the source at commit a0f54f9ba146 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 readEvery module hooks/hooks.json names was read.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, 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).hooks/register.tsx:112 grep (not on Windows); hooks/register.tsx:243 open (not on Windows); hooks/register.tsx:566 pbpaste (not on Windows)
NetworkWhether every fetch names its https host in the code.hooks/register.tsx:148 fetch(url); hooks/register.tsx:163 fetch(source)
ProgramsWhether every program it starts is named in the code and is not a shell, an interpreter or a network tool.hooks/register.tsx:180 curl (reaches the network)
Reads and sendsWhether 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 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.Apache-2.0
Settings hooksHooks 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 shipsMCP 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, agentsWhat 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 MCPWhether 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 modelCompletions it runs ($.model.complete, fork, classify), subagents it spawns, prompts it submits as you, and the tools, commands and agents it adds.asks nothing of the model
Events it hooksBy 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 · reads: ui.message · also: session.start, turn.complete, ui.focus, ui.close (+1) · timers: clock.every, clock.after
Reads, by nameThe environment variables and files it names, and whether it reads the transcript, settings.json, the prompt box or the mouse selection.env: HOME, TMPDIR; files: a path computed at run time; the transcript
Writes, by nameThe 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 clipboard

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 tripolskiydigital/claude-links
/plugin install links-bar@claude-links
/reload-plugins

This installs the marketplace's latest commit, which may not be the one read here (a0f54f9ba146). 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/tripolskiydigital/claude-links
git -C claude-links checkout a0f54f9ba146f3ebb47e3fa4ebb173849b54f812
claude plugin validate claude-links
claude --plugin-dir claude-links

The 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 "tripolskiydigital-links-bar" with its code and make me one like it

Search them from Claude: the MCP connector

Similar mods

More by tripolskiydigital

Badge for your README

If this is your mod, paste this into your README. It links to this page.

README.md
[![ModsCode](https://modscode.com/badge/tripolskiydigital-links-bar.svg)](https://modscode.com/claude-mods/mods/tripolskiydigital-links-bar/)