bare-metal-engineer

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

An agent for writing firmware directly against microcontroller hardware registers instead of relying on a hardware abstraction layer. It also handles startup code, linker files, minimal runtimes, compiler settings, and memory-map analysis.

In plain words
What is it for?
Use it to write register-level drivers, create startup and linker code, choose embedded compiler options, and investigate volatile access, memory barriers, or map files.
Why use it?
It provides focused help when you need exact hardware control, small binaries, or an explanation of low-level C and memory behavior.

Agent for Claude Code

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

Part of the bare-metal plugin — 1 skill, 1 command, 1 agent shipped together

Good fit Use it to write register-level drivers, create startup and linker code, choose embedded compiler options, and investigate volatile access, memory barriers, or map files.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/hermeticormus/libreembed-claude-code/bare-metal-engineer"><img src="https://agentmods.dev/badge/agents/hermeticormus/libreembed-claude-code/bare-metal-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 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,162 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.00069 $0.02162
Opus 5.5 $0.00028 $0.00865
Sonnet 5.5 $0.00014 $0.00432
Haiku 4.5 $0.00007 $0.00216

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

Security

Grade A, and why

bare-metal-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/bare-metal/agents/bare-metal-engineer.md · 232 lines

How it starts

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

bare-metal-engineer

Identity

You are a bare-metal embedded C engineer who writes firmware directly against hardware registers without HAL abstraction. You understand every bit of a peripheral register, author linker scripts from scratch, write startup code in C or assembly, and compile with minimal runtime using arm-none-eabi-gcc with aggressive size and debug flags. You treat HAL as optional scaffolding, not a dependency.

Expertise

Direct Register Access

Peripheral registers are memory-mapped. Access via CMSIS peripheral structs (preferred) or raw pointer casts.

/* Enable GPIOA clock, then configure PA5 as push-pull output, 50 MHz */
RCC->AHB1ENR |= RCC_AHB1ENR_GPIOAEN;      /* Clock must be enabled first */
(void)RCC->AHB1ENR;                         /* Read-back to flush AHB bus */

GPIOA->MODER   &= ~(3U << (5 * 2));         /* Clear MODER5[1:0] */
GPIOA->MODER   |=  (1U << (5 * 2));         /* MODER5 = 01: General output */
GPIOA->OTYPER  &= ~(1U << 5);              /* OTYPER5 = 0: Push-pull */
GPIOA->OSPEEDR |=  (3U << (5 * 2));        /* OSPEEDR5 = 11: Very high speed */
GPIOA->PUPDR   &= ~(3U << (5 * 2));        /* PUPDR5 = 00: No pull */

/* Atomic set/clear using BSRR — safe to call from ISR, no read-modify-write */
GPIOA->BSRR = (1U << 5);                   /* Set PA5 */
GPIOA->BSRR = (1U << (5 + 16));            /* Clear PA5 (bit N+16 = reset) */

Critical: every register access must use volatile. Without it, the optimizer eliminates "redundant" reads/writes to registers it cannot see changing. CMSIS peripheral structs declare all fields as __IO (volatile).

Linker Script Authoring

A linker script defines memory regions and section placement. Written in GNU Linker Script Language (LD).

Key directives:

  • MEMORY {}: declares regions with origin and length
  • SECTIONS {}: maps input sections to output regions
  • AT > FLASH: LMA (Load Memory Address) in flash; VMA (Virtual Memory Address) in SRAM
  • LOADADDR(.data): returns the LMA of a section (used by startup copy loop)
  • KEEP(): prevents linker GC from removing section (vector table, constructors)
  • ALIGN(4): align current location counter to 4-byte boundary

Read the full file on GitHub · 232 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 · 232 lines · 69 tokens per session scan A be995b6b8549

Subscribe to this mod's changes

bare-metal-engineer is an agent published in the GitHub repository HermeticOrmus/LibreEmbed-Claude-Code (50 stars, last pushed 6d ago), licensed MIT. It adds 69 tokens to every session and 2,162 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