# 7.2 Domain-specialised harness

The harness core is domain-agnostic; swapping tools, skills and verifiers specialises it.

1. The harness core is domain-agnostic.
2. General: shell, edit and git, as in Codex and Claude Code.
3. Chemistry: same core, different tools, skills and verifier.
4. Physics: swap the modules again; the core is untouched.

- **Use when:** One reliable core must serve several domains.
- **Avoid:** Forking the core per domain, or specialising tools without a domain verifier.

```
core = Harness(llm, loop, context, memory, guardrails)

coding    = core.with_(tools=[shell, edit, git],
                       skills=["AGENTS.md"], verify=run_tests)

chemistry = core.with_(tools=[rdkit, pubchem, retrosynth],
                       skills=["protocols/"], verify=check_hazards)

physics   = core.with_(tools=[sympy, simulator, hpc],
                       skills=["numerics/"], verify=check_units)
```

## References

- [Building agents with the Claude Agent SDK](https://www.anthropic.com/engineering/building-agents-with-the-claude-agent-sdk) (Anthropic)
- [ChemCrow: Augmenting LLMs with chemistry tools](https://arxiv.org/abs/2304.05376) (Bran et al.)
- [MDCrow: Automating Molecular Dynamics](https://arxiv.org/abs/2502.09565) (Campbell et al.)
- [El Agente: quantum chemistry agent](https://arxiv.org/abs/2505.02484) (Zou et al.)
- [Equipping agents with Agent Skills](https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-agent-skills) (Anthropic)
