modscode / Gallery / claude-who
claude-who
Friends' Claude Code presence and usage leaderboards via /who.
What it does
- Draws a pane, the status line
- Adds /who
- Hooks session.start, turn.complete, turn.start, ui.close
- Keeps its own state between turns
- Calls the network
Good points
- Written in TypeScript
- Handles errors
- Writes no files
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 claude-who by Claude Who contributors (pane, status), as modscode read it from the mod's code:
// https://modscode.com/gallery/saharcarmel-claude-who/
// 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: "Claude Who" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button, Select } = $.ui.resolve(e)
const unreadMessages = '…'
const period = '…'
const groupId = '…'
const working = '…'
const length = '…'
const value = '…'
const name = '…'
const compact = '…'
const state = '…'
const lastSyncAt = '…'
const value2 = '…'
const name2 = '…'
const compact2 = '…'
const state2 = '…'
const value3 = '…'
const name3 = '…'
const compact3 = '…'
const state3 = '…'
const page = '…'
const pages = '…'
const error = '…'
return (
<Box flexDirection="column">
<Text bold color="cyan" wrap="truncate-end">
{"CLAUDE WHO / "}
Your circle
</Text>
<Box flexDirection="row" columnGap={1}>
<Text bold color="yellow">
{`● ${unreadMessages} message`}
</Text>
<Button label="Open inbox" />
</Box>
<Box flexDirection="row" columnGap={1}>
<Button label={`${period}${period}`} />
<Button label={`${period}${period}`} />
<Button label={`${period}${period}`} />
<Button label="…" />
</Box>
<Box flexDirection="row" columnGap={1}>
<Button label="Working…" />
<Button label="Members" />
<Button label={`Messages (${unreadMessages})`} />
</Box>
<Select label="Group" value={`${groupId}`} />
<Text bold wrap="truncate-end">
{working}
{" working · "}
{length}
{" friends · You #"}
—
{" / "}
0
</Text>
<Text dimColor wrap="truncate-end">
WORK TOKENS · input + output
</Text>
<Box flexDirection="column">
<Text color="cyan" wrap="truncate-end">
{value}
{" "}
{name}
{" (you)"}
{" · "}
{compact}
</Text>
<Text color="green" wrap="truncate-end">
████████
░░░░░░░░
{" "}
●
{" "}
{state}
</Text>
<Text dimColor wrap="truncate-end">
{`${compact} behind · `}
synced
{" "}
{`${lastSyncAt} UTC`}
</Text>
</Box>
<Box flexDirection="column">
<Text color="cyan" wrap="truncate-end">
{value2}
{" "}
{name2}
{" (you)"}
{" · "}
{compact2}
</Text>
<Text color="green" wrap="truncate-end">
████████
░░░░░░░░
{" "}
●
{" "}
{state2}
</Text>
<Text dimColor wrap="truncate-end">
{`${compact} behind · `}
synced
{" "}
{`${lastSyncAt} UTC`}
</Text>
</Box>
<Box flexDirection="column">
<Text color="cyan" wrap="truncate-end">
{value3}
{" "}
{name3}
{" (you)"}
{" · "}
{compact3}
</Text>
<Text color="green" wrap="truncate-end">
████████
░░░░░░░░
{" "}
●
{" "}
{state3}
</Text>
<Text dimColor wrap="truncate-end">
{`${compact} behind · `}
synced
{" "}
{`${lastSyncAt} UTC`}
</Text>
</Box>
<Box flexDirection="row" columnGap={1}>
<Button label="←" />
<Text dimColor>
{`${page}1`}
/
{pages}
</Text>
<Button label="→" />
<Button label="+ Group" dimColor />
<Button label="Close" dimColor />
</Box>
<Text color="yellow" wrap="truncate-end">
{error}
</Text>
</Box>
)
})
on('session.start', async ($, e, next) => {
await $.ui.status(`who: offline`)
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.
claude-who/hooks/index.tsx lines 144–303 · Pane
on("ui.render", { component: "Pane" }, ($, e, next) => {
if (e.requestId !== ID || !app || e.surface === "mobile") return next(e);
const { Box, Text, Button, Select, Input } = $.ui.resolve(e),
pane = app;
const columns = e.props.bodyColumns;
if (columns < 34)
return (
<Text dimColor>
Widen the pane to 34 columns to see the leaderboard.
</Text>
);
const rows =
pane.fresh || e.props.scroll.bodyRows === 0
? 26
: e.props.scroll.bodyRows;
pane.fresh = false;
const defer = (fn: () => Promise<unknown>) =>
pane.host.defer(() => {
void fn().catch(() => {});
});
const title = (
<Text bold color="cyan" wrap="truncate-end">
CLAUDE WHO / {clean(pane.data?.groupName || "Your circle")}
</Text>
);
if (pane.form === "messages" || pane.form === "compose") {
const message = pane.currentMessage;
const friends = pane.recipients;
if (pane.form === "compose" && !pane.reply && friends.length === 0)
return (
<Box flexDirection="column" width={columns}>
{title}
<Text bold>New private message</Text>
<Text>
{pane.loading
? "Loading group members…"
: pane.error
? "Could not load recipients. Try refreshing."
: !pane.data
? "Loading group members…"
: "No other members in this group. Invite a friend first."}
</Text>
<Box flexDirection="row" columnGap={1}>
<Button
key="refresh-recipients"
label="Refresh members"
onPress={() => {
void pane.refresh();
}}
/>
<Button
key="compose-back"
label="Back"
onPress={() => pane.edit("messages")}
/>
</Box>
{pane.error ? <Text color="yellow">{pane.error}</Text> : null}
</Box>
);
const text = Array.from(
(message?.text ?? "").replace(
/[\x00-\x1f\x7f-\x9f\u202a-\u202e\u2066-\u2069]/g,
" ",
),
);
const width = Math.max(16, columns - 4),
pageSize = width * Math.max(1, Math.min(5, rows - 14));
const pages = Math.max(1, Math.ceil(text.length / pageSize));
pane.messagePage = Math.min(pane.messagePage, pages - 1);
const shown = text.slice(
pane.messagePage * pageSize,
(pane.messagePage + 1) * pageSize,
);
const lines = Array.from(
{ length: Math.ceil(shown.length / width) },
(_, i) => shown.slice(i * width, (i + 1) * width).join(""),
);
return (
<Box flexDirection="column" width={columns}>
{title}
<Text bold>
{pane.form === "compose"
? pane.reply
? `Reply to ${clean(pane.reply.senderName)}`
: "New private message"
: `Messages · ${pane.messages.length} pending`}
</Text>
<Text dimColor>
Private to recipient · expires in 24h · no history
</Text>
{pane.form === "compose" ? (
<Box flexDirection="column">
{pane.reply ? (
<Text dimColor wrap="truncate-end">
{clean(pane.reply.text)}
</Text>
) : (
<Select
key="message-recipient"
label="To"
value={pane.recipientId || "choose-recipient"}
options={[
...(!pane.recipientId
? [
{
label: "Choose a friend",
value: "choose-recipient",
},
]
: []),
...friends.map((m) => ({ label: m.name, value: m.id })),
]}
onSelect={(v) =>
pane.chooseRecipient(v === "choose-recipient" ? "" : v)
}
/>
)}
<Input
key="message-draft"
label="Message"
placeholder="Say hello…"
value={pane.draft}
autoFocus
submitLabel="send"
onInput={(v) => {
if (pane.actionBusy) return;
pane.draft = v.slice(0, 1000);
}}
onSubmit={(v) => {
if (pane.actionBusy) return;
pane.draft = v.slice(0, 1000);
pane.send();
}}
/>
<Box flexDirection="row" columnGap={1}>
<Button
key="send-message"
label={pane.actionBusy ? "Sending…" : "Send"}
onPress={() => pane.send()}
/>
<Button
key="cancel-message"
label="Back"
onPress={() => {
if (!pane.actionBusy) pane.edit("messages");
}}
/>
</Box>
</Box>
) : (
<Box flexDirection="column">
{message ? (
<Box flexDirection="column">
<Select
key="inbox-message"
label="From"
value={`${message.senderId}:${message.id}`}
options={pane.messages.map((m) => ({
label: `${clean(m.senderName)} · ${new Date(m.createdAt).toISOString().slice(11, 16)} UTC`,
value: `${m.senderId}:${m.id}`,Licence text (MIT)
MIT License Copyright (c) 2026 Claude Who contributors 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
networkruns programsremembers
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 af28bec90a6c 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.claude-who/hooks/index.tsx |
| Parses | Every file parses as TypeScript or JavaScript.3 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.claude-who/hooks/index.tsx:16 fetch(url) |
| Programs | Whether every program it starts is named in the code and is not a shell, an interpreter or a network tool.claude-who/hooks/index.tsx:17 a program named at run time |
| Reads and sends | Whether it both reads files or environment variables and reaches the network.reaches the network, but reads no files and no environment variables |
| 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 SaharCarmel/claude-who/plugin install claude-who@claude-whoThis installs the marketplace's latest commit, which may not be the one read here (af28bec90a6c). 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 "saharcarmel-claude-who" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
Ask Claude…agent-discoverbuildbuildbuildRefreshMCP Browse/3Tab / shift+Tab move · Enter presses · ↑↓ scroll · Esc back to the promptBrowse...Audit asks:DeclineAcceptDeclineCancelAudit asks:DeclineAcceptDeclineCancelAudit asks:DeclineAcceptDeclineCancel
-
What it does
- Adds /sage-memory
- Watches Bash calls and can refuse them
- Hooks agent.spawn, classic.PostToolBatch, classic.SessionStart, prompt.attachment and 9 more
- Keeps its own state between turns
-
Ask Claude…VN Stock WatchHCMC Sector4s ago · Closed · caps 0/0 · Source: SSI APISector sExch eOpenReset dShowing Closed ✕Closed ✕Closed ✕mainShowing mainShowing mainShowingLoading…Stock tableStock tableStock tableStock tableStock tableStock tableStock tableStock tableStock tableVN30main mainLoading VN30…Map sizeMap sizeMap size Map sizeMap sizeMap sizeMy WatchlistSearch Exch add Open
-
a1b2c3d's result did not fit in the promptAsk Claude…
-
Ask Claude…clawdifybuild 3build 3build 3Presets layer on top of what you have. Reset first for a clean slate.Empty = Claude Code default · lists are comma-separated · tokens {model} {cwd} {time} {date}buildbuildbuildYours bring back exactly the look you saved. /clawdify delete <name> removes one.buildbuildbuildSave current as my-look savecopy JSONreset allWhile thinking
-
Ask Claude…IssuesChoose a repositoryBackRefresh open⠋Refreshing…This session● buildacme/appalex● buildacme/app● buildacme/app● buildacme/appalex● buildacme/app● buildacme/app● buildacme/appalex● buildacme/app● buildacme/app● buildacme/appPress Enter to open Refresh.