@ustk said in Claude's ugly code:
@David-Healey You can ask Claude to analyze your previous project styles once for all so it automatically applies it next time
Definitely you can, and it often shows up as a big improvement. I find after time that Claude, Codex (probably other agents too) start to "drift" towards their preferred style of coding anyways. They also have a tendency to over-comment and use special characters which HISE doesn't support. Example:
// ── Backend ─────────────────────────────────────────────────────────────
Which renders like this:
Screenshot 2026-07-12 at 1.04.27 PM.png
I also see it drop things in scripts that are outside a namespace, and the namespace does not always match the script's name. Example file: HiseScriptStandardsForMyAgents.js:
namespace ScriptStandards
{
// Rules for following strict scripting standards
inline function iDontFollowTheStandards();
// ....
}
iDontFollowTheStandards();
// End of HiseScriptStandardsForMyAgents.js:
I wonder if more rigid guidelines around the HISE scripting standards in the HISE-MCP would help, but most important caveats are already featured in style-guides.ts and in the guidelines. Seems like Christoph did a bang-up job already and agents just have a tendency to cut corners over time to in order to complete the task.