Hacker News · AI· marciob·· 2 小时前精选AI 评分69
开源工具 prompt-refiner:在 Claude Code 中通过独立 Claude 自动重写提示词
Show HN: Type and+ in Claude Code and a second Claude rewrites your prompt first
AI 导读
开发者 marciob 开源了针对 Claude Code 的 Hook 工具 prompt-refiner,可在用户输入带有 ++ 前缀的粗糙提示词时,启动独立的无头 Claude 结合会话上下文自动生成精确提示词并复制至剪贴板。
推荐理由
该项目利用 Hook 拦截机制与无状态独立实例重写提示词,为终端 AI 编程工具规避上下文污染提供了轻量且实用的扩展思路。
来源:Hacker News · AI · github.com