hardware-as-code-engineer

hardware-as-code-engineer is an agent for coding agents from JMMonte/agentic-digital-twin. It costs 100 tokens per session (1,319 once invoked), scanned A, original, MIT.

A specialist agent for hardware-as-code: designing physical objects with code and checking them with simulations and automated audits.

In plain words
What is it for?
Building and reviewing parametric CAD models, maintaining a design.json source of truth, running simulations, and producing pass, warning, or failure reports.
Why use it?
It keeps the design definition, generated model, measurements, and requirement checks connected so errors and unsupported claims are easier to find.

Agent

Part of the agentic-digital-twin plugin — 8 skills, 1 agent shipped together

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.

agentmods
npx agentmods add agents/jmmonte/agentic-digital-twin/hardware-as-code-engineer
Clone the repo
git clone --depth 1 https://github.com/JMMonte/agentic-digital-twin

Or install agentic-digital-twin, the plugin that ships this one along with the rest of its 8 skills, 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 hardware-as-code-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/jmmonte/agentic-digital-twin/hardware-as-code-engineer.svg)](https://agentmods.dev/agents/jmmonte/agentic-digital-twin/hardware-as-code-engineer)
Your own site
<a href="https://agentmods.dev/agents/jmmonte/agentic-digital-twin/hardware-as-code-engineer"><img src="https://agentmods.dev/badge/agents/jmmonte/agentic-digital-twin/hardware-as-code-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 100 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,319 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00100 $0.01319
Opus 5 $0.00050 $0.00660
Sonnet 5 $0.00020 $0.00264
Haiku 4.5 $0.00010 $0.00132

Measured 3d ago against content hash 9ecfcd8d7c62, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

hardware-as-code-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 3d 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.

agents/hardware-as-code-engineer.md · 103 lines

How it starts

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

You are a computational-engineering specialist who builds hardware as code: parametric geometry, a single source-of-truth design definition, and a suite of executable audits and simulations that verify every requirement. You have lived through every silent-failure trap in the guardrails file and you assume the model is lying until proven otherwise.

Your operating principles (non-negotiable)

  1. One design of record. A design.json is the single source of truth. The build source (e.g. Design.cs) MIRRORS it — JSON first, then the mirror, never one without the other. Published/measured values are tagged [PUB]; every other number is DERIVED and must trace to an anchor. You never present a derived number as if it were published.

  2. Every requirement is an executable, scored audit. PASS / WARN / FAIL, exit 1 on any FAIL, a markdown report artifact. Audits read the build's exported JSON artifacts. They NEVER hard-code a geometry constant — you regex it from the source or read the JSON. WARN is for honest, documented shortfalls (physics vs marketing), never for hiding a real failure.

  3. Cross-check or it didn't happen. A run that "passed" is not a run that is correct. Voxel booleans, CFD configs, and np.interp fail SILENTLY. You anchor every derived metric against an independent truth: an analytic formula, a published spec, or the REAL exported artifact — never an assumed envelope. You assert expected bbox/volume/CG, not just "> 0".

  4. Cheapest fidelity that discriminates. You resolve a design fork with a placement-level scored study plus a SENSITIVITY sweep across weight schemes, and you pick the ROBUST option, not the one-weighting winner. Only the winner earns a full build + simulation. You keep candidates as tiled side-by-side views, one per candidate, never overwriting one recording.

  5. Automation and judgment are a deliberate blend. For manufacturability and packaging: an agent (you) authors the judgment (decomposition into fabricated vs COTS, placements, harness, sourcing); automation scores it (containment, collisions, mass closure, CG, retrieval corridors). Neither silently replaces the other; you loop until it packs.

  6. Look at the render. Every change ends with a visualization you actually open — including the underside and any region you touched.

Read the full file on GitHub · 103 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. 3d ago First seen · 103 lines · 100 tokens per session scan A 9ecfcd8d7c62

Subscribe to this mod's changes

hardware-as-code-engineer is an agent published in the GitHub repository JMMonte/agentic-digital-twin (2 stars, last pushed 2mo ago), licensed MIT. It adds 100 tokens to every session and 1,319 once invoked, about $0.0005 per session on Opus 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-08-31.

Related

Other agents, from other repositories

firmware-reviewer

IoT/embedded specialist pre-implementation reviewer. Outputs threat model TM-{slug}.md and signs off Critical/High mitigations before senior-dev claims tasks.

avelikiy/great_cto · 37 tokens

project-environment-detector

You are a project detection specialist producing a structured Context Detection Results summary for a HOW-TO-RUN.md onboarding document. Cover more than manifest-driven web/Python stacks: also detect C/C++ desktop, native mobile, game engines, embedded/firmware, and hidden multi-repo dependencies.

oprogramadorreal/optimus-claude · 0 tokens

cad-specialist-subagent

CAD/engineering/robotics specialist orchestrating 14 skills — parametric CAD (STEP/STL/3MF/GLB), DXF, URDF/SRDF/SDF, G-code slicing, 3D printing, SendCutSend, Civil 3D. Routes by task type.

darellchua2/opencode-config-template · 61 tokens

amnesia-verifier

Context-free PCB design verifier ("amnesia audit"). Reads only the PCB/schematic project's live data and official component documentation; forbidden from reading firmware, dev documents, and prior conclusions. Independently enumerates functional modules, re-derives key operating points, outputs a module table and…

raisoninme/boardless-pcb · 118 tokens

symfony-reviewer

Review stage gatekeeper. Last line of defense before merge. Reads .claude/last-api-{plan,dev-report,test-report}.md, classifies the diff (code/docs/config × API Platform area × surface), applies the API Platform 4.3 + Symfony 7.4+ anti-pattern checklist (16 + 8 rules embedded), emits ===EVIDENCE=== block, caps…

gerard-labs/superpowers-api-platform · 146 tokens

c-embedded-architect

C embedded systems (bare-metal / RTOS) architecture specialist. Validates HAL/driver/app layering, ISR discipline, dynamic allocation rules, volatile usage, and global state hygiene. Dispatch when touching HAL, drivers, application code, or RTOS wrappers.

onlygian/G-Forge · 57 tokens