You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
piStatus: decode throttle flags and report clock and voltage #155
piStatus emits raw throttled=0x50005 and no clock or voltage, while the pi-system-management skill says it returns those and asks the model to decode the hex bit by bit.
Where
mcp-server/src/tools/piStatus.ts:164, :178
skills/pi-system-management/SKILL.md:37-47
Details
Under-voltage is the top cause of Pi instability, and bit decoding by the model is error-prone.
Impact
Stability problems are easy to misread, and the clock/voltage data the skill relies on is never fetched.
Suggested fix
Add vcgencmd measure_clock arm and vcgencmd measure_volts core (with || echo N/A for non-Pi nodes) and decode the throttle value in TypeScript into lines such as Under-voltage: now no, since boot YES. Add a unit test for the decoder.
How to run tests: cd mcp-server && npm install && npm test (and npm run typecheck); structure tests: pip install -r requirements-test.txt && pytest tests/ -v
Conventions: see CLAUDE.md and CONTRIBUTING.md
Filed by repo-audit/full-audit at 636fefb. Severity: medium. Effort: S. audit-key: enhancement|mcp-server/src/tools/piStatus.ts|STATUS_COMMAND
Fixed in f87fac5: piStatus adds ARM Clock (vcgencmd measure_clock arm, annotated with MHz) and Core Voltage (measure_volts core) sections with N/A fallbacks, and decodeThrottled() turns throttled=0x... into one line per flag (now / since boot). Skill and tool tables updated. Verified with decoder and annotation unit tests plus a handler test; build, typecheck, Vitest and structure tests pass.
Activity
TMHSDigital commentedon Nov 19, 2026
Fixed in f87fac5: piStatus adds ARM Clock (vcgencmd measure_clock arm, annotated with MHz) and Core Voltage (measure_volts core) sections with N/A fallbacks, and decodeThrottled() turns throttled=0x... into one line per flag (now / since boot). Skill and tool tables updated. Verified with decoder and annotation unit tests plus a handler test; build, typecheck, Vitest and structure tests pass.