6 ms·
I imagine this is something like Anthropic's dynamic workflows where a JS file is created to make a little AI harness on the spot
by ludamad 2mo ago
I imagine this is something like Anthropic's dynamic workflows where a JS file is created to make a little AI harness on the spot
- andai 2mo agoWow, I hadn't heard of this! const audits = await pipeline(found.files, file => agent(`Audit ${file} for missing authentication checks.`, { label: file }), ) I asked Claude in the browser if it could do anything like that. It wrote a little frontend app that calls the Anthropic API (with fetch()), without including a key. I expected that to fail, but it worked! Apparently in the web chat (and also in Claude Code?[0] Though I haven't tried yet) they can call the Anthropic API and your subscription key gets auto-magicked into the requests somehow. Those are two separate things of course (aside from the key-injection) but I guess there's no reason it couldn't run completely in the front-end... hmm... [0] https://code.claude.com/docs/en/workflows https://code.claude.com/docs/en/workflows
- jaggederest 2mo agoI feel like it's not crazy to run Javascript in the browser... We've come so far I almost forgot where it all started.
- dlt713705 2mo agoPer latest available data, point of origin traces back approximately 13.8 billion years to a singular event designated "Big Bang". YMMV
- user_of_the_wek 2mo ago> In the beginning, the Universe was created. This had made many people very angry and has been widely regarded as a bad move.
- d4rkp4ttern 2mo agoMy understanding is that in the generated JS code, the subagents are invoked as headless Claude, equivalent to Claude -p, or the agents SDK.