ModsCode / Claude Code Mods / Ranking / agon
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
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 agon by jishnu-baruah (pane, band, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/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
How to build this: Pane (panel), Add a slash command
What its code calls
networkremembers
What its code shows
Read from the source at commit 538621772d7c 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.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 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).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 something of yours (files, environment variables, the transcript, settings) and reaches outside (the network, an MCP server, another session, telemetry).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 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/manjeetsharma0796/agon-devgit -C agon-dev checkout 538621772d7c8a30d687d7fd25256a1dbd4b78dfclaude plugin validate agon-dev/plugins/claude-codeclaude --plugin-dir agon-dev/plugins/claude-codeThe 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 "manjeetsharma0796-agon" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- hopAGI Hunt★ 2
- cockpitSyed Muhammad Hassaan★ 1
- skinshellosverre★ 1
- cc-tamagotchiDavid Durco★ 0
- cockpitAndré Servaes★ 0
- context-gaugekirishimarisano-rgb★ 0
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/manjeetsharma0796-agon/)