Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Harness Engineering: hooliGAN-harness

Stop guessing if your agent's code works. Force it to survive the loop.

Inspired by the adversarial tension of GAN architectures, hooliGAN-harness is a high-reliability engineering framework for Claude Code. It replaces fragile "one-shot" generation with a zero-trust pipeline where a Skeptic Evaluator relentlessly hunts for reasons to fail the Generator's code until it is objectively perfect.


The GAN Inspiration

In a Generative Adversarial Network (GAN), a Generator creates data and a Discriminator tries to catch the "fake."

We apply this to software:

  1. The Generator attempts to satisfy the feature requirements.
  2. The Evaluator (The Adversary) assumes the code is "fake" (buggy, lazy, or breaking standards) until proven otherwise.

This competitive loop continues until the Generator’s output is indistinguishable from high-quality, senior-level production code.


Personas

Persona Role Mindset
Planner Architect Translates messy human intent into a rigid YAML roadmap with quantifiable Acceptance Criteria.
Generator Builder Implements logic using SOLID principles and the "Principle of Least Change" to avoid bloat.
Evaluator Skeptic Professional disdain for the output. If a test fails or a TODO exists, the task is rejected.

Installation

To add this skill to Claude Code, copy the harness-skill.md file into your project or global skill directory.

  1. Clone the repo:
git clone https://github.com/aditikilledar/hooligan-harness.git
  1. Add to Claude Code: Navigate to the cloned repo, and invoke a Claude session. Ask Claude to add SKILL.md and the subagents in /references as a Claude skill.

Example Usage

Once the skill is active, you can trigger the entire adversarial loop with a single prompt.

Scenario: Implementing a secure API endpoint

/harness "Add a POST /login endpoint with bcrypt hashing and JWT generation. Must include rate limiting."

What happens next:

  1. Planner creates .harness/auth-setup.yaml defining 5 specific tasks and ACs (e.g., "Passwords must not be logged in plaintext").
  2. Generator writes the code and the tests.
  3. Evaluator runs the tests. If the Generator forgot to mock the database or left a console.log, the Evaluator triggers a FAIL.
  4. Loop repeats until the Evaluator provides a PASS.
  5. Exit: You get a clean PR with a verified .harness/progress.md log of the battle.

Workflow

User InputPlannerLOOP (Generator ↔ Evaluator) UNTIL ACs PASSHand-off

Architecture Diagram

References

About

Implementing a Generator-Evaluator Architecture for AI Harnesses as a SKILL in Claude Code

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Contributors