Загрузка видео...

Не удалось загрузить видео

На главную

Morning bathrobe rant: Rule files.

710,229 просмотров • 5 месяцев назад •via X (Twitter)

Комментарии: 36

Фото профиля Tim De Pauw
Tim De Pauw5 месяцев назад

Me think Bob like

Фото профиля Uncle Bob Martin
Uncle Bob Martin5 месяцев назад

me like

Фото профиля Robert Scoble
Robert Scoble5 месяцев назад

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?

Фото профиля Tom Maiaroto
Tom Maiaroto5 месяцев назад

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.

Фото профиля Uncle Bob Martin
Uncle Bob Martin5 месяцев назад

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.

Фото профиля Rogerio Chaves
Rogerio Chaves5 месяцев назад

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

Фото профиля Uncle Bob Martin
Uncle Bob Martin5 месяцев назад

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.

Фото профиля Alex Yankov
Alex Yankov5 месяцев назад

That first one is not needed anymore, I should remove it.

Фото профиля Tim Williams
Tim Williams5 месяцев назад

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.

Фото профиля Jess Pugsley
Jess Pugsley5 месяцев назад

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.

Фото профиля Werner Kasselman
Werner Kasselman5 месяцев назад

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.

Фото профиля Curtis Summers
Curtis Summers5 месяцев назад

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

Фото профиля Ernest McCarter
Ernest McCarter5 месяцев назад

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

Фото профиля Tai Groot 🐧
Tai Groot 🐧5 месяцев назад

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

Фото профиля playsthisgame
playsthisgame5 месяцев назад

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

Фото профиля Lynn Cole
Lynn Cole5 месяцев назад

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.

Фото профиля Lee Penkman
Lee Penkman5 месяцев назад

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.

Фото профиля Richmond
Richmond5 месяцев назад

Rant on

Фото профиля RC
RC5 месяцев назад

Hm @alphakek AI

Фото профиля Eran Harel
Eran Harel5 месяцев назад

I only have two rules

Фото профиля saint
saint5 месяцев назад

this is incorrect. you’re conflating the behavior of cloud models (who have been injected w. their own set of vast prompts before it even gets to you) with llm’s in general

Фото профиля lucid
lucid5 месяцев назад

yup that's why I'm using a deterministic orchestrator the agents can't cheat

Фото профиля Werner Kasselman
Werner Kasselman5 месяцев назад

also, kind of challenging when you get claude to write a prompt for you and it says: ABSOLUTE RULES (violations nullify the work): - Deal with complexity; do NOT stub, mock, MVP, or "follow up later". AGENTS.md Phase 3 completeness applies to every commit. - Reviewer model: **gpt-5.4 only**. Never use o3 or any other model for Codex. Gemini is available as a peer-reviewer (same yolo flags) when you want a cross-check; otherwise stick with Codex. - Every reviewer invocation: yolo + dangerouslyBypassApprovalsAndSandbox. - Lock order §J.4: workspaces → rebuild_lane → admission. Disjoint: hook. NEVER violate or document-drift. - WorkspaceEvicted path is the eviction signal; NEVER record_failure, NEVER overwrite Evicted state, NEVER double-free admission accounting. - Any publish critical section MUST hold across both the cancel/map-membership recheck AND publish_and_retain (§5e from - Test-only affordances on production structs: #[doc(hidden)] pub + AtomicBool/AtomicUsize switches, OR cfg(any(test, feature = "rebuild-internals")). NEVER expose raw parking_lot::RwLockReadGuard as pub.

Фото профиля Rogerio Chaves
Rogerio Chaves5 месяцев назад

lol it's to bias the attention mechanism more strongly, people do it because it works, it saves more tokens than the little spent on the extra sentence you are clearly missing the ML background to understand why it's effective

Фото профиля Mikey O'Brien
Mikey O'Brien5 месяцев назад

So LLMs have no understanding or bias towards RFC 2119 keywords?

Фото профиля Jon Klaric
Jon Klaric5 месяцев назад

People conflate a fundamentally stochastic system where you can alter the probabilities of certain outcomes with a deterministic system.

Фото профиля Petra
Petra5 месяцев назад

Silly vlog! but it’s bad advice, especially if you are using platforms like openclaw. Repeated browbeating actually does change behavior. A stern reinforcement message does not have to burn a lot of tokens.

Фото профиля allOS.dev - Creating Cross-Platform Apps
allOS.dev - Creating Cross-Platform Apps5 месяцев назад

Alternative: Type your own code Writing my cross-platform FOSS web browser now in C# / AvaloniaUI. Yes, it uses the WebView control but I'm learning a lot & not paying anyone for tokens Congruent has tabbed browsing & allows user to create bookmarks

Фото профиля Uncle Bob Martin
Uncle Bob Martin5 месяцев назад

Reacting is not the same as learning.

Фото профиля CaptainAmericaTex
CaptainAmericaTex5 месяцев назад

But Unclude Bob, the AI evangelists say to write "and make no mistakes!" in the markdown files. That way the AI would stop hallucinating. Have i just been wasting tokens (and the associated $$$) all these months??? 😭

Фото профиля Alex (VibeManager)
Alex (VibeManager)5 месяцев назад

Kw like MUST, SHOULD, CAN, MAY are handy to differentiate rules severity. Otherwise like in human org/head, too many confusing obligations - no obligations.

Фото профиля torkil pedersen
torkil pedersen5 месяцев назад

When will Trump post himself in a morning bathrobe. It most be the next after his Jesus outfit🤣🤣🤣

Фото профиля Jean-Paul Tres
Jean-Paul Tres5 месяцев назад

Bathrobe rants. We are so back. They say aggression and shaming does help, having learned it so vigorously from the training corpus (I presume). Have yet to run DSPy against it to confirm such LLM-whispering actually works. Theory of mind, one might imagine.

Фото профиля Stijn
Stijn5 месяцев назад

Opinion linters are the future! Time to build your own

Фото профиля Chris Ebert
Chris Ebert5 месяцев назад

@kentcdodds I love your rants

Фото профиля SlopSquat
SlopSquat5 месяцев назад

Yes, hello! Thanks for all your work! Broadly agree with you BUT! Have you tried adding grugbraindev rule to save tokens? Pretty funny

Похожие видео