
Product
Socket Threat Intel Now Shows Which Malware Campaigns Were Blocked or Detected
Socket Threat Intel now shows which malware campaigns were blocked or detected in your organization, with links to scans and Firewall events.
harnessbrew
Advanced tools
HarnessBrew 是面向 AI Agent 资产的 Git 包管理器。它的定位类似 Homebrew:通过 Git Tap 发现资产,通过 Formula 描述资产,通过 Cellar 与 Receipt 安装、升级和安全卸载资产。
HarnessBrew 不托管资产。个人、团队和第三方资产都保存在各自的 Git 仓库中,并使用完全相同的安装机制。
Harnessfile 和 lockfile 在不同设备上复现环境要求:Node.js 20 或更高版本,系统中可用 Git。
npm install --global harnessbrew
harnessbrew --version
也可以直接使用:
npx harnessbrew help
HarnessBrew 默认将受管状态保存到 ~/.harnessbrew。测试或隔离环境可以设置 HARNESSBREW_HOME。
注册自己的资产 Tap:
harnessbrew tap add xiejinheng/agents git@github.com:xiejinheng/agent-assets.git
搜索并查看 Formula:
harnessbrew search review
harnessbrew search --kind skill --target openai-codex
harnessbrew info xiejinheng/agents/code-review
安装到 Cellar,并链接到 Codex:
harnessbrew install xiejinheng/agents/code-review \
--target openai-codex
如果只希望保存到 Cellar,不写入 Agent 配置目录,可以省略 --target。
更新和升级:
harnessbrew update
harnessbrew outdated
harnessbrew upgrade code-review
安全卸载:
harnessbrew uninstall code-review
若受管文件或链接已被修改,HarnessBrew 会停止卸载。确认需要删除时可以显式传入 --force。
| Homebrew | HarnessBrew |
|---|---|
brew | harnessbrew |
| Tap | Git 资产源仓库 |
| Formula / Cask | Agent 资产 Formula |
| Cellar | 按 Git commit 隔离的本地安装区 |
| Link | 到 Codex、Claude Code 等 target 的链接 |
Brewfile | Harnessfile |
| Receipt | 安装来源、文件摘要与所有权记录 |
Tap 是普通 Git 仓库。推荐按资产集合建立 Tap,不需要为每个 skill 单独建立仓库。
my-agent-tap/
├── tap.json
├── skills/
│ └── code-review/
│ ├── formula.json
│ └── SKILL.md
├── workflows/
├── agents/
├── instructions/
├── prompts/
├── mcp/
└── adapters/
最小 tap.json:
{
"schemaVersion": 1
}
Formula 的目录名称必须与 name 一致,目录类型必须与 kind 一致:
{
"schemaVersion": 1,
"name": "code-review",
"kind": "skill",
"description": "Review code changes with a consistent rubric.",
"entry": "SKILL.md",
"targets": ["openai-codex", "claude-code"],
"dependencies": [
"xiejinheng/agents/repository-guardrails"
],
"conflicts": [],
"tags": ["review", "quality"]
}
完整坐标为 <owner>/<tap>/<formula>。依赖和冲突必须使用完整坐标,以避免跨 Tap 名称歧义。
Git commit 是安装版本的唯一事实来源;Formula 不维护 .snapshots 或重复的 history。
当前内置:
openai-codexclaude-code可以在安装时指定 target:
harnessbrew install code-review --target openai-codex
默认 target 根目录分别是 ~/.codex 和 ~/.claude。需要隔离安装时可使用:
harnessbrew install code-review \
--target openai-codex \
--target-root /path/to/sandbox/.codex
也可以单独管理链接:
harnessbrew link code-review --target openai-codex
harnessbrew unlink code-review --target openai-codex
Harnessfile 适合提交到个人 dotfiles 或项目仓库:
schemaVersion: 1
taps:
- name: xiejinheng/agents
git: git@github.com:xiejinheng/agent-assets.git
ref: main
assets:
- formula: xiejinheng/agents/code-review
targets: [openai-codex]
安装并生成 Harnessfile.lock:
harnessbrew bundle install
lockfile 会记录每个 Tap 的准确 commit、依赖闭包和 target,应与 Harnessfile 一起提交到 Git。
在其他设备运行同一命令时,HarnessBrew 会检出 lockfile 固定的 commit,而不是未经确认地使用 Tap 最新版本。
清理清单之外的受管资产:
harnessbrew bundle cleanup
使用其他文件路径:
harnessbrew bundle install --file ./config/Harnessfile
harnessbrew tap add <owner/name> <git-url> [--ref <ref>]
harnessbrew tap list
harnessbrew tap update [owner/name]
harnessbrew tap remove <owner/name>
harnessbrew untap <owner/name>
harnessbrew search [query] [--kind <kind>] [--target <target>]
harnessbrew info <formula>
harnessbrew install <formula> [--target <target>] [--target-root <path>]
harnessbrew list
harnessbrew link <formula> --target <target> [--target-root <path>]
harnessbrew unlink <formula> --target <target> [--force]
harnessbrew update
harnessbrew outdated
harnessbrew upgrade [formula]
harnessbrew uninstall <formula> [--force]
harnessbrew bundle install [--file <path>]
harnessbrew bundle cleanup [--file <path>]
~/.harnessbrew/
├── taps/ # HarnessBrew 管理的 Git 工作树
├── cellar/ # 按 Formula 与 commit 隔离的不可变内容
├── receipts/ # 安装、依赖、target 链接和摘要
└── state.json # Tap 注册状态
Tap 工作树和 Cellar 内容都由 HarnessBrew 管理,不应直接编辑。个人资产应在原始 Tap 仓库中修改、提交和推送,再通过 update/upgrade 安装。
项目使用 TypeScript 7.0,并启用严格类型检查。
npm ci
npm run build
npm test
npm run check
npm run check 会执行 TypeScript 编译、全部 Node.js 测试、安装包冒烟测试和 npm pack --dry-run。
完整设计见 docs/architecture.md。
MIT
FAQs
A Git-native package manager for AI Agent assets.
The npm package harnessbrew receives a total of 0 weekly downloads. As such, harnessbrew popularity was classified as not popular.
We found that harnessbrew demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Socket Threat Intel now shows which malware campaigns were blocked or detected in your organization, with links to scans and Firewall events.

Security News
Fixes for eMudhra and Brotli are out. Getting them everywhere they’re needed means tracking down bundled libraries, runtimes, and certificate stores.

Threat Research
/Security News
Socket uncovered secret-stealing workflows that ran in LiteLLM’s GitHub repository 11 days before the supply chain attack on PyPI and Docker.