Zhongfarewell

AI Harness Enterprise-Level Implementation Practices (Part I)

Harness is not a product for the general public. In simple terms, Harness transforms engineering thinking into paradigms that are applied to Agents, enabling Agents to work in a more standardized and stable manner.

#I. Preface

This year, the AI community has been very restless. Aside from everyone raising lobsters, Harness has also stirred up quite a stir in the tech circle.

Unlike Open Claw, Harness is not a product aimed at the general public. In simple terms, Harness transforms engineering thinking into paradigm constraints applied to Agents, enabling Agents to work more systematically and stably.

#What is Harness?

Imagine a vast grassland where a group of fine horses gallop swiftly β€” these are the AIs, which sometimes inevitably veer off course. At this moment, a strong man jumps onto a horse with harnesses in hand, and in just a few moves gets the horse running steadily along the right path!

These harnesses are Harness! πŸ‘‰ The man who harnesses the horse, you are mighty and majestic~

Image> For a more specific definition of Harness, refer to the following literature: OpenAI Harness In-depth Article, Harness Engineering as Cybernetics

Today, my focus is: a detailed breakdown of the design and implementation of Harness engineering.

At the same time, I will open-source this set of practices so that every developer can quickly adopt Harness, solving the philosophical problem of β€œthe hardest part is getting started.”

  • Quickly and at low cost, add the Harness paradigm to your own projects
  • Enjoy high-quality solution design and code delivery brought by openSpec + oh my xcode
  • Easily customize and build a Harness project engineering framework better suited for your team

Open-source project address: github.com/WxqKb/cow-h…

Your [Star] will be my nuclear power ✨

#II. Basic Software Engineering Concepts

Software Process Improvement (SPI)

As mentioned earlier, Harness, in simple terms, enables large AI models to strictly follow the software engineering system to execute processes such as solution analysis & design, code development, testing & verification, thereby completing work efficiently and completely.

In building this Harness, we use a relatively standard system from software engineering: The Software Process Improvement Loop

Project decision β†’ Requirement planning β†’ Review standards β†’ Implementation & verification β†’ Retrospective improvement

Throughout the entire project, we break down complex requirements into the following stages to align with CMMI and Agile Scrum iterative R&D standards:

Decisions β†’ Plans β†’ Reviews β†’ Specs β†’ Verifications β†’ Retros

Standard professional terms in software engineering

Belonging system

decisions
Baseline decisions / Change resolutions / Technical decisions
CMMI, Agile

plans
Iteration planning / Project plan / Milestone plan
Agile Scrum, Software Engineering

specs
Software Requirements Specification (SRS) / Technical specifications / Baseline specifications
Software Engineering, CMMI

reviews
Peer review / Phase review / Quality gate review
CMMI, ISO Software Engineering

verifications
Verification (V)
CMMI

retros
Process retrospective / Iteration review / Process improvement review
Scrum, SPI

#III. Framework Selection and Implementation

#1. Technology Selection

Building Harness requires turning these software processes into constrained paradigms, breaking each stage into finer details, for example:

  • Requirement understanding phase: Use brainstorming (brainstorming) mode to let AI consider more boundary scenarios
  • Technical solution design: We will use superpowers (brainstorming, writing-plans), continuously asking questions to confirm with developers from dimensions such as top-level design, full-stack pipeline, and risk pre-positioning, ensuring complete coverage of boundary scenarios
  • Solution review: A strict process specifying the corresponding superpower skills for intelligent review and scoring of solutions. Meanwhile, set gates requiring developer approval before proceeding
  • Task implementation: For split Tasks, we orchestrate via omx, using-git-worktrees. It automatically assigns specific tasks to suitable Agents for more efficient orchestration and perfect execution
  • And so on...

#2. Scaffold Design

