惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园_首页
Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
阮一峰的网络日志
阮一峰的网络日志
Martin Fowler
Martin Fowler
B
Blog
The GitHub Blog
The GitHub Blog
T
Tailwind CSS Blog
Stack Overflow Blog
Stack Overflow Blog
L
LangChain Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
DataBreaches.Net
月光博客
月光博客
人人都是产品经理
人人都是产品经理
IT之家
IT之家
GbyAI
GbyAI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
博客园 - Franky
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The Cloudflare Blog
C
Check Point Blog
罗磊的独立博客

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Building a Website with Anthropic's Generator-Evaluator L...
Nikhil tiwar · 2026-05-17 · via DEV Community
Cover image for Building a Website with Anthropic's Generator-Evaluator Loop (Harness Engineering)

Nikhil tiwari

Building a Website with Anthropic's Generator-Evaluator Loop

Anthropic recently published their harness design for long-running apps — a GAN-inspired architecture where a Generator builds and an Evaluator critiques in a loop. I replicated it with Kiro CLI to build a marketing website autonomously.

Result: 12 iterations, 3.5 hours, zero manual coding.

The Architecture

Planner (1x) → Generator ↔ Evaluator (12x)

Enter fullscreen mode Exit fullscreen mode

Each agent is a separate CLI process — clean slate, no shared context:

#!/bin/bash
# orchestrator.sh — spawns fresh sessions per agent

KIRO="/Users/me/.local/bin/kiro-cli"

invoke_kiro() {
  "$KIRO" chat --no-interactive --trust-all-tools \
    "Read $1 and execute all instructions."
}

# Planner (once)
invoke_kiro "prompts/planner.md"

# Generator ↔ Evaluator loop
for ((i=1; i<=12; i++)); do
  pkill -f "next dev" 2>/dev/null; sleep 2
  invoke_kiro "prompts/generator.md"
  invoke_kiro "prompts/evaluator.md"
done

Enter fullscreen mode Exit fullscreen mode

Communication is only through files:

  • Planner writes .harness/spec.md
  • Evaluator writes .harness/eval-report.md
  • Generator reads both

The Evaluator Uses Playwright

This is the key differentiator. The evaluator doesn't just read code — it browses the live site:

# evaluator.md (excerpt)

### Start Server
nohup npx next dev --port 3000 > /dev/null 2>&1 & disown; sleep 8

### Test with Playwright MCP
1. browser_navigate to http://localhost:3000
2. browser_snapshot at 1440x900, 768x1024, 375x812
3. browser_click all interactive elements
4. Score: Design Quality, Originality, Craft, Functionality

### Always provide feedback — never just "PASS"

Enter fullscreen mode Exit fullscreen mode

The Design Skill (Anti-AI-Slop)

Both Generator and Evaluator reference Anthropic's frontend design skill:

## NEVER
- Inter, Roboto, Arial, Space Grotesk
- Purple gradients on white backgrounds
- Predictable card layouts

## ALWAYS
- Bold, distinctive font choices
- Unexpected layouts, asymmetry
- Commit fully to a direction

Enter fullscreen mode Exit fullscreen mode

Generic AI patterns score max 5/10. This forces creative risk-taking.

Iteration Progression

Iteration What Happened Design Score
1 Generic dark site, Inter font 5/10
2 Amber palette pivot, custom SVGs 6/10
3 Fixed a11y, responsive, fonts 6/10
4 Terminal Noir pivot — IBM Plex Mono, grain, scanlines 7/10
5-12 Refinement — animations, reduced-motion, polish 7-8/10

The biggest jumps came from pivots, not refinements.

Key Lessons

  1. Separate generator from evaluator — AI can't judge its own work
  2. Clean slate per invocation — prevents context anxiety
  3. Playwright > code review — catches visual bugs code review misses
  4. Penalize generic patterns — or the model converges on AI slop
  5. Pivots > polish — tell the generator to scrap and restart if scores stagnate

Two Architectures

I built templates for both use cases:

Frontend (design-focused):

  • No sprints, single build
  • 5-15 iterations of generate → evaluate → improve
  • Scoring: Design Quality, Originality, Craft, Functionality

Full-stack (correctness-focused):

  • Sprint-based with contracts
  • Generator + Evaluator negotiate "done" before coding
  • Pass/fail per sprint, max 3 retries

Try It

git clone https://github.com/Mnemo-mcp/Harness
cd Harness
./orchestrator.sh

Enter fullscreen mode Exit fullscreen mode

Requires: Kiro CLI + Playwright MCP configured in .kiro/settings/mcp.json.


The model is the engine. The harness is what makes it drive straight.

Live site | Harness repo