iCreatAI News
Skip to content
Trending storyUpdating

Rule rot in long-running AI agents and how to clean it up

1 reports1 sources10 hr agoUpdated

Understand this story

AI overview

The author cindori argues that long-running AI agents solidify one-off temporary reminders or emotional corrections into permanent prohibitions, then spread them into AGENTS.md, skill files, check scripts, and automatic memory, calling this phenomenon "rule rot." He says it took weeks to realize this was not an edge case but a systemic failure mode of long-running agents. To address this problem, his approach includes: keeping the root main as a clean mirror, with all active modifications made in worktrees or feature branches and nothing lingering on main; when on main, with no local commits ahead, no staged changes, and no active git lock, pulling origin/main and running git merge --ff-only, without requiring the working tree to be completely clean; and by default not writing memory, stopping once a decision has changed code, scripts, docs, or skills. He says these two practices are actually used in OskarGroth/orchestrating-agents.

AI overview based on source reports · Updated 9 hr ago

Coverage timeline

Follow the coverage to explore different perspectives.

Dec 3
  1. Hacker News AI
    Rule Rot: How Long-Running AI Agents Calcify Your Own Instructions

    The author describes "rule rot": persistent agent instruction files (AGENTS.md, skills, auto-memory) accumulate over-generalized corrections, contradictory rules, and stale copies that box agents in across sessions. A blind audit by a Gemini/Codex/Claude Opus council of his marketing repo and Backdrop codebase found examples including a one-night "no work after midnight" rule carried forward for days, a lifted video-encoding ban still enforced elsewhere, and 517 memory files in one repo, with causes traced to an authority loophole, zombie auto-memory, and a local checkout 788 commits behind origin/main. He proposes a rule-hygiene-audit skill, a git-rule-freshness.py session hook, and a default of editing or deleting rules rather than writing new memories.

Activity for this story

Current comparable activity
8
Peak comparable activity
10Dec 3 03:00
Change in the past 24 hours
–

Trends compare the same fully observed participants, which may cover fewer participants than current activity. Move the pointer or tap the chart to inspect hourly activity; use the left and right arrow keys with a keyboard.