Ranking|Claude Code Mods

ModsCode / Claude Code Mods / Ranking / repo-radar

repo-radar

A live map of your codebase that lights up where Claude is working: reads glow cyan, edits amber, errors red, each subagent in its own colour.

Code you can checkTerminal + desktopPaneBoxText
runs programs, draws

What it does

  • Draws a pane
  • Adds /radar
  • Watches tool calls
  • Hooks agent.spawn, session.start, turn.complete, turn.start
  • Starts processes

Good points

  • No network calls
  • Written in TypeScript
  • Has a desktop-specific branch
  • Writes no files

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 repo-radar by lakmadev (pane), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/lakmadev-repo-radar/
// 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: "Repo Radar" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text } = $.ui.resolve(e)
    const fileCount = '…'
    const size = '…'
    const edits = '…'
    const size2 = '…'
    const name = '…'
    const reads = '…'
    const edits2 = '…'
    const last = '…'
    const name2 = '…'
    const reads2 = '…'
    const edits3 = '…'
    const last2 = '…'
    const name3 = '…'
    const reads3 = '…'
    const edits4 = '…'
    const last3 = '…'
    const size3 = '…'
    const zone = '…'
    const reads4 = '…'
    const edits5 = '…'
    const fails = '…'
    const zone2 = '…'
    const reads5 = '…'
    const edits6 = '…'
    const fails2 = '…'
    const zone3 = '…'
    const reads6 = '…'
    const edits7 = '…'
    const fails3 = '…'
    const clock = '…'
    const VERB = '…'
    const path = '…'
    const agentName = '…'
    const clock2 = '…'
    const VERB2 = '…'
    const path2 = '…'
    const agentName2 = '…'
    const clock3 = '…'
    const VERB3 = '…'
    const path3 = '…'
    const agentName3 = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="column" borderStyle="round" paddingX={1}>
          <Box justifyContent="space-between">
            <Text bold>
              ◉ REPO RADAR
            </Text>
          </Box>
          <Box flexDirection="column">
            <Text wrap="truncate">
              <Text bold />
              <Text color="inactive">
                {" · "}
              </Text>
              <Text color="inactive">
                {" · "}
                {fileCount}
                {" files"}
              </Text>
            </Text>
            <Text wrap="truncate">
              <Text color="inactive">
                {"touched "}
              </Text>
              <Text color="claude">
                ▰▰▰▰▰▰▰▰▱▱▱▱▱▱▱▱
                {" "}
              </Text>
              <Text bold>
                {size}
              </Text>
              <Text color="inactive">
                {" · "}
              </Text>
              <Text bold>
                {edits}
              </Text>
              <Text color="inactive">
                {" edited · "}
              </Text>
              <Text color="inactive">
                0
              </Text>
              <Text color="inactive">
                {" failed"}
              </Text>
            </Text>
          </Box>
        </Box>
        <Box flexDirection="column" borderStyle="round" paddingX={1}>
          <Box justifyContent="space-between">
            <Text bold>
              MAP
            </Text>
          </Box>
        </Box>
        <Box flexDirection="column" borderStyle="round" paddingX={1}>
          <Box justifyContent="space-between">
            <Text bold>
              AGENTS
            </Text>
            <Text color="inactive">
              {size2}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Text wrap="truncate">
              <Text>
                {"■ "}
              </Text>
              <Text bold>
                {name}
              </Text>
              <Text color="inactive">
                {" "}
                {reads}
                {" read · "}
              </Text>
              <Text>
                {edits2}
                {" edit"}
              </Text>
              <Text color="inactive">
                {" · "}
                {last}
              </Text>
            </Text>
            <Text wrap="truncate">
              <Text>
                {"■ "}
              </Text>
              <Text bold>
                {name2}
              </Text>
              <Text color="inactive">
                {" "}
                {reads2}
                {" read · "}
              </Text>
              <Text>
                {edits3}
                {" edit"}
              </Text>
              <Text color="inactive">
                {" · "}
                {last2}
              </Text>
            </Text>
            <Text wrap="truncate">
              <Text>
                {"■ "}
              </Text>
              <Text bold>
                {name3}
              </Text>
              <Text color="inactive">
                {" "}
                {reads3}
                {" read · "}
              </Text>
              <Text>
                {edits4}
                {" edit"}
              </Text>
              <Text color="inactive">
                {" · "}
                {last3}
              </Text>
            </Text>
          </Box>
        </Box>
        <Box flexDirection="column" borderStyle="round" paddingX={1}>
          <Box justifyContent="space-between">
            <Text bold>
              HOT ZONES
            </Text>
            <Text color="inactive">
              {size3}
              {" folders"}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Text color="inactive">
              Nothing yet. Folders Claude works in rank here.
            </Text>
            <Text wrap="truncate">
              <Text>
                ▰▰▰▰▰▰▰▰▱▱▱▱▱▱▱▱
                {" "}
              </Text>
              <Text>
                {zone}
              </Text>
              <Text color="inactive">
                {" "}
                {reads4}
                {"r "}
              </Text>
              <Text>
                {edits5}
                e
              </Text>
              <Text>
                {" "}
                {fails}
                ✗
              </Text>
            </Text>
            <Text wrap="truncate">
              <Text>
                ▰▰▰▰▰▰▰▰▱▱▱▱▱▱▱▱
                {" "}
              </Text>
              <Text>
                {zone2}
              </Text>
              <Text color="inactive">
                {" "}
                {reads5}
                {"r "}
              </Text>
              <Text>
                {edits6}
                e
              </Text>
              <Text>
                {" "}
                {fails2}
                ✗
              </Text>
            </Text>
            <Text wrap="truncate">
              <Text>
                ▰▰▰▰▰▰▰▰▱▱▱▱▱▱▱▱
                {" "}
              </Text>
              <Text>
                {zone3}
              </Text>
              <Text color="inactive">
                {" "}
                {reads6}
                {"r "}
              </Text>
              <Text>
                {edits7}
                e
              </Text>
              <Text>
                {" "}
                {fails3}
                ✗
              </Text>
            </Text>
          </Box>
        </Box>
        <Box flexDirection="column" borderStyle="round" paddingX={1}>
          <Box justifyContent="space-between">
            <Text bold>
              FEED
            </Text>
            <Text color="inactive">
              /radar reset
            </Text>
          </Box>
          <Box flexDirection="column">
            <Text color="inactive">
              Waiting for Claude to touch a file…
            </Text>
            <Text wrap="truncate">
              <Text color="inactive">
                {clock}
                {" "}
              </Text>
              <Text bold>
                {VERB}
              </Text>
              <Text>
                {" "}
                {path}
              </Text>
              <Text>
                {" · "}
                {agentName}
              </Text>
            </Text>
            <Text wrap="truncate">
              <Text color="inactive">
                {clock2}
                {" "}
              </Text>
              <Text bold>
                {VERB2}
              </Text>
              <Text>
                {" "}
                {path2}
              </Text>
              <Text>
                {" · "}
                {agentName2}
              </Text>
            </Text>
            <Text wrap="truncate">
              <Text color="inactive">
                {clock3}
                {" "}
              </Text>
              <Text bold>
                {VERB3}
              </Text>
              <Text>
                {" "}
                {path3}
              </Text>
              <Text>
                {" · "}
                {agentName3}
              </Text>
            </Text>
          </Box>
        </Box>
      </Box>
    )
  })
}

