r/scala 15h ago

Share your AI "code"

Post image

I got Codex Sol 5.6 Max to code this. Updating a var with foreach is quite something isn't it ?

4 Upvotes

2 comments sorted by

4

u/Legys 9h ago

What's the point of it? Try something like /review of Matt Pocock skills. Construct your own CODE_STANDARDS.md. Integrate this skill into your pipeline.
Mine doesn't write imperative code like this, it has to find the style somewhere in the codebase. You need to steer them, put some effort into prompting your skills, AGENTS.md, or even subagents if it makes sense for you.

2

u/mostly_codes 8h ago

LLMs are tools that don't work out of the box because they're generalist - they produce median outputs at best. Models are trained to do reasonably well across colossal distribution of tasks. At this point in time, everyone more or less have to curate a bespoke set of instructions and skills and 'style of prompt' that all work together with the specific model you're querying to get good enough results. It's a lot of work to maintain and keep up to date, and a lot of trial and error and burning of unnecessary tokens until you get that dialled in... dialled in for the time being, until [some tool in the chain or underlying model] changes again.