AIToday
AI Coding AssistantsAI Safety & AlignmentLarge Language ModelsZenn AI/MLPublished: Nov 9, 2026, 19:01 JST

AI self-improving harness broke on bloated CLAUDE.md

Send on LINE
AI self-improving harness broke on bloated CLAUDE.md

3 Key Points

  1. What happened

    A Zenn author described looping an AI agent with instruction edits until the harness broke, then compressing instructions and reviewing diffs before each change.

  2. Why it matters

    Anthropic guidance keeps CLAUDE.md under 200 lines per file and SKILL.md under 500 lines, because long instructions consume context and weaken adherence, the author says.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

By signing up you agree to the Terms of Service and Privacy Policy.

Context & Analysis

The account is a cautionary one about a feedback loop: the author had the AI agent edit its own prompt instructions whenever behavior diverged from expectations. Each round added more text, and the growing instruction set itself became a source of further divergence, while also consuming unusually large numbers of tokens. The author attributes the problem to not knowing the best practice of keeping Skills and CLAUDE.md minimal, which they learned only after repeated failures.

Anthropic's documentation, as cited in the post, sets rough length targets of under 200 lines per CLAUDE.md file and under 500 lines for SKILL.md, and warns that long CLAUDE.md files consume context and can reduce adherence to instructions. The post also notes advice to split detailed skill material into separate files loaded as needed. The author's fix followed that logic: compress instructions to their essential constraints, deduplicate content where a skill already covers a procedure, and check a proposed diff before letting the AI apply a change.

The author reports that after compression, the agent still behaved as expected and that both execution speed and accuracy improved substantially. A caveat is included: the goal is not minimal length for its own sake, and an unexpected behavior does not always call for adding instructions — checking whether an existing instruction can be adjusted first may be enough.

FAQ
What counts as a harness in this article?
It refers to a project setup containing CLAUDE.md plus a .claude directory with settings.json, agents, and skills such as an example SKILL.md.
What specific change fixed the problem?
The author compressed existing instructions to their essentials, had the AI show the planned diff before edits, and asked for minimal-diff changes.
Does the author say shorter instructions are always better?
No. The author says the point is to keep necessary constraints while removing wasteful instructions, not simply to shorten everything.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleIerabu Group sets November 26–27 seminar on Google Maps and AI traffic