Harness Workflow — AI skill for Claude Code
可移植的 AI 长期开发工作流(agent harness):把「建轨道→跑轨道→养轨道」闭环封装为 Claude Code skills + Codex prompts,install 脚本幂等,多机 git pull 同步.
How to install Harness Workflow
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open TracyAniu/harness_workflow and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Harness Workflow does
可移植的 AI 长期开发工作流(agent harness):把「建轨道→跑轨道→养轨道」闭环封装为 Claude Code skills + Codex prompts,install 脚本幂等,多机 git pull 同步。Portable AI dev-workflow kit for Claude Code & Codex.
Alternatives in AI
- EchoBird — One-click install + model switch:Claude Code,Codex CLI (OpenAI), Grok Build (xAI), DeepSeek Harness, Kimi Code 3.1k ★
- TokenTracker — Local-first AI token usage & cost tracker for 31 coding tools incl 1.4k ★
- Learn Skills.Dev — Curated high-quality AI Agent Skills 203 ★
README
harness_workflow
一套可移植的 **AI 长期开发工作流**(agent harness):把「建轨道 → 跑轨道 → 养轨道」的闭环封装为 **Claude Code / Codex skills**,一条命令装到任意机器,多台机器用 git 保持一致。
理解产品 → 理解架构 → 找到任务上下文 → 修改代码 → 运行验证 → 记录进度 → 交接下一轮
包含什么
| 目录 | 内容 |
|---|---|
claude-skills/ |
Claude Code 与 Codex 共用的三件套:harness-init(项目初始化,含 5 份模板)/ harness-task(每轮任务六步标准流)/ harness-maintain(熵回收与规则升级) |
codex-prompts/ |
旧版 Codex prompts 源文件,仅保留兼容参考;当前安装器不再复制,Codex 改用 skills |
global/ |
写入全局配置的片段:claude-global.md → ~/.claude/CLAUDE.md,codex-global.md → ~/.codex/AGENTS.md(含中文触发语映射) |
references/ |
方法论来源的三篇笔记(原文链接见下方「方法论来源」) |
install.sh / install.ps1 |
幂等安装脚本(macOS/Linux / Windows) |
安装
# macOS / Linux
git clone https://github.com/TracyAniu/harness_workflow.git
cd harness_workflow && ./install.sh
# Windows
git clone https://github.com/TracyAniu/harness_workflow.git
cd harness_workflow
powershell -NoProfile -ExecutionPolicy Bypass -File install.ps1
安装脚本做四件事:
- 复制三个 skills 到
~/.claude/skills/(覆盖式,以仓库为准)。 - 复制同一套 skills 到
~/.agents/skills/,供当前 Codex CLI / IDE 发现。 - 删除旧安装留下的
~/.codex/prompts/harness-*.md,避免误以为/harness-*仍是内建斜杠命令。 - 在
~/.claude/CLAUDE.md与~/.codex/AGENTS.md里维护一个标记块——只更新块内内容,块外的机器专属配置原样保留。重复运行安全。
更新流程
改流程只改本仓库,然后各机器:
git pull && ./install.sh # Windows: git pull; powershell -File install.ps1
标记块内的内容会被安装脚本覆盖,不要手改;机器专属的规则写在块外。
使用
| 场景 | Claude Code | Codex |
|---|---|---|
| 项目接入(一次性) | 「给这个项目搭 harness」 | $harness-init 或「给这个项目搭 harness」 |
| 日常开发 | 「开工」/「按开发流实现 X」 | $harness-task + 任务说明,或「开工」 |
| 跨会话大任务接力 | 「继续 <任务名>」 | 「继续 <任务名>」 |
| 定期维护 | 「harness 维护」 | $harness-maintain 或「harness 维护」 |
约定:单会话小任务用 `tasks/todo.md`;跨会话大任务用 `docs/exec-plans/active/*.md` + Progress Log;项目地图以 AGENTS.md 为正典(Claude 和 Codex 共读一份),项目 CLAUDE.md 只放一行 `@AGENTS.md`。
验证安装
- Claude Code:输
/skills,应看到harness-init/harness-task/harness-maintain。 - Codex:
Related Skills
Atollo
Universal Portable Dev & AI Workspace: a zero-install dev environment for Windows, macOS and Linux (x64/ARM64)
Agentic Dev Toolkit
Portable workstation setup, shared agent instructions, harness adapters and model-routing configurations for C
Lich
A terminal-first harness for coding with AI agents — real PTYs, git worktrees, diffs and pull requests in one
Dsh Plugin Dev Skill
Agent skill for developing DeepSeek Harness (DSH) plugins — tools (defineTool), LLM adapters, services, events
Grid
A self-hosted workspace for you and your AI coding agents: one board, live agent threads, terminals, files and
Striatum
A CLI for packaging and distributing AI artifacts (skills, prompts, workflows) as OCI images with dependency r
Related Agents
Harness AI Dev
AI engineer — LLM and agent features, prompts, model integration, tool definitions, retrieval, and the evals t
Monk Frontman
General Monk operator for portable AI hosts. Route install, auth, deploy, docs, and editor work through monk-a
Dev GitHub Manager
GitHub repository manager who handles branching strategies, pull requests, and deployment automation. Use this