hip-agent:200 行代码的 agent harness 直接塞进 prompt 里
cephaloform · x · 2026-09-08
Jonathan Chang 发布 hip-agent(harness in prompt),一个专为 agent(而非人类)设计的极小编码 agent harness。
- 核心思路:整个 harness 只有约 200 行 Python,小到可以直接放进 prompt,让模型读源码就知道 harness 如何工作,省去 agent 使用 codex exec 等工具时摸索 CLI 参数、解析输出的回合。
- 三大设计:① harness 塞进 prompt,只给 sh 和 viewimage 两个工具;② OS 即运行时——配置用环境变量,动作是 shell 命令,subagent 就是子进程;③ 其余交给现有协议:插件遵循 Agent Plugins,hook 用 Claude Code 的 hook 契约,会话文件是 Codex CLI 格式,可用 codex resume 恢复。
- 使用:配置只需几行 zshrc 环境变量,运行 ./agent "inspect this repository and explain it" 即可。代码开源在 GitHub。
「编程与Agent」频道最新
- dingcad 给 agent 设「意见罐」,agent 自动报 bug 人来修 — yacineMTB · 2026-09-08
- Krea 发布创意工作 Agent,称其为媒体生成未来 — TitusTeatus · 2026-09-08
- 开发者实测 mattpocock 的 skills 后失望:120+ 问题换不来可用输出 — shydev69 · 2026-09-08
- Agent 项目 Ghost 接入网络摄像头:每回合可获取一帧画面 — BLUECOW009 · 2026-09-08
- 13 年开发者自省:模型没问题,是 agent 工具链的上下文准备太烂 — freehuntx · 2026-09-08
- AI agent API 安全缺什么?社区征集工具调用链与意图校验方案 — PatronusProtect · 2026-09-08