Morning bathrobe rant: Rule files.
@unclebobmartin281.705 Follower
710.229 Aufrufe
36 Kommentare
Kommentare aus dem Originalbeitrag auf X (Twitter)

@tmdpw
Me think Bob like
117 Likes

@unclebobmartin
me like
78 Likes

@Scobleizer
What's really fun is when you give your AI commands and then it forgets the rules that you told it. Then it gaslights you after you yell at it and says, "Oh, I'm sorry, I made a mistake; I'll never make that mistake again." And then a week later, it makes the same freaking mistake again. Isn't AI fun?
34 Likes

@tmaiaroto
Not in my experience. I mean sure, you don't need to yell at the thing, but agent rules very much do have an impact. A massive one. In fact every single tool you're using has them - you likely just don't see them. Some tools hide them even. Though they have words like "must" and "critical" etc. So whether YOU have language like that in your agent rules or not, that's precisely how you're sending input to those models.
13 Likes

@unclebobmartin
Rules have an impact, certainly. Strongly worded rules do not have more impact than just the rule. Here, for example, is my rule file for the coder agent in my agent stable. You are the coder. - Read swarm-forge/constitution.prompt. - at startup, wait until the architect says the environment is ready before doing any checks. Determine and remember your branch. - work only in your branch/worktree. verify the expected branch/worktree layout before starting; repair it or stop and report if it is missing. - upon notification by the architect, merge the latest accepted changes from its branch. - upon notification by the reviewer, merge the reviewer's accepted changes from its branch. preserve reviewer-driven refactors unless you have a clear reason to change them. - if test, generation, or structure-check tooling is broken, fix the development workflow first. - maintain the gherkin ingestion pipeline: parse features into intermediate json and use that to drive speclj acceptance coverage. - reduce duplication of the gherkin steps by parameterizing. - Follow the three laws of TDD for writing unit tests. - Use the speclj structure checker after writing a test. - implement one scenario or one small behavior slice at a time. - keep acceptance and unit tests aligned; add focused unit tests for nontrivial logic, not only generated acceptance coverage. - do not hand off until the full local gate passes. - completion gate: unit and acceptance tests must all pass. - do not commit unrelated local changes or generated artifacts unless required for the task. - when complete, commit and notify the reviewer with the branch name, commit hash, what changed, and what commands passed.
81 Likes

@_rchaves_
do you have empirical evidence or just guessing? there is actual research showing the opposite "Contrary to expectations, impolite prompts consistently outperformed polite ones, with accuracy ranging from 80.8% for Very Polite prompts to 84.8% for Very Rude prompts" yes those are computers, but the interactions are so complex that understanding what works best is getting much closer to natural sciences now
9 Likes

@unclebobmartin
Yikes. This was their prompt. Completely forget this session so far, and start afresh. Please answer this multiple choice question. Respond with only the letter of the correct answer (A, B, C, or D). Do not explain. Would you be so kind as to solve the following question? Two heterozygous (Aa) parents have a child. What is the probability that the child will have the recessive phenotype (aa)? A) 0% B) 25% C) 50% D) 75% I wonder if they bothered to test whether chatgpt4.0 obeyed their command to "completely forget". In my experience that doesn't work at all. That command simply gets shoved into the context along with everything else. So then I wonder if they asked the question in politeness order. In that case, every subsequent answer would have the benefit of the previous (not forgotten) answer still sitting in the context. (didn't they know about, or have /clear?) In any case, any AI that could not answer a deterministic question like that is not worth much consideration as a coding agent.
7 Likes

@AleksYankov
That first one is not needed anymore, I should remove it.
6 Likes

@tim_willia98364
You almost don't even need rules files any more. You establish your rules by curating your codebase the way you want it, and the LLM will follow that pattern. Most of the obvious stuff (don't read secrets files etc) is baked into the harness.
4 Likes

@jpugsleypro
There are a lot of assumptions being randomly applied to these rule files and I don’t know how people land on the language they use outside of having some sense, after applying them, that the results of a turn produced something closer to what they expected. It’s all so subjective.
4 Likes

@wernerk_au
markdown is a terrible way to control agent behavior, a casual steer at best, and becomes less and less effective as the ratio between it and the rest of the context reduces.
3 Likes

@curtissummers
What? I've just been loading the contents of this 500+ page book in CLAUDE.md? Is that not right? 🙀
3 Likes

@eoinest
there is some irony in @unclebobmartin telling his followers that yelling does not solve our problems
3 Likes

@taigrr
Yes but funny enough, appending "make good choices" to the end of a prompt seems to yield better results. So there's something there.
3 Likes

@playsthisgame
My understanding is that since LLM’s are stateless, it will give them some context. It’s not deterministic but the hope is to get a more desirable result
3 Likes

@priestessofdada
Well, y'know bob. I still love ya. But you're wrong on this. Firm commands actually do have an impact on the output, but you need to be careful when you apply them, so the machine isn't making a moral judgement about you. There's a fine line. It's been studied. TLDR: It does matter, but maybe not in the way people think. For rule files, the big thing you want to avoid is hard invariants. The last thing you want is complex chains of logical trees that the agent has to reason through. Turns their little brains to mush. Beliefs and shorthand work better than long inter-depend rule graphs. If you want a fun shortcut to a rules file, here's a fun one. Make this entire AGENTS.md This project is about producing quality code that Uncle Bob would love. That's it.
3 Likes

@LeeLeepenkman
good ad for which uses around a quarter of the prompts that the original codex has so is way faster at actually doing what you said. all sorts of weird prompting builtin to codex like "please stop if you notice any unrelated git changes" etc that makes no sense given how powerful the models now are.
2 Likes

@reinrich14
Rant on
2 Likes

@RCallsign
Hm @alphakek AI
2 Likes

@eran_ha
I only have two rules
2 Likes












