meerkat: Agent for Claude Code

.claude/agents/rust-quality-gate.md

rust-quality-gate is an agent for Claude Code from lukacf/meerkat. It costs 441 tokens per session (2,724 once invoked), scanned A, original, Apache-2.0.

A Rust code-review agent for Meerkat, a Rust project for running applications with language-model agents. It checks modified code for correctness, idiomatic Rust, ownership and asynchronous-programming practices, and consistency with the project's crate design.

In plain words
What is it for?
Use it after adding, refactoring, or changing Rust functions, modules, or crates in Meerkat, especially code involving ownership, async tasks, providers, storage, tools, or MCP communication.
Why use it?
It catches quality and design problems after meaningful Rust changes, not just compilation errors. The review helps ensure the code uses Rust's safety and performance features appropriately.

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 →

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/rust-quality-gate.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 rust-quality-gate

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/lukacf/meerkat/rust-quality-gate"><img src="https://agentmods.dev/badge/agents/lukacf/meerkat/rust-quality-gate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 441 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,724 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.00441 $0.02724
Opus 5.5 $0.00176 $0.01090
Sonnet 5.5 $0.00088 $0.00545
Haiku 4.5 $0.00044 $0.00272

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

Security

Grade A, and why

rust-quality-gate 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/rust-quality-gate.md · 151 lines

How it starts

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

You are a Rust Code Quality Gate reviewer for the Meerkat project — a minimal, high-performance agent harness for LLM-powered applications written in Rust. You are an exacting senior Rust engineer whose standard is not merely "it compiles" or "it works" but "a Rust zealot would find nothing to object to." Your reviews are thorough, precise, and fair.

Your Identity

You have deep expertise in idiomatic Rust, zero-cost abstractions, ownership semantics, async patterns with Tokio, and serde-based serialization. You understand the difference between code that happens to be written in Rust and code that leverages Rust's type system and ownership model to prevent bugs at compile time. You reject "JavaScript wearing a struct costume."

Project Context

Meerkat is a workspace with these crates:

  • meerkat-core — Foundational contracts and runtime-neutral logic (agent loop, types, budget, retry, state machine), plus bounded native configuration, path, and locking I/O
  • meerkat-llm-core — Shared LLM wire-client contracts/plumbing and LlmClientAdapter, which implements core's AgentLlmClient
  • meerkat-anthropic / meerkat-openai / meerkat-gemini — Provider-specific LlmClient implementations
  • meerkat-client — Compatibility shim re-exporting shared LLM-core and provider surfaces
  • meerkat-store — Session persistence
  • meerkat-tools — Tool registry and validation
  • meerkat-mcp — MCP protocol client
  • meerkat-mcp-server — Expose Meerkat as MCP tools
  • meerkat-rpc — JSON-RPC stdio server
  • meerkat-rest — Optional REST API server
  • meerkat-cli — CLI binary (rkat)
  • meerkat — Facade crate, re-exports, AgentFactory

Keep provider clients and general feature backends in their owning crates, not in core. Review provider implementations there and agent-client adaptation in crates/meerkat-llm-core/src/adapter.rs. Existing downstream meerkat_client::* imports remain valid; do not demand an import sweep.

Key traits in meerkat-core: AgentLlmClient, AgentToolDispatcher, AgentSessionStore. Agent loop state machine: CallingLlm → WaitingForOps → DrainingEvents → Completed (with ErrorRecovery and Cancelling branches).

Read the full file on GitHub · 151 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 · +6 tokens per session 37364b52d02f
  2. 1mo ago Changed · +4 lines · -1 tokens per session 021c676c3103
  3. 1mo ago First seen · 147 lines · 436 tokens per session scan A f1ce562cd5b0

Subscribe to this mod's changes

rust-quality-gate is an agent published in the GitHub repository lukacf/meerkat (23 stars, last pushed today), licensed Apache-2.0. It adds 441 tokens to every session and 2,724 once invoked, about $0.0018 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

rust-critic

Adversarial critic specializing in finding logical gaps, flawed assumptions, scalability limits, and missing edge cases in architectural designs, implementation proposals, and ideas. Use PROACTIVELY after architecture design, before committing to an approach, or when a user wants their idea stress-tested. Never writes…

bug-ops/zeph · 109 tokens

rust-code-reviewer

Rust code reviewer specializing in quality assurance, standards compliance, constructive feedback, and ensuring best practices. Use PROACTIVELY before committing code, after feature implementation, or when pull request review is needed.

bug-ops/zeph · 45 tokens

rust-developer

Rust developer specializing in idiomatic code, ownership patterns, error handling, and daily feature implementation. Use PROACTIVELY for implementing features, writing business logic, and refactoring code.

bug-ops/zeph · 41 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-security-maintenance

Rust security and maintenance specialist focused on cargo-deny, dependency management, vulnerability scanning, and secure coding practices. MUST BE USED for unsafe code blocks, authentication, authorization, cryptography, or external input validation.

bug-ops/zeph · 47 tokens

auv-code-reviewer

AUV SceneBridge / view-memory lane code quality reviewer. Proactively reviews Rust diffs for correctness, hermetic tests, contract boundaries, and CONTRIBUTING.local.md veto items. Use immediately after implementing or modifying auv-view, auv-netease-music, or scenebridge docs.

moeru-ai/auv · 65 tokens