SLOPSHOPPER

changes-pane

A live pane listing every file Claude changed this session, with +/- line counts.

newpaneguardcommand
A shopper browsing a rack in a slop shop
Preview · a replayed session in a sandbox
claude · ~/work/app · changes-pane
│ ┃ Changed files ✕ › fix the failing auth test and add an audit log call │ ┃ 3 files +16 -1 │ ┃ +8 -0 src/cache.ts ⏺ Read(src/auth.ts) │ ┃ +6 -0 src/audit.ts ⎿ Read 6 lines │ ┃ +2 -1 src/auth.ts ⏺ Update(src/auth.ts) │ ┃ [ Clear ] ⎿ Added 2 lines, removed 1 line │ ⏺ Bash(bun test) │ ⎿ 3 pass, 1 fail │ │ ● Done. refresh now rejects expired claims and logs an audit event. │ │ ✻ Worked for 42s · done 4:20 PM │ │ › /changes │ ⎿ changes-pane: 3 file(s) changed this session. │ │ ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── › ? for shortcuts

Draws

Pane · Changed files
3 files +16 -1 +8 -0 src/cache.ts +6 -0 src/audit.ts +2 -1 src/auth.ts [ Clear ]
README

claude-mods

Eleven mods for Claude Code. Install the ones you want; each is independent.

Repo Radar

Repo Radar: a live map of where Claude is working

repo-radar draws your repo as a live map of rectangles, one per folder. Reads glow cyan, edits amber, failures red, and each subagent gets its own colour, so you can watch parallel agents work across your codebase. Glows fade like a radar trace; files touched this session keep a faint tint. /radar opens it. More →

/plugin marketplace add lakmadev/claude-mods
/plugin install repo-radar@claude-mods

For fun

pixel-pet: the band

ModWhat it does
pixel-petA tiny animated pixel pet above your prompt. It sleeps (snoring) when things are quiet and wakes slowly when you type. It narrates what Claude is doing with a sliding status line, hatches half-size helpers in their own colours for each subagent that slide into the meter line one by one and wave bye when done. It watches you type, and you click it to pet it. A gradient context meter with your 5-hour and weekly usage sits beside it, details on hover. 28 colours via /pet color <name>.
code-wrapped/wrapped opens your Claude Code Wrapped: a GitHub-style activity heatmap, hours, lines, streaks, top files and tools, your coding personality (Night Owl 🦉, Refactorer 🧹, Shell Wizard 🧙…) and 14 unlockable achievements that pop as toasts. Copy share text puts a one-line brag on your clipboard.
lofi-modeSoft lo-fi beats start when Claude has been working for a few seconds and stop when it finishes. The loop is original and synthesized for this mod. /lofi toggles it. macOS audio.

For work

