Ranking|Claude Code Mods

ModsCode / Claude Code Mods / Ranking / glimt

glimt

A quiet side pane: what this session is doing now, its plan, its agents as a tree, and every other Claude Code session with theirs

Code you can checkTerminal + desktopPaneToastBoxButtonText
runs programs, drives Claude, draws

What it does

  • Draws a pane, toasts
  • Adds /glimt
  • Watches TaskCreate, TaskUpdate, TodoWrite, ExitPlanMode calls and can refuse them
  • Hooks agent.spawn, classic.PermissionRequest, classic.PostToolUse, classic.SessionStart and 12 more
  • Keeps its own state between turns

Good points

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

Code to start from

A starter ModsCode writes from the drawing it read, and the mod's own lines that draw, where there are any.

Starter (register.tsx)

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

// Drawn like glimt by Mark Medum Bundgaard (pane, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/mmedum-glimt/
// 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: "glimt" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text, Button } = $.ui.resolve(e)
    const count = '…'
    const mark = '…'
    const subject = '…'
    const text = '…'
    const text2 = '…'
    const text3 = '…'
    const mark2 = '…'
    const subject2 = '…'
    const text4 = '…'
    const text5 = '…'
    const text6 = '…'
    const mark3 = '…'
    const subject3 = '…'
    const text7 = '…'
    const text8 = '…'
    const text9 = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="column" marginTop={1} />
        <Box flexDirection="column" marginTop={1}>
          <Box flexDirection="column">
            <Box flexDirection="row">
              <Text bold>
                Plan
              </Text>
              <Text>
                {`  ${count}`}
              </Text>
            </Box>
            <Box>
              <Text>
                No task list in this session.
              </Text>
            </Box>
            <Box flexDirection="column">
              <Box flexDirection="row">
                <Text>
                  {"        "}
                </Text>
                <Button plain label="▾" />
                <Text>
                  {" "}
                  <Text>
                    {mark}
                  </Text>
                  {" "}
                  <Text>
                    {subject}
                  </Text>
                </Text>
              </Box>
              <Box flexDirection="column">
                <Text>
                  {text}
                </Text>
                <Text>
                  {text2}
                </Text>
                <Text>
                  {text3}
                </Text>
              </Box>
            </Box>
            <Box flexDirection="column">
              <Box flexDirection="row">
                <Text>
                  {"        "}
                </Text>
                <Button plain label="▾" />
                <Text>
                  {" "}
                  <Text>
                    {mark2}
                  </Text>
                  {" "}
                  <Text>
                    {subject2}
                  </Text>
                </Text>
              </Box>
              <Box flexDirection="column">
                <Text>
                  {text4}
                </Text>
                <Text>
                  {text5}
                </Text>
                <Text>
                  {text6}
                </Text>
              </Box>
            </Box>
            <Box flexDirection="column">
              <Box flexDirection="row">
                <Text>
                  {"        "}
                </Text>
                <Button plain label="▾" />
                <Text>
                  {" "}
                  <Text>
                    {mark3}
                  </Text>
                  {" "}
                  <Text>
                    {subject3}
                  </Text>
                </Text>
              </Box>
              <Box flexDirection="column">
                <Text>
                  {text7}
                </Text>
                <Text>
                  {text8}
                </Text>
                <Text>
                  {text9}
                </Text>
              </Box>
            </Box>
          </Box>
        </Box>
        <Box flexDirection="column" marginTop={1} />
        <Box flexGrow={1} />
        <Box flexDirection="column" marginTop={1} />
        <Box flexDirection="column" marginTop={1} />
      </Box>
    )
  })

  on('session.start', async ($, e, next) => {
    const name = '…'
    await $.ui.toast(`Asked the session to take the name ${name}`)
    await $.ui.toast(`The agent did not start`)
    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 517–676 · Pane
  on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
    const ui = $.ui.resolve(e)
    const { Box, Text } = ui
    const request = await read($, focus)
    const approved = await read($, plan)
    const list = await read($, steps)
    const team = await read($, agents)
    const open = await read($, expanded)
    // Esc hands the keyboard back to the prompt and raises nothing else:
    // drawn without the keyboard, a form shows no more, and the clock's next
    // frame closes it (a drawing may not write); drawn with the keyboard
    // again before that frame, it stays. Only the terminal holds the
    // keyboard: another surface drawing the pane says nothing about it.
    if (e.surface === 'terminal') {
      if (e.props.isFocused) {
        runtime.hasLostKeyboard = false
      } else if (runtime.isFocused) {
        runtime.hasLostKeyboard = true
      }
      runtime.isFocused = e.props.isFocused
    }
    const form = e.props.isFocused ? await read($, composer) : null
    // The rows hold the keyboard while the pane does and no form of glimt's
    // is open; the cursor's row, the keys and h follow it. Claude Code can't
    // say reliably where its focus ring is, so typing in the message field
    // inside an agent or a session leaves the row inverse, as before 0.6.2.
    const holdsRows = e.props.isFocused && form === null
    const view: View = {
      ui,
      Input: 'Input' in ui ? ui.Input : undefined,
      columns: Math.max(12, e.props.bodyColumns),
      at: await read($, now),
      isTurnRunning: isTurnRunning(request),
      cursor: await read($, cursor),
      isFocused: holdsRows,
      toggle: key => void toggle($, key),
      colors,
    }

    // This session at the top; the other sessions on the machine, and what
    // their glimts share, at the bottom.
    const listed = named(await read($, sessions), await read($, titles))
    const selfId = await read($, self)
    const others = listed === null ? null : sortSessions(listed.filter(s => s.sessionId !== selfId))
    const sharedBy = await read($, shared)
    const pointed = others?.find(s => view.cursor === `toggle-session-${s.sessionId}`)
    const pointedAgent = team.find(a => view.cursor === `toggle-agent-${a.id}`)
    const isOnSelf = view.cursor === 'toggle-self'
    const renameTarget = isOnSelf ? selfId : pointed !== undefined && sharedBy[pointed.sessionId] !== undefined ? pointed.sessionId : null
    const keys = holdsRows
      ? keySection(
          view,
          {
            canInto: /^toggle-(agent|session|remote)-/.test(view.cursor ?? ''),
            canClear: isOnSelf,
            canRename: renameTarget !== null,
            canReach: pointed !== undefined && isReachable(pointed),
            canStop: pointedAgent !== undefined && isStoppable(pointedAgent),
          },
          {
            into: () => void goInto($),
            spawn: () => void openComposer($, { kind: 'spawn', where: 'here' }),
            help: () => void update($, help, () => true),
            rename: () => void (renameTarget === null ? undefined : openComposer($, { kind: 'rename', sessionId: renameTarget })),
            clear: () => void update($, clearing, () => true),
            attach: () => void attachSession($),
            stop: () => void askStop($),
          },
        )
      : undefined

    const folders = sharedFolders(listed ?? [])
    const selfSession = listed?.find(s => s.sessionId === selfId)
    const header = selfSection(view, {
      session: selfSession,
      isOpen: open.includes('self'),
      isClearing: await read($, clearing),
      answer: isYes => void answerClear($, isYes),
      mode: await read($, mode),
      limits: await read($, limits),
      isSameFolder: selfSession !== undefined && folders.has(selfSession.cwd),
      engine: await read($, engine),
    })
    const formRows = form === null ? 0 : FORM_ROWS
    const formNode =
      form === null
        ? undefined
        : composerSection(view, form, listed ?? [], {
            spawn: (task, where) => void spawnAgent($, task, where),
            rename: (sessionId, name) => void renameSession($, sessionId, name),
            cancel: () => void update($, composer, () => null),
          })

    // The sections stack from the top, each in a place that never moves: this
    // session, any open form, what is in progress, the plan, the agents, the
    // other sessions, and the keys while the pane holds the keyboard. Docked,
    // the pane's height is a budget: the agents and the sessions take up to
    // their shares and the plan, the longest list, gets what is left and
    // folds to fit. Inline, nothing is cut.
    const rows = e.props.placement === 'dock' ? e.props.scroll.bodyRows : undefined

    // i: the key list takes the pane until i again, or a key it lists.
    if (await read($, help)) {
      runtime.toggles = []
      const leave = async (then: () => Promise<unknown>) => {
        await update($, help, () => false)
        await then()
      }
      return (
        <Box flexDirection="column" width={view.columns}>
          {helpSection(view, {
            spawn: () => void leave(() => openComposer($, { kind: 'spawn', where: 'here' })),
            session: () => void leave(() => openComposer($, { kind: 'spawn', where: 'session' })),
            // glimt's own close passes no ui.close hook of its own; refused,
            // the pane stays as it was, the key list too.
            close: () =>
              void $.ui.close({ id: PANE }).then(
                () => forgetPane($),
                () => undefined,
              ),
            back: () => void update($, help, () => false),
          })}
        </Box>
      )
    }

    // Gone into an agent or a session, it takes the pane: the arrows walk a
    // session's agents, and h steps back out to where it was.
    const into = (await read($, opened)).at(-1)
    const remoteBy = await read($, remote)
    const tasks = await read($, remoteTasks)
    if (into !== undefined) {
      const sessionId = into.kind === 'agent' ? undefined : into.sessionId
      // h goes back to the session the pane went into first, else to the overview.
      const below = (await read($, opened)).at(-2)
      const parent = below?.kind === 'session' ? listed?.find(s => s.sessionId === below.sessionId) : undefined
      const drill = drillSection(view, {
        into,
        backTo: below === undefined ? 'Overview' : (parent?.name ?? 'back'),
        agent: into.kind === 'agent' ? team.find(a => a.id === into.id) : undefined,
        session: sessionId === undefined ? undefined : listed?.find(s => s.sessionId === sessionId),
        phase: into.kind === 'session' ? (await read($, phases))[into.sessionId] : undefined,
        mode: sessionId === undefined ? undefined : sharedBy[sessionId]?.mode,
        remoteAgent: into.kind === 'remote' ? remoteBy[into.sessionId]?.agents.find(a => a.id === into.agentId) : undefined,
        remote: sessionId === undefined ? undefined : remoteBy[sessionId],
        shared: sessionId === undefined ? [] : (sharedBy[sessionId]?.agents ?? []),
        isSharing: sessionId !== undefined && sharedBy[sessionId] !== undefined,
        tasks,
        open,
        feed: await read($, feed),
        asked: await read($, stopping),
        isFocused: holdsRows,
        room: rows === undefined ? undefined : rows - formRows,
        act: {
          back: () => void goBack($),
          into: () => void goInto($),
          message: () => void $.ui.focus({ requestId: PANE, key: 'message-field' }).catch(() => undefined),
          send: (to, name, text) => void sendFromField($, to, name, text),
          rename: () => void (into.kind === 'session' ? openComposer($, { kind: 'rename', sessionId: into.sessionId }) : undefined),
          attach: () => void attachSession($),
hooks/keys.tsx lines 73–96 · Pane
export function helpSection(view: View, act: HelpActions) {
  const { Box, Button, Text } = view.ui
  const line = (keys: string, what: string) => (
    <Text>
      <Text color="claude">{keys}</Text>
      {fit(`: ${what}`, view.columns - cells(keys))}
    </Text>
  )

  return (
    <Box key="help" flexDirection="column">
      <Text color={view.colors.quiet}>{fit('glimt · github.com/mmedum/glimt', view.columns)}</Text>
      <Box key="help-keys" flexDirection="column" marginTop={1}>
        {KEY_LIST.map(([keys, what]) => line(keys, what))}
        <Button key="help-spawn" plain hotkey="n" label="new agent here" onPress={act.spawn} />
        <Button key="help-session" plain hotkey="s" label="new background session" onPress={act.session} />
        <Button key="help-close" plain hotkey="q" label="close the pane" onPress={act.close} />
      </Box>
      <Box key="keys" marginTop={1}>
        {keyButton(view, 'help', 'i', 'back', act.back)}
      </Box>
    </Box>
  )
}
hooks/view.tsx lines 108–110 · Pane
export function keyButton({ ui: { Button } }: View, name: string, hotkey: string, label: string, press: () => void) {
  return <Button key={`key-${name}`} plain dimColor hotkey={hotkey} label={label} onPress={press} />
}
hooks/plan.tsx lines 226–289 · Pane
export function planSection(view: View, approved: Plan | null, list: Step[], lines: PlanLine[], hasTaskList: boolean | null) {
  const { Box, Button, Text } = view.ui
  const { quiet } = view.colors
  const done = list.filter(step => step.status === 'completed').length

  return (
    <Box flexDirection="column">
      {heading(view, 'plan-heading', approved === null ? 'Plan' : `Plan · ${approved.title}`, list.length === 0 ? '' : `${done}/${list.length}`)}
      {list.length === 0 && (
        <Box key="no-steps">
          <Text color={quiet}>{hasTaskList === false ? 'No task list in this session.' : 'No steps yet.'}</Text>
        </Box>
      )}
      {lines.map(line => {
        if (line.kind === 'done') {
          return (
            <Box key="folded">
              <Text color={quiet}>
                {'  '}
                <Text color={STATUS_COLOR.completed}>{STEP_MARK.completed}</Text> {line.count} done
              </Text>
            </Box>
          )
        }
        if (line.kind === 'more') {
          return (
            <Box key="more">
              <Text color={quiet}>
                {'  '}
                <Text color={view.colors.mark}>{STEP_MARK.pending}</Text> {line.count} more
              </Text>
            </Box>
          )
        }

        const { step, detail, depth } = line
        const indent = ' '.repeat(depth * INDENT)
        const isOpen = detail.length > 0
        const { mark, color } = stepMark(view, step.status)
        const cursor = cursorStyle(view, `toggle-${step.id}`)

        return (
          <Box key={`step-${step.id}`} flexDirection="column">
            <Box flexDirection="row" {...cursor.row}>
              {indent !== '' && <Text>{indent}</Text>}
              <Button key={`toggle-${step.id}`} plain label={isOpen ? '▾' : '▸'} onPress={() => view.toggle(step.id)} />
              <Text {...(step.status === 'completed' ? { color: quiet } : {})} bold={step.status === 'in_progress'}>
                {' '}
                <Text color={color}>{mark}</Text> <Text {...cursor.name}>{fit(step.subject, view.columns - 4 - indent.length)}</Text>
              </Text>
            </Box>
            {isOpen && (
              <Box key={`detail-${step.id}`} flexDirection="column" paddingLeft={4 + indent.length}>
                {detail.map(text => (
                  <Text color={quiet}>{text}</Text>
                ))}
              </Box>
            )}
          </Box>
        )
      })}
    </Box>
  )
}
hooks/view.tsx lines 53–64 · Pane
export function heading({ ui: { Box, Text }, columns, colors }: View, key: string, label: string, count: string) {
  const shown = fit(label, count === '' ? columns : Math.max(1, columns - cells(count) - 2))

  return (
    <Box key={key} flexDirection="row">
      <Text bold {...(colors.heading === undefined ? {} : { color: colors.heading })}>
        {shown}
      </Text>
      {count !== '' && <Text color={colors.quiet}>{fit(`  ${count}`, columns - cells(shown))}</Text>}
    </Box>
  )
}
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), Deny a tool call

What its code calls

runs programsreads filesenv varsdrives Claudetool callsrememberscalls tools

What its code shows

Read from the source at commit d79edcf6381f 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.10 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).hooks/register.tsx:1031 tail (not on Windows); hooks/register.tsx:1128 head (not on Windows); hooks/register.tsx:1262 grep (not on Windows); hooks/register.tsx:1265 tail (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), tail, head, claude (reaches the network), grep
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, another session
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).tool.call: TaskList; tool.call: TaskGet; command.run: /rename; command.run: /clear; tool.call: TaskStop
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.adds command glimt, agent.spawn
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: command.run (glimt), prompt.submit, tool.call (TaskCreate, TaskUpdate, TodoWrite (+1)), classic.PermissionRequest, classic.UserPromptSubmit, classic.Stop · shapes: prompt.compose, turn.step · reads: classic.SessionStart, classic.PostToolUse · also: session.start, ui.close, ui.focus, ui.render (ToolUse, Pane) (+5) · timers: clock.every
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, CLAUDE_CONFIG_DIR; files: a path computed at run time, …/projects; 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; another session

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 mmedum/glimt
/plugin install glimt@glimt
/reload-plugins

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

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 "mmedum-glimt" with its code and make me one like it

Search them from Claude: the MCP connector

Similar mods

More by Mark Medum Bundgaard

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/mmedum-glimt.svg)](https://modscode.com/claude-mods/mods/mmedum-glimt/)