Comment by docjay
9 hours ago
Style requests tend to get washed away by context. I’m not sure how you’d do it with Claude Code or whatever (I use the API directly), but you might try fiddling with giving it a function called “response” or “message_user” with a mandatory parameter like “output=plaintext”.
I’m basing that idea on custom functions I give Claude where I designate the style in the required parameters. Example:
“””
@pyrepl(code_golf=True, output=CSV)
//END
“””
The “//END” is a special terminator I use for halting the response. Claude runs code between the tags. The difference in code is incredible. No banners, comments, fluff, print(“=“*70), or any other nonsense, and the code is tight and compact. The parameters do nothing, Claude just outputs them as part of required syntax and it dictates the style purely because it output them.
No comments yet
Contribute on Hacker News ↗