I have extended this to coding work as well. "Implement this plan in less than 1000 added lines, tests included". It's amazing how well-behaved and concise models can be with simple guardrails.

Of course, you have to intuit a reasonable line length, but Claude cries if you happen to clip its wings too aggressively.