Domain-Driven Agents

AlarQ 71 points 14 comments August 29, 2026
coldtake.dev · View on Hacker News

Discussion Highlights (5 comments)

owaiswiz

Something i read in the earlier paragraphs about llms being easier to work with in greenfield projects… My experience has been the opposite. They work well on existing projects but are not so great at new ones (unless you are just vibe coding something simple). I think it has something to do with it being able to rely on years of established structure/conventions on existing projects that makes them better IME

stephen

I've also been a little-d DDD fan, and we've had luck with per-entity `md` files to language-independent document domain behavior/quirks/usages. I.e. an `Author.ts` has an `Author.md`, `Book.ts` has an `Book.md`. For agents, we've given them a skill to read & write the `md` files: https://github.com/joist-orm/joist-orm/blob/main/packages/co... And so agent-written `md` updates are showing up in PRs. So far it seems useful (our main repo is a 350k LOC TypeScript monolith). Admittedly, this is way less sophisticated (& less complicated) than the "graph of edges in/out of every bounded context" in the OP, but that is probably again my "little-d" DDD perference, where I find some of "DDD at scale" patterns lead to, imo, over-engineering.

scotty79

When asked about DDD at a job interview I joked it was Debug Driven Development, when you start with empty directory and file the first bug "The app doesn't do anything. It should ..." Non-ironically that's pretty much the way I work with AI agents now.

theahura

i'm sorry to say that besides like the first paragraph, this article is mostly ai slop. i thought that we mostly weren't allowing ai written content on hn? (@dang whats the policy here?) aside from that, i think that this is overcomplicating a more basic idea. You should have agents that leave docs behind in your codebase, and those docs should be localized to the structure of your code, but you do not need any fancy format or manifest. We've had a lot of success with having the agents write and maintain a docs.md file in each folder, and requiring that they both read and update that file whenever they make a change in that folder

ydna404

> The issues are then addressed by my AI system based on skills and sub-agents. So I don't think this is really the way to go imo. Relying on AI can increase productivity but it's extremely hard to manifest.

Semantic search powered by Rivestack pgvector
4,895 stories · 44,164 chunks indexed