test

A test-phase command that runs tests for the whole project or for a specific task. It supports configured commands and built-in runners for several common programming languages and test tools.

In plain words
What is it for?
Use it to run project-wide tests, test the files linked to a task, or configure custom test commands.
Why use it?
It provides one defined way to verify changes and record test failures as issues.

Command

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 commands/daphnee-ovo/dev-flow/test
Clone the repo
git clone --depth 1 https://github.com/daphnee-ovo/dev-flow
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 480 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.00016 $0.00480
Opus 5 $0.00008 $0.00240
Sonnet 5 $0.00003 $0.00096
Haiku 4.5 $0.00002 $0.00048

Measured yesterday against content hash bfe49d82eb46, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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.

plugin/commands/test.md · 67 lines

What it actually says

TEST — Test execution

/test is the explicit TEST-phase workflow entry. Do not invoke it from Task completion or a hook reminder; ask the user to enter TEST instead. The dow test CLI is the only test executor and the only component that creates test-failure ISSUE files.

Commands

Full project test:

dow test

Task-scoped test:

dow test TASK-ID

dow test TASK-ID reads the matching Task from both active task_* and completed done_task_* files, then runs its files.test. An empty test list is PASS. Paths are relative to project_root.

Configuration

Create .dev-doc/test.ci when project defaults do not fit:

devtest:
  run: <Task test command>
test:
  run: <full project test command>

The command runs in project_root with inherited environment variables. Available placeholders are project_root, task_id, task_file, and test_files. Unknown placeholders and missing tools are PRECONDITION_FAILED.

Without custom commands, the CLI uses built-in adapters for Rust, Go, Python pytest, JavaScript/TypeScript package test scripts and runners, and compatible Shell tests. Unsupported files or runners are precondition failures; they are not silently executed as Shell.

Outcomes

  • PASS exits 0.
  • TEST_FAILED exits 1, returns the original test output, and creates a P1 ISSUE with source: test.
  • PRECONDITION_FAILED exits 2, returns the prerequisite error, and does not create an ISSUE.

The ISSUE title is Test fail:<summary> for full tests and Test TASK-ID fail:<summary> for Task tests. Generated ISSUE Markdown may contain files_modify and files_create; public issue create/update input uses the nested files object.

There is no --file or --task test selector. Use the language's own command for an ad hoc single-file check, or configure test.ci.

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. yesterday First seen · 67 lines · 16 tokens per session scan A bfe49d82eb46

Subscribe to this mod's changes

test is a command published in the GitHub repository daphnee-ovo/dev-flow (2 stars, last pushed 17d ago), licensed MIT. It adds 16 tokens to every session and 480 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-08-31.