跳到正文
RCreddit.com·

Should coding agents scan tool results before putting them into context?

AI 摘要

一个开发者社区正在讨论编码代理是否应该在将工具结果整合到其上下文中之前对其进行扫描。这种担忧源于代理访问越来越多不可信的输入,例如克隆的存储库、README文件、问题文本、网页、MCP响应、shell输出和任意工具结果,这些内容随后被直接反馈到模型的上下文中。讨论特别关注如何管理误报和延迟,以及在禁用此类扫描功能之前可接受的阈值。

为什么是这条

此次讨论不同于普遍的安全担忧,它聚焦于编码代理扫描不可信输入时,误报和延迟的实际影响。

时间与来源

时间显示为 UTC

显示时区:UTC

本地时区尚不可用,暂时显示 UTC。

发布当时偏移:UTC+02026年9月8日 19:09 UTC

收录当时偏移:UTC+02026年9月9日 17:00 UTC

发布
2026年9月8日 19:09
收录
2026年9月9日 17:00
来源类型
开发者社区
档位
社区
信源状态
正常

档位是按信源手工设定的编辑判断,不是逐条打分。

讨论趋势

暂无对比
最近 24 小时与此前 24 小时的快照均值对比 · 7 天曲线

百分比基于采集到的讨论信号,不代表新增评论数或独立参与人数。曲线仅用于同一话题在不同时段的比较。

正文

Something I've been wondering about with coding agents:

We give them access to increasingly untrusted inputs — cloned repos, README files, issue text, webpages, MCP responses, shell output and arbitrary tool results — and then usually put that text straight back into the model's context.

Would you use a harness plugin that inserts a security check in between?

Something like:

tool result → security hook → agent context

The hook runs a small semantic threat/injection scanner locally. If local capacity isn't enough, it can optionally fall back to an API with a free tier.

If it finds a suspicious section, it doesn't have to throw away the entire result. It can redact that section and let the coding agent continue working with everything else.

The next thing we're working on is keeping security context across multiple tool calls, rather than scanning every interaction as if it happened in isolation.

Would this be useful enough for you to install as a Codex plugin?

Or would adding another layer between tools and the agent create more problems than it solves?

I'm particularly interested in false positives and latency — what would be acceptable before you'd just disable it?

来源·reddit.com