actors: Agent for Claude Code

.claude/agents/rivetkit-driver-test-writer.md

rivetkit-driver-test-writer is an agent for Claude Code from rivet-dev/actors. It costs 0 tokens per session (1,380 once invoked), scanned A, original, Apache-2.0.

A coding agent for writing and debugging RivetKit driver tests. RivetKit is a TypeScript toolkit for distributed workflow systems, and the tests use Vitest, a JavaScript and TypeScript testing framework.

In plain words
What is it for?
Use it to add or update driver-test files, create test fixtures, investigate focused test failures, and check that workflows behave consistently.
Why use it?
It helps developers test distributed behavior without relying on unreliable timing or broad test runs. It follows existing test patterns and uses fixtures that imitate RivetKit actors.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is rivet-dev/actors's own configuration. It tells Claude Code how to work on actors itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything actors configures →

About the project

Rivet Actors are long-running processes that keep application state in memory while persisting it automatically. They support workloads such as AI agents, user sessions, collaborative applications, and durable multi-step operations with queues, scheduling, and WebSockets. Catalogue add-ons help operate and develop Rivet Actors.

rivet-dev/actors · 6,271 stars · on GitHub · rivet.dev

Reuse

Borrowing it

Nothing to install: this file belongs to rivet-dev/actors. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/rivet-dev/actors/main/.claude/agents/rivetkit-driver-test-writer.md
Clone the repo
git clone --depth 1 https://github.com/rivet-dev/actors

Made for: Claude Code.

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 rivetkit-driver-test-writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/rivet-dev/actors/rivetkit-driver-test-writer/github.svg)](https://agentmods.dev/agents/rivet-dev/actors/rivetkit-driver-test-writer)
Your own site
<a href="https://agentmods.dev/agents/rivet-dev/actors/rivetkit-driver-test-writer"><img src="https://agentmods.dev/badge/agents/rivet-dev/actors/rivetkit-driver-test-writer/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 rivetkit-driver-test-writer

Your own site · 80×15
<a href="https://agentmods.dev/agents/rivet-dev/actors/rivetkit-driver-test-writer"><img src="https://agentmods.dev/badge/agents/rivet-dev/actors/rivetkit-driver-test-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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 1,380 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.00000 $0.01380
Opus 5.5 $0.00000 $0.00552
Sonnet 5.5 $0.00000 $0.00276
Haiku 4.5 $0.00000 $0.00138

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

Security

Grade A, and why

rivetkit-driver-test-writer 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 1mo 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.

.claude/agents/rivetkit-driver-test-writer.md · 112 lines

How it starts

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

You are an expert RivetKit driver test engineer specializing in writing comprehensive, reliable test suites for distributed workflow systems. You have deep expertise in Vitest testing patterns, TypeScript testing best practices, and the RivetKit driver architecture.

Your Core Responsibilities

  1. Write Test Cases: Create new test files or extend existing ones in rivetkit-typescript/packages/rivetkit/src/driver-test-suite/tests/*.ts following Vitest conventions and existing patterns in the codebase.

  2. Implement Test Fixtures: Build or modify actor fixtures in rivetkit-typescript/packages/rivetkit/fixtures/driver-test-suite/*.ts that simulate realistic RivetKit behaviors for testing purposes.

  3. Debug Test Failures: Investigate failing tests by running targeted test filters, analyzing logs, and identifying root causes.

  4. Ensure Test Quality: Write tests that are:

    • Isolated and deterministic
    • Clearly documented with descriptive test names
    • Focused on specific behaviors
    • Resilient to timing issues in distributed systems
    • Following existing test patterns in the codebase

Critical Operational Rules

Test Execution

  • NEVER run the entire test suite - always use specific test filters
  • Use the exact command format: cd rivetkit-typescript/packages/rivetkit && pnpm test driver-{driver} -t '{test filter}'
  • Available drivers: driver-engine, driver-file-system, driver-memory
  • When running tests, pipe output to /tmp/ files and grep separately for analysis
  • Example: cd rivetkit-typescript/packages/rivetkit && pnpm test driver-engine -t 'workflow cancellation' > /tmp/test-output.log 2>&1 && grep -i 'error\|fail' /tmp/test-output.log

Code Style & Patterns

  • Study existing test files before creating new ones to maintain consistency
  • Use Vitest's describe, it, expect, and lifecycle hooks (beforeEach, afterEach, etc.)
  • Follow TypeScript best practices with proper typing
  • Use structured assertions that clearly communicate intent
  • Add comments explaining complex test setups or non-obvious expectations

Read the full file on GitHub · 112 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. 1mo ago First seen · 112 lines · 0 tokens per session scan A b9f9aa7033d2

Subscribe to this mod's changes

rivetkit-driver-test-writer is an agent published in the GitHub repository rivet-dev/actors (6,271 stars, last pushed 5d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,380 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-30.

Related

Other agents, from other repositories

rust-build-resolver

Rust build, compilation, and dependency error resolution specialist. Fixes cargo build errors, borrow checker issues, and Cargo.toml problems with minimal changes. Use when Rust builds fail.

affaan-m/ECC · 41 tokens

rust-performance-engineer

Rust performance optimization specialist specializing in macOS optimizations (sccache, XProtect), profiling with flamegraph, benchmarking with criterion, and build speed improvements. Use when performance concerns are mentioned, slow code identified, build times need optimization, or macOS-specific optimization needed.

bug-ops/zeph · 60 tokens

rust-debugger

Rust debugging and troubleshooting specialist focused on systematic error diagnosis, runtime debugging with LLDB/GDB, panic analysis, async debugging, memory issues, and production incident investigation. Use PROACTIVELY when encountering compilation errors, runtime panics, unexpected behavior, performance anomalies…

bug-ops/zeph · 61 tokens

rust-testing-engineer

Rust testing specialist focused on comprehensive test coverage with nextest and criterion, test infrastructure, and quality assurance. Use PROACTIVELY when adding new functionality that requires tests, investigating test failures, or setting up test infrastructure.

bug-ops/zeph · 49 tokens

rust-test-author

Rust TDD test-author worker. Writes failing tests against a provided spec/acceptance criteria and freezes them on commit; forbidden from writing implementation code. Half of the adversarial Rust fix pair (with rust-implementer). Use when a Rust change needs tests authored before implementation.

vinnie357/claude-skills · 60 tokens

rust-implementer

Rust TDD implementer worker. Makes a frozen failing test suite pass with the smallest idiomatic change; forbidden from modifying test files. Half of the adversarial Rust fix pair (with rust-test-author). Use when implementing Rust code against frozen tests.

vinnie357/claude-skills · 55 tokens