laya-guard:在编码 Agent 执行命令前做本地安全检查的开源工具
📊 核心数据与事实(2026-10-13):
作者开源了 laya-guard,用约 322M 的本地多语言模型在笔记本上判断编码 Agent 的每次 tool_call,输出 allow / review / block,约 0.1 秒一次且不按次计费。
• 原文实测切片:Benchmarks (reproducible, not cherry-picked) Suite Result Command AgentDojo v1, attacks (judge-level) 25/27 blocked eval/run_agentdojo.py AgentDojo v1, benign (judge-level) 92/97 kept (allow+review) eval/run_agentdojo.py E2E rollout (qwen2.5:7b…
• 原文实测切片:verdict_source : regex (prefilter block, model skipped) | allowlist (safe command, model skipped) | model | heuristic (MOCK mode, or the model errored and regex+heuristics stood in) | limit (input over 256K chars or a line over 16K chars,…
• 原文实测切片:For example, on macOS: export LAYA_GUARD_ALERT_CMD= ' osascript -e "display notification \"$LAYA_GUARD_ALERT_MESSAGE\" with title \"laya-guard\"" ' Inputs over 256K characters, or with a line over 16K, are blocked without being read: some…
💡 对独立开发者的启发:
1/ 供给端造工具的门槛已被 AI 和开源抹平,独立开发者真正的护城河是「找准垂直业务场景 + 做好分发」。
2/ 面对新模型或开源组件先看三件事:许可证是否商用安全、API/推理边际成本降了多少、能不能直接嵌进现有变现工作流。
3/ 别去卷通用开发者轮子,把底层新能力包装成面向具体行业人群(电商、创作者、中小商家)傻瓜式交付结果的产品。
📅 日期:2026-10-13(北京时间)
📰 信息源出处:Hacker News Show HN · ayaan0209(github.com)
🔗 原文:https://github.com/scs0209/laya-guard
📡 归档:https://billionare.me/items/qg7hnc8dj2v8064pzuk98v030
社媒成稿工作台 · 一键复制
飞书同步推送 · 含数据/日期/出处/启发