bsv-coder

A coding agent for BSV, a language for describing hardware circuits. It turns natural-language hardware requirements into BSV source code and a matching testbench.

In plain words
What is it for?
Use it to create compilable BSV files and testbenches from hardware requirements, interface details, and protocol constraints.
Why use it?
It gives you an implementation from a written hardware description while following specified BSV coding conventions.

Agent

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/alele496/bsv-specmate/bsv-coder
Clone the repo
git clone --depth 1 https://github.com/Alele496/bsv-specmate
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 316 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.00000 $0.00316
Opus 5 $0.00000 $0.00158
Sonnet 5 $0.00000 $0.00063
Haiku 4.5 $0.00000 $0.00032

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

Security

Grade A, and why

bsv-coder 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 2d 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.

templates/ccb-ultracode/agents/bsv-coder.md · 30 lines

What it actually says

你是 BSV 硬件编码 Agent。只写代码,不做审查。不知道 specmate 存在。

输入

  • 硬件需求描述(自然语言)
  • 可选:接口约束(端口名、位宽、协议)

输出

  • 可编译的 .bsv 源文件
  • 对应的 testbench

编码风格(保守稳健型)

  • 数据通路用 Bit#(1),不用 BoolBool 仅限逻辑条件
  • 跨 rule / 跨模块通信只用 FIFOF,不用 PulseWire + Reg
  • 跨模块 method 与内部 rule 互斥时加 (* descending_urgency *)
  • 模块内:所有 rule 在前,所有 method 在后,不交替
  • 标识符:小写驼峰,避开 SV 保留字(action bit reg wire module 等)
  • 拼接表达式 {a, b, c} 总位宽与赋值目标一致

规则

  • 不调用任何 specmate 工具——你只负责实现
  • 一次性写完所有文件,写完告知
  • 收到审查反馈后精确按指令修改
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. 2d ago First seen · 30 lines · 0 tokens per session scan A 8f16e46ac603

Subscribe to this mod's changes

bsv-coder is an agent published in the GitHub repository Alele496/bsv-specmate (3 stars, last pushed 19d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 316 tokens. 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

c-cpp-expert-agent

Deep C++ expertise for template metaprogramming, SFINAE, constexpr, type traits, and memory model questions in embedded context.

FastLED/FastLED · 34 tokens

embedded-alg

Use when implementing application-layer logic for embedded competition: state machines, CLI command parsers, control laws, signal codecs, file system service modules. Consumes drivers from embedded-drv and gain/coefficient .h files from embedded-matlab. Never touches hardware registers directly.

DunCanYounG-1/auto-embedded · 59 tokens

c-systems-programmer

C programming specialist for systems programming, embedded systems, memory management, and performance optimization. Use when writing/reviewing C code, debugging memory leaks, investigating segfaults, working with POSIX APIs, implementing pthreads, optimizing embedded systems, using GDB/Valgrind debuggers, developing…

Jamie-BitFlight/claude_skills · 76 tokens

embedded-developer

Embedded systems, firmware, RTOS, microcontrollers (STM32, ESP32, Arduino), IoT, and bare-metal C/C++ specialist. Use when developing firmware, working with hardware peripherals, or building IoT devices. Trigger phrases: embedded, firmware, RTOS, microcontroller, Arduino, ESP32, STM32, IoT, bare-metal, I2C, SPI, UART…

travisjneuman/.claude · 92 tokens

chip-esl-writer

ESL 模型代码编写 Agent。根据 ESL 架构方案文档,生成可编译的 SystemC/TLM 模型代码,包括模块定义、TLM 接口实现、数据通路逻辑和性能计数器。内置 LLM Wiki 知识系统(SystemC/TLM 2.0 预编译结构化知识),严格遵循 ESL 编码规范和架构冻结原则。集成对抗性评审(devils-advocate ruthless 模式),可在代码实现完成后自动挑战代码正确性和潜在 Bug。当用户需要将 ESL 架构方案转化为 SystemC/TLM 实现、生成虚拟平台代码或编写 ESL 模型时激活。.

zhaixin244-wq/fnw · 162 tokens

Embedded Firmware Engineer

Specialist in bare-metal and RTOS firmware - ESP32/ESP-IDF, PlatformIO, Arduino, ARM Cortex-M, STM32 HAL/LL, Nordic nRF5/nRF Connect SDK, FreeRTOS, Zephyr.

criptogus/agent-evolve-network · 51 tokens