modscode / Gallery / mess-ages
mess-ages
Dim 'time ago · short summary' labels under every message in Claude Code, and an /ages side panel
What it does
- Draws a pane
- Adds /ages
- Watches tool calls and can refuse them
- Hooks prompt.submit, session.start, turn.complete, turn.start and 2 more
- Keeps its own state between turns
Good points
- No network calls
- Written in TypeScript
- Handles errors
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 mess-ages by tejeshkinariwala (pane), as modscode read it from the mod's code:
// https://modscode.com/gallery/tejeshkinariwala-mess-ages/
// 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: "Ages" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button } = $.ui.resolve(e)
const hidden = '…'
const title = '…'
const length = '…'
const age = '…'
const verb = '…'
const detail = '…'
const detail2 = '…'
const detail3 = '…'
const age2 = '…'
const detail4 = '…'
const detail5 = '…'
const detail6 = '…'
const age3 = '…'
const detail7 = '…'
const detail8 = '…'
const detail9 = '…'
const age4 = '…'
const detail10 = '…'
const detail11 = '…'
const detail12 = '…'
const age5 = '…'
const detail13 = '…'
const detail14 = '…'
const detail15 = '…'
const age6 = '…'
const detail16 = '…'
const detail17 = '…'
const detail18 = '…'
const age7 = '…'
const detail19 = '…'
const detail20 = '…'
const detail21 = '…'
const age8 = '…'
const detail22 = '…'
const detail23 = '…'
const detail24 = '…'
const age9 = '…'
const detail25 = '…'
const detail26 = '…'
const detail27 = '…'
return (
<Box flexDirection="column">
<Text dimColor>
No messages yet.
</Text>
<Text dimColor>
{`${hidden} earlier message (no summary)`}
</Text>
<Box flexDirection="column">
<Button plain label={`▸ ${title} (${length})`} />
<Box>
<Box width={5} flexShrink={0}>
<Text dimColor>
{age}
</Text>
</Box>
<Box flexGrow={1} flexShrink={1}>
<Text>
<Text dimColor />
<Text dimColor>
{" | "}
</Text>
<Text>
{`${verb}: `}
</Text>
<Text dimColor>
{detail}
</Text>
<Text dimColor>
{" | "}
</Text>
<Text>
{`${verb}: `}
</Text>
<Text dimColor>
{detail2}
</Text>
<Text dimColor>
{" | "}
</Text>
<Text>
{`${verb}: `}
</Text>
<Text dimColor>
{detail3}
</Text>
</Text>
</Box>
</Box>
<Box>
<Box width={5} flexShrink={0}>
<Text dimColor>
{age2}
</Text>
</Box>
<Box flexGrow={1} flexShrink={1}>
<Text>
<Text dimColor />
<Text dimColor>
{" | "}
</Text>
<Text>
{`${verb}: `}
</Text>
<Text dimColor>
{detail4}
</Text>
<Text dimColor>
{" | "}
</Text>
<Text>
{`${verb}: `}
</Text>
<Text dimColor>
{detail5}
</Text>
<Text dimColor>
{" | "}
</Text>
<Text>
{`${verb}: `}
</Text>
<Text dimColor>
{detail6}
</Text>
</Text>
</Box>
</Box>
<Box>
<Box width={5} flexShrink={0}>
<Text dimColor>
{age3}
</Text>
</Box>
<Box flexGrow={1} flexShrink={1}>
<Text>
<Text dimColor />
<Text dimColor>
{" | "}
</Text>
<Text>
{`${verb}: `}
</Text>
<Text dimColor>
{detail7}
</Text>
<Text dimColor>
{" | "}
</Text>
<Text>
{`${verb}: `}
</Text>
<Text dimColor>
{detail8}
</Text>
<Text dimColor>
{" | "}
</Text>
<Text>
{`${verb}: `}
</Text>
<Text dimColor>
{detail9}
</Text>
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="column">
<Button plain label={`▸ ${title} (${length})`} />
<Box>
<Box width={5} flexShrink={0}>
<Text dimColor>
{age4}
</Text>
</Box>
<Box flexGrow={1} flexShrink={1}>
<Text>
<Text dimColor />
<Text dimColor>
{" | "}
</Text>
<Text>
{`${verb}: `}
</Text>
<Text dimColor>
{detail10}
</Text>
<Text dimColor>
{" | "}
</Text>
<Text>
{`${verb}: `}
</Text>
<Text dimColor>
{detail11}
</Text>
<Text dimColor>
{" | "}
</Text>
<Text>
{`${verb}: `}
</Text>
<Text dimColor>
{detail12}
</Text>
</Text>
</Box>
</Box>
<Box>
<Box width={5} flexShrink={0}>
<Text dimColor>
{age5}
</Text>
</Box>
<Box flexGrow={1} flexShrink={1}>
<Text>
<Text dimColor />
<Text dimColor>
{" | "}
</Text>
<Text>
{`${verb}: `}
</Text>
<Text dimColor>
{detail13}
</Text>
<Text dimColor>
{" | "}
</Text>
<Text>
{`${verb}: `}
</Text>
<Text dimColor>
{detail14}
</Text>
<Text dimColor>
{" | "}
</Text>
<Text>
{`${verb}: `}
</Text>
<Text dimColor>
{detail15}
</Text>
</Text>
</Box>
</Box>
<Box>
<Box width={5} flexShrink={0}>
<Text dimColor>
{age6}
</Text>
</Box>
<Box flexGrow={1} flexShrink={1}>
<Text>
<Text dimColor />
<Text dimColor>
{" | "}
</Text>
<Text>
{`${verb}: `}
</Text>
<Text dimColor>
{detail16}
</Text>
<Text dimColor>
{" | "}
</Text>
<Text>
{`${verb}: `}
</Text>
<Text dimColor>
{detail17}
</Text>
<Text dimColor>
{" | "}
</Text>
<Text>
{`${verb}: `}
</Text>
<Text dimColor>
{detail18}
</Text>
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="column">
<Button plain label={`▸ ${title} (${length})`} />
<Box>
<Box width={5} flexShrink={0}>
<Text dimColor>
{age7}
</Text>
</Box>
<Box flexGrow={1} flexShrink={1}>
<Text>
<Text dimColor />
<Text dimColor>
{" | "}
</Text>
<Text>
{`${verb}: `}
</Text>
<Text dimColor>
{detail19}
</Text>
<Text dimColor>
{" | "}
</Text>
<Text>
{`${verb}: `}
</Text>
<Text dimColor>
{detail20}
</Text>
<Text dimColor>
{" | "}
</Text>
<Text>
{`${verb}: `}
</Text>
<Text dimColor>
{detail21}
</Text>
</Text>
</Box>
</Box>
<Box>
<Box width={5} flexShrink={0}>
<Text dimColor>
{age8}
</Text>
</Box>
<Box flexGrow={1} flexShrink={1}>
<Text>
<Text dimColor />
<Text dimColor>
{" | "}
</Text>
<Text>
{`${verb}: `}
</Text>
<Text dimColor>
{detail22}
</Text>
<Text dimColor>
{" | "}
</Text>
<Text>
{`${verb}: `}
</Text>
<Text dimColor>
{detail23}
</Text>
<Text dimColor>
{" | "}
</Text>
<Text>
{`${verb}: `}
</Text>
<Text dimColor>
{detail24}
</Text>
</Text>
</Box>
</Box>
<Box>
<Box width={5} flexShrink={0}>
<Text dimColor>
{age9}
</Text>
</Box>
<Box flexGrow={1} flexShrink={1}>
<Text>
<Text dimColor />
<Text dimColor>
{" | "}
</Text>
<Text>
{`${verb}: `}
</Text>
<Text dimColor>
{detail25}
</Text>
<Text dimColor>
{" | "}
</Text>
<Text>
{`${verb}: `}
</Text>
<Text dimColor>
{detail26}
</Text>
<Text dimColor>
{" | "}
</Text>
<Text>
{`${verb}: `}
</Text>
<Text dimColor>
{detail27}
</Text>
</Text>
</Box>
</Box>
</Box>
<Box>
<Button label="Minimize" hotkey="m" />
<Button label="Collapse all" hotkey="c" />
<Button label="Expand all" hotkey="e" />
</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.
hooks/register.tsx lines 361–420 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const { Box, Button, Text } = $.ui.resolve(e)
const all = await read($, labels)
const list = rows(all, await read($, now))
const shown = list.filter(row => row.label)
const hidden = list.length - shown.length
const parts = sections(await read($, groups), shown.map(row => row.id))
const folded = await read($, folds)
const byId = new Map(shown.map(row => [row.id, row]))
const drawRow = (row: Row) => (
<Box>
{/* Fixed width, never shrunk: a long summary wraps in its own column. */}
<Box width={AGE_WIDTH} flexShrink={0}>
<Text dimColor>{row.age}</Text>
</Box>
<Box flexGrow={1} flexShrink={1}>
{labelText(Text, row.label!, '')}
</Box>
</Box>
)
// Fold choices are written from the press, never while drawing.
const setFolds = (fn: (m: Folds) => Folds) => update($, folds, fn)
return (
<Box flexDirection="column">
{list.length === 0 && <Text dimColor>No messages yet.</Text>}
{hidden > 0 && (
<Text dimColor>{`${hidden} earlier message${hidden === 1 ? '' : 's'} (no summary)`}</Text>
)}
{parts
? parts.map(part => {
const isFolded = isCollapsed(part, folded)
return (
<Box flexDirection="column">
{/* The header: Enter on it (the focus ring is the cursor) folds or unfolds it. */}
<Button
key={`group:${part.key}`} plain
label={`${isFolded ? '▸' : '▾'} ${part.title} (${part.ids.length})`}
onPress={() => setFolds(m => ({ ...m, [part.key]: !isCollapsed(part, m) }))}
/>
{!isFolded && part.ids.map(id => drawRow(byId.get(id)!))}
</Box>
)
})
: shown.map(drawRow)}
<Box>
<Button key="minimize" label="Minimize" hotkey="m" onPress={() => $.ui.close({ id: PANE })} />
{parts && (
<Button key="collapse" label="Collapse all" hotkey="c"
onPress={() => setFolds(m => ({ ...m, ...Object.fromEntries(parts.map(p => [p.key, true])) }))} />
)}
{parts && (
<Button key="expand" label="Expand all" hotkey="e"
onPress={() => setFolds(m => ({ ...m, ...Object.fromEntries(parts.map(p => [p.key, false])) }))} />
)}
</Box>
</Box>
)
})hooks/register.tsx lines 96–110 · Pane
function labelText(Text: any, label: Label, lead: string) {
const segments = parseSegments(label.words)
if (segments.length <= 1) return <Text {...colorOf(label.kind)}>{`${lead}${label.words}`}</Text>
const verbColor = (verb: string) => colorOf(label.kind === 'input' ? 'input' : verbGroup(verb))
return (
<Text>
{lead && <Text dimColor>{lead}</Text>}
{segments.flatMap((s, i) => [
...(i ? [<Text dimColor>{' | '}</Text>] : []),
...(s.verb ? [<Text {...verbColor(s.verb)}>{`${s.verb}: `}</Text>] : []),
<Text dimColor>{s.detail}</Text>,
])}
</Text>
)
}Licence text (MIT)
MIT License Copyright (c) 2026 Tejesh Kinariwala 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
runs programswrites filesenv varsdrives Claudetool callsremembers
The design, read from code
Drawn 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 69f7e6e51380 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.hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.8 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.its repository's .claude-plugin/marketplace.json does not list it: no install line to give |
| Programs on Windows | Whether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).hooks/register.tsx:233 rm (not on Windows) |
| 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.rm |
| 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's .claude-plugin/marketplace.json does not list it, so there is no install line to give. Read it as code, or follow its author's README.
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 "tejeshkinariwala-mess-ages" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
Ask Claude…Blast RadiusBlast Radius: npm testWould Cancel. Proceed Proceed ProceedProceed 1Cancel 2
-
Ask Claude…Replay TheaterReplay Theater 31 31 31src/app.ts (step 01 of 3)● Write● Write● WritePrev pNext nClose q
-
What it does
- Draws a pane
- Hooks session.end, session.start, ui.close
- Starts processes
-
Ask Claude…Fix login▸★ build ok▸★ build ok▸★ build ok+3 moretasks 3 pending · Glob claimed · 3 doneConsensus42%
-
Ask Claude…2h 10m · █████░░░✓ build ✓ build ✓ buildJavaKotlin3 Python■ ok 3 ■ ok 3 ■ ok 3 Razor proven 3 Razor proven 3 Razor proven 3Phases ──────── 3/3build Pythonbuild Pythonbuild Python… 3 more phasesLua ──────── 3/Kotlin■ the whole upgrade Ruby■ build build Ruby■ build build Ruby■ build build Ruby … 3 moreNext ──────── PythonRuby (by hand)Podsclick a button, or ctrl+x tab then Tab, EnterAttention ──────── 3! Scala ! Scala ! Scala … 3 moreSession ──────── okJava
-
What it does
- Draws a band above the prompt
- Adds /seo-spend, /seo-doctor, /seo-cockpit
- Watches Agent calls and can refuse them
- Hooks agent.spawn, classic.SessionStart, prompt.submit, session.compact and 3 more