sakikoTGW/pack-agent

Agent Modpack — 像安装MC整合包一样,安装你的agent。

Project Overview项目介绍

This is a cross-platform agent configuration bundling tool that supports DSH and multiple other popular agent platforms including Claude Code, Codex, Cursor, Opencode, Gemini CLI and GitHub Copilot. It lets users bundle custom skills, rules, and MCP server configurations into a single compressed .pack.zip file for easy sharing across teams and platforms. It can be installed globally via npm, or run one-off with the npx --yes -p @sakikotgw/pack-agent packagent install <path> command for quick testing. It requires Bun version 1.1 or higher installed on your local system to work correctly.

This tool is designed for developers who regularly share custom agent configurations across multiple different active agent platforms. A typical starting workflow starts with running packagent agents init to initialize a brand new local pack project in your current working directory. Next, you export your configured agent with packagent export --agent <id>, then install it to your target runtime with packagent install <path-to-pack.json> --runtime <target-harness>. If you no longer need the installed agent configuration, you can remove it completely cleanly with the packagent eject --name <id> command.

The tool is released under the permissive MIT open source license, so you can use it for free for both personal and commercial projects. It has a known limitation that on Windows systems, running npx --package @sakikotgw/pack-agent -- pack-agent will fail, because the correct binary name is just packagent. If you want to run it directly from source, you can clone the GitHub repository, cd into the project directory, and run bun install to build it locally on your machine. It also provides a pre-configured MCP server endpoint that you can add to your own MCP configuration for easy integration.

这是一款Agent Modpack(pack-agent)工具,借鉴了Minecraft整合包的管理思路,用于管理DeepSeek Harness及其他智能体开发平台的配置。它可以将自定义技能、规则和MCP服务器配置打包为.pack.zip文件,支持把打包好的配置安装到Claude Code、Codex、Cursor等多个主流智能体平台,还会保留完整安装日志方便后续卸载操作。

该工具面向需要在多个智能体平台之间共享自定义配置的开发人员,典型工作流程是先执行packagent agents init初始化本地项目,然后导出指定ID的配置包,再根据目标平台选择对应运行时参数安装配置。如果需要移除已安装的配置,也可以通过内置的eject命令快速完成卸载,无需手动清理零散配置文件。

该工具依赖Bun 1.1及以上版本,可以通过npm全局安装或使用npx一次性运行,目前已知在Windows平台使用npx调用时可能会出现命令执行失败的问题。工具采用MIT许可协议开源,任何人都可以免费使用和修改源码,也支持开发者从GitHub拉取源码本地构建运行。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:sakikoTGW/pack-agent

把 sakikoTGW/pack-agent 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

Agent Modpack

awesome · DSH plugin

English | 中文

Manage DeepSeek Harness config like a Minecraft modpack. Agent Modpack (packagent) packs skills, rules, and MCP into a .pack.zip and installs them into Claude Code, Codex, Cursor, and other harnesses. Uninstall uses the install ledger.

Requires Bun ≥ 1.1. npm: @sakikotgw/pack-agent.

agent-pack for DSH lives in agent-pack-dsh/. Product design: agent-pack-dsh/docs/PRODUCT.md. Plugin package: @sakikotgw/pack-agent-dsh. See agent-pack-dsh/plugin/README.md.

Install

From npm

npm install @sakikotgw/pack-agent
packagent detect

One-off:

npx --yes -p @sakikotgw/pack-agent packagent install foo.pack.json

On Windows, npx --package @sakikotgw/pack-agent -- pack-agent fails. The bin name is packagent.

Use

packagent agents init
packagent export --agent <id>
packagent install .agent-pack/exports/<id>.pack.json --runtime claude-code
packagent eject --name <id>

--runtime installs to one harness. Without it, install targets every harness listed under Will install to in packagent detect. Install writes the current project only. Pass --global-config to write user-global harness config.

MCP

{
  "mcpServers": {
    "agent-pack": {
      "command": "bun",
      "args": ["node_modules/@sakikotgw/pack-agent/mcp/server.ts"],
      "env": { "AGENT_PACK_CWD": "." }
    }
  }
}

Supported harnesses

id skills rules MCP
claude-code .claude/skills CLAUDE.md .mcp.json
codex .agents/skills AGENTS.md .codex/config.toml
opencode .opencode/skills AGENTS.md opencode.json
openclaw skills.load.extraDirs AGENTS.md config/mcporter.json
hermes external_dirs AGENTS.md ~/.hermes/config.yaml
gemini-cli .gemini/skills GEMINI.md .gemini/settings.json
windsurf .windsurf/skills — .windsurf/mcp_config.json
github-copilot — .github/copilot-instructions.md .vscode/mcp.json

Run from source

git clone https://github.com/sakikoTGW/pack-agent.git
cd pack-agent
bun install

License

MIT

← 上一个 Prev dsh-blackjack 下一个 Next dsh-workbench-layout →