The mod's own code

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

plugins/repo-radar/hooks/register.tsx lines 186–335 · Pane
  on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
    const stamp = await read($, version)
    const { Box, Text } = $.ui.resolve(e)
    const now = await $.clock.now()
    const W = Math.max(36, e.props.bodyColumns ?? 64)
    const inner = W - 4
    const isCompact = (e.viewport?.rows ?? 40) < 18
    const edits = [...touched.values()].filter(k => k === 'edit').length
    const hot = [...zones].sort((a, b) => heat(b[1]) - heat(a[1])).slice(0, 5)
    const hotMax = Math.max(1, ...hot.map(([, z]) => heat(z)))
    const zoneColor = (z: Zone) => hex(z.fails ? COLORS.error : z.edits ? COLORS.edit : COLORS.read)
    const agentName = (index: number) => [...agents.values()].find(a => a.index === index)?.name

    const status = isWorking ? <Text color={C.main} bold>● scanning</Text> : <Text color={C.dim}>○ idle</Text>
    const panel = (color: string, title: string, right: RenderChildren, body: RenderChildren) => (
      <Box flexDirection="column" borderStyle="round" borderColor={color} paddingX={1} width={W}>
        <Box justifyContent="space-between">
          <Text color={color} bold>{title}</Text>
          {right}
        </Box>
        {body}
      </Box>
    )
    const event = (ev: (typeof feed)[number], withTime: boolean) => (
      <Text wrap="truncate">
        {withTime && <Text color={C.dim}>{clock(ev.at)} </Text>}
        <Text color={hex(glowColor(ev))} bold>{VERB[ev.kind].padEnd(5)}</Text>
        <Text> {ev.path}</Text>
        {ev.agent >= 0 && <Text color={hex(agentColor(ev.agent))}> · {agentName(ev.agent)}</Text>}
      </Text>
    )
    const counts = (
      <Text wrap="truncate">
        <Text color={C.dim}>touched </Text>
        <Text color={C.main}>{gauge(fileCount ? touched.size / fileCount : 0)} </Text>
        <Text bold>{touched.size}</Text>
        <Text color={C.dim}> · </Text>
        <Text color={hex(COLORS.edit)} bold>{edits}</Text>
        <Text color={C.dim}> edited · </Text>
        <Text color={fails ? hex(COLORS.error) : C.dim} bold={fails > 0}>{fails}</Text>
        <Text color={C.dim}> failed</Text>
      </Text>
    )

    // Seated inline above the prompt: the summary, the hottest folders, the latest event.
    if (isCompact) {
      return panel(C.main, '◉ REPO RADAR', status, (
        <Box flexDirection="column">
          {counts}
          <Text wrap="truncate">
            {hot.length === 0 && <Text color={C.dim}>no activity yet</Text>}
            {hot.slice(0, 3).map(([zone, z], i) => (
              <Text>
                {i > 0 && <Text>  </Text>}
                <Text>{zone} </Text>
                <Text color={zoneColor(z)}>{gauge(heat(z) / hotMax, 4)}</Text>
              </Text>
            ))}
          </Text>
          {feed[0] ? event(feed[0], false) : <Text color={C.dim}>waiting for Claude to touch a file…</Text>}
        </Box>
      ))
    }

    const mapRows = Math.max(8, Math.min(28, (e.viewport?.rows ?? 40) - 24 - hot.length - (agents.size ? agents.size + 3 : 0)))
    const mapProps: MapProps = {
      tree: treeData(tree),
      treeVersion,
      hits: [...hits].filter(([, h]) => now - h.at < GLOW_WINDOW_MS).slice(-200).map(([path, h]) => [path, h.kind, h.agent, now - h.at]),
      tints: [...touched].slice(-400),
      columns: inner,
      rows: mapRows,
      stamp,
    }
    const sweepProps: SweepProps = { isActive: isWorking, width: W, trail: SWEEP_TRAIL, dim: hex(mix(COLORS.headerText, COLORS.dark, 0.55)) }

    let map: RenderChildren
    let sweep: (key: string) => RenderChildren
    if (e.surface === 'terminal' || e.surface === 'desktop') {
      const { Client } = $.ui.resolve(e)
      map = <Client key="map" module="./map.tsx" width={inner} height={mapRows} props={mapProps} />
      sweep = key => <Client key={key} module="./sweep.tsx" width={W} height={1} props={sweepProps} />
    } else {
      map = <Text color={C.dim}>The live map draws in the terminal and the desktop app.</Text>
      sweep = () => <Text color={C.faint}>{'─'.repeat(W)}</Text>
    }

    const legend = (
      <Text>
        <Text color={hex(COLORS.read)}>■</Text>
        <Text color={C.dim}> read </Text>
        <Text color={hex(COLORS.edit)}>■</Text>
        <Text color={C.dim}> edit </Text>
        <Text color={hex(COLORS.error)}>■</Text>
        <Text color={C.dim}> fail</Text>
      </Text>
    )
    const zoneWidth = Math.max(12, inner - 26)

    return (
      <Box flexDirection="column">
        {panel(C.main, '◉ REPO RADAR', status, (
          <Box flexDirection="column">
            <Text wrap="truncate">
              <Text bold>{repoName}</Text>
              {branch && <Text color={C.dim}> · {branch}</Text>}
              <Text color={C.dim}> · {fileCount.toLocaleString('en-US')} files{isGit ? '' : ' · not a git repo'}</Text>
            </Text>
            {counts}
          </Box>
        ))}
        {sweep('sweep-map')}
        {panel(C.map, 'MAP', legend, map)}
        {agents.size > 0 && sweep('sweep-agents')}
        {agents.size > 0 && panel(C.agents, 'AGENTS', <Text color={C.dim}>{agents.size}</Text>, (
          <Box flexDirection="column">
            {[...agents.values()].map(a => (
              <Text wrap="truncate">
                <Text color={hex(agentColor(a.index))}>■ </Text>
                <Text bold>{a.name.padEnd(14).slice(0, 14)}</Text>
                <Text color={C.dim}> {a.reads} read · </Text>
                <Text color={hex(agentColor(a.index))}>{a.edits} edit</Text>
                {a.last && <Text color={C.dim}> · {a.last}</Text>}
              </Text>
            ))}
          </Box>
        ))}
        {panel(C.zones, 'HOT ZONES', <Text color={C.dim}>{zones.size} folders</Text>, (
          <Box flexDirection="column">
            {hot.length === 0 && <Text color={C.dim}>Nothing yet. Folders Claude works in rank here.</Text>}
            {hot.map(([zone, z]) => (
              <Text wrap="truncate">
                <Text color={zoneColor(z)}>{gauge(heat(z) / hotMax, 8)} </Text>
                <Text>{zone.padEnd(zoneWidth).slice(0, zoneWidth)}</Text>
                <Text color={C.dim}> {z.reads}r </Text>
                <Text color={hex(COLORS.edit)}>{z.edits}e</Text>
                {z.fails > 0 && <Text color={hex(COLORS.error)}> {z.fails}✗</Text>}
              </Text>
            ))}
          </Box>
        ))}
        {panel(C.feed, 'FEED', <Text color={C.dim}>/radar reset</Text>, (
          <Box flexDirection="column">
            {feed.length === 0 && <Text color={C.dim}>Waiting for Claude to touch a file…</Text>}
            {feed.slice(0, 6).map(ev => event(ev, true))}
          </Box>
        ))}
      </Box>
    )
  })
