HN user

staticvar

328 karma
Posts17
Comments126
View on HN
rjcorwin.github.io 4mo ago

Cook: A simple CLI for orchestrating Claude Code

staticvar
307pts97
github.com 4mo ago

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

staticvar
2pts0
www.twitch.tv 11mo ago

Watch two AI robots roast me while I play video games

staticvar
2pts2
www.burlingtonfreepress.com 4y ago

Six states outlaw inefficient gaming PCs

staticvar
1pts1
news.ycombinator.com 6y ago

Ask HN: Percentage of time programming to release a new feature?

staticvar
1pts0
github.com 7y ago

Show HN: Connect 4 Built with Redux and Web Components

staticvar
1pts1
www.janeasystems.com 8y ago

A full-fledged Node.js runtime for Android and iOS

staticvar
2pts0
rjsteinert.github.io 9y ago

What the heck is Android Things?

staticvar
2pts0
rjsteinert.github.io 9y ago

Publish to the Distributed Web in 3 commands using Dat

staticvar
2pts0
rjsteinert.github.io 9y ago

Will Farmers make money from data? We may need to lower the transaction cost

staticvar
1pts0
opk.hackpad.com 10y ago

Let's make code for IoT and Linux easy and modular

staticvar
1pts1
www.drupal.org 10y ago

Drupal 8.0.0 Released

staticvar
13pts1
publiclab.org 11y ago

Unix Philosophy and the Internet of Things = Best Friends?

staticvar
2pts1
rjsteinert.github.io 11y ago

Is HabitRPG NSFW? Here's a trick to make it more SFW

staticvar
1pts4
news.ycombinator.com 12y ago

How we built a text message service to tell people when MTGOX.com changes

staticvar
1pts0
jerrytherobot.com 12y ago

Free service sends you a text message when Mt. Gox.com updates

staticvar
1pts0
jerrytherobot.com 12y ago

Show HN: Jerry the robot will text you when Mt. Gox is back online

staticvar
1pts3

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...

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.

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.

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.

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.

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.

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.

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.

Nice! You found the no-code option that just has the outer agent perform the duties of the workflows that cook describes. It's a bit experimental (the whole thing is really), but it would be nice to get some folks impressions of whether this works well as a pure skill or if y'all find the deterministic nature of the cook script improves reliability.

That'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.

I used to think UFO sighting meant some kind craft piloted by extra terrestrial beings. Are they often planes piloted by humans you don't know?