Live data from Hacker News

Launch an autonomous AI agent with sandboxed execution in 2 lines of code

amaiya.github.io

21–26 of 26 posts

Re: Launch an autonomous AI agent with sandboxed execution in 2 lines of code

#22
post #2

I was curious, so I dug a bit. Under the hood it's effectively running: docker run --rm -w $PWD:/workspace \ python:3.11-slim \ pip install -q patchpal && \ Which cool, great, I sure love "pip install"ing every time instead of just baking a single container image with it already installed. This isn't any sort of fancy or interesting sandboxing, this is shelling out to "docker run", and not even using docker as well a…

That's really bad... I don't care if people (probably LLM here) do these kind of mistakes in their own personal tooling. But when you're going to distribute it as some sort of library, it becomes unacceptable.

Write public libraries for solving issues of domains you are an expert in. If your library is LLM generated, it is most likely useless and full of errors that will waste other people's time and resources.

Re: Launch an autonomous AI agent with sandboxed execution in 2 lines of code

#23

Couldn't you just do AgentExecutor(...).run(task="...") and launch an autonomous AI in only one line?

The “Do X in Y lines of code” thing where the Y lines of code include import statements is so, so silly.
Post reply on HN