csharp
cow-harness/ β”œβ”€β”€ README.md β”œβ”€β”€ project.profile.md # AI-generated basic project information profile β”œβ”€β”€ context-map.md # AI-generated project module/context boundary map β”œβ”€β”€ project.verification.md # AI-generated project-level verification rules β”‚ β”œβ”€β”€ core/ # Universal Harness rules (core constraints) β”‚ β”œβ”€β”€ harness.md # Core philosophy and overall constraints of Harness β”‚ β”œβ”€β”€ routing.md # Task routing table and distribution rules β”‚ β”œβ”€β”€ artifacts.md # Process artifact format and storage specifications β”‚ β”œβ”€β”€ verification.md # Verification gates and completion criteria β”‚ └── runbooks.md # Standard operating procedures for various tasks β”‚ β”œβ”€β”€ init/ # New project initialization β”œβ”€β”€ entrypoints/ # AI entry file templates (CLAUDE.md, etc.) β”œβ”€β”€ adapters/ # Adaptation templates for various programming tools (.cursor/, etc.) β”œβ”€β”€ scripts/ # Internal scripts called during initialization └── artifact-templates/ # Process artifact templates
  • The core layer contains the essential constraints

    • The routing table determines which SPI process the user’s task belongs to, and thus decides what tools and processes to use

      Image

    • RunBooks execution manual specifies which skills to use at each stage

      Image

    • Artifacts constrain the format of process artifacts and accumulate them into a project-level knowledge base;

    • Verification stipulates validation and admission criteria

  • Init layer: With one sentence, let AI deploy Harness in your project, projecting tool adaptation layers, entry files, etc., into your project root directory.

    • It also reads your project to generate an information profile belonging to your project.
    • This step is very important; after initialization, when you have the AI Agent work, it will naturally execute tasks according to Harness constraints.
  • Entrypoints: When AI executes instructions, it first looks for the entry file under the project directory.

    • For example, GPT loads AGENT.md, Claude loads CLAUDE.md
    • During init, the entry file is projected into the project; restart the AI Agent and check the default context, and you will find the corresponding entry file loaded

Image- Adapters: Adaptation layer for AI coding tools, requiring mainstream tools to strictly enter the entry file and conform to Harness constraints

Image#### 3. Some Basic Design Concepts

  • Harness is actually a soft constraint; init does the most basic work to reach a usable state
  • Projecting files locally gives the biggest advantage: you can fully modify Harness constraints according to your own implementation
  • No SDK, npm package, or other integration methods are provided; simply copy cow-harness into your project, giving developers complete freedom. We hope everyone can deeply participate in controlling AI until it becomes a fully reusable AI specification within your team
  • In the long term, improvements in large model capabilities will weaken Harness’s role. But the mindset of constraint design must keep pace with the times

#IV. Integration Steps

  1. Project copy
    Fork/download the cow-harness project, guide it into your project via git submodule (or directly place the cow-harness folder in your project)

  2. Read README and execute init; at this step, AI will:

  • Install related skills
  • Generate project profile
  • Project necessary files locally
  • Create artifact structure directories

Do not manually read and execute each step; please trust that AI does it better than we do. Directly send the following text to AI:

bash
Please first read cow-harness/README.md and cow-harness/init/bootstrap.prompt.md. This is a new project just integrating Agent Harness, please handle according to the Harness initialization process: 1. Project AI entry file from cow-harness/entrypoints/ to the root directory. 2. Project tool adaptation directory from cow-harness/adapters/. 3. Create .ai-runtime-artifacts/ and its subdirectories. 4. If installation or checking of AI runtime is needed, first explain which local environment will be modified, then execute cow-harness/scripts/install-ai-skills.sh. 5. Read cow-harness/init/project-profiler.prompt.md. 6. Scan the current project, generate or update cow-harness/project.profile.md, cow-harness/context-map.md, cow-harness/project.verification.md. 7. Execute cow-harness/scripts/harness-check.sh. 8. Summarize inferred items, pending confirmation items, and verification results.

3. Start executing tasks
Restart the AI terminal and begin your cow-harness journey

Image## V. Self Q&A Session

  1. After integration, will all tasks necessarily go through Harness constraints?
    Answer: Theoretically yes, but we judge the scale of the task; small tasks will be directly allowed through

    Image

  2. Can Harness constraints reach 100%?
    Answer: No! Harness is also a soft constraint; you can even think of it as a superset of prompts. In practice, normal queries will match, and we clearly state which skills were used during reasoning in the artifacts.

  3. What is the purpose of this project?
    Answer: There is only one core goal: to help some people solve the β€œhardest part is getting started” problem with Harness. This is a very simple foundational setup; once started, you can easily and freely embed your ideas to constrain AI and add new skill packs.

  4. How to add your own skill pack?
    Answer: Use open source whenever possible; community Stars and practical pitfalls can save you many detours. For internally customized Skills, use the official skill pack skills-create to create them.

  5. What if Harness still doesn’t meet expectations?
    Answer: If there is something better, switch from cow-harness. After all, this is a soft constraint; improvements in model capability can replace our current constraints. However, delving deeper, when prompt constraints are insufficient, intervention at a lower level is needed, such as internal Agent orchestration logic, building your company’s project knowledge base, etc.

#VI. Next Steps Plan

During practice, I will continuously optimize the construction of cow-harness, with the core goal of moving closer to a one-person company:

  • More precise solution output, integrating excellent practices like openspec, making specs design more complete
  • Building a more complete full software R&D workflow: product PRD parsing, full-stack development process, AI testing, monitoring chain construction, etc.

After Harness, we may further explore directions such as knowledge graphs, RAG vectorization, vertical model training, Agent orchestration logic, and execution topology, to learn and share.


This article is reprinted from: Enterprise-level Implementation Practice of AI Harness (Part 1)