firmware-update

firmware-update is a command for Claude Code from HermeticOrmus/LibreEmbed-Claude-Code. It costs 16 tokens per session (816 once invoked), scanned A, original, MIT.

A firmware-update command for packaging, distributing, applying, and verifying firmware updates, including rollback. Firmware is the software stored on an embedded device.

In plain words
What is it for?
Use it to create signed or checksummed images, generate OTA delivery setup, write MCU-side update code, verify images, and support rollback.
Why use it?
It covers the device and delivery steps needed to update deployed hardware and check that the new image was written correctly.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the firmware-update plugin — 1 skill, 1 command, 1 agent shipped together

Good fit Use it to create signed or checksummed images, generate OTA delivery setup, write MCU-side update code, verify images, and support rollback.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/hermeticormus/libreembed-claude-code/firmware-update
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/HermeticOrmus/LibreEmbed-Claude-Code

Made for: Claude Code.

Or install firmware-update, the plugin that ships this one along with the rest of its 1 skill, 1 command, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for firmware-update

README.md
[![agentmods](https://agentmods.dev/badge/commands/hermeticormus/libreembed-claude-code/firmware-update/github.svg)](https://agentmods.dev/commands/hermeticormus/libreembed-claude-code/firmware-update)
Your own site
<a href="https://agentmods.dev/commands/hermeticormus/libreembed-claude-code/firmware-update"><img src="https://agentmods.dev/badge/commands/hermeticormus/libreembed-claude-code/firmware-update/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for firmware-update

Your own site · 80×15
<a href="https://agentmods.dev/commands/hermeticormus/libreembed-claude-code/firmware-update"><img src="https://agentmods.dev/badge/commands/hermeticormus/libreembed-claude-code/firmware-update.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 816 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.00816
Opus 5.5 $0.00006 $0.00326
Sonnet 5.5 $0.00003 $0.00163
Haiku 4.5 $0.00002 $0.00082

Measured 15d ago against content hash 3d7731ccb492, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

firmware-update scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 15d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/firmware-update/commands/firmware-update.md · 108 lines

How it starts

The opening of the file, as written. The whole thing — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/firmware-update

Firmware OTA command: image packaging, distribution, flash write, verification, rollback.

Trigger

/firmware-update <action> [options]

Actions

package

Package a raw firmware binary with header and signature.

/firmware-update package --tool imgtool --key ecdsa-p256.pem --version 2.1.0 --slot-size 0x70000
/firmware-update package --custom-header --magic 0xDEADBEEF --crc32

distribute

Generate OTA distribution scripts or server configurations.

/firmware-update distribute --transport mqtt --broker mosquitto --topic-prefix device/fw
/firmware-update distribute --transport aws-iot-jobs --thing-group my-devices
/firmware-update distribute --transport http --server nginx --tls

apply

Generate MCU-side OTA write and verify code.

/firmware-update apply --mcu stm32f407 --banks dual --transport uart-ymodem
/firmware-update apply --mcu esp32 --sdk esp-idf --transport https
/firmware-update apply --mcu nrf52840 --bootloader mcuboot --transport ble-smp

verify

Generate post-write verification code.

/firmware-update verify --method crc32
/firmware-update verify --method sha256+ecdsa --curve p256

Process

  1. Define flash layout: bootloader size, bank A/B addresses, NVM region.
  2. Choose transport: MQTT for IoT, HTTPS for large payloads, BLE SMP for local.
  3. Implement write → verify → set-boot-flag → reset sequence.
  4. Implement confirm sequence with application-level self-test.
  5. Test power-loss simulation at each step.

Output Examples

imgtool sign and flash

# Package
imgtool sign \
  --key signing-key.pem --header-size 0x20 --align 4 \
  --version 2.1.0+0 --slot-size 0x70000 \
  build/firmware.bin build/firmware_signed.bin

# Verify signed image
imgtool verify --key signing-key.pem build/firmware_signed.bin

# Flash bootloader + signed app
openocd -f interface/stlink.cfg -f target/stm32f4x.cfg \
  -c "program mcuboot.bin 0x08000000 verify" \
  -c "program firmware_signed.bin 0x08010000 verify reset exit"

Read the full file on GitHub · 108 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 15d ago First seen · 108 lines · 16 tokens per session scan A 3d7731ccb492

Subscribe to this mod's changes

firmware-update is a command published in the GitHub repository HermeticOrmus/LibreEmbed-Claude-Code (50 stars, last pushed 6d ago), licensed MIT. It adds 16 tokens to every session and 816 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-01.