ModsCode / Claude Code Mods / Ranking / reflog
reflog
A lazygit-style side pane for Claude Code: worktrees, local branches, tags and a commit graph as rows you click, with branch and commit popups for the everyday git actions (switch, merge, rebase, cherry-pick, fetch, pull, push). Docked bes…
What it does
- Draws a pane, toasts
- Adds /cd
- Hooks session.start, turn.complete, ui.close, ui.input and 1 more
- Starts processes
Good points
- No network calls
- Written in TypeScript
- 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)
import type { Register } from 'claude-code'
// Drawn like reflog by Nfet445 (pane, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/nfet445-reflog/
// 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: "git" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button, Input } = $.ui.resolve(e)
const basename = '…'
const error = '…'
const upstream = '…'
const length = '…'
const name = '…'
const dirty = '…'
const flags = '…'
const path = '…'
const dirty2 = '…'
const flags2 = '…'
const path2 = '…'
const dirty3 = '…'
const flags3 = '…'
const path3 = '…'
const marker = '…'
const track = '…'
const date = '…'
const marker2 = '…'
const name2 = '…'
const marker3 = '…'
const name3 = '…'
const scope = '…'
const commitStamp = '…'
const sha = '…'
const ch = '…'
const ch2 = '…'
const ch3 = '…'
const map = '…'
const value = '…'
const tags = '…'
const subject = '…'
const hash = '…'
const heads = '…'
const remotes = '…'
const author = '…'
const match = '…'
const line = '…'
const line2 = '…'
const line3 = '…'
const line4 = '…'
const line5 = '…'
const line6 = '…'
const ch4 = '…'
const ch5 = '…'
const ch6 = '…'
const author2 = '…'
const line7 = '…'
const line8 = '…'
const line9 = '…'
const line10 = '…'
const line11 = '…'
const line12 = '…'
const ch7 = '…'
const ch8 = '…'
const ch9 = '…'
const author3 = '…'
const line13 = '…'
const line14 = '…'
const line15 = '…'
const line16 = '…'
const line17 = '…'
const line18 = '…'
return (
<Box flexDirection="column">
<Text bold>
{basename}
</Text>
<Text color="red">
{error}
</Text>
<Box flexDirection="row" columnGap={1}>
<Text color="yellow">
{`push to ${upstream}?`}
</Text>
<Button label="yes" variant="primary" />
<Button label="no" variant="primary" />
</Box>
<Box flexDirection="row" columnGap={1}>
<Text bold color="cyan">
{`Worktrees (${length})`}
</Text>
<Button label="add" variant="primary" />
</Box>
<Input label="branch " value="" submitLabel="add" autoFocus />
<Box flexDirection="column">
<Box flexDirection="row">
<Text>
{" "}
</Text>
<Text color="green">
{"● "}
</Text>
<Button plain label={`${basename} ${name}`} />
<Text color="yellow">
{dirty}
</Text>
<Text color="red">
{flags}
</Text>
<Button plain label=" …" />
</Box>
<Box flexDirection="column" borderStyle="round" borderDimColor paddingX={1}>
<Text dimColor>
{path}
</Text>
<Box flexDirection="row" columnGap={1}>
<Text color="yellow">
remove?
</Text>
<Button label="yes" variant="primary" />
<Button label="no" variant="primary" />
</Box>
</Box>
</Box>
<Box flexDirection="column">
<Box flexDirection="row">
<Text>
{" "}
</Text>
<Text color="green">
{"● "}
</Text>
<Button plain label={`${basename} ${name}`} />
<Text color="yellow">
{dirty2}
</Text>
<Text color="red">
{flags2}
</Text>
<Button plain label=" …" />
</Box>
<Box flexDirection="column" borderStyle="round" borderDimColor paddingX={1}>
<Text dimColor>
{path2}
</Text>
<Box flexDirection="row" columnGap={1}>
<Text color="yellow">
remove?
</Text>
<Button label="yes" variant="primary" />
<Button label="no" variant="primary" />
</Box>
</Box>
</Box>
<Box flexDirection="column">
<Box flexDirection="row">
<Text>
{" "}
</Text>
<Text color="green">
{"● "}
</Text>
<Button plain label={`${basename} ${name}`} />
<Text color="yellow">
{dirty3}
</Text>
<Text color="red">
{flags3}
</Text>
<Button plain label=" …" />
</Box>
<Box flexDirection="column" borderStyle="round" borderDimColor paddingX={1}>
<Text dimColor>
{path3}
</Text>
<Box flexDirection="row" columnGap={1}>
<Text color="yellow">
remove?
</Text>
<Button label="yes" variant="primary" />
<Button label="no" variant="primary" />
</Box>
</Box>
</Box>
<Box flexDirection="row">
<Text bold color="cyan">
{`Branches (${length})`}
</Text>
</Box>
<Box flexDirection="column">
<Box flexDirection="row">
<Text>
{" "}
</Text>
<Text color="green">
{marker}
</Text>
<Text>
{"● "}
</Text>
<Button plain label={`${name}`} />
<Text color="red">
{` ${track}`}
</Text>
</Box>
<Box flexDirection="column" borderStyle="round" borderDimColor paddingX={1}>
<Text bold>
{name}
</Text>
<Text dimColor>
{`${upstream} · ${date}`}
</Text>
<Text dimColor>
checked out here
</Text>
<Button label="show all history" variant="primary" />
</Box>
</Box>
<Box flexDirection="column">
<Box flexDirection="row">
<Text>
{" "}
</Text>
<Text color="green">
{marker2}
</Text>
<Text>
{"● "}
</Text>
<Button plain label={`${name}`} />
<Text color="red">
{` ${track}`}
</Text>
</Box>
<Box flexDirection="column" borderStyle="round" borderDimColor paddingX={1}>
<Text bold>
{name2}
</Text>
<Text dimColor>
{`${upstream} · ${date}`}
</Text>
<Text dimColor>
checked out here
</Text>
<Button label="show all history" variant="primary" />
</Box>
</Box>
<Box flexDirection="column">
<Box flexDirection="row">
<Text>
{" "}
</Text>
<Text color="green">
{marker3}
</Text>
<Text>
{"● "}
</Text>
<Button plain label={`${name}`} />
<Text color="red">
{` ${track}`}
</Text>
</Box>
<Box flexDirection="column" borderStyle="round" borderDimColor paddingX={1}>
<Text bold>
{name3}
</Text>
<Text dimColor>
{`${upstream} · ${date}`}
</Text>
<Text dimColor>
checked out here
</Text>
<Button label="show all history" variant="primary" />
</Box>
</Box>
<Box flexDirection="row">
<Text bold color="cyan">
{`Tags (${length})`}
</Text>
</Box>
<Box flexDirection="column">
<Box flexDirection="row">
<Text>
{" "}
</Text>
<Text color="green">
{"◆ "}
</Text>
<Button plain label={`${name}`} />
<Text dimColor>
{` ${date}`}
</Text>
</Box>
<Box flexDirection="column" borderStyle="round" borderDimColor paddingX={1}>
<Box flexDirection="row" columnGap={1}>
<Text color="yellow">
delete?
</Text>
<Button label="yes" variant="primary" />
<Button label="no" variant="primary" />
</Box>
</Box>
</Box>
<Box flexDirection="column">
<Box flexDirection="row">
<Text>
{" "}
</Text>
<Text color="green">
{"◆ "}
</Text>
<Button plain label={`${name}`} />
<Text dimColor>
{` ${date}`}
</Text>
</Box>
<Box flexDirection="column" borderStyle="round" borderDimColor paddingX={1}>
<Box flexDirection="row" columnGap={1}>
<Text color="yellow">
delete?
</Text>
<Button label="yes" variant="primary" />
<Button label="no" variant="primary" />
</Box>
</Box>
</Box>
<Box flexDirection="column">
<Box flexDirection="row">
<Text>
{" "}
</Text>
<Text color="green">
{"◆ "}
</Text>
<Button plain label={`${name}`} />
<Text dimColor>
{` ${date}`}
</Text>
</Box>
<Box flexDirection="column" borderStyle="round" borderDimColor paddingX={1}>
<Box flexDirection="row" columnGap={1}>
<Text color="yellow">
delete?
</Text>
<Button label="yes" variant="primary" />
<Button label="no" variant="primary" />
</Box>
</Box>
</Box>
<Box flexDirection="row" columnGap={1}>
<Text bold color="cyan">
History
</Text>
<Text>
{`@${scope}`}
</Text>
<Button label="clear" variant="primary" />
</Box>
<Box flexDirection="row" borderStyle="round" borderDimColor paddingX={1}>
<Input placeholder="Filter the git tree" value="" submitLabel="apply" />
</Box>
<Box flexDirection="column">
<Box flexDirection="row">
<Box flexDirection="row" flexShrink={0}>
<Text>
{" "}
</Text>
<Text>
{`${commitStamp} `}
</Text>
<Text color="yellow">
{`${sha} `}
</Text>
<Text>
{ch}
</Text>
<Text>
{ch2}
</Text>
<Text>
{ch3}
</Text>
<Text>
{" "}
</Text>
<Text color="magenta">
{` (${map})`}
</Text>
<Text color="red">
{` {${value}}`}
</Text>
<Text color="green">
{` [${tags}]`}
</Text>
</Box>
<Button plain label={` ${subject}`} />
</Box>
<Box flexDirection="column" borderStyle="round" borderDimColor paddingX={1}>
<Button plain label={`${hash}`} />
<Text color="magenta" wrap="wrap">
{`(${heads})`}
</Text>
<Text color="red" wrap="wrap">
{`{${remotes}}`}
</Text>
<Text color="green" wrap="wrap">
{`[${tags}]`}
</Text>
<Text wrap="truncate-end">
<Text color="green">
{author}
</Text>
<Text color="cyan">
{` ${match}`}
</Text>
<Text dimColor>
{` · ${date}`}
</Text>
</Text>
<Text wrap="wrap">
{line}
</Text>
<Text wrap="wrap">
{line2}
</Text>
<Text wrap="wrap">
{line3}
</Text>
<Text dimColor>
{line4}
</Text>
<Text dimColor>
{line5}
</Text>
<Text dimColor>
{line6}
</Text>
<Box flexDirection="column">
<Box flexDirection="row" columnGap={1}>
<Button label="less" variant="secondary" />
<Button label="less" variant="secondary" />
<Button label="less" variant="secondary" />
</Box>
<Box flexDirection="row" columnGap={1}>
<Button label="less" variant="secondary" />
<Button label="less" variant="secondary" />
<Button label="less" variant="secondary" />
</Box>
<Box flexDirection="row" columnGap={1}>
<Button label="less" variant="secondary" />
<Button label="less" variant="secondary" />
<Button label="less" variant="secondary" />
</Box>
</Box>
</Box>
</Box>
<Box flexDirection="column">
<Box flexDirection="row">
<Box flexDirection="row" flexShrink={0}>
<Text>
{" "}
</Text>
<Text>
{`${commitStamp} `}
</Text>
<Text color="yellow">
{`${sha} `}
</Text>
<Text>
{ch4}
</Text>
<Text>
{ch5}
</Text>
<Text>
{ch6}
</Text>
<Text>
{" "}
</Text>
<Text color="magenta">
{` (${map})`}
</Text>
<Text color="red">
{` {${value}}`}
</Text>
<Text color="green">
{` [${tags}]`}
</Text>
</Box>
<Button plain label={` ${subject}`} />
</Box>
<Box flexDirection="column" borderStyle="round" borderDimColor paddingX={1}>
<Button plain label={`${hash}`} />
<Text color="magenta" wrap="wrap">
{`(${heads})`}
</Text>
<Text color="red" wrap="wrap">
{`{${remotes}}`}
</Text>
<Text color="green" wrap="wrap">
{`[${tags}]`}
</Text>
<Text wrap="truncate-end">
<Text color="green">
{author2}
</Text>
<Text color="cyan">
{` ${match}`}
</Text>
<Text dimColor>
{` · ${date}`}
</Text>
</Text>
<Text wrap="wrap">
{line7}
</Text>
<Text wrap="wrap">
{line8}
</Text>
<Text wrap="wrap">
{line9}
</Text>
<Text dimColor>
{line10}
</Text>
<Text dimColor>
{line11}
</Text>
<Text dimColor>
{line12}
</Text>
<Box flexDirection="column">
<Box flexDirection="row" columnGap={1}>
<Button label="less" variant="secondary" />
<Button label="less" variant="secondary" />
<Button label="less" variant="secondary" />
</Box>
<Box flexDirection="row" columnGap={1}>
<Button label="less" variant="secondary" />
<Button label="less" variant="secondary" />
<Button label="less" variant="secondary" />
</Box>
<Box flexDirection="row" columnGap={1}>
<Button label="less" variant="secondary" />
<Button label="less" variant="secondary" />
<Button label="less" variant="secondary" />
</Box>
</Box>
</Box>
</Box>
<Box flexDirection="column">
<Box flexDirection="row">
<Box flexDirection="row" flexShrink={0}>
<Text>
{" "}
</Text>
<Text>
{`${commitStamp} `}
</Text>
<Text color="yellow">
{`${sha} `}
</Text>
<Text>
{ch7}
</Text>
<Text>
{ch8}
</Text>
<Text>
{ch9}
</Text>
<Text>
{" "}
</Text>
<Text color="magenta">
{` (${map})`}
</Text>
<Text color="red">
{` {${value}}`}
</Text>
<Text color="green">
{` [${tags}]`}
</Text>
</Box>
<Button plain label={` ${subject}`} />
</Box>
<Box flexDirection="column" borderStyle="round" borderDimColor paddingX={1}>
<Button plain label={`${hash}`} />
<Text color="magenta" wrap="wrap">
{`(${heads})`}
</Text>
<Text color="red" wrap="wrap">
{`{${remotes}}`}
</Text>
<Text color="green" wrap="wrap">
{`[${tags}]`}
</Text>
<Text wrap="truncate-end">
<Text color="green">
{author3}
</Text>
<Text color="cyan">
{` ${match}`}
</Text>
<Text dimColor>
{` · ${date}`}
</Text>
</Text>
<Text wrap="wrap">
{line13}
</Text>
<Text wrap="wrap">
{line14}
</Text>
<Text wrap="wrap">
{line15}
</Text>
<Text dimColor>
{line16}
</Text>
<Text dimColor>
{line17}
</Text>
<Text dimColor>
{line18}
</Text>
<Box flexDirection="column">
<Box flexDirection="row" columnGap={1}>
<Button label="less" variant="secondary" />
<Button label="less" variant="secondary" />
<Button label="less" variant="secondary" />
</Box>
<Box flexDirection="row" columnGap={1}>
<Button label="less" variant="secondary" />
<Button label="less" variant="secondary" />
<Button label="less" variant="secondary" />
</Box>
<Box flexDirection="row" columnGap={1}>
<Button label="less" variant="secondary" />
<Button label="less" variant="secondary" />
<Button label="less" variant="secondary" />
</Box>
</Box>
</Box>
</Box>
<Box flexDirection="row">
<Text>
{" "}
</Text>
<Button label="load 50 more" variant="primary" />
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
const what = '…'
const firstLine = '…'
await $.ui.toast(`cc-reflog: uncommitted changes here; commit or stash before ${what}`)
await $.ui.toast(`cc-reflog: ${what} failed and was aborted: ${firstLine}`)
return next(e)
})
}
The mod's own code
Shown under the mod's licence (MIT); its text is below. Keep the notice if you copy these lines.
cc-reflog/hooks/cc-reflog.tsx lines 515–674 · Pane
on('ui.render', { component: 'Pane' }, async ($, e, next) => {
if (e.requestId !== PANE) return next(e)
const { Box, Text, Button, Input } = $.ui.resolve(e)
const width = Math.max(20, e.props.bodyColumns - 1)
const noop = () => {}
if (!snap) {
return (
<Box flexDirection="column">
<Text color="red">{fit(error ?? 'reading the repository…', width)}</Text>
</Box>
)
}
const s = snap
const here = currentWorktree(s)
const current = s.branches.find(b => b.name === here?.branch)
const chosen = selected ? s.branches.find(b => b.name === selected) : undefined
// lanes are padded to one width so the hashes line up in a column
const laneWidth = Math.max(0, ...graph.map(row => row.cells.length))
const now = new Date()
const stampWidth = Math.max(0, ...graph.map(row => (row.commit ? commitStamp(row.commit.time, now).length : 0)))
const shaWidth = Math.max(0, ...graph.map(row => row.commit?.sha.length ?? 0))
// the buttons of a branch popup; `switch` and `open` keep their own keys, the hotkeys of the pane
const ops = (b: Branch) => {
const act = branchAction(s, b)
if (act.kind === 'current') return null
if (pending?.name === b.name) {
return (
<Box key="ops" flexDirection="row" columnGap={1}>
<Text color="yellow">{`${pending.op} ${b.name}?`}</Text>
<Button key="yes" label="yes" variant="primary" onPress={noop} />
<Button key="no" label="no" variant="primary" onPress={noop} />
</Box>
)
}
if (renaming?.name === b.name) {
return <Input key="rename" label="name " value={b.name} submitLabel="rename" autoFocus onSubmit={noop} />
}
const go = act.kind === 'switch' ? 'switch' : 'open'
const goLabel = go === 'switch' ? 'switch' : 'open worktree'
return (
<Box key="ops" flexDirection="row" columnGap={1}>
<Button key={go} label={goLabel} hotkey={go === 'switch' ? 's' : 'o'} variant="primary" onPress={noop} />
<Button key={`do:rename:${b.name}`} label="rename" variant="primary" onPress={noop} />
<Button key="opsmore:branch" label={moreOps ? 'less' : 'more'} variant="secondary" onPress={noop} />
{moreOps
? (['delete', 'merge', 'rebase'] as const).map(op => (
<Button key={`do:${op}:${b.name}`} label={op} variant="primary" onPress={noop} />
))
: null}
</Box>
)
}
return (
<Box flexDirection="column">
<Text bold>{fit(basename(s.worktrees[0]?.path ?? s.root), width)}</Text>
{error ? <Text color="red">{fit(error, width)}</Text> : null}
{pushAsk ? (
<Box key="push-ask" flexDirection="row" columnGap={1}>
<Text color="yellow">{`push to ${current?.upstream ?? s.remotes[0] ?? '?'}?`}</Text>
<Button key="yes" label="yes" variant="primary" onPress={noop} />
<Button key="no" label="no" variant="primary" onPress={noop} />
</Box>
) : (
<Box key="sync" flexDirection="row" columnGap={1}>
{s.remotes.length > 0 ? <Button key="fetch" label="fetch" variant="primary" onPress={noop} /> : null}
{current?.upstream ? <Button key="pull" label="pull" variant="primary" onPress={noop} /> : null}
{current && (current.upstream || s.remotes.length > 0) ? <Button key="push" label="push" variant="primary" onPress={noop} /> : null}
</Box>
)}
<Box key="wt-head" flexDirection="row" columnGap={1}>
<Text bold color="cyan">{`Worktrees (${s.worktrees.length})`}</Text>
{addingWt ? null : <Button key="wtadd" label="add" variant="primary" onPress={noop} />}
</Box>
{addingWt ? <Input key="wtnew" label="branch " value="" submitLabel="add" autoFocus onSubmit={noop} /> : null}
{s.worktrees.map((wt, i) => {
const isHere = wt === here
const name = wt.branch ?? (wt.bare ? '(bare)' : `(${wt.head.slice(0, 7)})`)
const dirty = wt.dirty ? ` ~${wt.dirty}` : ''
const flags = `${wt.locked ? ' locked' : ''}${wt.prunable ? ' prunable' : ''}`
return (
<Box key={`wt-row:${i}`} flexDirection="column">
<Box key="row" flexDirection="row">
<Text>{' '}</Text>
<Text color="green">{isHere ? ICONS.here : ICONS.other}</Text>
<Button
key={`wt:${i}`}
plain
dimColor={!isHere}
label={`${basename(wt.path)} ${name}`}
onPress={noop}
/>
{dirty ? <Text color="yellow">{dirty}</Text> : null}
{flags ? <Text color="red">{flags}</Text> : null}
{i > 0 ? <Button key={`wtm:${i}`} plain dimColor={wtMenu !== i} label=" …" onPress={noop} /> : null}
</Box>
{wtMenu === i ? (
<Box key="wt-detail" flexDirection="column" borderStyle="round" borderDimColor paddingX={1}>
<Text dimColor>{fit(wt.path, width - 4)}</Text>
{wtAsk ? (
<Box key="wt-ask" flexDirection="row" columnGap={1}>
<Text color="yellow">remove?</Text>
<Button key="yes" label="yes" variant="primary" onPress={noop} />
<Button key="no" label="no" variant="primary" onPress={noop} />
</Box>
) : (
<Box key="wt-ops" flexDirection="row" columnGap={1}>
<Button key="wtlock" label={wt.locked ? 'unlock' : 'lock'} variant="primary" onPress={noop} />
{isHere ? null : <Button key="wtdel" label="remove" variant="primary" onPress={noop} />}
</Box>
)}
</Box>
) : null}
</Box>
)
})}
<Box key="br-head" flexDirection="row">
<Text bold color="cyan">{`Branches (${s.branches.length})`}</Text>
</Box>
{s.branches.map((b, i) => {
const isHere = here?.branch === b.name
const marker = isHere ? ICONS.current : b.worktree ? ICONS.elsewhere : ICONS.plain
const track = trackLabel(b)
return (
<Box key={`br-row:${i}`} flexDirection="column">
<Box key="row" flexDirection="row">
<Text>{' '}</Text>
<Text color={isHere ? 'green' : 'blue'}>{marker}</Text>
<Text color={branchColor(b.name)}>● </Text>
<Button
key={`br:${i}`}
plain
dimColor={!isHere && selected !== b.name}
label={b.name}
onPress={noop}
/>
{track ? <Text color={b.gone ? 'red' : 'magenta'}>{` ${track}`}</Text> : null}
</Box>
{chosen === b ? (
<Box key="detail" flexDirection="column" borderStyle="round" borderDimColor paddingX={1}>
<Text bold>{fit(b.name, width - 4)}</Text>
<Text dimColor>{fit(`${b.upstream ?? 'no upstream'} · ${b.date}`, width - 4)}</Text>
{ops(b) ?? <Text dimColor>checked out here</Text>}
<Button key="scope" label={scope === b.name ? 'show all history' : 'history of this branch'} variant="primary" onPress={noop} />
</Box>
) : null}
</Box>
)
})}
{s.tags.length > 0 ? (
<Box key="tg-head" flexDirection="row">
<Text bold color="cyan">{`Tags (${s.tags.length})`}</Text>
</Box>
) : null}
{s.tags.map((t, i) => (
<Box key={`tg-row:${i}`} flexDirection="column">Licence text (MIT)
MIT License Copyright (c) 2026 c2h5oh 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), Add a slash command
What its code calls
runs programscalls tools
What its code shows
Read from the source at commit 9f12ff8a004e 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 read | Every module hooks/hooks.json names was read.cc-reflog/hooks/cc-reflog.tsx |
| Parses | Every file parses as TypeScript or JavaScript.2 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.cc-reflog/hooks/cc-reflog.tsx:206 a program named at run time; cc-reflog/hooks/cc-reflog.tsx:226 a program named at run time; cc-reflog/hooks/cc-reflog.tsx:243 a program named at run time; cc-reflog/hooks/cc-reflog.tsx:254 a program named at run time; cc-reflog/hooks/cc-reflog.tsx:289 a program named at run time |
| Reads and sends | Whether it both reads something of yours (files, environment variables, the transcript, settings) and reaches outside (the network, an MCP server, another session, telemetry).reaches nothing outside |
| 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 |
| Settings hooks | Hooks 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 ships | MCP 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, agents | What 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 MCP | Whether 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).command.run: /cd |
| Asks of the model | Completions 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 hooks | By 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 (cd) · reads: ui.press, ui.input · also: session.start, turn.complete, ui.close, ui.render (Pane) |
| Reads, by name | The 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 name | The 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 prompt box |
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 Nfet445/cc-reflog/plugin install reflog@cc-reflog/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (9f12ff8a004e). 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/Nfet445/cc-refloggit -C cc-reflog checkout 9f12ff8a004ec83380aa453c495ae073ede15c3fclaude plugin validate cc-reflog/cc-reflogclaude --plugin-dir cc-reflog/cc-reflogThe 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 "nfet445-reflog" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- code-modernizationAnthropic★ 37,653
- lcu-approveLCU★ 894
- ai-maestro-secrets23blocks-OS★ 817
- filetreeKurt Buhler★ 131
- great-ctoAlexander Velikiy★ 103
- hopeSaad Shahd★ 35
Badge for your README
If this is your mod, paste this into your README. It links to this page.
[](https://modscode.com/claude-mods/mods/nfet445-reflog/)