Skip to content

How to Prevent AI Agents from Over-Editing Content with Constraint Strategies

I dispatched 5 parallel AI agents to tighten prose across 30 chapters. One agent came back with a 52% cut. The entire chapter was gutted.

The Problem: AI Agents Have No Natural “Stop” Sensor

I was working on a novel revision. The draft had bloated to 143K words, and I needed to tighten it to around 120K. My strategy seemed solid:

  1. Split 30 chapters across 5 parallel review agents
  2. Give each agent 6 chapters
  3. Ask them to “cut 10-15% to tighten prose”

The results were catastrophic. One chapter went from 4,200 words to 2,000 words. The agent had removed dialogue, merged paragraphs, and stripped context. I had to git checkout HEAD and start over.

The Root Cause

AI agents optimize for the stated objective without understanding when to stop. When you say “cut 10-15%,” an agent sees that range as a target, not a ceiling. Without explicit boundaries, the agent will keep cutting until it meets what it perceives as the goal—even if that means destroying content.

DevMoses on Reddit captured this perfectly:

“The constraint lesson is one of the biggest things I had to learn running parallel agents on code too. Loose boundaries don’t just underperform, they actively create damage you have to revert.”

The Solution: Hard Ceilings in Prompts

I restructured my prompt with explicit, hard constraints:

agent-prompt.md
## Editing Task: Prose Tightening
**Constraints:**
- Maximum reduction: 15% total
- Per-section maximum: 10%
- Do NOT cut dialogue or critical plot points
- Do NOT merge distinct paragraphs
**Process:**
1. Analyze current word count
2. Identify redundancy, not meaning
3. Cut maximum 10% per section
4. Report: Before/after counts per section
**Safety Rules:**
- If unsure, cut less
- Preserve all proper nouns
- Keep all quoted material intact

The key phrase change:

Prompt Comparison
BAD: "Cut 10-15% to tighten prose"
GOOD: "STRICT 10% reduction maximum. Do NOT exceed 15% on any section.
If a section cannot be cut 10% without losing meaning, cut less.
Report final percentages per section."

With this revised prompt, the second pass achieved exactly what I wanted: 143K → 123K words, with no chapter exceeding 15% reduction.

Why This Matters for Parallel Agent Workflows

When you run multiple agents in parallel, you multiply both the benefits and the risks:

AspectSingle AgentParallel Agents
SpeedLinearMultiplicative
Error propagationContainedWidespread
Recovery costLowHigh
Verification needOptionalMandatory

Without staggered verification, you won’t know something went wrong until all agents have finished—and you’re left reverting massive changes.

A Verification Safety Net

I added a verification script to catch over-cutting before committing:

verify-cuts.sh
#!/bin/bash
# Check edit percentages across all chapters
THRESHOLD=15
for file in chapters/*.md; do
before=$(git show HEAD:"$file" | wc -w)
after=$(wc -w < "$file")
if [ "$before" -eq 0 ]; then
echo "$file: Empty or new file"
continue
fi
pct=$(echo "scale=1; ($before - $after) * 100 / $before" | bc)
echo "$file: ${pct}% reduction"
if (( $(echo "$pct > $THRESHOLD" | bc -l) )); then
echo "ERROR: Over-cut detected in $file (${pct}% > ${THRESHOLD}%)"
exit 1
fi
done
echo "All chapters within ${THRESHOLD}% threshold"

Run this before committing:

Terminal
./verify-cuts.sh && git commit -m "Tighten prose across chapters"

Common Mistakes to Avoid

1. Using Percentage Ranges Without Hard Ceilings

Mistake Example
BAD: "Reduce word count by 10-15%"
GOOD: "Maximum 15% reduction. Do not exceed under any circumstances."

2. Not Tracking Per-Section Results

Always require agents to report what they changed:

reporting-requirement.md
After editing, provide a summary:
| Section | Before | After | % Cut |
|---------|--------|-------|-------|
| Ch 1 | 4200 | 3900 | 7.1% |
| Ch 2 | 3800 | 3400 | 10.5% |

3. Running Parallel Agents Without Staggered Verification

If you’re editing 30 chapters with 5 agents:

  1. Run agent 1 first on chapters 1-6
  2. Verify results meet constraints
  3. If successful, run remaining 4 agents
  4. If not, adjust prompt and retry

4. Assuming “Reasonable” AI Behavior

AI agents follow instructions literally. They don’t have intuition about what “feels right” for your content. If you don’t specify boundaries, they will optimize aggressively.

The Pattern That Works

After multiple iterations, here’s the pattern I now use for any parallel editing task:

Constraint Pattern
1. [REQUIRED] State maximum allowed change (e.g., "Maximum 15% reduction")
2. [REQUIRED] State consequences for exceeding (e.g., "Changes over 15% will be rejected")
3. [REQUIRED] Require per-section reporting
4. [RECOMMENDED] Add safety rules (what NOT to change)
5. [RECOMMENDED] Add verification script
6. [REQUIRED] Use version control before running

Final Results

With properly constrained prompts:

  • Total word count: 143K → 123K (target achieved)
  • Maximum per-chapter cut: 14.2% (within 15% ceiling)
  • Style improvements: ~45% reduction in AI-writing tics
  • No chapters required reversion

The difference between “cut some” and “cut exactly 10% maximum” is the difference between useful editing and content destruction. When you dispatch parallel agents, version control isn’t optional—it’s your safety net.

Final Words + More Resources

My intention with this article was to help others share my knowledge and experience. If you want to contact me, you can contact by email: Email me

Here are also the most important links from this article along with some further resources that will help you in this scope:

Oh, and if you found these resources useful, don’t forget to support me by starring the repo on GitHub!

Comments