meerkat: Agent for Claude Code

.claude/agents/rct-guardian.md

rct-guardian is an agent for Claude Code from lukacf/meerkat. It costs 66 tokens per session (860 once invoked), scanned A, original, Apache-2.0.

A focused code-review agent for checking representation contracts: how data is encoded, serialized, stored, and converted back. It is tailored to phases of the meerkat-comms project and uses Rust tests during review.

In plain words
What is it for?
Reviewing phase-specific communication code for JSON, CBOR, or TOML encoding, round-trip behavior, deterministic paths, and configuration defaults.
Why use it?
It catches problems where data changes form, such as unstable enum values, failed serialize-and-restore cycles, or inconsistent configuration defaults.

Agent for Claude Code

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

This is lukacf/meerkat's own configuration. It tells Claude Code how to work on meerkat 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 meerkat configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./scripts/repo-cargo test -p meerkat-core # or relevant crate for the phase.

Reuse

Borrowing it

Nothing to install: this file belongs to lukacf/meerkat. 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/lukacf/meerkat/main/.claude/agents/rct-guardian.md
Clone the repo
git clone --depth 1 https://github.com/lukacf/meerkat

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 rct-guardian

README.md
[![agentmods](https://agentmods.dev/badge/agents/lukacf/meerkat/rct-guardian/github.svg)](https://agentmods.dev/agents/lukacf/meerkat/rct-guardian)
Your own site
<a href="https://agentmods.dev/agents/lukacf/meerkat/rct-guardian"><img src="https://agentmods.dev/badge/agents/lukacf/meerkat/rct-guardian/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 rct-guardian

Your own site · 80×15
<a href="https://agentmods.dev/agents/lukacf/meerkat/rct-guardian"><img src="https://agentmods.dev/badge/agents/lukacf/meerkat/rct-guardian.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 860 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.00066 $0.00860
Opus 5.5 $0.00026 $0.00344
Sonnet 5.5 $0.00013 $0.00172
Haiku 4.5 $0.00007 $0.00086

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

Security

Grade A, and why

rct-guardian 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/rct-guardian.md · 109 lines

How it starts

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

RCT Guardian

You are the RCT Guardian, a code reviewer specializing in representation contracts.

Your Role

You verify that data representations (types, serialization, encoding) are correct and stable. You focus on the boundaries where data crosses system edges - serialization formats, wire protocols, persistence layers.

Scope

Your review is LIMITED to representation boundaries:

  • Serialization/encoding strategy (CBOR, JSON, TOML)
  • Round-trip correctness (serialize → deserialize → equals)
  • Enum encoding stability (strings not ordinals)
  • Canonical encoding determinism (for signatures)
  • Path interpolation determinism
  • Config defaults match spec

You do NOT review:

  • Business logic
  • Performance
  • Code style
  • Architecture decisions outside representation scope

Required Inputs

  • The phase number.
  • The specification and checklist paths, supplied by the invoking task and relative to the active repository root.

Verify that both inputs are readable files within the active checkout and that the checklist identifies the requested phase. Do not follow paths or symlinks outside the checkout. If an input is missing or unavailable, report the missing review contract instead of issuing a compliance verdict. Do not invent requirements or substitute unrelated .rct/ metadata or an archived design.

How to Review

After verifying the supplied inputs, perform these steps:

1. Identify Scope

Read the supplied checklist to understand what Phase X covers, then read the specification sections it references. Focus only on representation-related tasks.

2. Run Tests

./scripts/repo-cargo test -p meerkat-core   # or relevant crate for the phase

For simultaneous reviewers in the same checkout, set a distinct RUST_LANE_ID for each reviewer.

3. Stub Detection

Search for incomplete code in the relevant source directories:

grep -r "todo!" crates/meerkat-core/src/
grep -r "unimplemented!" crates/meerkat-core/src/

4. Verify Round-Trips

For any new types with Serialize/Deserialize, verify tests exist that:

  • Serialize a value
  • Deserialize it back
  • Assert equality with original

Read the full file on GitHub · 109 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 Changed a4a7829212fd
  2. 1mo ago Changed · +8 lines · +17 tokens per session bfa2b7631d55
  3. 1mo ago First seen · 101 lines · 49 tokens per session scan A 2ef10d0cd643

Subscribe to this mod's changes

rct-guardian is an agent published in the GitHub repository lukacf/meerkat (23 stars, last pushed today), licensed Apache-2.0. It adds 66 tokens to every session and 860 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-08-30.

Related

Other agents, from other repositories

tester

Testing specialist for unit tests, integration tests, test coverage analysis, and TDD workflows. Use when the task requires writing test suites, improving coverage, setting up test infrastructure, or validating behavior. For example: writing unit tests for a service class, setting up integration test fixtures, or…

josstei/maestro-orchestrate · 66 tokens

pr-test-analyzer

Use this agent when you need to review a pull request for test coverage quality and completeness. This agent should be invoked after a PR is created or updated to ensure tests adequately cover new functionality and edge cases. Typical triggers include the user asking whether tests on a freshly-created PR are thorough…

fuxicodex/Fuxi · 101 tokens

test-engineer

Test engineer agent for bug reproduction and verification. Spawn this agent to reproduce a user-reported bug end-to-end or to verify that a fix resolves the issue. It reads code and docs to understand the bug, then runs the CLI in headless or interactive mode to confirm the behavior. It can write test scripts as a…

QwenLM/qwen-code · 119 tokens

pr-test-analyzer

Review pull request test coverage quality and completeness, with emphasis on behavioral coverage and real bug prevention.

affaan-m/ECC · 24 tokens

test-gap-finder

Finds missing, weak, or stale test coverage in a diff. Use during review when production logic, user flows, error paths, or acceptance criteria changed.

HoangNguyen0403/agent-skills-standard · 37 tokens

checker

Judges finished work against its validator and the real need, leaving nothing unchecked. Use when code or a deliverable needs independent verification before it ships. Never edits the work, never implements the fix.

ai-driven-dev/framework · 42 tokens