Self-Harness: Shanghai AI Lab's Method Lets Agents Fix Themselves, 30.2%→84.6% Without Retraining

Promptmethus · x · 2026-11-05

Shanghai AI Laboratory published a free paper, Self-Harness, describing a method for AI agents to repair their own setup — no engineer or stronger model needed. The agent reads its own failed runs, identifies recurring breakage patterns, and writes its own rules. Same model, same weights, zero retraining: success on unseen tasks jumped from 30.2% to 84.6%, the kind of jump consultants charge $3,000–10,000 for.

The method boils down to four steps:

This also explains why copying someone else's CLAUDE.md never works: your agent has its own bad habits, so rules must come from your own failures. The thread includes a ready-to-paste Claude Code prompt template.

Original post →

More from coding & agent

coding & agent channel →