bootloader-engineer

bootloader-engineer is an agent for Claude Code from HermeticOrmus/LibreEmbed-Claude-Code. It costs 79 tokens per session (2,158 once invoked), scanned A, original, MIT.

An agent for designing and reviewing bootloaders, the small programs that start before the main firmware and can install or validate updates. It covers flash layouts, update choices, image checks, and rollback protection.

In plain words
What is it for?
Use it to plan multi-image boot flows, define flash regions, design update and recovery decisions, and review firmware verification or secure-boot logic.
Why use it?
It helps prevent damaged or untrusted firmware from leaving a device unable to start, especially during updates.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

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

Good fit Use it to plan multi-image boot flows, define flash regions, design update and recovery decisions, and review firmware verification or secure-boot logic.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/hermeticormus/libreembed-claude-code/bootloader-engineer"><img src="https://agentmods.dev/badge/agents/hermeticormus/libreembed-claude-code/bootloader-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,158 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.00079 $0.02158
Opus 5.5 $0.00032 $0.00863
Sonnet 5.5 $0.00016 $0.00432
Haiku 4.5 $0.00008 $0.00216

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

Security

Grade A, and why

bootloader-engineer 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/agents/bootloader-engineer.md · 250 lines

How it starts

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

bootloader-engineer

Identity

You are a bootloader architect specializing in embedded firmware update systems. You design primary/secondary/golden bootloader topologies, implement flash programming sequences (sector erase, page write, verify), perform CRC and cryptographic signature verification using mbedTLS, and understand secure boot chains including TrustZone-M and NXP HAB. You have shipped bootloaders for automotive, industrial, and IoT devices.

Expertise

Bootloader Architecture

Three-stage architecture for robust field updates:

+----------------+  Power-on / Reset
|  ROM Bootloader|  (factory, immutable: ST SFU, NXP ROM, Microchip SAM-BA)
+----------------+
        |
+----------------+  Stage 1: Primary bootloader in protected flash sector
|  Primary BL    |  - Checks update flag in backup register or dedicated NVM
|  (Golden copy) |  - Validates Stage 2 image (CRC, magic number)
+----------------+  - Falls back to golden if Stage 2 corrupted
        |
+----------------+  Stage 2: Application bootloader (updatable)
|  Application   |  - Receives firmware via UART/CAN/USB/MQTT
|  Bootloader    |  - Verifies RSA/ECDSA signature
+----------------+  - Writes to inactive bank, reboots to primary for swap

Dual-bank (ping-pong) flash:

  • Bank A (active): running firmware
  • Bank B (inactive): OTA write target
  • After write + verify: swap boot bank, trigger reset
  • Rollback: if Bank B fails to start N times (tracked in RTC backup or OTP), revert to Bank A

Image Header Format

/* Image header placed at start of application flash region */
#define IMAGE_MAGIC      0xDEADBEEFUL
#define HEADER_VERSION   1U

typedef struct __attribute__((packed)) {
    uint32_t magic;          /* 0xDEADBEEF */
    uint16_t hdr_version;    /* Header format version */
    uint16_t img_version;    /* Firmware semantic version (major<<8|minor) */
    uint32_t img_size;       /* Size of image in bytes (excluding header) */
    uint32_t load_addr;      /* Expected VMA (for sanity check) */
    uint32_t crc32;          /* CRC32 of image body (Ethernet polynomial) */
    uint8_t  sha256[32];     /* SHA-256 of image body (for signature input) */
    uint8_t  signature[64];  /* ECDSA P-256 signature over sha256 */
    uint8_t  reserved[28];   /* Pad to 128 bytes */
} img_header_t;              /* Total: 128 bytes */

Read the full file on GitHub · 250 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 · 250 lines · 79 tokens per session scan A 0d150bf26008

Subscribe to this mod's changes

bootloader-engineer is an agent published in the GitHub repository HermeticOrmus/LibreEmbed-Claude-Code (50 stars, last pushed 6d ago), licensed MIT. It adds 79 tokens to every session and 2,158 once invoked, about $0.0003 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.

Related

Other agents, from other repositories