经 AI Skill Hub 精选评估,Hawkeye Agent 获评「推荐使用」。这款Agent工作流在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。
Hawkeye Agent 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
Hawkeye Agent 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:npm 全局安装 npm install -g oss-hawkeye-agent # 方式二:npx 直接运行(无需安装) npx oss-hawkeye-agent --help # 方式三:项目依赖安装 npm install oss-hawkeye-agent # 方式四:从源码运行 git clone https://github.com/ryanHwH20/oss-hawkeye-agent cd oss-hawkeye-agent npm install npm start
# 命令行使用
oss-hawkeye-agent --help
# 基本用法
oss-hawkeye-agent [options] <input>
# Node.js 代码中使用
const oss_hawkeye_agent = require('oss-hawkeye-agent');
const result = await oss_hawkeye_agent.run(options);
console.log(result);
# oss-hawkeye-agent 配置说明 # 查看配置选项 oss-hawkeye-agent --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export OSS_HAWKEYE_AGENT_CONFIG="/path/to/config.yml"
<p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="assets/banner-dark.svg"> <img src="assets/banner.svg" alt="Hawkeye — the high-precision line-judge for your software supply chain" width="100%"> </picture> </p>
0/1).overrides blocks, or delegates to your AI assistant to recommend compliant alternatives dynamically..audit-agent.yaml into your repo to enforce organization-specific compliance rules.---
Before setup, make sure your local environment meets the following:
https://api.osv.devhttps://api.deps.devhttps://osv.devhttps://deps.dev---
Run Hawkeye from source by cloning the repository:
git clone https://github.com/ryanHwH20/oss-hawkeye-agent.git
cd oss-hawkeye-agent
npm install
npm run build
To make new Copilot sessions consistently use Hawkeye Skill + CLI SOP, complete this once per machine:
npm install
npm run build
2. Keep workspace skill and instructions files in place: - .github/skills/hawkeye-agent/SKILL.md - .github/copilot-instructions.md
npm run check:setup
npm run check:smoke
If both pass, new sessions should reliably trigger Hawkeye flow on install commands.
check-command audits the package(s) a shell command would install, so an AI coding agent can be blocked before it adds a risky dependency:
hawkeye check-command "npm install express@4.16.0" # exit 0 pass / 1 blocked / 2 error
Wire the shipped Claude Code hook into ~/.claude/settings.json and the agent literally can't run a blocked npm install — a true gate, not a prompt nudge. See docs/INTEGRATIONS.md (also covers a tool-agnostic shell shim).
```
- name: Audit a dependency with Hawkeye run: node dist/cli.js NPM express 4.16.0 --sarif > hawkeye.sarif - name: Upload to GitHub Code Scanning uses: github/codeql-action/upload-sarif@v3 with: sarif_file: hawkeye.sarif ```
When a data source is unreachable, Hawkeye fails closed (exit 1) rather than reporting a package as clean — so a CI gate never green-lights an unverifiable package.
Developer: Is lodash safe for our project?
Hawkeye: [returns full integrated audit report]
Developer: npm install lodash
Hawkeye: Choose mode -> (1) Security report first (2) Direct install now
Developer: 1
Hawkeye: [returns full integrated audit report with policy verdict and remediation]
You can ask Hawkeye to: - Audit before install: npm install express - Check package security: "Is lodash safe?", "Are there any vulnerabilities in requests?" - Inquire about licensing: "What is the license of this package?", "Can we use GPL packages?" - Find secure alternatives: "What are the safe alternatives to moment?" - Check enterprise policy: "What is the company's open source policy?"
---
Hawkeye uses a .audit-agent.yaml file in the working directory to enforce compliance. If none is found, it falls back to the built-in policy.json.
policy:
organizationName: "Your Organization"
blockedLicenses:
- "GPL-2.0-only"
- "GPL-3.0-only"
- "AGPL-3.0-only"
- "SSPL-1.0"
- "BUSL-1.1"
minScorecardScore: 4.0
blockVulnerabilities: true
minBlockingSeverity: "MEDIUM" # CRITICAL | HIGH | MEDIUM | LOW — lowest severity that blocks (default MEDIUM)
blockDeprecated: true
blockTyposquats: true # block names that look like a typosquat of a popular package (default true)
exceptionFormUrl: "https://your-org.com/oss-exception-request"
---
| Category | Status |
|---|---|
| 📜 License | ✅ MIT — Compliant |
| 🐛 Vulnerabilities | ❌ 2 Vulns (1 High) |
| 📊 OpenSSF Scorecard | 🟢 7.5/10 |
Hawkeye is designed to run as a local CLI auditor while AI assistant behavior is controlled by workspace skill instructions.
Use the built CLI directly for deterministic security checks:
node dist/cli.js NPM lodash
node dist/cli.js PYPI requests 2.31.0
node dist/cli.js GO github.com/gin-gonic/gin
You can run the built CLI directly to get a full enterprise-grade security report:
node dist/cli.js NPM express 4.16.0
node dist/cli.js PYPI requests 2.31.0
node dist/cli.js MAVEN org.springframework.boot:spring-boot 3.5.8
### ❌ BLOCKED — Security Policy Violation
name: Hawkeye on: [pull_request] permissions: contents: read pull-requests: write # post the PR comment security-events: write # upload SARIF jobs: scan: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: ryanHwH20/oss-hawkeye-agent@v1 with: path: . comment: 'true' # sticky PR comment (default true) upload-sarif: 'true' # GitHub code scanning (default true) fail-on-block: 'true' # fail the job when BLOCKED/UNVERIFIED (default true) ```
The comment renders as a scan summary — e.g. hawkeye scan . --comment locally produces the same Markdown.
---
The demo below shows the signature experience: ask a question, get one integrated security report.
<img src="./docs/assets/hawkeye-conversation-demo.gif" alt="Hawkeye Conversational Demo" width="640" />
Hawkeye's primary interaction model is a two-step conversational guardrail built for real developer conversations:
oss-hawkeye-agent 是一个专为软件供应链设计的“高精度线审”工具。它能够像裁判员一样,实时拦截高风险漏洞和不合规的开源 License,并通过标准的 exit code(0 或 1)为自动化流程提供决策依据,确保软件供应链的安全与合规。
Hawkeye 提供毫米级的精准判定能力,能够即时拦截风险漏洞与违规 License。其核心特色在于“先询问后执行”的安全工作流���开发者通过自然语言提问,Hawkeye 会整合审计报告、合规判定及修复建议。此外,它支持深度的 SBOM 传递性扫描,能够分析完整的依赖图谱。
在开始安装前,请确保您的本地环境已安装 Node.js 18+(推荐使用 Node.js 20+)以及 npm 9+。此外,由于需要实时查询安全数据,您的环境必须能够正常访问 osv.dev、api.osv.dev 及 api.deps.dev 等相关 API 接口。
您可以通过克隆仓库进行源码构建:执行 `git clone` 后运行 `npm install` 和 `npm run build`。对于开发者,建议进行一次性的 Setup 配置,将 workspace skill 和指令文件保持在原位,并重新加载 VS Code 窗口,最后通过 `npm run check:setup` 完成环境校验。
Hawkeye 支持多种使用场景。您可以直接通过 CLI 进行确定性的安全检查,例如使用 `node dist/cli.js` 审计 NPM、PYPI 或 GO 的包。同时,它还支持集成到 GitHub Actions 工作流中,通过生成 SARIF 文件并上传至 GitHub Code Scanning,实现自动化的 PR 安全审计。
项目通过工作目录下的 `.audit-agent.yaml` 文件进行策略配置。您可以自定义组织名称、拦截的 License 列表(如 GPL-2.0、AGPL-3.0 等)、OpenSSF Scorecard 的最低���阈值以及是否拦截漏洞。若未找到配置文件,系统将回退使用内置的 `policy.json`。
Hawkeye 采用 Skill 与 CLI 深度集成的设计模式。CLI 工具用于执行确定性的安全检查,而 AI Assistant 的行为则由 workspace skill 指令进行控制。通过 CLI,您可以针对不同生态(NPM/PYPI/MAVEN)的包进行详细的审计报告查询。
Hawkeye 支持单包审计模块,通过 CLI 直接运行即可获得企业级的安全报告。在 CI/CD 工作流中,您可以配置 GitHub Actions 自动运行扫描任务,Hawkeye 会根据审计结果在 Pull Request 中自动发表评论,并利用 SARIF 格式将结果反馈至安全事件中心。
通过演示 Demo 可以看到,Hawkeye 的交互模型是专为开发者设计的“两步走对话护栏”:开发者提出疑问,Hawkeye 随即返回一份集成了安全状态、合规判定与修复指南的综合报告,实现安全与效率的平衡。
Hawkeye Agent是一个企业级的AI-native安全守卫,评估代码安全风险和依赖库安全,具有高质量的自动发布特性,但其评分和趋势评分较低,需要进一步优化
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
AI Skill Hub 点评:Hawkeye Agent 的核心功能完整,质量良好。对于自动化工程师和运维人员来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | oss-hawkeye-agent |
| 原始描述 | 开源AI工作流:Hawkeye Agent is an enterprise-grade, AI-native security guardrail that evaluate。⭐6 · TypeScript |
| Topics | workflowcvedependency-analysisdevsecopslicense-compliancenpmtypescript |
| GitHub | https://github.com/ryanHwH20/oss-hawkeye-agent |
| License | Apache-2.0 |
| 语言 | TypeScript |
收录时间:2026-06-30 · 更新时间:2026-07-04 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端