Ask HN: Opinionated Agent Setup?
I'd like to dip my toes into more fully autonomous long running agentic coding but I'm put off by thinking through the 'right' way to have it all running. How are you running your agents? What do you do for sandboxing and cost control? How do you handle secrets? Etc.
5 comments
[ 2.8 ms ] story [ 25.3 ms ] threadMy setup took a long time to build and I don't know any devs personally who go thru the trouble.
* I use a custom harness in a podman container run by a non-sudoer system account. File access is limited to specific ZFS datasets. I don't use Anthropic models for agentic work.
* You can find an open-source network proxy that injects credentials into the network requests, I made a custom one.
* I made a custom shell (nearly posix-compliant) and don't give it access to regular bash, thus no need to filter its shell commands. You could use an open-source one if you care about this: `https://github.com/search?q=agent+bash+shell&type=repositori...`* Same story for agent memory, context management and token reduction/compression, but this requires a lot of constant tweaking. Again, there are a lot of open-source repos addressing these aspects. Just search github, hn.algolia.com, and/or look at subreddits like /r/agentsofai /r/ai_agents
* Also the agent must be able to run/test the generated code, so if you're targeting another platform you need a MCP or deployment tool that'll allow testing.