DoubleAgent for Openclaw

An AI agent skill that implements the Generator-Evaluator dual-agent architecture to eliminate self-evaluation bias through independent verification and automated feedback loops.

zmy1006-sudo
v1.0.0
Mar 30, 2026
0
750
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install double-agent

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install double-agent using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is DoubleAgent?

The DoubleAgent skill is a sophisticated framework designed to solve the problem of AI self-evaluation bias in software development. By separating the roles of creation and validation, this pattern ensures that generated code, UIs, and content are objectively tested against the original specification. It leverages the Openclaw Skills ecosystem to provide developers with a robust template for building multi-agent pipelines where an independent Evaluator agent validates the work of a Generator agent.

Instead of an agent grading its own homework, DoubleAgent introduces a dedicated Evaluator that uses tools like Playwright to interact with artifacts just like a human user would. This creates a high-fidelity feedback loop that significantly improves the reliability and quality of AI-generated outputs, ensuring they meet professional standards before deployment.

DoubleAgent Use Cases

  • Designing AI-generated frontend UIs that require functional interaction testing through a browser.
  • Implementing complex multi-step workflows such as multi-page forms or navigation flows.
  • Validating API endpoint implementations against strict technical specifications and edge cases.
  • Generating high-quality documentation or reports using text-based evaluation agents to ensure accuracy.
  • Upgrading existing coder-tester workflows to use real-world interaction-based validation rather than just static analysis.

How DoubleAgent Works

  1. The user defines a concrete, observable Spec Contract that serves as the single source of truth for both agents.
  2. The Generator Agent produces an initial output, such as code or a UI component, based solely on the spec and any previous iteration history.
  3. The Evaluator Agent independently interacts with the output artifact using tool integrations like Playwright to verify functional requirements.
  4. The Evaluator calculates a score based on a weighted rubric covering dimensions like functional completeness and interaction quality.
  5. If the score is below the defined threshold, the system triggers an iteration loop, feeding the evaluator's structured feedback back to the generator for refinement.
  6. The process repeats for a set number of rounds or until the quality threshold is satisfied.

DoubleAgent Setup

To integrate this pattern into your workflow using Openclaw Skills, you need to configure your environment for dual-agent execution and install necessary interaction drivers.

# Clone the skill templates to your project
git clone https://github.com/openclaw/skills/double-agent.git
cd double-agent

# Install dependencies for the iteration loop and browser testing
pip install playwright
playwright install chromium

# Run the calibration utility to set your evaluator baseline
python scripts/calibrate_evaluator.py

DoubleAgent Data Schema & Taxonomy

The skill organizes its operation through a structured set of reference files, prompt templates, and execution scripts to maintain consistency across Openclaw Skills implementations.

Component File Path Purpose
Architecture Patterns references/architecture.md Defines the Generator-Evaluator relationship and spec templates.
Prompt Library references/evaluator-prompts.md Contains calibrated prompts for different artifact types (UI, API, Code).
Control Logic scripts/iteration_loop.py Manages the loop state, scoring trends, and strategy resets.
Calibration Tool scripts/calibrate_evaluator.py Utility to prevent score drift by testing against known benchmarks.

DoubleAgent Advanced Features

  • Playwright MCP integration for real browser-based interaction, DOM verification, and screenshot capture.
  • Automated calibration utilities to prevent score drift and grade inflation across different LLM models.
  • Strategy reset triggers that force the Generator to switch architectural approaches if evaluation scores plateau.
  • Weighted scoring rubrics that can be customized for specific domains like data science or creative copywriting.
  • Structured JSON output for all evaluations, enabling seamless integration with automated CI/CD pipelines.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*