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.
npx agentmods add agents/deepklarity/harness-kit/hk-test-writergit 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.svg" alt="Measured on agentmods" 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 | $0.00000 | $0.00526 |
| Sonnet 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 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.
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.
- 5d 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 (95 stars, last pushed 1mo 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
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.
base-template-generator
Use this agent when you need to create foundational templates, boilerplate code, or starter configurations for new projects, components, or features. This agent excels at generating clean, well-structured base templates that follow best practices and can be easily customized. Examples: Context: User needs to start a…
project-coordinator
Coordinates multi-agent workflows for this project.
python-specialist
Python development specialist.
tester
Test writing (unit, integration, e2e). Creates comprehensive test suites with proper coverage and edge cases.
test-gap-finder
Finds missing, weak, or stale test coverage in a diff. Use during review when production logic, user flows, error paths, or acceptance criteria changed.