gru-ai: Agent for Claude Code

.claude/agents/sam-qa.md

sam is an agent for Claude Code from andrew-yangy/gru-ai. It costs 53 tokens per session (1,795 once invoked), scanned A, original, MIT.

A specialist prompt for an engineer who investigates code and checks its correctness, build process, and quality.

In plain words
What is it for?
Use it to inspect a codebase, review changes, check TypeScript types and Vite builds, verify runtime behavior, and identify regression risks.
Why use it?
It gives review and testing work a defined focus, especially in projects without a formal test suite.

Agent for Claude Code

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

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

Reuse

Borrowing it

Nothing to install: this file belongs to andrew-yangy/gru-ai. 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/andrew-yangy/gru-ai/main/.claude/agents/sam-qa.md
Clone the repo
git clone --depth 1 https://github.com/andrew-yangy/gru-ai

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 sam

README.md
[![agentmods](https://agentmods.dev/badge/agents/andrew-yangy/gru-ai/sam-qa.svg)](https://agentmods.dev/agents/andrew-yangy/gru-ai/sam-qa)
Your own site
<a href="https://agentmods.dev/agents/andrew-yangy/gru-ai/sam-qa"><img src="https://agentmods.dev/badge/agents/andrew-yangy/gru-ai/sam-qa.svg" alt="Measured on agentmods" height="20"></a>
Per session 53 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,795 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00053 $0.01795
Opus 5 $0.00026 $0.00898
Sonnet 5 $0.00011 $0.00359
Haiku 4.5 $0.00005 $0.00179

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

Security

Grade A, and why

sam scanned grade A with 1 finding 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 8d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Server health check (`curl http://localhost:4444/api/health`) verifies all watchers are ready
.claude/agents/sam-qa.md · 127 lines

How it starts

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

Sam Park -- QA Engineer

You are Sam Park, QA Engineer. You are a specialist engineer with deep knowledge of this project's verification, quality assurance, and codebase investigation patterns.

You operate in three modes depending on how you're spawned:

  1. Investigation mode (two-agent audit Phase 1): Pure data gathering -- scan the codebase, measure baselines, flag dead code, report constraints. Do NOT recommend approaches or designs. You gather facts; the Architect (separate agent) makes design decisions.

  2. QA/Build mode: Testing, verification, type safety, build integrity work.

  3. Review mode (default reviewer): Systematic code review against DOD, scope, standing corrections, edge cases, and regression risk.

Your spawn prompt will make clear which mode you're operating in.

Project Context

gruai has no formal test suite -- quality assurance relies on TypeScript's type system, Vite's build pipeline, and manual verification. The project uses a multi-config TypeScript setup with project references. QA work focuses on type safety, build integrity, runtime correctness verification, and ensuring the data pipeline produces accurate results.

Key Files & Patterns

  • TypeScript configs: tsconfig.json (root, references only), tsconfig.app.json (frontend), tsconfig.node.json (Vite config), server/tsconfig.json (server), cli/tsconfig.json, mcp-server/tsconfig.json
  • Package scripts: type-check (tsc --noEmit), build (vite build), dev (concurrent server + vite), dev:server (tsx watch)
  • Frontend types: src/stores/types.ts -- must stay in sync with server/types.ts
  • Server types: server/types.ts -- canonical type definitions for Session, Team, HookEvent, DashboardState
  • Work item types: server/state/work-item-types.ts -- GoalRecord, FeatureRecord, BacklogRecord (shared across indexer, server, frontend)
  • State indexer: scripts/index-state.ts -- legacy indexer (deprecated; dashboard reads source files directly)
  • Health endpoint: GET /api/health -- reports server uptime, watcher readiness, connected clients

Read the full file on GitHub · 127 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. 8d ago First seen · 127 lines · 53 tokens per session scan A 3a0b7cf17918

Subscribe to this mod's changes

sam is an agent published in the GitHub repository andrew-yangy/gru-ai (153 stars, last pushed 6mo ago), licensed MIT. It adds 53 tokens to every session and 1,795 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

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

code-reviewer

Adversarial multi-dimensional code review — security, performance, correctness, spec compliance, maintainability. Report issues with confidence ≥80, every finding states category, impact, and evidence. Runs after component-builder in BUILD workflows.

romiluz13/cc10x · 49 tokens

failure-hunter

Find silent failures in code — empty catches, log-only error handlers, discarded errors, generic error messages, swallowed exceptions. Zero tolerance for error handling that hides bugs. Runs in parallel with code-reviewer during BUILD workflows.

romiluz13/cc10x · 48 tokens

triage-agent

Triage incoming issues and PRs — categorize, verify, check redundancy and prior rejection, write agent-ready briefs. Read-only. Routes: TRIAGE workflow.

romiluz13/cc10x · 36 tokens

architecture-scanner

Scan the codebase for deepening opportunities — shallow modules, pass-throughs, semantic duplicates. Read-only. Produces a visual HTML report with before/after diagrams. Routes: CODEBASE-HEALTH workflow.

romiluz13/cc10x · 47 tokens

implementer

Dispatched by milestone-driver's /milestone-driver:solve-issue, once a plan is approved, to implement that architecture-aware plan for a single GitHub issue - least-code, reuse-first, TDD red→green when a test layer exists, non-trivial choices backed by a cited source. Architecture is locked: this agent executes the…

kenmulford/milestone-driver · 119 tokens