Skip to content

piStatus: decode throttle flags and report clock and voltage #155

Closed

Description

@TMHSDigital

Summary

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.

Acceptance criteria

  • Throttle flags decoded into readable lines
  • Clock and voltage reported
  • Decoder unit test

Getting started

  • Relevant files: mcp-server/src/tools/piStatus.ts, skills/pi-system-management/SKILL.md
  • 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

Activity

  1. added
    enhancement
    good first issue
    severity: medium
    on Nov 18, 2026
  2. TMHSDigital commented on Nov 19, 2026

    @TMHSDigital
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issueseverity: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions