frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Agentspace – long-running YOLO agent sessions in Docker

https://github.com/ImreC/agentspace
3•Notch123•1h ago
Hi HN, I built agentspace because I kept seeing tmux recommended for keeping Claude Code sessions alive over SSH. I find multiplexers painful because they subtly change shell behavior in ways I always forget. They also do not offer a standardized way to run highly permissive agents in a safe way. I also tried worktrees, but it just feels awkward to manage work in that way.

Docker can help with all of this, so I thought up a workflow and used some shell aliases to automate spawning Claude/Codex agents into docker containers. I ended up creating a cli to wrap all these methods and would like to share it.

The problems agentspace is solving:

- You can run many tasks in parallel all working on their isolated copy of the code.

- No death by tapping y. You work on an isolated copy of your code in a fairly safe environment always so it becomes easy to get out of the way and just let the agent do its thing without potentially compromising your machine. Agents spawned by agentspace run containerized in yolo mode by default.

- No multiplexers. I have never had a use case for them so I am not used to them at all. The container is just a normal shell. Detach with Ctrl-P Ctrl-Q (standard Docker), reattach with `agentspace my-task attach`. No new muscle memory required.

- No git worktrees either. All approaches using this to run parallel agents just never stuck with me.

- Sessions typically die on SSH disconnect. Containers always keep running. Reconnect whenever you want.

I am now using this daily for running my agent sessions both on my own machine as well as on a remote VM.

Features:

- Spawn many agents which all run in parallel and work on their own code by mounting a volume to a docker container

- Preview results with a dedicated preview command which launches a container attached to the same volume so you can preview changes in real time

- Docker support inside the container via a docker-in-docker sidecar (Please note: `--docker` uses `--privileged` under the hood (required for DinD), so it's not a sandbox against actively hostile code. Use it for repos you'd trust on your machine anyway.)

- You handle the git commit, push etc. cycle so you stay in control of what goes into your repo. This is enforced at the image level via `PreToolUse` hooks for Claude Code and exec policy rules for Codex, so it holds even under `--dangerously-skip-permissions`. I don't like agents running changes for me, so I want to be in control here

Once pushed, it's just a normal branch so you can merge it through your usual PR flow. It does require a git remote though at the moment as this is the only way to get the work out of the container via the agentspace cli (of course you can use any direct docker command as well).

Current limitations:

- Base image is `node:24-slim`. Node/TypeScript works out of the box, other runtimes need you to extend the image yourself (You can create your own Dockerfile from agentspace and point `AGENTSPACE_IMAGE` at it). I am planning to just include more languages and runtimes in the agentspace base container as well, but so far this works for me.

- Supports Claude Code and Codex today. I would like to support Opencode and Pi later

