If you need it to be up to date with your version of a framework, then ask it to use the context7 mcp server. Expecting training data to be up to date is unreasonable for any LLM and we now have useful solutions to the training data issue.
If you need it to specify the latest version, don't say "latest". That word would be interpreted differently by humans as well.
Claude is well known at its one-shotting skills. But that's at the expense of strict instruction following adherence and thinner context (it doesn't spend as much time to gather context in larger codebases).
Some things aren't common sense yet so I'm trying my part to make them so.
Ask Linus Torvalds.
But using the same model through pi, for example, it's super smart because pi just doesn't have ANY safeguards :D
Or "create an extension to..." and it'll write the whole-ass extension and install it :D