agon
Agon inside Claude Code: a status band above the prompt, a read-only trade view and a market list whose every number comes from your Agon server; Buy, Sell and Ask only fill your prompt, with the mint and the numbers on screen, never a tok…
What it does
- Draws a band above the prompt, a pane, toasts
- Adds /agon-band, /agon
- Hooks session.start
- Keeps its own state between turns
- Calls the network
Good points
- Starts no processes
- Written in TypeScript
- Has a desktop-specific branch
- 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 agon by jishnu-baruah (pane, band, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/manjeetsharma0796-agon/
// 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 band above the prompt; what else goes there is drawn under it
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
const { Box, Button, Text } = $.ui.resolve(e)
const toggleLabel = '…'
const text = '…'
const text2 = '…'
const text3 = '…'
return (
<Box flexDirection="column">
<Box flexDirection="row" gap={2} alignItems="center" flexWrap="nowrap" overflow="hidden">
<Button plain label={`${toggleLabel}`} />
<Box flexDirection="row" gap={2} flexWrap="nowrap">
<Text wrap="truncate-end">
{text}
</Text>
<Text wrap="truncate-end">
{text2}
</Text>
<Text wrap="truncate-end">
{text3}
</Text>
</Box>
<Button label="trade" />
</Box>
{await next(e)}
</Box>
)
})
// the pane: open it with $.ui.open({ id: 'my-pane', title: "Agon trade" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button, Input } = $.ui.resolve(e)
const text = '…'
const text2 = '…'
const text3 = '…'
const label = '…'
const l = '…'
const l2 = '…'
const l3 = '…'
const text4 = '…'
const text5 = '…'
const text6 = '…'
const text7 = '…'
const text8 = '…'
const text9 = '…'
const text10 = '…'
const text11 = '…'
const text12 = '…'
const l4 = '…'
const l5 = '…'
const l6 = '…'
const l7 = '…'
const l8 = '…'
const l9 = '…'
const l10 = '…'
const l11 = '…'
const l12 = '…'
const l13 = '…'
const l14 = '…'
const l15 = '…'
const text13 = '…'
const text14 = '…'
const text15 = '…'
const text16 = '…'
const text17 = '…'
const text18 = '…'
const text19 = '…'
const text20 = '…'
const text21 = '…'
const text22 = '…'
const text23 = '…'
const text24 = '…'
const l16 = '…'
const l17 = '…'
const l18 = '…'
const r = '…'
const text25 = '…'
const text26 = '…'
const text27 = '…'
const text28 = '…'
const text29 = '…'
const text30 = '…'
const text31 = '…'
const text32 = '…'
const text33 = '…'
const text34 = '…'
const text35 = '…'
const text36 = '…'
const l19 = '…'
const l20 = '…'
const l21 = '…'
const text37 = '…'
const text38 = '…'
const text39 = '…'
const row = '…'
const row2 = '…'
const row3 = '…'
const row4 = '…'
const row5 = '…'
const row6 = '…'
const row7 = '…'
const row8 = '…'
const age = '…'
const row9 = '…'
const l22 = '…'
const l23 = '…'
const l24 = '…'
const row10 = '…'
const row11 = '…'
const row12 = '…'
const l25 = '…'
const l26 = '…'
const l27 = '…'
const l28 = '…'
const l29 = '…'
const l30 = '…'
const l31 = '…'
const l32 = '…'
const l33 = '…'
return (
<Box flexDirection="column">
<Box flexDirection="column">
<Box flexDirection="row" gap={2} flexWrap="nowrap">
<Text wrap="truncate-end">
{text}
</Text>
<Text wrap="truncate-end">
{text2}
</Text>
<Text wrap="truncate-end">
{text3}
</Text>
</Box>
<Box flexDirection="row" gap={2} flexWrap="nowrap">
{`pick-${label}`}
{`pick-${label}`}
{`pick-${label}`}
<Button plain hotkey="r" label="refresh" />
</Box>
</Box>
<Box flexDirection="column">
<Text wrap="truncate-end">
{l}
</Text>
<Text wrap="truncate-end">
{l2}
</Text>
<Text wrap="truncate-end">
{l3}
</Text>
<Box flexDirection="row" gap={2} flexWrap="nowrap">
<Text wrap="truncate-end">
{text4}
</Text>
<Text wrap="truncate-end">
{text5}
</Text>
<Text wrap="truncate-end">
{text6}
</Text>
</Box>
<Box flexDirection="row" gap={2} flexWrap="nowrap">
<Text wrap="truncate-end">
{text7}
</Text>
<Text wrap="truncate-end">
{text8}
</Text>
<Text wrap="truncate-end">
{text9}
</Text>
</Box>
<Box flexDirection="row" gap={2} flexWrap="nowrap">
<Text wrap="truncate-end">
{text10}
</Text>
<Text wrap="truncate-end">
{text11}
</Text>
<Text wrap="truncate-end">
{text12}
</Text>
</Box>
<Input placeholder="paste a mint address, then Enter" />
<Text color="yellow" wrap="truncate-end">
{l4}
</Text>
<Text color="yellow" wrap="truncate-end">
{l5}
</Text>
<Text color="yellow" wrap="truncate-end">
{l6}
</Text>
<Text wrap="truncate-end">
{l7}
</Text>
<Text wrap="truncate-end">
{l8}
</Text>
<Text wrap="truncate-end">
{l9}
</Text>
<Text wrap="truncate-end">
{l10}
</Text>
<Text wrap="truncate-end">
{l11}
</Text>
<Text wrap="truncate-end">
{l12}
</Text>
<Text wrap="truncate-end">
{l13}
</Text>
<Text wrap="truncate-end">
{l14}
</Text>
<Text wrap="truncate-end">
{l15}
</Text>
</Box>
<Box flexDirection="column">
<Box flexDirection="row" gap={2} flexWrap="nowrap">
<Text wrap="truncate-end">
{text13}
</Text>
<Text wrap="truncate-end">
{text14}
</Text>
<Text wrap="truncate-end">
{text15}
</Text>
</Box>
<Box flexDirection="row" gap={2} flexWrap="nowrap">
<Text wrap="truncate-end">
{text16}
</Text>
<Text wrap="truncate-end">
{text17}
</Text>
<Text wrap="truncate-end">
{text18}
</Text>
</Box>
<Box flexDirection="row" gap={2} flexWrap="nowrap">
<Text wrap="truncate-end">
{text19}
</Text>
<Text wrap="truncate-end">
{text20}
</Text>
<Text wrap="truncate-end">
{text21}
</Text>
</Box>
<Box flexDirection="row" gap={2} flexWrap="nowrap">
<Text wrap="truncate-end">
{text22}
</Text>
<Text wrap="truncate-end">
{text23}
</Text>
<Text wrap="truncate-end">
{text24}
</Text>
</Box>
<Text color="yellow" wrap="truncate-end">
{l16}
</Text>
<Text color="yellow" wrap="truncate-end">
{l17}
</Text>
<Text color="yellow" wrap="truncate-end">
{l18}
</Text>
</Box>
<Box flexDirection="row" gap={1} flexWrap="nowrap">
{`range-${r}`}
{`range-${r}`}
{`range-${r}`}
</Box>
<Box flexDirection="column">
<Box flexDirection="row" gap={2} flexWrap="nowrap">
<Text wrap="truncate-end">
{text25}
</Text>
<Text wrap="truncate-end">
{text26}
</Text>
<Text wrap="truncate-end">
{text27}
</Text>
</Box>
<Box flexDirection="row" gap={2} flexWrap="nowrap">
<Text wrap="truncate-end">
{text28}
</Text>
<Text wrap="truncate-end">
{text29}
</Text>
<Text wrap="truncate-end">
{text30}
</Text>
</Box>
<Box flexDirection="row" gap={2} flexWrap="nowrap">
<Text wrap="truncate-end">
{text31}
</Text>
<Text wrap="truncate-end">
{text32}
</Text>
<Text wrap="truncate-end">
{text33}
</Text>
</Box>
<Box flexDirection="row" gap={2} flexWrap="nowrap">
<Text wrap="truncate-end">
{text34}
</Text>
<Text wrap="truncate-end">
{text35}
</Text>
<Text wrap="truncate-end">
{text36}
</Text>
</Box>
</Box>
<Box flexDirection="row" gap={2} flexWrap="nowrap">
<Box flexDirection="column">
<Box flexDirection="column">
<Text bold>
Order book / depth
</Text>
<Text color="yellow" wrap="truncate-end">
{l19}
</Text>
<Text color="yellow" wrap="truncate-end">
{l20}
</Text>
<Text color="yellow" wrap="truncate-end">
{l21}
</Text>
<Box flexDirection="row" gap={2} flexWrap="nowrap">
<Text wrap="truncate-end">
{text37}
</Text>
<Text wrap="truncate-end">
{text38}
</Text>
<Text wrap="truncate-end">
{text39}
</Text>
</Box>
<Box flexDirection="column">
<Text dimColor bold>
{row}
</Text>
<Text color="red" wrap="truncate-end">
{row2}
</Text>
<Text color="red" wrap="truncate-end">
{row3}
</Text>
<Text color="red" wrap="truncate-end">
{row4}
</Text>
<Text>
{row5}
</Text>
<Text color="red" wrap="truncate-end">
{row6}
</Text>
<Text color="red" wrap="truncate-end">
{row7}
</Text>
<Text color="red" wrap="truncate-end">
{row8}
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="column">
<Box flexDirection="column">
<Text bold>
{`Recent trades, ${age} old, stale`}
</Text>
<Text dimColor bold>
{row9}
</Text>
<Text wrap="truncate-end">
{l22}
</Text>
<Text wrap="truncate-end">
{l23}
</Text>
<Text wrap="truncate-end">
{l24}
</Text>
<Text color="green" wrap="truncate-end">
{row10}
</Text>
<Text color="green" wrap="truncate-end">
{row11}
</Text>
<Text color="green" wrap="truncate-end">
{row12}
</Text>
<Text wrap="truncate-end">
{l25}
</Text>
<Text wrap="truncate-end">
{l26}
</Text>
<Text wrap="truncate-end">
{l27}
</Text>
</Box>
</Box>
</Box>
<Box flexDirection="column">
<Box flexDirection="row" gap={1} flexWrap="nowrap">
<Button hotkey="b" variant="primary" label="Buy" />
<Button hotkey="s" label="Sell" />
<Button hotkey="c" label="Check" />
<Button hotkey="a" label="Ask" />
</Box>
<Button hotkey="a" label="Ask" />
<Text wrap="truncate-end">
{l28}
</Text>
<Text wrap="truncate-end">
{l29}
</Text>
<Text wrap="truncate-end">
{l30}
</Text>
<Text wrap="truncate-end">
{l31}
</Text>
<Text wrap="truncate-end">
{l32}
</Text>
<Text wrap="truncate-end">
{l33}
</Text>
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
const mint = '…'
const range = '…'
const marketError = '…'
await $.ui.toast(`Agon needs Claude Code 2.1.286 or newer. Run \`claude update\`, then restart claude.`)
await $.ui.toast(`Nothing to ask about yet: /market has not answered for ${mint} ${range} (${marketError}). Press Ask again once the header …`)
return next(e)
})
}
The mod's own code
Its licence text was not found at the commit read, so only the places in the source are linked.
plugins/claude-code/hooks/register.tsxlines 363–366plugins/claude-code/hooks/register.tsxlines 542–624plugins/claude-code/hooks/register.tsxlines 487–504plugins/claude-code/hooks/register.tsxlines 368–371plugins/claude-code/hooks/register.tsxlines 2126–2268plugins/claude-code/hooks/register.tsxlines 1963–2003
What its code calls
networkremembers
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 538621772d7c 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.plugins/claude-code/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.1 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).runs no program a Windows PC lacks |
| Network | Whether every fetch names its https host in the code.plugins/claude-code/hooks/register.tsx:167 fetch(`${server}${path}`); plugins/claude-code/hooks/register.tsx:1855 fetch(`${server}/logo?mint=${encodeURIComponent(mint)}&s) |
| 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 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.no licence |
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 "manjeetsharma0796-agon" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
Ask Claude…Skins0 Your promptadd rate limiting to the hub api0 Tool rows: finished, running, failedYour prompt Spinner0 Folded group of reads and searches●main · note 3 · note 3 · note 30 Edit diff cardDesktop only; the terminal keeps Claude Code's diff.0 Shell output cardDesktop only.0 Code block cardDesktop only; the terminal keeps Claude Code's markdown.0 TableAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentCopyAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentCopyAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentCopy0 SpinnerAccent SpinnerSpinnerSpinner… 2h 10m0 Band above the prompt: normal, then nudging to compact█████░░░ 42% build█████░░░ 42% build█████░░░ 42% buildContext is 42% full0 Compact now0 Band above a questionTable BashBashBash0 Turn footer (terminal)3 build in 2h 10m · Grep · +3 −3
-
Ask Claude…蹦一蹦Claude needs youBack to ClaudeClick, hold SpaceContextShortcutShortcutShortcutSlow network, still loading…3 Skills33 Skills33 Skills3SkillsLeave leaderboardok. Showing the last resultsRetry3♪
-
Ask Claude…Model routerLast reply: Fix login → a1b2c3dKept off Opus to save the cache. Start a prompt with @Opus to force it.OnOffRoutes model and effort for each kind of prompt0 Fix loginbuildbuildbuildbuildbuildbuild0 Fix loginbuildbuildbuildbuildbuildbuild0 Fix loginbuildbuildbuildbuildbuildbuildYour rules checked firstNo rules yet. Pick a model and effort, type the words, press Add rule.Tasksa1b2c3d✕Tasksa1b2c3d✕Tasksa1b2c3d✕words, for example landing page, redesign Add rulebuildbuildbuildbuildbuildbuildOptions CoolingWhen still broken after xhigh, move tobuildbuildbuildCache saver: skip one-off model switches in long chatsbuildbuildbuildOne prompt only: start it with @opus, @max or @hardReset
-
build hatched! Say hi with /tamabuild grew into a build!Ask Claude…
-
Ask Claude…Historyf ◂ expand⚙ settingsFix loginbuildRemindAuto Remind ConcisebuildRemindAuto Remind ConcisebuildRemindAuto Remind Concise$1.24 this session · auto-compact at 3wrap-up 5h Remind · 7d Remind · /compact Learningwrap-up in 2h 10m CancelFix loginauto 2h 10m ■ Stop stotal 2h 10m · think 2h 10m0 · write 2h 10m0 · tools 2h 10m03 out · 12.4 tok/s◌ build 2h 10m◌ build 2h 10m◌ build 2h 10mFix login● 2h 10m · think 2h 10m · Explanatory tok/s · 3 tools · stopped● 2h 10m · think 2h 10m · Explanatory tok/s · 3 tools · stopped● 2h 10m · think 2h 10m · Explanatory tok/s · 3 tools · stoppedFix loginbuild 3 · Remind%build 3 · Remind%build 3 · Remind%
-
Ask Claude…Prayer timesOct 6Next prayer‹Today›⋯buildnowin 2h 10m2h 10m✓Sunrise 14:32buildnowin 2h 10m2h 10m✓Sunrise 14:32buildnowin 2h 10m2h 10m✓Sunrise 14:32