TL;DR
- Add
./.archal/harness.tsto readAGENT_TASK, call your agent, and print the result. - Add
.archal.jsonwithagentpointing at it. archal run --task "..." --docker --clone github.
1. Add a headless harness
Archal needs a runnable entrypoint it can start without booting your full app shell. The harness should:- read
AGENT_TASK - call your agent runtime
- print the final result to stdout as
{"text": "..."}and keep logs on stderr. See Your first harness for the full stdout contract.
2. Check the harness
Check the harness outside Archal:3. Add .archal.json
Optional with --harness, but useful as a project default:
4. Use normal service clients
Your harness should use normal SDKs and service domains. Archal routes supported service traffic to the scenario clones without exposing clone URLs to the agent process.5. Choose the runtime
Use a local shell command only to check the harness entrypoint. For scored clone runs, use Docker for repo-local harnesses or runarchal run ... --sandbox.