Licence text (MIT)
MIT License

Copyright (c) 2026 lakmadev

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

How to build this: Pane (panel), Deny a tool call

What its code calls

runs programstool calls

What its code shows

Read from the source at commit 31055f3d7712. 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/repo-radar/hooks/register.tsx
ParsesEvery file parses as TypeScript or JavaScript.4 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).runs no program a Windows PC lacks
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)
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).reaches the network, but reads no files, no environment variables and no transcript
Keys in the sourceWhether the source holds what looks like an API key or a private key.no keys in the source
LicenceAn open licence (MIT, Apache-2.0, BSD, ISC, Unlicense, 0BSD, CC0) with its text lets ModsCode show its code; otherwise the code is linked.MIT
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.adds command radar
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 (radar), tool.call · also: session.start, turn.start, turn.complete, agent.spawn (+1)
Reads, by nameThe environment variables and files it names, and whether it reads the transcript, settings.json, the prompt box or the mouse selection.reads no files, environment variables, settings or 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.writes no files, environment variables, settings or conversation rows

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 lakmadev/claude-mods
/plugin install repo-radar@claude-mods
/reload-plugins

This installs the marketplace's latest commit, which may not be the one read here (31055f3d7712). 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/lakmadev/claude-mods
git -C claude-mods checkout 31055f3d7712676c8c5f7f4f6aabc1124833cf41
claude plugin validate claude-mods/plugins/repo-radar
claude --plugin-dir claude-mods/plugins/repo-radar

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 "lakmadev-repo-radar" with its code and make me one like it

Search them from Claude: the MCP connector

Similar mods

More from this repository

See all 11 mods in this repository

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