modscode / Gallery / changed-files
changed-files
A pane listing the files Claude changed since your last message, each one's diff a click away.
What it does
- Draws a pane
- Adds /changed-files
- Watches tool calls
- Hooks prompt.submit, session.start, ui.message
Good points
- No network calls
- Starts no processes
- Written in TypeScript
- Has a desktop-specific branch
Code to start from
Two kinds: a starter modscode writes from the design above, and the lines of the mod's own code that draw it.
Starter (register.tsx)
import type { Register } from 'claude-code'
// Drawn like changed-files by endless (pane), as modscode read it from the mod's code:
// https://modscode.com/gallery/endless-fr-changed-files/
// 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: "Fichiers modifiés" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button, Code } = $.ui.resolve(e)
const altOf = '…'
const added = '…'
const removed = '…'
const letter = '…'
const name = '…'
const dir = '…'
const diff = '…'
const letter2 = '…'
const name2 = '…'
const dir2 = '…'
const letter3 = '…'
const name3 = '…'
const dir3 = '…'
return (
<Box flexDirection="column" paddingX={1} gap={1}>
<Box flexDirection="column">
<Text bold>
Fichiers modifiés
</Text>
<Box gap={1}>
<Text dimColor>
{altOf}
</Text>
<Text color="#30D158">
{`+${added}`}
</Text>
<Text color="#FF453A">
{`−${removed}`}
</Text>
</Box>
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="#0A84FF" paddingX={1}>
<Box flexDirection="row" alignItems="center" gap={1}>
<Text bold>
{letter}
</Text>
<Box flexDirection="column" flexGrow={1} flexShrink={1}>
<Text bold wrap="truncate-end">
{name}
</Text>
<Text dimColor wrap="truncate-start">
{dir}
</Text>
</Box>
<Button variant="primary">
Masquer
</Button>
</Box>
<Code source={`${diff}`} format="diff" />
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="#0A84FF" paddingX={1}>
<Box flexDirection="row" alignItems="center" gap={1}>
<Text bold>
{letter2}
</Text>
<Box flexDirection="column" flexGrow={1} flexShrink={1}>
<Text bold wrap="truncate-end">
{name2}
</Text>
<Text dimColor wrap="truncate-start">
{dir2}
</Text>
</Box>
<Button variant="primary">
Masquer
</Button>
</Box>
<Code source={`${diff}`} format="diff" />
</Box>
<Box flexDirection="column" borderStyle="round" borderColor="#0A84FF" paddingX={1}>
<Box flexDirection="row" alignItems="center" gap={1}>
<Text bold>
{letter3}
</Text>
<Box flexDirection="column" flexGrow={1} flexShrink={1}>
<Text bold wrap="truncate-end">
{name3}
</Text>
<Text dimColor wrap="truncate-start">
{dir3}
</Text>
</Box>
<Button variant="primary">
Masquer
</Button>
</Box>
<Code source={`${diff}`} format="diff" />
</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.
mods/changed-files/hooks/register.tsx lines 100–198 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const table = $.ui.resolve(e)
const { Box, Text, Button, Code } = table
const Svg = e.surface !== 'terminal' && 'Svg' in table ? table.Svg : undefined
const Client = 'Client' in table ? table.Client : undefined
const list = [...(await read($, files))].reverse()
const shown = await read($, selected)
const toggle = (path: string) => () => void update($, selected, now => (now === path ? null : path))
const rows = list.map(file => {
const { name, dir } = split(file.path)
const isOpen = shown === file.path
const badge = badgeOf(file.isNew)
// The desktop: a dark tile of its own, as the card's, lit under the pointer.
if (Svg && Client) {
return (
<Box
key={`tile-${keyOf(file.path)}`}
flexDirection="column"
gap={1}
paddingX={2}
paddingY={1}
borderStyle="round"
borderColor={isOpen ? '#0A84FF' : '#2C2C2E'}
backgroundColor="#1C1C1E"
hover={{ backgroundColor: '#242426', borderColor: isOpen ? '#0A84FF' : '#3A3A3C' }}
>
<Box flexDirection="row" alignItems="center" gap={2}>
<Text bold color={badge.color}>
{badge.letter}
</Text>
<Svg source={iconSvg(name)} alt="" width={36} height={36} />
<Client
key={keyOf(file.path)}
module="./row.tsx"
props={{ name, dir, isOpen }}
flexGrow={1}
/>
<Svg source={barSvg(file.added, file.removed)} alt="" width={53} height={9} />
</Box>
{isOpen ? <Code source={file.diff} format="diff" path={file.path} /> : null}
</Box>
)
}
return (
<Box flexDirection="column" borderStyle="round" borderColor={isOpen ? '#0A84FF' : undefined} borderDimColor={!isOpen} paddingX={1}>
<Box flexDirection="row" alignItems="center" gap={1}>
<Text bold color={badge.color}>
{badge.letter}
</Text>
<Box flexDirection="column" flexGrow={1} flexShrink={1}>
<Text bold wrap="truncate-end">
{name}
</Text>
<Text dimColor wrap="truncate-start">
{dir}
</Text>
</Box>
<Button key={keyOf(file.path)} variant={isOpen ? 'primary' : 'secondary'} onPress={toggle(file.path)}>
{isOpen ? 'Masquer' : 'Diff'}
</Button>
</Box>
{isOpen ? <Code source={file.diff} format="diff" path={file.path} /> : null}
</Box>
)
})
if (Svg) {
return (
<Box flexDirection="column" gap={1}>
<Svg source={headerSvg(list)} alt={altOf(list)} />
{rows}
</Box>
)
}
const added = list.reduce((sum, file) => sum + file.added, 0)
const removed = list.reduce((sum, file) => sum + file.removed, 0)
return (
<Box flexDirection="column" paddingX={1} gap={1}>
<Box flexDirection="column">
<Text bold>Fichiers modifiés</Text>
{list.length === 0 ? (
<Text dimColor>Aucune modification. Les fichiers modifiés par Claude apparaîtront ici.</Text>
) : (
<Box gap={1}>
<Text dimColor>{altOf(list)}</Text>
<Text color="#30D158">{`+${added}`}</Text>
<Text color="#FF453A">{`−${removed}`}</Text>
</Box>
)}
</Box>
{rows}
</Box>
)
})Licence text (MIT)
MIT License Copyright (c) 2026 endless 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.
What its code calls
reads filestool calls
The design, read from code
DiffDiffDiffDrawn from the mod's source at the commit read, not from a run: a list is drawn three times, a condition takes its first branch that draws in the desktop app, and a value only the run time knows is shown as a made-up sample (dotted underline) or left out. Colours and type are this site's.
What its code shows
Read from the source at commit 9e8e50e93657 on 2026-10-06. The first group decides whether a mod is listed; the rest is for you to weigh. A later commit is not read until the next crawl.
| Decides the listing: code you can check | |
|---|---|
| Entry read | Every module hooks/hooks.json names was read.mods/changed-files/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.5 files parsed |
| All its code is in the mod | Every import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod |
| Readable | No 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 open | Network 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 draws | The 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 line | Whether 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 Windows | Whether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).runs no program a Windows PC lacks |
| Network | Whether every fetch names its https host in the code.no network |
| Programs | Whether every program it starts is named in the code and is not a shell, an interpreter or a network tool.starts no programs |
| Reads and sends | Whether it both reads files or environment variables and reaches the network.reaches no network |
| Keys in the source | Whether the source holds what looks like an API key or a private key.no keys in the source |
| Licence | An 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 |
This is a reading of the code text, not a security review: it does not run the mod, and it cannot see what a program the mod starts does. The check before installing is yours. How mods are chosen
Install it
Check it yourself before you install it. Mods run unsandboxed, with your permissions, and modscode does not vouch for what this code does. Read the code below (or run claude plugin validate . in its folder), weigh what it reaches, and install the commit you read.
Its repository is its marketplace. Add that marketplace (in the terminal with these commands, or in the desktop app's plugin settings) and install the mod from it:
/plugin marketplace add endless-fr/claude-mods/plugin install changed-files@endless-claude-modsThis installs the marketplace's latest commit, which may not be the one read here (9e8e50e93657). Compare them before you install.
Ask Claude about it
With the modscode connector added, Claude can read this design, what its code reaches and its code, and build on them. Ask it like this:
Read the modscode design "endless-fr-changed-files" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
Ask Claude…Files⋯│●./file-name.tsx│●./file-name.tsx│●./file-name.tsxNew file Move to Recycle Bin?────────./menu-item.tsx./menu-item.tsx./menu-item.tsx────────./menu-item.tsx./menu-item.tsx./menu-item.tsx────────./menu-item.tsx./menu-item.tsx./menu-item.tsx
-
Ask Claude…Mod controlsLive Claude ModCount: 0 / Initial / oneAdd oneName InitialOne**Markdown** with a [link](https://example.com)
const count = 1;
./counter.tsxFill composerAppend noteSuggest draftCopy text -
Ask Claude…Timer● MonAprNo timer runningStopResume last CollapseFri week./meter.tsxUnbilled Wed h$1.24 · expenses MarMayToday, Oct 6This week
-
Ask Claude…Notes⚠ A team of Never uses your Claude usage much faster.Showing:buildbuildbuildHide completed:buildbuildbuildSet team size:DefaultDefaultDefaultSet model:NotesNotesNotesWorkflowYour next prompt can hand work to Never Notes helpers.● Fix login · Tool agents42% AllCopy failed2h 10m● Fix login · Tool agents42% AllCopy failed2h 10m● Fix login · Tool agents42% AllCopy failed2h 10m
-
Ask Claude…Tool calls3 call · click one for its input and output●▾ EditLight userunning14:32 · okInput
Light useOutputStill running●▾ EditLight userunning14:32 · okInputLight useOutputStill running●▾ EditLight userunning14:32 · okInputLight useOutputStill running -
Ask Claude…Backgrounda1b2c3dok · 2h 10m · exit Follow latest
$ npm testNo output yet.Follow latest