bootloader

bootloader is a command for Claude Code from HermeticOrmus/LibreEmbed-Claude-Code. It costs 21 tokens per session (853 once invoked), scanned A, original, MIT.

A command for building bootloaders, which start a device and manage firmware updates. It can design flash layouts, write flash operations, verify images, and create signing workflows.

In plain words
What is it for?
Use it to implement erase, write, and verify code, add CRC or digital-signature checks, and package and sign firmware images.
Why use it?
It helps make firmware updates checkable and recoverable instead of risking corrupted or unauthorized software on the device.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the bootloader-design plugin — 1 skill, 1 command, 1 agent shipped together

Good fit Use it to implement erase, write, and verify code, add CRC or digital-signature checks, and package and sign firmware images.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/hermeticormus/libreembed-claude-code/bootloader
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 bootloader-design, 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 bootloader

README.md
[![agentmods](https://agentmods.dev/badge/commands/hermeticormus/libreembed-claude-code/bootloader/github.svg)](https://agentmods.dev/commands/hermeticormus/libreembed-claude-code/bootloader)
Your own site
<a href="https://agentmods.dev/commands/hermeticormus/libreembed-claude-code/bootloader"><img src="https://agentmods.dev/badge/commands/hermeticormus/libreembed-claude-code/bootloader/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 bootloader

Your own site · 80×15
<a href="https://agentmods.dev/commands/hermeticormus/libreembed-claude-code/bootloader"><img src="https://agentmods.dev/badge/commands/hermeticormus/libreembed-claude-code/bootloader.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 853 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.00021 $0.00853
Opus 5.5 $0.00008 $0.00341
Sonnet 5.5 $0.00004 $0.00171
Haiku 4.5 $0.00002 $0.00085

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

Security

Grade A, and why

bootloader 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/bootloader-design/commands/bootloader.md · 107 lines

How it starts

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

/bootloader

Bootloader design and firmware update command: flash layout, image packaging, CRC/signature, YMODEM.

Trigger

/bootloader <action> [options]

Actions

design

Generate a complete bootloader architecture for a target MCU.

/bootloader design --mcu stm32f407 --banks dual --transport uart
/bootloader design --mcu nrf52840 --banks dual --transport ble
/bootloader design --security ecdsa-p256 --rollback otp

Generates:

  • Flash layout diagram with sector addresses
  • Boot decision state machine pseudocode
  • Image header C struct definition
  • Jump-to-application function

flash

Implement the flash programming driver.

/bootloader flash --mcu stm32f407 --sector-erase --page-write --verify
/bootloader flash --mcu samd21 --nvmctrl-page-write

Output: erase, write, verify C functions using direct register access.

verify

Generate image verification code.

/bootloader verify --method crc32
/bootloader verify --method crc32+ecdsa --curve p256
/bootloader verify --method crc32+rsa --bits 2048

sign

Generate image packaging and signing pipeline.

/bootloader sign --tool imgtool --key ecdsa-p256.pem --version 1.2.0
/bootloader sign --custom-header --magic 0xDEADBEEF

Output: imgtool or custom Python script to package and sign firmware binary.

Process

  1. Confirm flash layout: total flash size, sector sizes, bootloader size constraint (<32KB typical).
  2. Verify transport: UART YMODEM, USB DFU, CAN, or OTA (BLE/WiFi).
  3. Define image header format and magic number.
  4. Implement CRC first, add signature verification as second layer.
  5. Implement and test the rollback/recovery path before the happy path.
  6. Write-protect bootloader sectors using FLASH_OPTCR or equivalent.

Output Examples

imgtool sign command (mcuboot compatible)

# Install: pip install imgtool
imgtool sign \
  --key ecdsa-p256-signing-key.pem \
  --header-size 0x80 \
  --align 4 \
  --version 1.2.0+0 \
  --slot-size 0x38000 \
  firmware_unsigned.bin \
  firmware_signed.bin

Read the full file on GitHub · 107 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 · 107 lines · 21 tokens per session scan A d0c6ca013d2d

Subscribe to this mod's changes

bootloader is a command published in the GitHub repository HermeticOrmus/LibreEmbed-Claude-Code (50 stars, last pushed 6d ago), licensed MIT. It adds 21 tokens to every session and 853 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.