ModWhat it does
context-meterA plain status line: ctx 62% · 5h 85% resets 1h52m · week 40% on a Claude plan (the reset shows once a window passes 70%), or ctx 62% · $1.84 billed (API) when you pay per token. Toasts when context passes 80% or a plan window passes 90%.
safety-netRefuses catastrophic commands (rm -rf ~, mkfs, dd of=/dev/disk, fork bombs). Asks before risky ones (force-push, reset --hard, `curl \sh, DROP TABLE, terraform destroy, sudo, …) and before edits to .env, keys, ~/.ssh, .git/` or shell rc files.
changes-paneSide pane listing every file Claude changed this session with +/- line counts. /changes opens it.
done-notifierChime, toast and desktop notification when a turn longer than 30s finishes or Claude is waiting for you.
prompt-boosterShort prompts ("fix it") get your branch, changed files and recent commits as hidden context. Adds /fix-tests, /explain-code, /review-changes, /write-tests, /commit-msg.
session-journalLogs each turn (project, prompt, files touched) across sessions. /journal [days] lists it; /standup [days] writes a Done / In progress / Blockers update.
secrets-redactorReplaces API keys, tokens, private keys and connection-string passwords with [REDACTED:kind] in your prompts and in tool output before the model sees them, and blocks writing a placeholder back over a real secret.

Install

Requires Claude Code 2.1.293 or later: mods are an early-access feature and gain events with each release. Check with claude --version; update with claude update.

In a Claude Code terminal session:

/plugin marketplace add lakmadev/claude-mods
/plugin install pixel-pet@claude-mods

The first line adds this repo as a plugin marketplace (once); the second installs a mod from it. Repeat the second line with any other mod name from the table.

Settings

Each mod's options show in /config once it is installed:

  • context-meter: contextWarnPercent (80), rateLimitWarnPercent (90)
  • safety-net: strict (off). Turns every "ask" into a refusal. Turn it on if you run in auto or bypass-permissions mode, where an ask can be approved without you.
  • changes-pane: autoOpen (on). The pane opens on its own only in terminals 144+ columns wide.
  • done-notifier: minSeconds (30), sound (on), desktop (on)
  • prompt-booster: autoContext (on), maxWords (15)
  • session-journal: retentionDays (30), model (haiku)
  • secrets-redactor: aggressive (off). Also redacts quoted password = "…"-style assignments.
  • pixel-pet: name (Bit), color (teal)
  • lofi-mode: volume (0.35), delaySeconds (4)

Limits

  • safety-net matches patterns. It is not a sandbox: obfuscated commands (eval, base64, aliases) get through.
  • secrets-redactor only catches known token shapes. Once a secret is redacted, Claude can't use it: put real values in files yourself.
  • pixel-pet, code-wrapped and session-journal keep their data in Claude Code's plugin store on your machine. Two sessions finishing a turn at the same instant can drop one update.
  • done-notifier plays its chime on macOS only. Desktop notifications use osascript (macOS) or notify-send (Linux).
  • session-journal keeps your prompts locally, in Claude Code's plugin store on your machine. /standup sends the log to the model you configure.

Develop

Each mod lives in plugins/<name>/: hooks/register.ts(x) is the code and tests/ holds its tests.

claude plugin validate plugins/<name>
claude plugin test plugins/<name>
claude --plugin-dir plugins/<name>

License

MIT, see LICENSE.

Source 2 files
hooks/register.tsx 91 lines
1import { atom, read, update } from 'claude-code'
2import type { Register } from 'claude-code'
3
4import type { Change } from '../types'
5
6const PANE = 'changes'
7const files = atom({ plugin: 'changes-pane', key: 'files' } as const, [])
8
9const lineCount = (text: string) => (text === '' ? 0 : text.split('\n').length)
10
11// Newest change first; a file edited again moves to the top with its counts summed.
12export function record(list: readonly Change[], path: string, added: number, removed: number): Change[] {
13  const before = list.find(one => one.path === path)
14  const merged: Change = {
15    path,
16    added: (before?.added ?? 0) + added,
17    removed: (before?.removed ?? 0) + removed,
18    edits: (before?.edits ?? 0) + 1,
19  }
20  return [merged, ...list.filter(one => one.path !== path)].slice(0, 500)
21}
22
23export const register: Register = (on, options) => {
24  on('session.start', async ($, e, next) => {
25    await $.command.register({ name: 'changes', description: 'Show the files Claude changed this session' })
26    return next(e)
27  })
28
29  on('command.run', { command: 'changes' }, async $ => {
30    await $.ui.open({ id: PANE, title: 'Changed files' })
31    const list = await read($, files)
32    return { text: `${list.length} file(s) changed this session.` }
33  })
34
35  // Each file tool: run the call, record it only if it went through.
36  on('tool.call', { tool: 'Edit' }, async ($, e, next) => {
37    const ran = await next(e)
38    if (ran.deny !== undefined || ran.isError === true) return ran
39    const isFirst = (await read($, files)).length === 0
40    await update($, files, list => record(list, e.file_path, lineCount(e.new_string), lineCount(e.old_string)))
41    if (isFirst && options.autoOpen !== false) $.ui.open({ id: PANE, title: 'Changed files' }).catch(() => undefined)
42    return ran
43  })
44
45  on('tool.call', { tool: 'Write' }, async ($, e, next) => {
46    const ran = await next(e)
47    if (ran.deny !== undefined || ran.isError === true) return ran
48    const isFirst = (await read($, files)).length === 0
49    await update($, files, list => record(list, e.file_path, lineCount(e.content), 0))
50    if (isFirst && options.autoOpen !== false) $.ui.open({ id: PANE, title: 'Changed files' }).catch(() => undefined)
51    return ran
52  })
53
54  on('tool.call', { tool: 'NotebookEdit' }, async ($, e, next) => {
55    const ran = await next(e)
56    if (ran.deny !== undefined || ran.isError === true) return ran
57    await update($, files, list => record(list, e.notebook_path, lineCount(e.new_source), 0))
58    return ran
59  })
60
61  on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
62    const { Box, Text, Button } = $.ui.resolve(e)
63    const list = await read($, files)
64    const cwd = await $.session.cwd()
65    const room = Math.max(1, (e.viewport?.rows ?? 24) - 6)
66    const added = list.reduce((sum, one) => sum + one.added, 0)
67    const removed = list.reduce((sum, one) => sum + one.removed, 0)
68
69    if (list.length === 0) return <Text dimColor>No files changed yet this session.</Text>
70
71    return (
72      <Box flexDirection="column">
73        <Box gap={1}>
74          <Text bold>{list.length} files</Text>
75          <Text color="diffAdded">+{added}</Text>
76          <Text color="diffRemoved">-{removed}</Text>
77        </Box>
78        {list.slice(0, room).map(one => (
79          <Box gap={1}>
80            <Text color="diffAdded">+{one.added}</Text>
81            <Text color="diffRemoved">-{one.removed}</Text>
82            <Text wrap="truncate-start">{one.path.startsWith(cwd + '/') ? one.path.slice(cwd.length + 1) : one.path}</Text>
83          </Box>
84        ))}
85        {list.length > room && <Text dimColor>…and {list.length - room} more</Text>}
86        <Button key="clear" label="Clear" onPress={() => update($, files, () => [])} />
87      </Box>
88    )
89  })
90}
91
types/index.d.ts 8 lines
1export type Change = { path: string; added: number; removed: number; edits: number }
2
3declare module 'claude-code' {
4  interface PluginState {
5    'changes-pane': { files: Change[] }
6  }
7}
8