HackerTrans
TopNewTrendsCommentsPastAskShowJobs

staticvar

no profile record

Submissions

Cook: A simple CLI for orchestrating Claude Code

rjcorwin.github.io
307 points·by staticvar·4 месяца назад·97 comments

Show HN: Automate Claude in a work->review loop with cook

github.com
2 points·by staticvar·4 месяца назад·0 comments

Watch two AI robots roast me while I play video games

twitch.tv
2 points·by staticvar·11 месяцев назад·2 comments

Six states outlaw inefficient gaming PCs

burlingtonfreepress.com
1 points·by staticvar·5 лет назад·1 comments

comments

staticvar
·в прошлом месяце·discuss
Maybe revenge, but it's a common play to fire a shot across the bow to create leverage in other areas.
staticvar
·2 месяца назад·discuss
Totally fair argument to make right now. But so funny how this is the opposite movement of "Let me Google that for you".
staticvar
·4 месяца назад·discuss
> We told Claude Code to block npx using its own denylist. The agent found another way to run it and copied the binary to a new path using /proc/self/root to bypass the deny pattern. When Anthropic's sandbox caught that, the agent disabled the sandbox. No jailbreak, no special prompting. The agent just wanted to eagerly finish the task.

I wish that article went into more detail about that attack. But I believe it, the extent that the permissions are easy to get wrong in your claude setttings. For example: https://www.youtube.com/watch?v=3CSi8QAoN-s&lc=UgwFNAh5fvDGJ...
staticvar
·4 месяца назад·discuss
Too many cooks? >.<
staticvar
·4 месяца назад·discuss
Also on that point about keeping humans in the loop on decisions, I've found following the Research-Plan-Implement process where we humans review at each of those stages, to be really helpful. This doc describes the skill I use with my agents so they keep me looped in: https://gist.github.com/rjcorwin/296885590dc8a4ebc64e70879dc...

Then I use cook to iterate and explore during the AI led parts.
staticvar
·4 месяца назад·discuss
Yes, plz don't trust it, always review! The idea is that one prompt in Claude Code got you 80% of the way there, but with some automated review/iterate, it gets you 95% of the way there. It's not worth your time to review the 80% done version when you could be reviewing the 95% done version.
staticvar
·4 месяца назад·discuss
Dagu.sh, using yaml files to describe the flow, looks like a nice step up in sophistication from the cook approach that's just trying to make it easy to issue directly from the command line.

My 2 cents on the dagu.sh website, it should lead with the demo section (https://docs.dagu.sh/overview/#demo). That helped me connect what it was and how I might use it.
staticvar
·4 месяца назад·discuss
Done! @let-it-cook/[email protected] is out. This works when running loops, but even when you just run `cook "do something"` which itself is not a loop, just a call to your agent.
staticvar
·4 месяца назад·discuss
Exactly! That's my vibe. https://rjcorwin.github.io
staticvar
·4 месяца назад·discuss
Good to hear that you're having luck with small models. Note that cook exposes a --model param, also workflow specific model params (--model-work, --model-review, etc) so you can have a smaller model implementing a plan and a larger model reviewing the implementation.
staticvar
·4 месяца назад·discuss
I would be interested in which stories you are thinking of. Stories of Claude breaking out of the restrictions set in its sandbox or stories of people not configuring Claude's sandbox correctly?
staticvar
·4 месяца назад·discuss
That's right. However if you use the v3 operator, you get three parallel versions being built, and then combined depending on which resolver you use (pick, merge, and compare).
staticvar
·4 месяца назад·discuss
Hey 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.
staticvar
·4 месяца назад·discuss
Your getcook.dev tool has a nice form factor for a coding agent, keeping users out of a TUI, instead staying on the command line. An option I'd be interested in exploring is one that wraps `claude -p`, reads the jsonl of that session and prints it out nicely like you are doing with getcook.dev.
staticvar
·4 месяца назад·discuss
Haha, not far off. Only difference is I'm not spending my tokens at work. I use this on a side project video game that I'm developing.
staticvar
·4 месяца назад·discuss
To a certain extent, yes it does! For my cases, I'm often running 3 parallel implementations that get 10 to 20 iterations deep, and then Claude has to sort out the pros and cons of the options and also take the best bits of each. Easy to hit the context window with Claude just running those on its own, so giving `/cook` to Claude, it can offload a bit more via cook and stay higher level.
staticvar
·4 месяца назад·discuss
By default it's locked down to the permissions you have granted in your Claude config. If you use the docker sandbox mode, then you can really let it fly as it can issue more commands in a safer environment.
staticvar
·4 месяца назад·discuss
On asking for user input during implementation, it's best to use this when you have a plan sufficiently written up that you can point it to. To prep that plan, you can also use cook to iterate on the plan for you. Having Claude Code use `/cook` directly is nice because it watches what the subagents are up to and can speak for them, although Claude can't speak to the subagents running through cook.

On permissions, by default, when it runs instances of Claude they will inherit your Claude's permissions. So if there is no permission to `rm -rf /`, Claude will just get denied and move on. Using the docker sandbox option (see bottom of page), then it runs inside that `--dangerously-skip-permissions` and get more stuff done (my preferred option). The hard part about that is it means you need to set up the Docker sandbox with any dependencies your project needs. Run `cook init` and edit the `.cook/Dockerfile` to set those up.
staticvar
·4 месяца назад·discuss
Ah sorry about that. I have weird tastes in design. The README.md is less detailed but covers the basics: https://github.com/rjcorwin/cook/
staticvar
·4 месяца назад·discuss
Oh ya, lots of tools out there orchestrating these days, and just writing a script is a valid option. On the control bit, note that if you `cook init` in your project, it generates a COOK.md that lets you template the meta prompt. Claude could probably take a look at how you've been doing it and port it over to COOK.md so it's similar to the prompts you've been using.