Hacker News
points by CharlieDigital 1 day ago | 0 comments
I have had some success with this by using a distinct agent profile for this role in my agent team.

The agent is instructed to use Laws of UX[0] when reviewing application flows and cite specific laws with changes to the builder agents. Look-and-feel in general still requires some tuning, but I have found that: 1) using a discrete agent in this role that only looks at the flow and is given the end-user context, 2) pointed to a set of guidance has really improved autonomy for UX.

[0] https://lawsofux.com/, https://lawsofux.com/llms.txt

[–] XenophileJKO 1 day ago
This is still generally a good rule when building with agents, the models are capable of many behaviors. The key is to simply set some bounds on what their "job" is so that most of their finite attention can be spent organizing around the what that role is expected to do.

It certainly is less important as the models get better at meta planning, but this approach is still very useful.

Often all you need to do is define a set of beliefs and values for the role and it will operate much better than rules or guidance.

[–] CharlieDigital 1 day ago
Yes, 100%. There's some recent research that backs this up.

Adaptive Auto-Harness: Sustained Self-Improvement for Agentic System Deployment on Open-Ended Task Stream (https://arxiv.org/pdf/2606.01770) talks about this and the efficacy of role- and objective-based agents on unbounded streams of heterogeneous tasks.

I recently wrote down some of my own experience with this: LARPing with Agents (and Why It Works) (https://chrlschn.dev/blog/2026/10/larping-with-agents-and-wh...) after someone called out my role-based agents as "larping". Short of it: role-based, fully "JIT" agents have increased autonomy in my coding workflows end-to-end. I get very good outputs with few skills required and less human instruction input.

[–] unsloppable 1 day ago
Thanks for linking this. I've reached a point I need to overhaul one of my MacOS apps and these laws are the perfect find.

What's the best approach to applying these in practice? Should I evaluate every screen with each of these laws in mind or should I evaluate the app entirely one law at a time?

[–] CharlieDigital 11 hours ago
Give and agent the llms.txt and ask it to read.

I have a dedicated agent profile that specifically owns this task and I tell the other agents to only send screenshots to it and ask for feedback.