
为各种不同的AI代理提供一个框架,用于框架上下文工程
概览
一个为AI编码代理提供上下文工程模式、命令和配置的工具。安装一次即可即时配置Claude Code、OpenCode和Gemini CLI,配备经过实战验证的提示词、代理和工作流。 - (code.claude.com) — 支持 - (opencode.ai) — 支持 - (ai.google.dev/gemini-cli) — 支持 - (github.com/nicholasgasior/pi-coding-agent) — 支持 - Deno(或 npx deno 作为零安装的备选) 文件会被复制为真实文件——丢弃安装程序不会损坏。重运行是安全的:未更改的文件会被跳过,修改过的文件会显示差异并提示确认。 对于私有或企业级的GitHub仓库,克隆并本地运行: GH 自动处理所有 git 认证。GITHUB_TOKEN 安装程序可以在需要时从克隆仓库的远程来源获取清单和文件内容。 跳过CLI注册,直接运行: 用git标签替换,或者从发布页面提交SHA代码。
概述(AI 翻译)
一个为AI编码代理提供上下文工程模式、命令和配置的工具。安装一次即可即时配置Claude Code、OpenCode和Gemini CLI,配备经过实战验证的提示词、代理和工作流。
支持的工具
- Claude Code(code.claude.com)——支持
- OpenCode(opencode.ai)——支持
- Gemini CLI(ai.google.dev/gemini-cli)——支持
- Pi(github.com/nicholasgasior/pi-coding-agent)— 支持版
快速启动
先决条件
- Deno(或
npx deno,作为零安装的备份)
安装
一次性注册CLI:
然后安装配置:
更多选项:
文件是作为真实文件复制的——丢弃安装程序不会坏。 重运行是安全的:未更改的文件会被跳过,修改过的文件会显示差异,并且 确认提示。
私人与企业仓库
对于私有或企业级的GitHub仓库,克隆并本地运行:
[gh 自动处理所有 git 认证。[GITHUB_TOKEN 允许
安装程序获取从克隆仓库远程来源获取清单和文件内容
如果需要的话。
替代方案:直线
跳过CLI注册,直接运行:
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
AI Engineering Harness
A harness for AI coding agents that provides context engineering patterns, commands, and configurations. Install once and instantly configure Claude Code, OpenCode, and Gemini CLI with battle-tested prompts, agents, and workflows.
Supported Tools
- Claude Code (code.claude.com) — Supported
- OpenCode (opencode.ai) — Supported
- Gemini CLI (ai.google.dev/gemini-cli) — Supported
- Pi (github.com/nicholasgasior/pi-coding-agent) — Supported
Quick Start
Prerequisites
- Deno (or
npx denoas a zero-install fallback)
# macOS / Linux
curl -fsSL https://deno.land/install.sh | sh
# macOS (Homebrew)
brew install deno
Install
Register the CLI (one-time):
deno install -Agf -n ai-harness \
https://raw.githubusercontent.com/adrielp/ai-engineering-harness/main/install.ts
Then install configs:
ai-harness --tool=claude # Claude Code
ai-harness --tool=opencode # OpenCode
ai-harness --tool=gemini # Gemini CLI
ai-harness --tool=pi # Pi
ai-harness --tool=all # All four
More options:
ai-harness --tool=claude --dry-run # Preview changes
ai-harness --tool=claude --interactive # Pick components
ai-harness --tool=claude --skill=agents # Specific component
ai-harness --help # Full usage
Files are copied as real files — nothing breaks if you discard the installer. Re-running is safe: unchanged files are skipped, modified files show a diff and prompt for confirmation.
Private & Enterprise Repos
For private or enterprise GitHub repos, clone and run locally:
gh repo clone /ai-engineering-harness /tmp/aih -- --depth=1 -q \
&& GITHUB_TOKEN=$(gh auth token) deno run -A /tmp/aih/install.ts --tool=claude \
&& rm -rf /tmp/aih
gh handles all git authentication automatically. GITHUB_TOKEN lets the
installer fetch manifest and file contents from the cloned repo’s remote origin
if needed.
Alternative: Direct Run
Skip the CLI registration and run directly:
deno run -A \
https://raw.githubusercontent.com/adrielp/ai-engineering-harness//install.ts \
--tool=claude
Replace `` with a git tag or commit SHA from the releases page.
Alternative: Repo Mode (GNU Stow)
For users who want the repo on their system with symlinks (easier git pull updates):
# Prerequisites: GNU Stow (brew install stow / apt install stow)
git clone https://github.com/adrielp/ai-engineering-harness.git
cd ai-engineering-harness
./setup.sh claude # Install Claude Code → ~/.claude/
./setup.sh opencode # Install OpenCode → ~/.config/opencode/
./setup.sh gemini # Install Gemini CLI → ~/.gemini/
./setup.sh pi # Install Pi → ~/.pi/agent/
./setup.sh all # Install all four
# Useful flags
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add adrielp/ai-engineering-harness