langchain.com

How to Build a Custom Agent Harness

译:如何构建自定义 Agent harness

  • 自定义 harness 把路由、工具权限、状态和评测从黑盒模型手里拿回来。

  • 先设门禁:哪些任务可自动跑,哪些必须人批,失败如何回滚。

  • 用 OpenRouter 或本地模型做可替换后端,别让一次 prompt 调优变成平台锁定。