test

test is an agent for Claude Code from lisihao/Solar. It costs 18 tokens per session (716 once invoked), scanned A, original, MIT.

A testing and performance-benchmarking agent that helps design tests, check coverage and test quality, run smoke tests, and detect slowdowns. It uses Arrange, Act, Assert as a structure for test cases and compares benchmark results over time.

In plain words
What is it for?
Use it to write unit and regression tests, plan performance tests, analyse bottlenecks, validate real calls, and produce benchmark reports.
Why use it?
It helps catch missing edge cases, regressions, and performance changes before they reach users.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to write unit and regression tests, plan performance tests, analyse bottlenecks, validate real calls, and produce benchmark reports.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/lisihao/solar/test
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/lisihao/Solar

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 test

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/lisihao/solar/test"><img src="https://agentmods.dev/badge/agents/lisihao/solar/test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 716 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.00018 $0.00716
Opus 5 $0.00009 $0.00358
Sonnet 5 $0.00004 $0.00143
Haiku 4.5 $0.00002 $0.00072

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

Security

Grade A, and why

test 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 5d 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/test.md · 73 lines

What it actually says

@Test — 测试与性能基准

任务路由

外部模型 (brain-router)

类型 牛马 角色 说明
测试用例生成 deepseek-v3 creator 9.0分,AAA模式,边界+异常
覆盖率/用例质量 gemini-3.1-pro-preview explorer L4 7.3分,逐项检查
性能回归检测 deepseek-r1 judge 7.5分,风险评估
性能瓶颈分析 deepseek-r1 judge 深度推理,假设验证
快速冒烟测试 gemini-2-flash builder 10.0分,速度最快

Claude 子代理 (Task)

类型 模型 说明
复杂测试设计 Claude Opus 4.6 带代码上下文,用例精准
日常测试编写 Claude Sonnet 4.5 均衡全能
快速验证 Claude Haiku 4.5 极速冒烟

测试原则

  • AAA 模式 (Arrange/Act/Assert)
  • 新功能覆盖率 >= 80%
  • Bug 修复必须有回归测试
  • 性能变更每次都测
  • 禁止纯 Mock 测试 — 必须有真实调用验证

性能测试标准

指标 使用 原因
中位数 主要 对异常值鲁棒
MAD 变异 比 stddev 稳健
Bootstrap CI 置信区间 不假设正态
基准类型 预热 测量
micro (<1ms) 100+ 1000+
operator 5+ 30+
query (>100ms) 2+ 10+

回归阈值

级别 阈值 动作
WARN >5% 警告
FAIL >10% 阻止

基准报告

import { createBenchmarkResult, generateReport, detectRegressions } from 'solar/core/benchmark';
const result = createBenchmarkResult('id', 'name', timings, { type: 'operator' });
const report = await generateReport('Title', 'Project', [result]);
const alerts = detectRegressions(report, baseline);
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. 5d ago First seen · 73 lines · 18 tokens per session scan A bc591b8a7c4c

Subscribe to this mod's changes

test is an agent published in the GitHub repository lisihao/Solar (2 stars, last pushed 26d ago), licensed MIT. It adds 18 tokens to every session and 716 once invoked, about $0.0001 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-09-03.

Related

Other agents, from other repositories

debugger

Debugging specialist for errors, test failures, and unexpected behavior. Use proactively when encountering any issues, build failures, runtime errors, or unexpected test results.

davepoon/buildwithclaude · 34 tokens

aidlc-quality-agent

QA lead responsible for test strategy, test case design, quality gates, and performance validation. Leads Build and Test and Performance Validation stages. Supports NFR Requirements and Functional Design, and serves as a dispatched collaborator in the Practices Discovery hub-and-spoke and User Stories mob ensembles.

awslabs/aidlc-workflows · 60 tokens

testing-bug-fixer

A bug-fixing agent that reproduces problems, traces them to their underlying cause, applies a small targeted change, and adds a regression test.

CronusL-1141/AI-company · 51 tokens

kingdee-qa-engineer

QA & Test Engineer for the kingdee-mcp project. Authors evals/ and tests/ cases, reproduces bugs against the live K3Cloud environment, and runs regression scans via bin/kmcp test.

WaHaiLong/KingdeeMCP · 49 tokens

debugger

Systematic debugger using the Iron Law: no fix without confirmed root cause. Reproduces errors, traces execution paths, forms and verifies hypotheses, then implements…

KevinZai/commander · 35 tokens

evolve-bug-reproduction

Bug reproduction agent for the Evolve Loop (Evaluate archetype). The advisor INSERTS this phase on bugfix cycles before build (after fault localization) to write a test or script that fails on the current buggy code.

mickeyyaya/evolve-loop · 51 tokens