Hacker news

  • Top
  • New
  • Past
  • Ask
  • Show
  • Jobs

Launch an autonomous AI agent with sandboxed execution in 2 lines of code (https://amaiya.github.io)

54 points by wiseprobe 4 days ago | 15 comments | View on ycombinator

TheDong 4 days ago |

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 && \
      <command>
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 as it could.

Quoting from the linked page:

> The tradeoff is ~5-10 seconds of container startup overhead

Sure, maybe it's 5-10 seconds if you use containers wrong. Unpacking a root filesystem and spinning up a clean mount namespace on linux is a few ms, and taking more than a second means something is going wrong, like "pip install"ing at runtime instead of buildtime for some reason.

I can spin up a full linux vm and run some code in quicker than 5 seconds.

internet_points 3 days ago |

The problem isn't getting an AI agent running in a sandbox. That's trivial. The problem is getting an existing enterprise project runnable inside the sandbox too, with no access to production keys or data or even test-db-that-is-actually-just-a-copy-of-prod, but with access to mock versions of all the various microservices and api's that the project depends on.

davispeck 4 days ago |

This feels less like "agents" and more like a controlled generate → execute → fix loop.

Works great when you have a clear verification signal (tests passing), but what drives convergence when that signal isn’t well-defined?

voidUpdate 3 days ago |

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

petesergeant 4 days ago |

If you want sandboxed access to git, Slack, Gmail, etc, I built https://agentblocks.ai

est 4 days ago |

self-plug here.

Launch an AI agent to operate on production servers/sql safely using tmux

https://news.ycombinator.com/item?id=47411242

DDxrp21 4 days ago |

[dead]

jamesvzb 3 days ago |

[dead]

phoenix027745 3 days ago |

[dead]

wsesamemr81 3 days ago |

[flagged]

d0gemn45 3 days ago |

[flagged]

gpubridge 4 days ago |

[dead]

lightningenable 4 days ago |

[flagged]

bubblerme 3 days ago |

[flagged]