Skip to content

Commit b1858b6

Browse files
authored
Merge pull request #27 from gregorriegler/main
Added Obsess Over Rules anti-pattern
2 parents 7c63330 + 3e37520 commit b1858b6

3 files changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
authors: [gregor_riegler]
3+
---
4+
5+
# Obsess Over Rules (Anti-pattern)
6+
7+
## Problem
8+
Trying to generate the perfect output by adding more and more rules to the context.
9+
10+
## What Goes Wrong
11+
- The more rules you add, the more they will be ignored due to Limited Focus.
12+
- Lots of rules lead to a big initial context and Context Rot, harming the quality of the output.
13+
14+
## Example
15+
Software design is a complex, creative activity that requires deep knowledge, experience, and judgment.
16+
When we work with agents, we naturally want it to produce a design to our liking.
17+
So we keep adding rules, hoping they will steer the agent in the right direction.
18+
But as we add more and more rules, the ruleset becomes so complicated and intertwined that the agent will start ignoring some of them.
19+
20+
## Solution
21+
22+
Use Focused Agents that focus on a smaller scope and thus need fewer rules.
23+
Use a Refinement Loop to iterate over the imperfect output and improve it to your liking.

documents/relationships.mmd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ graph LR
9191
anti-patterns/unvalidated-leaps -->|causes| obstacles/black-box-ai
9292
anti-patterns/sunk-cost -->|causes| obstacles/degrades-under-complexity
9393

94+
anti-patterns/obsess-over-rules -->|causes| obstacles/limited-focus
95+
anti-patterns/obsess-over-rules -->|causes| obstacles/context-rot
96+
anti-patterns/obsess-over-rules -->|related| obstacles/selective-hearing
97+
patterns/focused-agent -->|solves| anti-patterns/obsess-over-rules
98+
patterns/refinement-loop -->|solves| anti-patterns/obsess-over-rules
99+
94100
%% Anti-pattern → Anti-pattern relationships (related)
95101
anti-patterns/sunk-cost -->|related| anti-patterns/answer-injection
96102
anti-patterns/sunk-cost -->|related| anti-patterns/tell-me-a-lie

website/config/authors.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ ivett_ordog:
1111
nitsan_avni:
1212
name: Nitsan Avni
1313
github: nitsanavni
14+
gregor_riegler:
15+
name: Gregor Riegler
16+
github: gregorriegler
1417
steve_kuo:
1518
name: Steve Kuo
1619
github: kuoman

0 commit comments

Comments
 (0)