Domain-specialised harness

domain-agnostic coredomain module
Harness coreLoopContextMemoryGuardrailsLLMToolsSkillsVerifierChemistryRDKitPubChemretrosynthsynthesis protocolsvalidity + hazard check
  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.
Notes & references

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)