- Windows unverified (should work as this project basically only needs node, git and docker, but it hasn't been tested)

- Some parts lightly tested or untested. I basically built it last week to scratch my own itch. It has some rough edges for sure. Very curious to get other experiences.

Comments

figmert•55m ago
> - No death by tapping y. You work on an isolated copy of your code in a fairly safe environment always so it becomes easy to get out of the way and just let the agent do its thing without potentially compromising your machine. Agents spawned by agentspace run containerized in yolo mode by default.

> - Docker support inside the container via a docker-in-docker sidecar (Please note: `--docker` uses `--privileged` under the hood (required for DinD), so it's not a sandbox against actively hostile code. Use it for repos you'd trust on your machine anyway.)

These statements are pretty contradictory. If dind has privileged access, then that means the agent has essentially root access (or access of the host user if rootless)

High degree of quantum entanglement detected in a metal crystal

https://www.techexplorist.com/high-degree-quantum-entanglement-detected-centimeter-sized-strange-...
1•SVI•34s ago•0 comments

Zero-Day 'RoguePlanet' in Microsoft Defender Grants System-Level Control

https://cyber.netsecops.io/articles/rogueplanet-zero-day-in-microsoft-defender-allows-full-system...
2•jaybode•1m ago•0 comments

Some Data Should Be Code

https://borretti.me/article/some-data-should-be-code
1•tosh•1m ago•0 comments

Data Visualization from the Comfort of Your Terminal

https://github.com/medialab/xan/blob/master/docs/cookbook/dataviz.md
1•Yomguithereal•2m ago•0 comments

The Doom Trolling Needs to Stop

https://www.nytimes.com/2026/06/17/opinion/ai-dangerous-openai-anthropic.html
1•kordlessagain•2m ago•0 comments

"You Killed the Car"

https://www.chicagomag.com/chicago-magazine/june-july-2026/inside-ferris-buellers-iconic-ferrari-...
1•speckx•2m ago•0 comments

Trump and world leaders joined by OpenAI, Anthropic, Google at G7

https://www.cnbc.com/2026/06/17/g7-trump-ai-tech-leaders-openai-anthropic-google.html
1•kordlessagain•3m ago•0 comments

Kotoba: Generate personalized vocabulary cards for language learning for free

https://github.com/yufengliu15/kotoba
1•rookiecookie•3m ago•0 comments

Just Send Me the Prompt (2025)

https://blog.gpkb.org/posts/just-send-me-the-prompt/
1•mooreds•3m ago•0 comments

What I've Learned From Selling 500k Books

https://fortelabs.com/blog/what-ive-learned-from-selling-500000-books/
1•jslakro•4m ago•0 comments

Allbirds rebrands as Smartbird in AI pivot, hires former AWS executive as CEO

https://www.reuters.com/business/retail-consumer/allbirds-rebrands-smartbird-ai-pivot-hires-forme...
1•fckgw•5m ago•0 comments

Neural Cellular Automata with WebGPU

https://ivanludvig.dev/tech/neural-ca-webgpu
1•IvanLudvig•5m ago•0 comments

Show HN: Project Huginn – cheaper AI training on idle GPUs

https://www.projecthuginn.com
1•mlbenchdev•6m ago•1 comments

PHP Attributes Changed the Way I Write Livewire

https://bert.gent/articles/2026-05-24/how-php-attributes-changed-the-way-i-write-livewire
1•speckx•7m ago•0 comments

Show HN: Regentix – Block destructive MCP tool execution using Rego

https://github.com/marvior/regentix
1•wmolino•7m ago•0 comments

A bigger World Cup is a better World Cup

https://www.natesilver.net/p/a-bigger-world-cup-is-a-better-world
1•7777777phil•8m ago•0 comments

Cryptography's Mathematical 'Worlds': Which One Do We Live In? [video]

https://www.youtube.com/watch?v=RjzSFa03i2U
1•binyu•9m ago•0 comments

Frontend masters is now master.dev

https://master.dev
1•lackoftactics•11m ago•0 comments

AI will lead to labor shortages, Bezos says in optimistic talk

https://www.reuters.com/business/world-at-work/ai-will-lead-labour-shortages-jeff-bezos-says-viva...
2•jhncls•11m ago•0 comments

The Craft of Writing Effectively [video]

https://www.youtube.com/watch?v=vtIzMaLkCaM
1•zaikunzhang•11m ago•0 comments

Coding Agents as Continuation of Technological Development of Code-Writing Tools

https://braddelong.substack.com/p/coding-agents-as-a-continuation-of
1•resonious•12m ago•0 comments

Tell your LLM how to check its work for empowered AI coding

https://khalah.substack.com/p/tell-your-llm-to-verify-its-changes
2•khasan222•12m ago•0 comments

Ask HN: Which AI subscription is worth paying for now?

1•0x70run•14m ago•2 comments

Show HN: In-browser Python/Pandas/Git practice with animated Git simulator

https://practice.lernerpython.com/classroom/540d7ab1a1/
2•reuven•15m ago•0 comments

SF MUNI Worm: the worm becomes the map

https://muniworm.probablyalex.com/
1•bobbiechen•15m ago•0 comments

Sri Lanka sees rise in cybercrime as scam networks relocate from south-East Asia

https://www.theguardian.com/world/2026/jun/16/sri-lanka-alarming-rise-cybercrime-scam-networks-so...
1•speckx•16m ago•0 comments

Am unable to think deeply when alone

2•taatparya•16m ago•1 comments

Ask HN: Does it make sense to buy Mac Studio and run local models?

2•dmujic•17m ago•2 comments

Illinois' New Social Media Tax Is a Shambles

https://taxfoundation.org/blog/illinois-social-media-tax/
3•rahimnathwani•17m ago•1 comments

Nullius in verba: the motto of the Royal Society

https://lawrencecpaulson.github.io//2026/06/17/Nullius.html
1•ibobev•20m ago•0 comments