ModsCode / Claude Code Mods / Ranking / 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
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 mess-ages by tejeshkinariwala (pane), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/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.
How to build this: Pane (panel), Deny a tool call
What its code calls
runs programswrites filesenv varsdrives Claudetool callsremembers
What its code shows
Read from the source at commit 69f7e6e51380 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.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 marketplace line to give; the page shows how to try the commit read |
| 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 something of yours (files, environment variables, the transcript, settings) and reaches outside (the network, an MCP server, another session, telemetry).reads environment variables, files, but 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).calls no tool, MCP server or command |
| 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.model.complete, adds command ages |
| 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: prompt.submit, tool.call, command.run (ages) · also: session.start, turn.start, turn.complete, ui.render (Pane) (+2) · timers: clock.every |
| 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.env: HOME; files: a path computed at run time |
| 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.files: a path computed at run time |
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.
Its repository's .claude-plugin/marketplace.json does not list it, so there is no marketplace line to give.
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/tejeshkinariwala/mess-agesgit -C mess-ages checkout 69f7e6e513801ddfcd32143998ca223d63efed4eclaude plugin validate mess-agesclaude --plugin-dir mess-agesThe 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 "tejeshkinariwala-mess-ages" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- blast-radiusdeepseek-ai★ 247,289
- replay-theaterdeepseek-ai★ 247,289
- ruview-liveruvnet★ 97,236
- ruflo-swarmruvnet★ 74,323
- code-modernizationAnthropic★ 37,653
- seo-cockpitAgrici Daniel★ 18,364
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/tejeshkinariwala-mess-ages/)