by vitally3643 · 5mo ago · 0 comments
I've only found one single application where it makes even the slightest amount of sense to have an AI grind away for hours on end. I'm reverse engineering a widget which contains five separate firmware images. I've dumped the binary from the widget and I set the AI to decompile and reverse engineer these interrelated firmware projects. It's a compelx task, but very well bounded. It's not complicated work, but it's a lot of work, and the end result is a C-shaped pile of text that is only informative, it never would be compilable on its own even if I did it by hand. The quality of the output is tightly bounded by the input assembly and the overall output artifact is documentation in the shape of code.
I don't have any qualms about letting an AI go ham on it unattended because the stakes are zero. But if the AI can beat the assembly into a recognizable C project, it's much easier for me to read and reason about. Easy win, I think.
My personal OSS projects don't have the scale to necessarily make this worth it, but at work I run three pipelines using Barnum (https://barnum-circus.github.io/). First, one that ingests files, identifies refactors (from a pre-approved list), and places a precise description of the refactor to be done in a queue; second, one that reads from said queue, implements and creates PRs (there is a lot of "check that the PR is correct" here as well); and a third that babysits PRs until they land. I've landed hundreds of PRs in this way, with very little effort on my part.
It broke something at the first PR.
I think we’re not there yet.
(Which is no different than what you would do as a human)
To be more precise, the prompt actually pointed to where there could be issues, and the issue, which was exactly of the kind that was pointed at, was not found.
I'm grappling with this at the moment, getting it to do design or reverse engineering work, during investigation it makes the wall of text bigger rather than consolidating. It can never pause and create abstractions properly. This is on Opus which starts getting wordy and performative on goals it can't easily verify.
You may benefit from adding instructions like:
- Be concise, especially when X
- Do Y in this manner: [provide specific template or reference here]
- When doing X, do Y and Z
- If you notice issues, bring them to my attention instead of skipping past them.
You can also add specific templates to assist certain stages. The more guardrails or bounding you can provide, the better. Start with small nudges, and strengthen them when they fail.
It's a very unscientific process, but it's a worthwhile tradeoff once the workflow starts to hit its stride. Opus 4.8 is very good at following instructions, so don't be afraid to add them in.
Just be careful not to add things that actively encumber the workflow... It's an art, not a science. (You can also tell the clanker to tell you when your workflow rules are making things worse.)
It's annoyingly cybernetic, but these concepts have worked well for me. The curation of good process is essential to success with these damn things.
Also to deal with my own weakness, executive dysfunction
Creating experimental tooling. I don't think it's totally possible without the models improving (I miss Fable already) but you can shift the process a bit. With Claude/Opus at least, saying to "re-derive" a document is a magic phrase that carries meaning for Claude to think about totally re-doing a document.
All you need at that point is a blurb about making sure it's conceptually organised but I haven't found a neat way to express this. Kind of like refactored well-structured code is smaller than spaghetti.
They could also try for criminal charges if you’re in a relevant jurisdiction.