Works with the AI Agents you already use
Contrastive Harness Optimizer — Propose-Probe-Compose & Lesson Ledger
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
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:
- Task-Level Contrastive Recursion (
Propose → Probe → Compose): Proposes 3 orthogonal candidate strategies (Invariant Reasoning, Task-Scoped Skill, Hard Guardrail), filters them through a$0Static Leak & Bloat Shield, probes survivors in isolated sandboxes, and promotes only edits that strictly improvedevwith zero regression on hiddenholdoutcases. - Experience Reflection (
DO/AVOIDLedger): Distills accepted and rejected probe contrasts into a persistentlessons/lessons.json+LESSONS.mdprior store.
See references/propose_probe_compose.md for contrastive composition rules.
How to use
- 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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
100% offline Python 3 stdlib script. Zero network calls and zero environment variable reads.
What's inside
Frequently Asked Questions
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.