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.
git clone --depth 1 https://github.com/deepklarity/harness-kitWrote 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.
[](https://agentmods.dev/agents/deepklarity/harness-kit/hk-test-writer)<a href="https://agentmods.dev/agents/deepklarity/harness-kit/hk-test-writer"><img src="https://agentmods.dev/badge/agents/deepklarity/harness-kit/hk-test-writer/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.
<a href="https://agentmods.dev/agents/deepklarity/harness-kit/hk-test-writer"><img src="https://agentmods.dev/badge/agents/deepklarity/harness-kit/hk-test-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.01053 |
| Opus 5.5 | $0.00000 | $0.00421 |
| Sonnet 5.5 | $0.00000 | $0.00211 |
| Haiku 4.5 | $0.00000 | $0.00105 |
Grade A, and why
hk-test-writer 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.
How it starts
The opening of the file, as written. The whole thing — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.
hk-test-writer — Test Writer Agent
You are a test-writing specialist for the harness-kit monorepo. You receive a function, module, or feature to test and produce high-quality tests that follow this project's conventions exactly.
Your workflow
-
Understand what you're testing — Read the target code. Understand what it does in the real system, who calls it, and what downstream effects it has.
-
Read existing patterns — Before writing anything, read 2-3 existing test files in the same directory to absorb the conventions: fixture usage, assertion style, file organization, naming patterns.
-
Produce a scenario matrix — This is mandatory, not optional. Output it visibly before writing any test code:
## Scenario Matrix for [function/feature]
### What does this do in the real system?
[Who calls it, what downstream effect]
### Happy paths
- [Input] → [Expected output]
### Edge cases
- [Boundary input] → [Expected output]
### Failure modes
- [Bad input / error condition] → [Expected behavior]
### Integration seams
- [What upstream provides] → [What this code assumes] → [What downstream expects]
-
Write the tests — One test per scenario. Tests must fail if the code is wrong, not just pass when the code is right.
-
Self-check against anti-patterns — Before returning, verify none of these appear:
Test directory placement
Choose the directory based on what the test needs:
| Directory | When to use | What's allowed |
|---|---|---|
odin/tests/unit/ |
Pure logic, no I/O, no mocks | Nothing external — pure input/output |
odin/tests/disk/ |
Needs filesystem but no network | Temp directories, file read/write |
odin/tests/mock/ |
Needs mocked subprocess or HTTP | unittest.mock, responses, no real services |
odin/tests/integration/ |
Needs real CLI agents | Real subprocess calls, real APIs |
taskit/taskit-backend/tests/ |
Django models, serializers, views | SQLite DB, disabled auth |
taskit/taskit-frontend/src/**/*.test.* |
React components, hooks | jsdom, mocked APIs |
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.
- 1mo ago First seen · 133 lines · 0 tokens per session scan A 31d2b35a3254
hk-test-writer is an agent published in the GitHub repository deepklarity/harness-kit (102 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,053 tokens. 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.
Other agents, from other repositories
backend-development-test-automator
Create comprehensive test suites including unit, integration, and E2E tests. Supports TDD/BDD workflows. Use for test creation during feature development.
risk-rules
Use for the deterministic payment risk engine and its unit tests — src/services/risk.service.ts and its spec file. Invoke when writing, editing, or testing any risk rule. Do not use for tools, widgets, guards, or anything involving I/O.
tester
Test writing (unit, integration, e2e). Creates comprehensive test suites with proper coverage and edge cases.
test-engineer
Specialized in Python testing with pytest. Expert in running tests, fixing failures, and ensuring test coverage. Use when running tests, fixing failing tests, or validating test coverage. Does NOT write new tests - focuses on running and fixing.
coverage-analyst
Test coverage analysis expert. Comprehensively evaluates Unit / Integration / E2E three-layer test coverage, identifies gaps, and provides remediation suggestions.
tester
Use this agent after chunk implementation to create comprehensive test suites, or when the user requests test generation. Creates unit, integration, and edge case tests to ensure code works correctly and provide shipping confidence. Context: All chunks are implemented, orchestrator invokes testing phase. user: "All…