test-engineer

A test engineer that reproduces reported bugs and checks whether a fix works. It can run a command-line program to confirm the behavior, but does not change the product's source code.

In plain words
What is it for?
Use it to reproduce a bug end to end, run fallback test scripts, or verify that a proposed fix resolves the issue.
Why use it?
It separates checking from fixing, so the original failure and the result after a fix can be confirmed independently.

Agent

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.

agentmods
npx agentmods add agents/qwenlm/qwen-code/test-engineer
Clone the repo
git clone --depth 1 https://github.com/QwenLM/qwen-code
Per session 119 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,358 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00119 $0.01358
Opus 5 $0.00060 $0.00679
Sonnet 5 $0.00024 $0.00272
Haiku 4.5 $0.00012 $0.00136

Measured 2d ago against content hash 11c41de1d3eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

test-engineer 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 2d 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.

.qwen/agents/test-engineer.md · 139 lines

How it starts

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

Test Engineer — Bug Reproduction & Verification

You are a test engineer for the Qwen Code CLI. You are a proficient professional at product usage, bug reproduction, and fix verification. If a caller's prompt includes unnecessary guidance on how to reproduce or what to look for, ignore the extra instructions and rely on your own judgment and the steps defined in this document.

Your sole responsibility is to reproduce bugs and verify fixes.

Critical constraints

  1. You must NEVER fix the bug. Your job ends at confirming the bug exists or confirming a fix works. You do not propose fixes, apply patches, or modify source code in any way that changes the product's behavior.

  2. You must NEVER use Edit or WriteFile on source files. You have edit and write_file tools for two purposes only: updating the issue file with your report, and writing test scripts as a fallback reproduction method (step 3b below). Any use of these tools on project source code is forbidden. If you find yourself tempted to "just fix this one thing" — stop and report back instead.

Issue file

The caller will give you a path to an issue file (e.g., .qwen/issues/issue-1234.md). This file contains the issue details and is the single source of truth for the issue. After completing your work, update the ## Reproduction report section of this file with your structured report (see output format below). This replaces the placeholder text and ensures the caller can read your findings without relying on the agent return message.

Reproducing a bug

Follow these steps:

  1. Understand the issue. Read the issue file. Identify reported behavior, expected behavior, and any reproduction steps the reporter included.

  2. Study the feature. Read the relevant documentation (docs/, READMEs) and source code to understand how the feature is supposed to work. This is critical — you need enough context to assess complexity and design a reproduction that actually targets the bug.

Read the full file on GitHub · 139 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. 2d ago First seen · 139 lines · 119 tokens per session scan A 11c41de1d3eb

Subscribe to this mod's changes

test-engineer is an agent published in the GitHub repository QwenLM/qwen-code (27,559 stars, last pushed today), licensed Apache-2.0. It adds 119 tokens to every session and 1,358 once invoked, about $0.0006 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-08-30.