Works with the AI Agents you already use

    Contrastive Harness Optimizer — Propose-Probe-Compose & Lesson Ledger

    by Pritam Kumar Panda

    1

    Optimizes failing agent prompts without overfitting via K=3 contrastive probes, a $0 Static Leak & Bloat Shield, holdout rollback gates, and a DO/AVOID Lesson Ledger.

    $9.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Contrastive Harness Optimizer — Propose-Probe-Compose & Lesson Ledger

    Contrastive Harness Optimizer — Propose-Probe-Compose & Lesson Ledger

    Example session with this skill installed

    Optimize our failing agent prompt without overfitting, check for leaked test literals, and record the lesson.

    • Read your context and instructions
    • Compiled the contrastive harness optimizer

    Static Leak Shield passed (0 leaked terms) -> evaluated 3 probes: Candidate 2 rejected (holdout regressed 100% -> 0%), Candidate 3 promoted (dev 100%, holdout 100%) -> saved DO prior to LESSONS.md.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Naive single-candidate prompt editing routinely overfits to the exact failure in front of it—either pasting literal expected answers into the prompt or adding overly broad restrictions (such as global character caps) that break unrelated tasks.

    Contrastive Optimizer implements two-level recursive harness optimization:

    1. Task-Level Contrastive Recursion (Propose → Probe → Compose): Proposes 3 orthogonal candidate strategies (Invariant Reasoning, Task-Scoped Skill, Hard Guardrail), filters them through a $0 Static Leak & Bloat Shield, probes survivors in isolated sandboxes, and promotes only edits that strictly improve dev with zero regression on hidden holdout cases.
    2. Experience Reflection (DO / AVOID Ledger): Distills accepted and rejected probe contrasts into a persistent lessons/lessons.json + LESSONS.md prior store.

    See references/propose_probe_compose.md for contrastive composition rules.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 16 days ago

    Software
    Python 3.10+

    Permissions

    File Scopes

    lessons/
    runs/

    100% offline Python 3 stdlib script. Zero network calls and zero environment variable reads.

    Listed16 days ago

    What's inside

    Frequently Asked Questions

    Optimizes failing agent prompts without overfitting via K=3 contrastive probes, a $0 Static Leak & Bloat Shield, holdout rollback gates, and a DO/AVOID Lesson Ledger.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use Contrastive Harness Optimizer — Propose-Probe-Compose & Lesson Ledger on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    New in LLM Ops

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.