modscode / Gallery / vome-health
vome-health
A side pane for your Home Assistant's health: Vome's score out of 100 and what its check found, by severity with what to do, marked as Claude works on each, then a re-check rolls the score to the new one. Needs @vortitron/home-assistant-mc…
What it does
- Draws a pane in the desktop app
- Adds /health
- Watches tool calls and can refuse them
- Hooks session.start
- Keeps its own state between turns
Good points
- No network calls
- Starts no processes
- Written in TypeScript
- Has a desktop-specific branch
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 vome-health by Vortitron (pane), as modscode read it from the mod's code:
// https://modscode.com/gallery/vortitron-vome-health/
// 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: "Health" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button, Markdown, Code, Link } = $.ui.resolve(e)
const ago = '…'
const summary = '…'
const label = '…'
const label2 = '…'
const label3 = '…'
const since = '…'
const length = '…'
const title = '…'
const title2 = '…'
const title3 = '…'
const label4 = '…'
const title4 = '…'
const recommendation = '…'
const evidence = '…'
const title5 = '…'
const recommendation2 = '…'
const evidence2 = '…'
const title6 = '…'
const recommendation3 = '…'
const evidence3 = '…'
const label5 = '…'
const title7 = '…'
const recommendation4 = '…'
const evidence4 = '…'
const title8 = '…'
const recommendation5 = '…'
const evidence5 = '…'
const title9 = '…'
const recommendation6 = '…'
const evidence6 = '…'
const label6 = '…'
const title10 = '…'
const recommendation7 = '…'
const evidence7 = '…'
const title11 = '…'
const recommendation8 = '…'
const evidence8 = '…'
const title12 = '…'
const recommendation9 = '…'
const evidence9 = '…'
const message = '…'
const server = '…'
const tool = '…'
const healthUrl = '…'
return (
<Box flexDirection="column">
<Text bold wrap="truncate-end">
Home
<Text>
{" "}
?
/100
</Text>
<Text dimColor color="warning">
{" "}
{"checked "}
{ago}
{" (re-check for today's)"}
</Text>
</Text>
<Text dimColor wrap="wrap">
{summary}
</Text>
<Text wrap="truncate-end">
<Text>
⚠
{" "}
{label}
{" "}
</Text>
<Text>
⚠
{" "}
{label2}
{" "}
</Text>
<Text>
⚠
{" "}
{label3}
{" "}
</Text>
</Text>
<Text color="suggestion" wrap="wrap">
Checking… the new score lands here in a couple of minutes (
{since}
{" so far)."}
</Text>
<Box flexDirection="column" marginTop={1}>
<Text color="warning">
?
{" → "}
?
{`: ${length} finding gone`}
{`, ${length} new`}
</Text>
<Text color="success" strikethrough wrap="truncate-end">
{"✓ "}
{title}
</Text>
<Text color="success" strikethrough wrap="truncate-end">
{"✓ "}
{title2}
</Text>
<Text color="success" strikethrough wrap="truncate-end">
{"✓ "}
{title3}
</Text>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text color="subtle">
{label4}
</Text>
<Box flexDirection="column">
<Box flexDirection="row" justifyContent="space-between">
<Text wrap="truncate-end" color="suggestion">
<Text>
✎
</Text>
{" "}
{"+ "}
{title4}
<Text dimColor>
{" changed; re-check to confirm"}
</Text>
</Text>
<Button>
Ask again
</Button>
</Box>
<Text dimColor wrap="wrap">
{" "}
{recommendation}
</Text>
<Text dimColor wrap="wrap">
{" "}
{evidence}
</Text>
</Box>
<Box flexDirection="column">
<Box flexDirection="row" justifyContent="space-between">
<Text wrap="truncate-end" color="suggestion">
<Text>
✎
</Text>
{" "}
{"+ "}
{title5}
<Text dimColor>
{" changed; re-check to confirm"}
</Text>
</Text>
<Button>
Ask again
</Button>
</Box>
<Text dimColor wrap="wrap">
{" "}
{recommendation2}
</Text>
<Text dimColor wrap="wrap">
{" "}
{evidence2}
</Text>
</Box>
<Box flexDirection="column">
<Box flexDirection="row" justifyContent="space-between">
<Text wrap="truncate-end" color="suggestion">
<Text>
✎
</Text>
{" "}
{"+ "}
{title6}
<Text dimColor>
{" changed; re-check to confirm"}
</Text>
</Text>
<Button>
Ask again
</Button>
</Box>
<Text dimColor wrap="wrap">
{" "}
{recommendation3}
</Text>
<Text dimColor wrap="wrap">
{" "}
{evidence3}
</Text>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text color="subtle">
{label5}
</Text>
<Box flexDirection="column">
<Box flexDirection="row" justifyContent="space-between">
<Text wrap="truncate-end" color="suggestion">
<Text>
✎
</Text>
{" "}
{"+ "}
{title7}
<Text dimColor>
{" changed; re-check to confirm"}
</Text>
</Text>
<Button>
Ask again
</Button>
</Box>
<Text dimColor wrap="wrap">
{" "}
{recommendation4}
</Text>
<Text dimColor wrap="wrap">
{" "}
{evidence4}
</Text>
</Box>
<Box flexDirection="column">
<Box flexDirection="row" justifyContent="space-between">
<Text wrap="truncate-end" color="suggestion">
<Text>
✎
</Text>
{" "}
{"+ "}
{title8}
<Text dimColor>
{" changed; re-check to confirm"}
</Text>
</Text>
<Button>
Ask again
</Button>
</Box>
<Text dimColor wrap="wrap">
{" "}
{recommendation5}
</Text>
<Text dimColor wrap="wrap">
{" "}
{evidence5}
</Text>
</Box>
<Box flexDirection="column">
<Box flexDirection="row" justifyContent="space-between">
<Text wrap="truncate-end" color="suggestion">
<Text>
✎
</Text>
{" "}
{"+ "}
{title9}
<Text dimColor>
{" changed; re-check to confirm"}
</Text>
</Text>
<Button>
Ask again
</Button>
</Box>
<Text dimColor wrap="wrap">
{" "}
{recommendation6}
</Text>
<Text dimColor wrap="wrap">
{" "}
{evidence6}
</Text>
</Box>
</Box>
<Box flexDirection="column" marginTop={1}>
<Text color="subtle">
{label6}
</Text>
<Box flexDirection="column">
<Box flexDirection="row" justifyContent="space-between">
<Text wrap="truncate-end" color="suggestion">
<Text>
✎
</Text>
{" "}
{"+ "}
{title10}
<Text dimColor>
{" changed; re-check to confirm"}
</Text>
</Text>
<Button>
Ask again
</Button>
</Box>
<Text dimColor wrap="wrap">
{" "}
{recommendation7}
</Text>
<Text dimColor wrap="wrap">
{" "}
{evidence7}
</Text>
</Box>
<Box flexDirection="column">
<Box flexDirection="row" justifyContent="space-between">
<Text wrap="truncate-end" color="suggestion">
<Text>
✎
</Text>
{" "}
{"+ "}
{title11}
<Text dimColor>
{" changed; re-check to confirm"}
</Text>
</Text>
<Button>
Ask again
</Button>
</Box>
<Text dimColor wrap="wrap">
{" "}
{recommendation8}
</Text>
<Text dimColor wrap="wrap">
{" "}
{evidence8}
</Text>
</Box>
<Box flexDirection="column">
<Box flexDirection="row" justifyContent="space-between">
<Text wrap="truncate-end" color="suggestion">
<Text>
✎
</Text>
{" "}
{"+ "}
{title12}
<Text dimColor>
{" changed; re-check to confirm"}
</Text>
</Text>
<Button>
Ask again
</Button>
</Box>
<Text dimColor wrap="wrap">
{" "}
{recommendation9}
</Text>
<Text dimColor wrap="wrap">
{" "}
{evidence9}
</Text>
</Box>
</Box>
<Text color="warning" wrap="wrap">
{message}
</Text>
<Box flexDirection="column" borderStyle="round" borderColor="warning" paddingX={1} marginTop={1}>
<Text color="warning" wrap="wrap">
{"Auto mode refused the pane's "}
re-check
{". Add this to permissions.allow in "}
~/.claude/settings.json
{", or ask Claude to "}
re-check the health score
:
</Text>
<Markdown text="[~/.claude/settings.json](file://~/.claude/settings.json)" />
<Code source={`"mcp__${server}__${tool}"`} />
<Box flexDirection="row" gap={2}>
<Button hotkey="c">
Copy the line
</Button>
<Button hotkey="t">
Retry
</Button>
</Box>
</Box>
<Box flexDirection="row" gap={2} marginTop={1}>
<Button hotkey="f">
Fix what you can
</Button>
<Button hotkey="r">
Checking…
</Button>
<Button hotkey="d" dimColor>
Less
</Button>
<Button hotkey="b" dimColor>
Animation off
</Button>
<Link href={`${healthUrl}`}>
Full report
</Link>
</Box>
</Box>
)
})
}
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-plugin/vome-health/hooks/register.tsx lines 113–272 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
const { Box, Text, Button, Code, Link, Markdown } = $.ui.resolve(e)
const current = (await $.state.get(report)).value ?? null
const latest = (await $.state.get(change)).value ?? null
const running = (await $.state.get(checking)).value ?? null
const worked = (await $.state.get(touched)).value ?? {}
const handed = (await $.state.get(asked)).value ?? {}
/** Hand findings to Claude: it fixes them with its own tools, which the person approves as usual. */
const fix = async (findings: Finding[]) => {
if (findings.length === 0) return
await $.prompt.submit({ text: fixPrompt(findings, current ? homeName(current) : 'the home') })
await $.state.set(asked, { ...handed, ...Object.fromEntries(findings.map(f => [f.id, Date.now()])) })
}
const isDetailed = (await $.state.get(details)).value ?? false
const isFxEnabled = (await $.state.get(fxOn)).value ?? true
const refusal = (await $.state.get(blocked)).value ?? null
const message = (await $.state.get(note)).value ?? null
const width = Math.max(20, e.props.bodyColumns)
const isChangeShown = latest !== null && Date.now() - latest.at < CHANGE_SHOWN_MS
let stage = null
if (e.surface === 'terminal' && isFxEnabled) {
const { Raster } = $.ui.resolve(e)
const columns = Math.min(512, width)
const home = current ? homeName(current) : ''
const words = running
? `checking ${home || 'the home'}…`
: current
? isChangeShown && latest.from !== null && latest.to !== null && latest.from !== latest.to
? `${home} · ${latest.from} → ${latest.to}`
: `${home} · ${current.findings.length} finding${current.findings.length === 1 ? '' : 's'}`
: 'no health score yet'
strip = {
columns,
state: {
score: current?.score ?? null,
from: isChangeShown ? latest.from : null,
changedAt: isChangeShown ? latest.at : null,
isChecking: running !== null,
words,
},
}
stage = <Raster key="stage" columns={columns} rows={STRIP_ROWS} cells={stageFrame(Date.now(), strip.state, columns)} />
} else {
strip = null
}
const help = refusal ? (
<Box flexDirection="column" borderStyle="round" borderColor="warning" paddingX={1} marginTop={1}>
<Text color="warning" wrap="wrap">
Auto mode refused the pane's {refusal.tool === 'vome_health_check' ? 're-check' : 'read of the report'}. Add this to
permissions.allow in {settingsFile}, or ask Claude to {refusal.tool === 'vome_health_check' ? 're-check the health score' : 'read the health report'}:
</Text>
<Markdown text={`[${settingsFile}](file://${settingsFile})`} />
<Code source={`"mcp__${refusal.server}__${refusal.tool}"`} />
<Box flexDirection="row" gap={2}>
<Button key="copy-rule" hotkey="c" onPress={press => $.ui.copy({ text: `"mcp__${refusal.server}__${refusal.tool}"`, surface: press.surface })}>
Copy the line
</Button>
<Button
key="retry"
hotkey="t"
onPress={async () => {
await $.state.set(blocked, null)
if (refusal.tool === 'vome_health_check') await requestCheck($, refusal.server)
else await fetchReport($, refusal.server)
}}
>
Retry
</Button>
</Box>
</Box>
) : null
if (!current) {
return (
<Box flexDirection="column">
{stage}
<Text dimColor wrap="wrap">
No health score yet. Ask Claude "how healthy is my Home Assistant?", or press /health. Vome's check scores the home
out of 100 and lists what to fix.
</Text>
{running ? <Text color="suggestion">Checking… the score lands here in a couple of minutes.</Text> : null}
{message ? <Text color="warning" wrap="wrap">{message}</Text> : null}
{help}
{!running ? (
<Box marginTop={1}>
<Button
key="first-check"
hotkey="r"
onPress={async () => {
const server = lastServer ?? (await healthServers($))[0]
if (server) await requestCheck($, server)
else await $.state.set(note, 'No connected MCP server has vome_health_check: connect Home Assistant through Vome first.')
}}
>
Run the first check
</Button>
</Box>
) : null}
</Box>
)
}
const groups = groupFindings(current.findings)
const ago = current.generatedAt ? since(Date.parse(current.generatedAt)) : 'unknown'
const isStale = current.generatedAt !== null && Date.now() - Date.parse(current.generatedAt) > 7 * 24 * 3600_000
return (
<Box flexDirection="column">
{stage}
<Text bold wrap="truncate-end">
{homeName(current)}
<Text color={scoreColour(current.score)}>
{' '}
{current.score ?? '?'}/100
</Text>
<Text dimColor color={isStale ? 'warning' : undefined}>
{' '}checked {ago}
{isStale ? ' (re-check for today\'s)' : ''}
</Text>
</Text>
{current.summary ? (
<Text dimColor wrap="wrap">
{current.summary}
</Text>
) : null}
<Text wrap="truncate-end">
{current.categories.map((category: Category) => (
<Text color={severityColour(category.severity)}>
{severityIcon(category.severity)} {category.label}
{' '}
</Text>
))}
</Text>
{running ? (
<Text color="suggestion" wrap="wrap">
Checking… the new score lands here in a couple of minutes ({since(running.startedAt).replace(' ago', '')} so far).
</Text>
) : null}
{isChangeShown ? (
<Box flexDirection="column" marginTop={1}>
<Text color={latest.to !== null && latest.from !== null && latest.to < latest.from ? 'warning' : 'success'}>
{latest.from ?? '?'} → {latest.to ?? '?'}
{latest.resolved.length > 0 ? `: ${latest.resolved.length} finding${latest.resolved.length === 1 ? '' : 's'} gone` : ''}
{latest.added.length > 0 ? `, ${latest.added.length} new` : ''}
</Text>
{latest.resolved.map((finding: Finding) => (
<Text color="success" strikethrough wrap="truncate-end">
✓ {finding.title}
</Text>
))}
</Box>
) : null}
{groups.map(group => (
<Box flexDirection="column" marginTop={1}>
<Text color="subtle">{group.label}</Text>
{group.findings.map((finding: Finding) => {
const isWorked = worked[finding.id] !== undefined
const isNew = isChangeShown && latest.added.includes(finding.id)Licence text (MIT)
MIT License Copyright (c) 2026 Andrew Lyeklint Hancock (Vortitron) 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
env varsdrives Claudetool callsremembers
The design, read from code
"mcp__Fix__Edit"
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 780616c7a4f7 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-plugin/vome-health/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.2 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.starts no programs |
| Reads and sends | Whether it both reads files or environment variables and reaches the network.reaches no 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 |
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 Vortitron/home-assistant-mcp/plugin install vome-health@vomeThis installs the marketplace's latest commit, which may not be the one read here (780616c7a4f7). 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 "vortitron-vome-health" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
Ask Claude…ReviewPR #3 Fix loginbranche couranteà traiter ▸3 ▸3 ▸3 · en relecture ▸3 ▸3 ▸3▸◉3 a1b2c3d ↩ répondu obsolète → Claude Review▸◉3 a1b2c3d ↩ répondu obsolète → Claude Review▸◉3 a1b2c3d ↩ répondu obsolète → Claude Review────────fil 31/3 Review ↗ GitHub
Review@alexReview@alexReview@alexReviewRéponse : Review publierEntrée publie · Esc annule la réponse · les touches n, p… tapent dans le champ… ReviewLe panneau n'a pas le clavier : ctrl+x tab ou un clic, et les touches marchent.p préc. n suiv. t PR suiv. x démarquer a tout démarquer f corriger (3) r répondre v résoudre o web q fermer -
What it does
- Draws a pane, toasts
- Adds /chronicle
- Watches tool calls
- Hooks agent.spawn, config.set, session.end, session.measure and 1 more
-
Ask Claude…AutomationRemovedChooseSaved 14:32 · 3 added, Removed changed, 3 removedLast run 14:32 · Hide · Removed (before the save, so not marked below)Watching for a new run until 14:32.− Else− Else− Elser w h o bOpen in Home Assistant● ran ✗ false or error ○ not reached + added ~ changed − removedPick an automation (3)Working on ESPHome too? The ESPHome pane shows the device and its builds: /plugin install vome-esphome --marketplace Vortitron/home-assistant-mcp
-
Ask Claude…Mod controlsLive Claude ModCount: 0 / Initial / oneAdd oneName InitialOne**Markdown** with a [link](https://example.com)
const count = 1;
./counter.tsxFill composerAppend noteSuggest draftCopy text -
Ask Claude…Desktop Markdown ReaderDesktop Markdown ReaderMarkdown file README.md applyChoose a Markdown file.No document loaded.Copy Markdown sourceRefresh
-
Ask Claude…⏺ src/ WriteUpdated·0·0·0search: Edit nextUpdated1/3── Updated ────────› Edit› Edit› Edit⎿Updated> what to change in lines Warp-Edit sendenter to send to Claude ·cancel⎿ open the original⎿ open the original⎿ open the original✎> what to change in lines Warp-Edit sendenter to send to Claude ·cancel⎿ open the original⎿ open the original⎿ open the original✎> what to change in lines Warp-Edit sendenter to send to Claude ·cancel⎿ open the original⎿ open the original⎿ open the original✎⋯> what to change in lines Warp-Edit sendenter to send to Claude ·cancel⎿ open the original⎿ open the original⎿ open the original✎> what to change in lines Warp-Edit sendenter to send to Claude ·cancel⎿ open the original⎿ open the original⎿ open the original✎> what to change in lines Warp-Edit sendenter to send to Claude ·cancel⎿ open the original⎿ open the original⎿ open the original✎