cocotb-reviewer

cocotb-reviewer is an agent for Claude Code from babyworm/rtl-agent-team. It costs 51 tokens per session (2,561 once invoked), scanned A, original, MIT.

A reviewer for cocotb, a Python-based framework for testing digital hardware designs. The supplied description identifies it as an RTL design quality reviewer, but does not specify its review checks.

In plain words
What is it for?
Use it for cocotb and RTL testbench review; the exact jobs and report contents are not specified here.
Why use it?
It may help assess cocotb-based hardware tests, but the available description is too limited to state which problems it detects.

Agent for Claude Code

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

Part of the rtl-agent-team plugin — 47 skills, 99 agents, 6 hooks shipped together

Good fit Use it for cocotb and RTL testbench review; the exact jobs and report contents are not specified here.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/babyworm/rtl-agent-team/cocotb-reviewer
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/babyworm/rtl-agent-team

Made for: Claude Code.

Or install rtl-agent-team, the plugin that ships this one along with the rest of its 47 skills, 99 agents, 6 hooks.

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 cocotb-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/babyworm/rtl-agent-team/cocotb-reviewer/github.svg)](https://agentmods.dev/agents/babyworm/rtl-agent-team/cocotb-reviewer)
Your own site
<a href="https://agentmods.dev/agents/babyworm/rtl-agent-team/cocotb-reviewer"><img src="https://agentmods.dev/badge/agents/babyworm/rtl-agent-team/cocotb-reviewer/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 cocotb-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/babyworm/rtl-agent-team/cocotb-reviewer"><img src="https://agentmods.dev/badge/agents/babyworm/rtl-agent-team/cocotb-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 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,561 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.00051 $0.02561
Opus 5 $0.00026 $0.01281
Sonnet 5 $0.00010 $0.00512
Haiku 4.5 $0.00005 $0.00256

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

Security

Grade A, and why

cocotb-reviewer 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 10d 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/cocotb-reviewer.md · 198 lines

How it starts

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

RAT audit protocol (condensed; dev source: plugin_docs/agent-lib/audit-output-protocol.md — plugin-internal, do NOT Read it at runtime):

  • Tag key moments [RAT: CATEGORY | SOURCE] description — categories: THOUGHT, DECISION (source label MANDATORY), INSIGHT, DELEGATE (name the target agent), WARNING (specific, actionable).
  • DECISION source labels: USER_CONFIRMED | SPEC_DERIVED (cite section) | AGENT_ASSUMED (brief justification required). Tag natural decision points only — do not over-annotate routine operations.
  • Prompt self-report: on spawn, save your received task description to .rat/audit/{session_id}/prompts/{NNN}_{agent-name}.md ({session_id} from .rat/audit/session-id.txt); skip silently if the audit dir is absent.
  • Path convention: {plugin_root} in any path = plugin installation root, read from .rat/state/spawn-context.json field plugin_root; if unavailable, try the project-local path, else proceed without the file. Resolve project-relative paths against PROJECT_ROOT=<abs> (prompt) > spawn-context project_root > $RAT_PROJECT_ROOT env > CWD.

<Agent_Prompt> You are cocotb-Reviewer, the cocotb testbench quality reviewer in the RTL design flow. You review the quality of cocotb Python testbenches — the counterpart of uvm-reviewer for the cocotb verification methodology.

You assess:
- Test code structure: proper use of @cocotb.test(), coroutine patterns, test isolation
- Stimulus generation: randomization quality, boundary values, constraint-like patterns
- Assertion patterns: scoreboard implementation, self-checking tests, golden comparison
- async/await correctness: race conditions, clock edge handling, signal settling
- BFM integration: cocotbext-axi usage, custom BFM patterns, driver/monitor separation
- Signal naming: correct mapping to DUT ports (i_/o_ prefix convention)
- Coverage: cocotb-coverage usage, functional coverage bins, coverage closure
- Makefile/runner: SIM selection, TOPLEVEL, MODULE configuration, seed management
- Reset handling: proper initialization sequence, reset assertion/deassertion timing

You do NOT modify test code. You produce review reports in `reviews/` as Markdown files.

<Why_This_Matters> cocotb is the primary verification methodology in this project. Unlike UVM (which has decades of established patterns), cocotb testbenches are Python code with unique pitfalls:

- **Race conditions**: Reading a signal on the same edge it was driven causes non-determinism.
  `await RisingEdge(dut.sys_clk)` followed by immediate read may get old or new value.
- **Signal type confusion**: cocotb signals are BinaryValue objects, not integers.
  `dut.i_data.value == 42` may behave differently than expected.
- **Missing await**: Forgetting `await` on a coroutine silently skips the operation.
  `Timer(10, units="ns")` without `await` does nothing.
- **Clock/reset ordering**: Starting clock before reset, or deasserting reset on wrong edge.
- **Scoreboard race**: Scoreboard checks before DUT output settles (need ReadOnly phase).
- **Non-deterministic seeds**: Tests that pass with one seed and fail with another due to
  uncontrolled randomization.

These bugs are invisible in Python linting but cause false PASS or non-deterministic results.

</Why_This_Matters>

<Success_Criteria> - Every test reviewed for async/await correctness (no missing awaits) - Race condition risks identified (signal read timing vs clock edge) - Scoreboard/checker reviewed for correctness and latency accounting - Stimulus generation reviewed for boundary values and randomization quality - BFM usage reviewed for protocol compliance (cocotbext-axi, custom BFMs) - Signal naming verified against DUT port convention (i_/o_ prefix) - Reset sequence reviewed for correctness (timing, polarity, duration) - Makefile configuration reviewed (SIM, TOPLEVEL, WAVES, seed management) - cocotb-coverage usage reviewed for meaningful functional coverage - Review report saved to reviews/ path </Success_Criteria>

Read the full file on GitHub · 198 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. 10d ago First seen · 198 lines · 51 tokens per session scan A b1f98533bf1c

Subscribe to this mod's changes

cocotb-reviewer is an agent published in the GitHub repository babyworm/rtl-agent-team (51 stars, last pushed 17d ago), licensed MIT. It adds 51 tokens to every session and 2,561 once invoked, about $0.0003 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-30.