返回资讯中心
外部精选
软件工程
#开发者实时流

safer-dependencies 为 Claude Code 增加依赖安全检查层

来源标题:Safer-dependencies is a security layer for Claude Code

safer-dependencies 作为 Claude Code 的安全层,可在 AI 添加依赖包时自动拦截或修正存在风险的版本。它能检测 CVE 漏洞、拼写抢注、已弃用包和版本过旧等问题,并覆盖 npm、PyPI、RubyGems、Maven、Go、Rust、PHP(Composer)等生态。项目采用源码可用许可,非 OSI 定义的开源。

Hacker News 最新zenomorph2026/11/25 · 今天30 分钟阅读

以下正文由 AI 翻译自 Hacker News 最新(原文版权归原站所有),可能存在偏差,重要内容请以原文为准。

You've pasted the README-style doc but haven't said what you'd like done with it. What's the goal — copyedit/review, turn it into something else (e.g. a blog post, an install script, a checklist), or actually install and configure the tool here?

Meanwhile, a few things I noticed that may matter depending on what you're doing:

  1. The file looks truncated. It ends mid-line at /safer-dependencies config set cooloff.days 14 # require releases to be 14+ days old. The TOC promises sections that have no body: Warning levels, How it works (Normal/Intercept/Pre-Install/Post-Install/Post-Agent modes), Audit log, Requirements, FAQ.

  2. "runs 5 checks" then no list. The sentence says Claude runs 5 checks, but the enumeration is cut off — either the list got dropped or it was meant to be a bullet list that didn't render.

  3. Stale anchor likely: "Changing the cooldown period" is in the TOC, but the body rolls it into Configuration.

  4. Minor consistency: licensing is described as "source-available — NOT OSI open source" while the repo is public on GitHub; for a README that's fine, but worth keeping the wording identical everywhere (LICENSE, CAPABILITIES, install prompts).

  5. Install snippet is missing a step boundary — git clone ... && python3 ... is shown as two lines without && or a comment saying "then run".

Tell me which of these you want fixed and in what format, and I'll do it.

(原文较长,此处译出前 6000 字,完整内容请点「打开原文」。)

正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。

打开原文
去社区讨论 →