ModsCode / Claude Code Mods / Ranking / orc
orc
Full-SDLC Claude Code plugin — plan → implement → QA → ship → CI → release, with root-cause debugging, incident response, and dependency care. Hook-enforced guardrails, curated skills, model/effort-tuned agents.
What it does
- Draws a band above the prompt, a pane, toasts
- Adds /orc
- Watches Bash calls and can refuse them
- Hooks agent.spawn, attribution.text, session.compact, session.start and 1 more
- Keeps its own state between turns
Good points
- No network calls
- Written in TypeScript
- Handles errors
- Writes no files
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 orc by Higor Alves (pane, band, status, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/higoralves-orc/
// 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, Text, Button } = $.ui.resolve(e)
const pr = '…'
const failing = '…'
return (
<Box flexDirection="column">
<Box flexDirection="row" columnGap={2}>
<Text color="red">
{`⛔ CI red on #${pr}: ${failing}`}
</Text>
<Button label="Diagnose" />
<Button label="Dismiss" />
</Box>
{await next(e)}
</Box>
)
})
// the pane: open it with $.ui.open({ id: 'my-pane', title: "orc" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button } = $.ui.resolve(e)
const text = '…'
const text2 = '…'
const text3 = '…'
const r = '…'
const r2 = '…'
const r3 = '…'
const sliceLine = '…'
const sliceLine2 = '…'
const sliceLine3 = '…'
return (
<Box flexDirection="column" rowGap={1}>
<Box flexDirection="row" flexWrap="wrap" columnGap={2}>
<Text>
{text}
</Text>
<Text>
{text2}
</Text>
<Text>
{text3}
</Text>
</Box>
<Box columnGap={1}>
<Box flexDirection="column" borderStyle="round" borderDimColor paddingX={1} width={28}>
<Text>
Phases
</Text>
<Text>
{r}
</Text>
<Text>
{r2}
</Text>
<Text>
{r3}
</Text>
</Box>
<Box flexDirection="column" borderStyle="round" borderDimColor paddingX={1} flexGrow={1}>
<Text>
Slices
</Text>
<Text>
{sliceLine}
</Text>
<Text>
{sliceLine2}
</Text>
<Text>
{sliceLine3}
</Text>
</Box>
</Box>
<Box flexDirection="column">
<Box flexDirection="column">
<Button plain hotkey="q" label="QA" />
<Box flexDirection="column" paddingLeft={2} />
</Box>
<Box flexDirection="column">
<Button plain hotkey="p" label="PR" />
<Box flexDirection="column" paddingLeft={2} />
</Box>
<Box flexDirection="column">
<Button plain hotkey="g" label="Agents" />
<Box flexDirection="column" paddingLeft={2} />
</Box>
<Box flexDirection="column">
<Button plain hotkey="d" label="Decisions" />
<Box flexDirection="column" paddingLeft={2} />
</Box>
<Box flexDirection="column">
<Button plain hotkey="c" label="Digest" />
<Box flexDirection="column" paddingLeft={2} />
</Box>
<Box flexDirection="column">
<Button plain hotkey="x" label="Diff" />
<Box flexDirection="column" paddingLeft={2} />
</Box>
</Box>
<Box flexDirection="row" columnGap={2}>
<Button variant="primary" label="Resume (/orc:resume)" hotkey="r" />
</Box>
</Box>
)
})
on('session.start', async ($, e, next) => {
const label = '…'
const failing = '…'
await $.ui.toast(`CI red on #${label}: ${failing} — /orc:ci to diagnose`)
await $.ui.toast(`CI green on #${label}`)
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.
orc/hooks/mod/register.ts lines 226–236 · Band
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
if (!ciBox.alert) return next(e)
const { Box, Text, Button } = $.ui.resolve(e)
const alert = ciBox.alert
return Box({ flexDirection: 'row', columnGap: 2, children: [
Text({ color: 'red', children: [`⛔ CI red on #${alert.pr}: ${alert.summary.failing.join(', ')}`] }),
Button({ key: 'ci-diagnose', label: 'Diagnose', onPress: () => { $.prompt.fill({ text: '/orc:ci ' + alert.pr }) } }),
Button({ key: 'ci-dismiss', label: 'Dismiss', onPress: () => { ciBox.alert = null; $.ui.invalidate('ui.render') } }),
await next(e),
] })
})orc/hooks/mod/register.ts lines 258–285 · Pane
on('ui.render', { component: 'Pane' }, async ($, e, next) => {
if (e.requestId !== PANE) return next(e)
const snap = (await $.state.get(SNAPSHOT_REF)).value ?? EMPTY
const sections = (await $.state.get(SECTIONS_REF)).value ?? SECTIONS_INITIAL
const details = (await $.state.get(DETAILS_REF)).value ?? DETAILS_INITIAL
const model = { snap, sections, details, ciAlert: ciBox.alert, profile: profileOf(snap, fallbackProfile), placement: e.props.placement, bodyColumns: e.props.bodyColumns }
return drawPane($.ui.resolve(e), model, {
resume: () => { $.prompt.fill({ text: snap.session ? '/orc:resume' : '/orc:flow ' }) },
toggle: (id: SectionId) => async () => {
try {
const current = (await $.state.get(SECTIONS_REF)).value ?? SECTIONS_INITIAL
await $.state.set(SECTIONS_REF, { ...current, [id]: !current[id] })
if (!current[id]) await load_details($, id)
} catch {
// a state or loader failure leaves the pane as drawn
}
},
// The user picked it in the pane, so it settles as an asked decision.
settle: async (key: string, value: string) => {
await orc_state($, ['decision', 'set', key, value, '--provenance', 'asked', '--supersede'])
await refresh($).catch(() => undefined)
},
renderReport: async () => {
const path = await orc_report_html($)
$.ui.toast(path ? 'QA report: ' + path : 'No QA packet to render')
},
})
})orc/hooks/mod/pane.ts lines 26–110 · Pane
export function drawPane(els: Els, model: PaneModel, actions: PaneActions) {
const { Box, Text, Button, Link } = els
// The mobile app draws no Select yet; the section then shows the decisions as text only.
const Select = 'Select' in els ? els.Select : null
const Markdown = 'Markdown' in els ? els.Markdown : null
const Code = 'Code' in els ? els.Code : null
const { snap } = model
const s = snap.session
const line = (text: string, style: { bold?: boolean; dimColor?: boolean; color?: string } = {}) => Text({ ...style, children: [text] })
const header = Box({ flexDirection: 'row', flexWrap: 'wrap', columnGap: 2, children:
headerCells(snap, model.profile).map(c => line(c.text, { bold: c.bold, dimColor: c.dim, color: c.color })) })
const ladder = s
? Box({ flexDirection: 'column', borderStyle: 'round', borderDimColor: true, paddingX: 1, width: 28, children: [
line('Phases', { bold: true }),
...phaseRows(s).map(r => line(r, r.startsWith('▶') ? { bold: true, color: 'cyan' } : r.startsWith('✓') ? { color: 'green' } : { dimColor: true })),
] })
: null
const ledger = Box({ flexDirection: 'column', borderStyle: 'round', borderDimColor: true, paddingX: 1, flexGrow: 1, children: [
line('Slices', { bold: true }),
...(snap.slices.length
? snap.slices.map(x => line(sliceLine(x), { color: isDone(x) ? 'green' : x.status === 'pending' ? undefined : 'red' }))
: [line('No slice ledger yet — /orc:plan writes one.', { dimColor: true })]),
] })
const body = Box({ flexDirection: layoutFor(model.placement, model.bodyColumns), columnGap: 1, children: [...(ladder ? [ladder] : []), ledger] })
const flagged = attention(snap, model.ciAlert !== null)
const section = (id: SectionId, hotkey: string, children: () => ReturnType<typeof Box>[]) =>
Box({ flexDirection: 'column', children: [
Button({ key: 'sec-' + id, plain: true, hotkey, label: sectionLabel(id, model.sections[id], flagged.has(id)), onPress: actions.toggle(id) }),
...(model.sections[id] ? [Box({ flexDirection: 'column', paddingLeft: 2, children: children() })] : []),
] })
const qa = section('qa', 'q', () => snap.qa
? [line('Verdict: ' + snap.qa.verdict.toUpperCase(), { bold: true, color: snap.qa.verdict === 'pass' ? 'green' : 'red' }),
...snap.qa.acceptance.map(c => line(criterionLine(c), { color: c.result === 'pass' ? 'green' : c.result === 'fail' ? 'red' : undefined })),
...(snap.qa.missing.length ? [line('Missing evidence: ' + snap.qa.missing.join(', '), { color: 'red' })] : []),
Button({ key: 'qa-report', label: 'Render report', onPress: actions.renderReport })]
: [line('No QA packet yet — /orc:qa writes one.', { dimColor: true })])
const prs = s?.linkedPRs ?? []
const alert = model.ciAlert
const pr = section('pr', 'p', () => [
...(snap.size ? [line('Size ' + sizeLine(snap.size), { color: snap.size.loc > snap.size.budget ? 'red' : undefined })] : []),
...(prs.length
? prs.map(p => Box({ flexDirection: 'row', columnGap: 1, children: [line(`#${p.number ?? '?'}`), ...(p.url ? [Link({ href: p.url, label: p.url })] : [])] }))
: [line('No PR linked yet — /orc:ship opens one.', { dimColor: true })]),
...(alert ? [line(`CI: ${alert.summary.failing.length} failing (${alert.summary.failing.join(', ')})`, { color: 'red' })] : []),
])
const agents = section('agents', 'g', () => snap.usage?.length
? [line('agent runs tokens time', { dimColor: true }), ...snap.usage.map(u => line(usageLine(u)))]
: [line('No subagent runs recorded yet.', { dimColor: true })])
const policy = policyOf(snap) ?? 'manual'
const decisions = section('decisions', 'd', () => [
...(Select ? [Select({ key: 'policy', label: 'Autopilot', options: POLICIES.map(p => ({ value: p })), value: policy,
onSelect: (v: string) => { if (v !== policy) actions.settle('autopilotLevel', v) } })] : []),
...(Select ? [Select({ key: 'profile', label: 'Model profile', options: PROFILES.map(p => ({ value: p })), value: model.profile,
onSelect: (v: string) => { if (v !== model.profile) actions.settle('modelProfile', v) } })] : []),
...snap.decisions.map(d => line(`${d.key} = ${d.value} (${d.provenance})`, { dimColor: true })),
])
const { details } = model
const loading = [line('Loading…', { dimColor: true })]
const digest = section('digest', 'c', () => details.digest === null
? loading
: details.digest ? [Markdown ? Markdown({ text: details.digest }) : line(details.digest)] : [line('No resume digest yet.', { dimColor: true })])
const cur = diffSlice(snap.slices)
const diff = section('diff', 'x', () => details.diff === null
? loading
: [line(cur ? `Slice #${cur.id} ${cur.title}${cur.commit ? ' · ' + cur.commit : ' · working tree'}` : 'Working tree', { bold: true }),
...(details.diff ? [Code ? Code({ source: details.diff, format: 'diff', wrap: 'truncate-end' }) : line(details.diff)] : [line('No changes.', { dimColor: true })]),
...(details.diffTruncated ? [line('truncated — open the file for the rest', { dimColor: true })] : [])])
const footer = Box({ flexDirection: 'row', columnGap: 2, children: [
Button({ key: 'resume', variant: 'primary', label: s ? 'Resume (/orc:resume)' : 'New flow (/orc:flow)', hotkey: 'r', onPress: actions.resume }),
] })
// Sections sit tight (one row each while collapsed); the gap only separates the strip, the body, the sections and the footer.
const sections = Box({ flexDirection: 'column', children: [qa, pr, agents, decisions, digest, diff] })
return Box({ flexDirection: 'column', rowGap: 1, children: [header, body, sections, footer] })
}Licence text (MIT)
MIT License Copyright (c) 2026 Higor Alves 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 programsreads filesenv varstool callsrememberssettings hooksships servers
What its code shows
Read from the source at commit dc35e20c47d3 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.orc/hooks/mod/register.ts |
| 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.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.no network |
| Programs | Whether every program it starts is named in the code and is not a shell, an interpreter or a network tool.orc/hooks/mod/register.ts:292 a program named at run time; orc/hooks/mod/register.ts:327 a program named at run time; orc/hooks/mod/register.ts:358 a program named at run time; orc/hooks/mod/register.ts:367 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 environment variables, 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 $.SessionStart: session-start-using-orc.sh (through a shell); SessionStart: session-start-tool-check.sh (through a shell); WorktreeCreate: worktree-create.sh (through a shell); WorktreeRemove: worktree-remove.sh (through a shell); PostToolUse: post-context-monitor.sh (through a shell); PreCompact: pre-compact-checkpoint.sh (through a shell); PreToolUse: pre-git-guard.sh (through a shell); PreToolUse: pre-git-guard.sh (through a shell) |
| 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).bin/: orc-docker-env, orc-explain, orc-playwright (+7) on the Bash tool's PATH |
| 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.command address: allowed-tools - Bash(orc-state:*); command address: runs a command before Claude reads it; command adr: allowed-tools - Read; command ci: allowed-tools - Bash(orc-state:*); command ci: runs a command before Claude reads it; command cleanup: allowed-tools - Bash(orc-state:*); command cleanup: runs a command before Claude reads it; command code-review: allowed-tools - Read |
| 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.adds command orc |
| 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: tool.call (Bash), command.run (orc) · shapes: attribution.text · also: session.start, session.compact, agent.spawn, turn.complete (+1) · 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: ORC_ALLOW_AI_ATTRIBUTION, ORC_STATE_DIR; files: …/…/files/checkpoint.md |
| 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.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 HigorAlves/orc/plugin install orc@orc/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (dc35e20c47d3). 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/HigorAlves/orcgit -C orc checkout dc35e20c47d3bad3f1245f0d48c404de1fc5028fclaude plugin validate orc/orcclaude --plugin-dir orc/orcThe 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 "higoralves-orc" 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
- remctlFederico Viticci★ 595
- task-orchestrator-modJeff Picklyk★ 208
- localvoxtral-modlocalvoxtral★ 59
- localvoxtral-remotelocalvoxtral★ 59
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/higoralves-orc/)