HangYu8123/HarnessFlow

Harness coding workflow for codex, claude, github copilot

What it solves

HarnessFlow prevents AI coding assistants from "one-shotting" changes—making immediate edits without sufficient planning or verification. It provides a structured, multi-agent pipeline that forces the AI to analyze the codebase, challenge its own assumptions, and validate results before shipping code, reducing regressions and token waste.

How it works

It is a portable Markdown instruction pack that integrates with tools like Claude Code, Codex CLI, and GitHub Copilot. Instead of a runtime, it uses a set of request templates and workflow files stored directly in the repository.

When a user submits a filled-in template, the AI assistant follows a specific pipeline:

  1. Parallel Analysis: Multiple analyst subagents investigate the codebase from different perspectives.
  2. Synthesis: A Senior Engineer agent synthesizes these findings into a single plan.
  3. Self-Challenge: A "Devil's Advocate" pass stress-tests the plan for bad assumptions.
  4. Validation: A QA Engineer validates the implementation.
  5. Persistent Memory: Results are written to a repo_info/ directory so future requests have immediate context.

Who it’s for

Developers using AI coding assistants (specifically Claude Code, Codex CLI, and VS Code + GitHub Copilot) who want more disciplined, reliable, and token-efficient code generation and refactoring.

Highlights

  • Zero Runtime: No npm install or build steps; it is purely a set of Markdown instructions.
  • Three Workflow Modes: Offers general (thorough), fast (token-efficient), and skill (community-skill-backed) variants.
  • Nine Request Types: Specialized workflows for implementation, refactoring, debugging, codebase Q&A, correctness checks, goal-directed execution, stacked PRs, repo initialization, and iterative loops.
  • Platform Adaptive: Automatically configures entry points for different AI tools via setup scripts.
  • Proven Efficiency: Benchmarks show the fast mode can reduce code footprint and token costs by 39-50% compared to the general workflow while maintaining 100% correctness.

Related

  • Project
  • Project
  • Project
  • Project
  • Project