Skip to content

Latest commit

 

History

History
119 lines (77 loc) · 5.08 KB

INSTALL.md

File metadata and controls

119 lines (77 loc) · 5.08 KB

Installation / 安装文档

English | 中文

Requirements / 系统要求:macOS 15+ · Universal binary(Apple Silicon 与 Intel Mac 均可用)


English

Option 1: Human — Download release (recommended)

CLI ak

curl -L -o /tmp/ak.zip https://github.com/yangl326-Dylan/agentkeeper/releases/latest/download/AgentKeeper-cli-macos.zip
unzip -o /tmp/ak.zip -d /tmp/ak-install
sudo install -m 0755 /tmp/ak-install/ak /usr/local/bin/ak
ak doctor

ak doctor prints every detected agent's install status and skill count. Exit code is 0 on success, 2 on unknown command.

GUI app

curl -L -o /tmp/ak-app.zip https://github.com/yangl326-Dylan/agentkeeper/releases/latest/download/AgentKeeper-app-macos.zip
unzip -o /tmp/ak-app.zip -d /tmp/ak-app
sudo mv /tmp/ak-app/AgentKeeper.app /Applications/AgentKeeper.app

Build assets are not notarized yet (roadmap). If macOS refuses to open the app because it "cannot be verified", run xattr -cr /Applications/AgentKeeper.app once, or right-click → Open on first launch. Skip this if it runs fine.

Option 2: Human — Build from source

git clone https://github.com/yangl326-Dylan/agentkeeper.git
cd agentkeeper
scripts/build-app.sh release   # → ./AgentKeeper.app
swift build -c release && sudo install -m 0755 .build/release/ak /usr/local/bin/ak

Swift 6.0+ required (swift --version to check; Xcode or Command Line Tools with Swift 6 toolchain).

For AI agents installing on a user's machine: use the same Option 1 commands. See AGENTS.md for behavior guidelines (confirm before modifying skill files; ak list / ak doctor are read-only and always safe).

Agent install / update

AI agents (Claude Code, OpenCode, Codex, …) can install or update ak by running the Option 1 CLI block. The commands are idempotent — re-running them upgrades an existing install. Verify with:

ak list    # readonly table of every skill, scope, owning agents and paths

Skill distribution

The agentkeeper skill ships with this repository: npx skills add yangl326-Dylan/agentkeeper --skill agentkeeper (Claude Code / Codex / OpenCode / Cursor / Gemini CLI and more). For harnesses without a registry, copy the file directly: DeepSeek Harness cp skills/agentkeeper/SKILL.md ~/.dsh/skills/agentkeeper.md; pi mkdir -p ~/.pi/skills/agentkeeper && cp skills/agentkeeper/SKILL.md ~/.pi/skills/agentkeeper/; agents shared dir likewise at ~/.agents/skills/agentkeeper/.


中文

方式一:人类——下载 Release(推荐)

CLI ak

curl -L -o /tmp/ak.zip https://github.com/yangl326-Dylan/agentkeeper/releases/latest/download/AgentKeeper-cli-macos.zip
unzip -o /tmp/ak.zip -d /tmp/ak-install
sudo install -m 0755 /tmp/ak-install/ak /usr/local/bin/ak
ak doctor

ak doctor 输出每个 agent 的安装状态与 skill 数;退出码 0 成功、2 未知命令。

GUI App

curl -L -o /tmp/ak-app.zip https://github.com/yangl326-Dylan/agentkeeper/releases/latest/download/AgentKeeper-app-macos.zip
unzip -o /tmp/ak-app.zip -d /tmp/ak-app
sudo mv /tmp/ak-app/AgentKeeper.app /Applications/AgentKeeper.app

Release 产物暂未公证(见 roadmap)。若 macOS 提示「无法验证开发者」,执行一次 xattr -cr /Applications/AgentKeeper.app,或首次右键 → 打开。能正常打开则无需处理。

方式二:人类——从源码构建

git clone https://github.com/yangl326-Dylan/agentkeeper.git
cd agentkeeper
scripts/build-app.sh release   # → 产出 ./AgentKeeper.app
swift build -c release && sudo install -m 0755 .build/release/ak /usr/local/bin/ak

需要 Swift 6.0+(用 swift --version 检查;需带 Swift 6 工具链的 Xcode 或 Command Line Tools)。

给在用户机器上安装的 AI agent:直接用方式一的 CLI 命令块。行为规范见 AGENTS.md(修改 skill 文件前先向用户确认;ak list / ak doctor 是只读命令,随时可安全执行)。

Agent 安装 / 更新

AI agent(Claude Code、OpenCode、Codex 等)用上面「方式一」的 CLI 命令块即可安装或更新 ak。命令幂等——重复执行等于升级已有安装。安装后验证:

ak list    # 只读表格:全部 skill 的名称 / 作用域 / 归属 agent / 路径

Skill 分发

agentkeeper skill 已随仓库分发:npx skills add yangl326-Dylan/agentkeeper --skill agentkeeper(Claude Code / Codex / OpenCode / Cursor / Gemini CLI 等)。无注册表的 harness 直接复制文件:DeepSeek Harness cp skills/agentkeeper/SKILL.md ~/.dsh/skills/agentkeeper.md;pi mkdir -p ~/.pi/skills/agentkeeper && cp skills/agentkeeper/SKILL.md ~/.pi/skills/agentkeeper/;agents 共享目录同理放 ~/.agents/skills/agentkeeper/。

Troubleshooting / 常见问题