ModsCode / Claude Code Mods / Ranking / oneliner
oneliner
A calm instrument strip for Claude Code: 5-hour limit with forecast, prompt-cache countdown, context fill, git changes and ship, and next-step ideas, in one line above your prompt.
What it does
- Draws a pane, a band above the prompt, toasts
- Adds /ship, /handoff, /limits, /strip
- Watches tool calls and can refuse them
- Hooks classic.PostModelSwitch, classic.PreModelSwitch, classic.SessionStart, config.set and 6 more
- Keeps its own state between turns
Good points
- 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 oneliner by deadraw (pane, band, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/deadraw-oneliner/
// 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: "‹baseName›" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button } = $.ui.resolve(e)
const pct = '…'
const pace = '…'
const hhmmAt = '…'
const hhmm = '…'
const axis = '…'
const row = '…'
const futureRows = '…'
const axis2 = '…'
const row2 = '…'
const futureRows2 = '…'
const axis3 = '…'
const row3 = '…'
const futureRows3 = '…'
const hhmmAt2 = '…'
const hhmmAt3 = '…'
const weekPercent = '…'
const toLocaleDateString = '…'
return (
<Box flexDirection="column">
<Box flexDirection="row" gap={1}>
<Text bold>
{"5h "}
{pct}
%
</Text>
<Text dimColor>
{"· pace "}
+
{pace}
%/h
</Text>
<Text color="warning">
· full ~
{hhmmAt}
</Text>
<Text dimColor>
{"· resets "}
{hhmm}
</Text>
</Box>
<Box flexDirection="row">
<Text dimColor>
{axis}
{" │"}
</Text>
<Text>
{row}
</Text>
<Text dimColor>
{futureRows}
</Text>
</Box>
<Box flexDirection="row">
<Text dimColor>
{axis2}
{" │"}
</Text>
<Text>
{row2}
</Text>
<Text dimColor>
{futureRows2}
</Text>
</Box>
<Box flexDirection="row">
<Text dimColor>
{axis3}
{" │"}
</Text>
<Text>
{row3}
</Text>
<Text dimColor>
{futureRows3}
</Text>
</Box>
<Text dimColor>
{" └────────"}
</Text>
<Box flexDirection="row" justifyContent="space-between">
<Text dimColor>
{` ${hhmmAt}`}
</Text>
<Text dimColor>
{"now "}
{hhmmAt2}
</Text>
<Text dimColor>
{hhmmAt3}
</Text>
</Box>
<Text dimColor>
{"7-day window: "}
{weekPercent}
%
{` · resets ${toLocaleDateString}`}
</Text>
<Text dimColor italic>
The chart fills in as readings arrive (one per few minutes while you work).
</Text>
<Button role="dismiss" label="Close" />
</Box>
)
})
// the band above the prompt; what else goes there is drawn under it
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
const { Box, Text, Button } = $.ui.resolve(e)
const text = '…'
const text2 = '…'
const text3 = '…'
const text4 = '…'
const detail = '…'
const label = '…'
const text5 = '…'
const text6 = '…'
const text7 = '…'
const text8 = '…'
const text9 = '…'
const text10 = '…'
const text11 = '…'
const text12 = '…'
const ch = '…'
const ch2 = '…'
const ch3 = '…'
const ch4 = '…'
const ch5 = '…'
const ch6 = '…'
return (
<Box flexDirection="column">
<Box flexDirection="row" justifyContent="space-between">
<Box flexDirection="row" flexShrink={1} overflow="hidden">
<Box flexDirection="row" gap={1} paddingRight={1}>
<Text dimColor>
│
</Text>
<Box flexDirection="row">
<Text wrap="truncate">
{text}
</Text>
<Text wrap="truncate">
{text2}
</Text>
<Text wrap="truncate">
{text3}
</Text>
<Text wrap="truncate">
{text4}
</Text>
<Box display="none" gap={1}>
<Text dimColor wrap="truncate">
{` · ${detail}`}
</Text>
<Button label={`${label}`} />
<Button label={`${label}`} />
<Button label={`${label}`} />
</Box>
</Box>
<Box flexDirection="row">
<Button label={`${label}`} />
<Button plain label={`${label}`} />
</Box>
<Button label={`${label}`} />
<Button plain label={`${label}`} />
<Button label={`${label}`} />
<Button label={`${label}`} />
<Button label={`${label}`} />
</Box>
<Box flexDirection="row" gap={1} paddingRight={1}>
<Text dimColor>
│
</Text>
<Box flexDirection="row">
<Text wrap="truncate">
{text5}
</Text>
<Text wrap="truncate">
{text6}
</Text>
<Text wrap="truncate">
{text7}
</Text>
<Text wrap="truncate">
{text8}
</Text>
<Box display="none" gap={1}>
<Text dimColor wrap="truncate">
{` · ${detail}`}
</Text>
<Button label={`${label}`} />
<Button label={`${label}`} />
<Button label={`${label}`} />
</Box>
</Box>
<Box flexDirection="row">
<Button label={`${label}`} />
<Button plain label={`${label}`} />
</Box>
<Button label={`${label}`} />
<Button plain label={`${label}`} />
<Button label={`${label}`} />
<Button label={`${label}`} />
<Button label={`${label}`} />
</Box>
<Box flexDirection="row" gap={1} paddingRight={1}>
<Text dimColor>
│
</Text>
<Box flexDirection="row">
<Text wrap="truncate">
{text9}
</Text>
<Text wrap="truncate">
{text10}
</Text>
<Text wrap="truncate">
{text11}
</Text>
<Text wrap="truncate">
{text12}
</Text>
<Box display="none" gap={1}>
<Text dimColor wrap="truncate">
{` · ${detail}`}
</Text>
<Button label={`${label}`} />
<Button label={`${label}`} />
<Button label={`${label}`} />
</Box>
</Box>
<Box flexDirection="row">
<Button label={`${label}`} />
<Button plain label={`${label}`} />
</Box>
<Button label={`${label}`} />
<Button plain label={`${label}`} />
<Button label={`${label}`} />
<Button label={`${label}`} />
<Button label={`${label}`} />
</Box>
</Box>
<Box flexDirection="row" gap={1} flexShrink={0} marginLeft={1}>
<Box flexDirection="row">
<Text>
{ch}
</Text>
<Text>
{ch2}
</Text>
<Text>
{ch3}
</Text>
</Box>
<Button plain label=" ▾ " />
</Box>
</Box>
<Box flexDirection="row" gap={1}>
<Box flexDirection="row">
<Text>
{ch4}
</Text>
<Text>
{ch5}
</Text>
<Text>
{ch6}
</Text>
</Box>
<Text dimColor>
keep up to date automatically?
</Text>
<Button label="Yes" />
<Button label="No" />
</Box>
{await next(e)}
</Box>
)
})
on('session.start', async ($, e, next) => {
const path = '…'
await $.ui.toast(`Press Enter to clear; then ask Claude to continue from the handoff.`)
await $.ui.toast(`Couldn't write ${path}`)
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.
hooks/register.tsx lines 1622–1693 · Pane
on('ui.render', { component: 'Pane', requestId: LIMITS_PANE }, async ($, e) => {
const { Box, Text, Button } = $.ui.resolve(e)
const [l, at] = await Promise.all([read($, limit), read($, now)])
const h = ((await $.store.get(HISTORY_KEY)) as History | undefined) ?? { resetsAt: null, points: [] }
const width = Math.max(20, Math.min(72, ((e.props as { bodyColumns?: number }).bodyColumns ?? 60) - 8))
const close = <Button key="limits-close" role="dismiss" label="Close" onPress={() => void $.ui.close({ id: LIMITS_PANE })} />
if (l.percent === null || !l.resetsAt) {
return <Box flexDirection="column"><Text dimColor>No limit reading yet: it arrives with the next reply.</Text>{close}</Box>
}
const end = Date.parse(l.resetsAt)
const start = end - WINDOW_MS
const nowAt = at || Date.now()
const fullAt = limitFullAt(l)
const pace = (() => {
const s = l.samples ?? []
if (s.length < 2) return null
const first = s[0]
const last = s[s.length - 1]
if (!first || !last) return null
const span = last.at - first.at
return span >= FORECAST_MIN_SPAN_MS ? ((last.pct - first.pct) / span) * 3_600_000 : null
})()
const points = h.resetsAt === l.resetsAt ? h.points : []
// Each column is a slice of the 5h window: past → last reading; future → the forecast line.
const past: (number | null)[] = []
const future: (number | null)[] = []
for (let i = 0; i < width; i++) {
const t = start + ((i + 1) / width) * WINDOW_MS
if (t <= nowAt) {
const before = points.filter(p => p.at <= t)
past.push(before[before.length - 1]?.pct ?? null)
future.push(null)
} else {
past.push(null)
future.push(pace !== null && pace > 0 ? Math.min(100, l.percent + (pace * (t - nowAt)) / 3_600_000) : null)
}
}
const pastRows = barRows(past, 5)
const futureRows = barRows(future, 5)
const pct = Math.round(l.percent)
const tone = pct >= LIMIT_RED_PCT ? 'error' : pct >= LIMIT_YELLOW_PCT ? 'warning' : 'success'
const axis = ['100', '', ' 50', '', ' 0']
const nowCol = Math.max(0, Math.min(width - 1, Math.floor(((nowAt - start) / WINDOW_MS) * width)))
return (
<Box flexDirection="column">
<Box flexDirection="row" gap={1}>
<Text color={tone} bold>5h {pct}%</Text>
{pace !== null && <Text dimColor>· pace {pace >= 0 ? '+' : ''}{Math.round(pace)}%/h</Text>}
{fullAt !== null
? <Text color="warning">· full ~{hhmmAt(fullAt)}</Text>
: <Text dimColor>· won't fill before reset</Text>}
<Text dimColor>· resets {hhmm(l.resetsAt)}</Text>
</Box>
{pastRows.map((row, r) => (
<Box flexDirection="row">
<Text dimColor>{(axis[r] ?? '').padStart(3)} │</Text>
<Text color={tone}>{row.slice(0, nowCol + 1)}</Text>
<Text dimColor>{(futureRows[r] ?? '').slice(nowCol + 1)}</Text>
</Box>
))}
<Text dimColor>{' └' + '─'.repeat(width)}</Text>
<Box flexDirection="row" width={width + 5} justifyContent="space-between">
<Text dimColor>{' ' + hhmmAt(start)}</Text>
<Text dimColor>now {hhmmAt(nowAt)}</Text>
<Text dimColor>{hhmmAt(end)}</Text>
</Box>
{l.weekPercent !== null && <Text dimColor>7-day window: {Math.round(l.weekPercent)}%{l.weekResetsAt ? ` · resets ${new Date(l.weekResetsAt).toLocaleDateString()}` : ''}</Text>}
{points.length < 3 && <Text dimColor italic>The chart fills in as readings arrive (one per few minutes while you work).</Text>}
{close}
</Box>
)
})hooks/register.tsx lines 1751–1910 · Band
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
if (e.props.hasSurvey) return next(e)
const { Box, Text, Button } = $.ui.resolve(e)
const [hiddenParts, isMenuOpen, writingHandoff, isOfferingUpdate] = await Promise.all([read($, hidden), read($, stripMenu), read($, isWritingHandoff), read($, autoUpdateOffer)])
let [g, d, l, c, ctx, at, shipping, n] = await Promise.all([
read($, git), read($, dev), read($, limit), read($, cache), read($, context), read($, now), read($, isShipping),
read($, nextSteps),
])
const demoLevel = (await read($, demo)) as DemoLevel | null
const changesOpen = await read($, isChangesOpen)
if (demoLevel) ({ g, d, l, c, ctx, n } = demoFixture(demoLevel, at || Date.now(), n))
// Past its reset the window is empty, even before the next turn reports a new reading.
if (l.resetsAt && (at || Date.now()) >= Date.parse(l.resetsAt)) l = { ...l, percent: 0, resetsAt: null, samples: [] }
if (l.weekResetsAt && (at || Date.now()) >= Date.parse(l.weekResetsAt)) l = { ...l, weekPercent: 0, weekResetsAt: null }
const cols = e.props.bodyColumns
const isTight = cols < 60
type Seg = {
id: string; text: string; color?: string; dim?: boolean
extras?: { text: string; color?: string; dim?: boolean; drop?: number }[] // more numbers, each with its own color; `drop`: lower goes first when narrow
button?: { label: string; onPress: () => void }
detail?: string // revealed after the text while the pointer is over the part (desktop)
detailMode?: 'push' | 'over' // push the parts to its right aside, or cover them to the strip's end
buttons?: { label: string; onPress: () => void }[] // more buttons after `button`
detailButtons?: { label: string; onPress: () => void }[] // actions offered only on hover
toggle?: { label: string; onPress: () => void } // a plain ▾ / ▴ right after the text (git's changes panel)
}
const segs: Seg[] = []
const segTextLen = (s: Seg) => s.text.length + (s.extras ?? []).reduce((n, x) => n + x.text.length, 0)
// The changes panel and next take turns: opening one closes the other.
const toggleChanges = () => void (async () => {
const isOpening = !(await read($, isChangesOpen))
if (isOpening) {
await update($, nextSteps, (s): NextState => ({ ...s, isOpen: false }))
await update($, stripMenu, () => false)
void refreshGit($)
}
await update($, isChangesOpen, () => isOpening)
})()
// git
if (g.isRepo) {
const dirty = g.changed > 0 || g.ahead > 0
const isDiverged = g.ahead > 0 && g.behind > 0
const isBroken = g.conflicts > 0 || g.operation !== null
const parts = [g.branch]
if (g.changed) parts.push(`${g.changed}Δ`)
if (g.ahead) parts.push(`${g.ahead}↑`)
if (g.behind) parts.push(`${g.behind}↓`)
segs.push({
id: 'git',
text: shipping ? `${g.branch} shipping…`
: isBroken ? `${g.branch} · ${g.operation ?? 'merge'}${g.conflicts ? ` ${g.conflicts}✗` : ''}`
: isDiverged ? `${g.branch} · diverged ${g.ahead}↑${g.behind}↓`
: dirty ? parts.join(isTight ? ' ' : ' · ') : `${g.branch} ✓`,
color: isBroken || isDiverged ? 'error' : dirty || g.behind ? 'warning' : g.hasUpstream ? 'success' : undefined,
dim: !isBroken && !isDiverged && !dirty && !g.behind && !g.hasUpstream,
// Ship lives in the changes panel (▴), not on the strip.
detail: [
// One file: its name and line counts. More: how many, and the lines over all of them
// (what's to push or pull is already on the strip).
g.changed === 1 && g.stats?.[0] ? fileLine(g.stats[0])
: g.changed > 1 ? `${g.changed} edits${g.added || g.removed ? ` +${g.added ?? 0} −${g.removed ?? 0}` : ''}` : '',
!g.hasUpstream ? 'not on a remote yet' : '',
// The last commit's files by name, and how long ago.
g.lastFiles?.length
? `last: ${g.lastFiles.join(', ')}${g.lastFilesMore ? ` +${g.lastFilesMore} more` : ''}${g.lastAt ? ` · ${shortAge(at - g.lastAt * 1000)} ago` : ''}`
: '',
].filter(Boolean).join(' · '),
detailMode: 'push',
toggle: { label: changesOpen ? '▾' : '▴', onPress: toggleChanges },
})
}
// dev server
if (d.port !== null) {
const map = {
up: { text: `:${d.port}`, color: 'success' },
down: { text: isTight ? `:${d.port} ↓` : `:${d.port} down`, dim: true },
starting: { text: `:${d.port} starting…`, dim: true },
error: { text: isTight ? 'build ✗' : `build error`, color: 'error' },
none: { text: '', dim: true },
} as const
const s = map[d.status]
segs.push({
id: 'dev', text: s.text, color: 'color' in s ? s.color : undefined, dim: 'dim' in s && s.dim,
button: d.status === 'down' ? { label: 'Start', onPress: () => void startDev($, cwd) } : undefined,
detail: d.status === 'error' ? (d.error ?? 'see the dev server output')
: d.status === 'up' ? `http://localhost:${d.port}`
: d.status === 'down' ? `localhost:${d.port} is not running` : '',
detailMode: 'push',
})
}
// limit
if (l.percent !== null) {
const pct = Math.round(l.percent)
const tone = pct >= LIMIT_RED_PCT ? 'error' : pct >= LIMIT_YELLOW_PCT ? 'warning' : 'success'
const hot = tone !== 'success'
const minsLeft = l.resetsAt ? Math.max(0, Math.ceil((Date.parse(l.resetsAt) - at) / 60_000)) : null
const fullAt = limitFullAt(l)
const reset = fullAt !== null ? ` · full ~${hhmmAt(fullAt)}`
: minsLeft !== null && minsLeft < 60 ? ` · ${minsLeft} min`
: hot && l.resetsAt && !isTight ? ` · ${hhmm(l.resetsAt)}` : ''
const week = l.weekPercent !== null && l.weekPercent >= WEEK_SHOW_PCT ? Math.round(l.weekPercent) : null
segs.push({
id: 'limit',
text: `5h ${pct}%${reset}`,
color: tone,
extras: week !== null
? [{ text: ` · 7d ${week}%`, color: week >= LIMIT_RED_PCT ? 'error' : 'warning', drop: 3 }]
: undefined,
// Close to the wall: offer to write the handoff while there's still room to.
button: (tone === 'error' || (fullAt !== null && fullAt - at < 60 * 60_000)) && !writingHandoff
? { label: 'Handoff', onPress: () => void writeHandoff($, cwd) }
: undefined,
detail: [
l.resetsAt ? `resets ${hhmm(l.resetsAt)}` : '',
fullAt !== null ? `full ~${hhmmAt(fullAt)}` : '',
l.weekPercent !== null ? `7d ${Math.round(l.weekPercent)}%` : '',
ctx.usd ? `$${ctx.usd.toFixed(2)}` : '',
].filter(Boolean).join(' · '),
})
}
// context window
const isContextRed = ctx.percent !== null && Math.round(ctx.percent) >= CONTEXT_RED_PCT
if (ctx.percent !== null) {
const pct = Math.round(ctx.percent)
const k = ctx.tokens !== null && !isTight ? ` · ${tokensShort(ctx.tokens)}` : ''
segs.push({
id: 'context',
text: `ctx ${pct}%${k}`,
color: pct >= CONTEXT_RED_PCT ? 'error' : pct >= CONTEXT_YELLOW_PCT ? 'warning' : 'success',
button: isContextRed && !writingHandoff ? { label: 'Handoff', onPress: () => void writeHandoff($, cwd) } : undefined,
buttons: isContextRed ? [{ label: 'Compact', onPress: () => void compactNow($) }] : undefined,
detail: [
`${100 - pct}% free`,
ctx.window ? `of ${tokensShort(ctx.window)}` : '',
].filter(Boolean).join(' '),
// On hover at any fill: the same two, as icons (handoff, compact).
detailButtons: isContextRed ? undefined : [
...(writingHandoff ? [] : [{ label: '📝', onPress: () => void writeHandoff($, cwd) }]),
{ label: '♻️', onPress: () => void compactNow($) },
],
detailMode: 'push',
})
}
// cache clock
const ttl = cacheTtl(c, l)
const isShort = ttl < CACHE_TTL_MIN
const left = cacheMinutesLeft(c, ttl, at)
if (left !== null) {
const cold = left === 0 || c.resetReason != null
const share = ((secsLeftExact(c, ttl, at) ?? 0) / 60) / ttl
const timeTone = cold || share < CACHE_RED_SHARE ? 'error' : share < CACHE_GREEN_SHARE ? 'warning' : 'success'
const readTone = c.readPercent === null ? undefined
: c.readPercent >= READ_GREEN_PCT ? 'success' : c.readPercent >= READ_RED_PCT ? 'warning' : 'error'Licence text (MIT)
MIT License Copyright (c) 2026 deadraw 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
networkruns programswrites filesdrives Claudetool callsrememberscalls tools
What its code shows
Read from the source at commit 4347ff296daa 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.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.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.hooks/register.tsx:633 fetch(`http://localhost:${d.port}/`) |
| Programs | Whether every program it starts is named in the code and is not a shell, an interpreter or a network tool.hooks/register.tsx:450 a program named at run time; hooks/register.tsx:653 a program named at run time |
| 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 files and reaches the 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 |
| 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).command.run: /clear; command.run: /model; command.run: /compact |
| 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.prompt.submit (as the person), model.fork (sends its own transcript), model.complete, adds command ship, adds command brief, adds command handoff, adds command limits, adds command strip |
| 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, command.run (ship, handoff, limits (+2)), config.set, session.append, tool.call · shapes: turn.step · reads: classic.SessionStart, classic.PreModelSwitch, classic.PostModelSwitch · also: session.start, turn.complete, session.compact, ui.render (Pane, AbovePrompt) · timers: clock.after, 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.files: a path computed at run time, …/…, …/gradlew.bat, …/gradlew, C:/Program Files/Android/Android Studio… (+2) |
| 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, …/.claude/handoff.md; the prompt box |
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.
From its marketplace
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 deadraw/claude-code-oneliner/plugin install oneliner@deadraw/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (4347ff296daa). Compare them before you install. /reload-plugins loads it into a session that is already open.
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/deadraw/claude-code-onelinergit -C claude-code-oneliner checkout 4347ff296daa461960c6e1f80558d356e22fcd29claude plugin validate claude-code-onelinerclaude --plugin-dir claude-code-onelinerThe 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 "deadraw-oneliner" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- code-modernizationAnthropic★ 37,653
- crit-tuiTomasz Tomczyk★ 1,196
- ai-maestro-secrets23blocks-OS★ 817
- remctlFederico Viticci★ 595
- task-orchestrator-modJeff Picklyk★ 208
- agent-radarHamza Zafar★ 184
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/deadraw-oneliner/)