4 ms·
I dunno. I just let Claude build a python script that calls Claude code though subprocess.run(). I recently made a sort of Autoresearch with that approach. The
by maCDzP 7mo ago
I dunno. I just let Claude build a python script that calls Claude code though subprocess.run().
I recently made a sort of Autoresearch with that approach. The script calls Claude Code to create a hyphotesis, then code based on that, evaluate- rinse and repeat. I am still trying to figure out if I am actually on to something or just burning tokens. Jury is still out.
- jamiemallers 7mo ago[dead]
- staticvar 7mo agoThat's totally a valid approach! Especially for a very specific workflow you are looking for. For the cases I cover in cook, I had done those patterns enough times that I figured it was time to build a tool/skill for Claude so that I didn't have to explain it as much and also not have to wait for claude to code it up, and possibly interpret me wrong. Now ask claude to "/cook race 3 of foo plan with review, pick the best" and it knows what to do.
- dgb23 7mo agoI think you're onto something, but I would add that it's sort of like a live REPL that has an integrated agent but with extra steps. I haven't used python much but I wouldn't be surprised if you can set up a sufficiently powerful REPL with it. I know Julia can do it very well and it's a very similar language. Obviously there are powerful Lisps that do this very well as well.
- scrappyjoe 7mo agoI went quite far down this approach last year; you're welcome to take what you want from my repo - https://github.com/riazarbi/way https://github.com/riazarbi/way
- staticvar 7mo agoHey scrappyejoe, way looks pretty cool. The goal of cook is to be unopinionated, exposing primitives for the shape of workflows as opposed to defining what happens in those workflows. Cook is something that way could use under the hood.
- scrappyjoe 7mo agoCool, I'm already digging into your stuff, thanks for posting it.
- danr4 7mo agothat's rlm