Hacker News

Latest

Show HN: 30u30.fyi – Is your startup founder on Forbes' most fraudulent list?

2026-03-30 @ 22:10:22Points: 191Comments: 65

Android Developer Verification

2026-03-30 @ 22:05:21Points: 66Comments: 45

Tickets Are Prompts

2026-03-30 @ 21:32:24Points: 15Comments: 7

Learn Claude Code by doing, not reading

2026-03-30 @ 20:19:43Points: 101Comments: 53

Turning a MacBook into a touchscreen with $1 of hardware (2018)

2026-03-30 @ 19:22:33Points: 145Comments: 71

William Blake, Remote by the Sea

2026-03-30 @ 19:13:05Points: 43Comments: 1

A sea of sparks: Seeing radioactivity

2026-03-30 @ 18:34:47Points: 43Comments: 16

Fedware: Government apps that spy harder than the apps they ban

2026-03-30 @ 18:16:00Points: 347Comments: 105

Recover Apple Keychain

2026-03-30 @ 17:21:49Points: 48Comments: 13

Take better notes, by hand

2026-03-30 @ 16:23:56Points: 166Comments: 79

OCR for construction documents does not work, we fixed it

2026-03-30 @ 16:05:46Points: 115Comments: 74

FTC action against Match and OkCupid for deceiving users, sharing personal data

2026-03-30 @ 15:32:37Points: 231Comments: 114

Show HN: Coasts – Containerized Hosts for Agents

2026-03-30 @ 15:17:51Points: 52Comments: 20

https://www.youtube.com/watch?v=yRiySdGQZZA. There are also videos in our docs that give a good conceptual overview: https://coasts.dev/docs/learn-coasts-videos.

Agents can make code changes in different worktrees in isolation, but it's hard for them to test their changes without multiple localhost runtimes that are isolated and scoped to those worktrees as well. You can do it up to a point with port hacking tricks, but it becomes impractical when you have a complex docker-compose with many services and multiple volumes.

We started playing with Codex and Conductor in the beginning of this year and had to come up with a bunch of hacky workarounds to give the agents access to isolated runtimes. After bastardizing our own docker-compose setup, we came up with Coasts as a way for agents to have their own runtimes without having to change your original docker-compose.

A containerized host (from now on we’ll just say “coast” for short) is a representation of your project's runtime, like a devcontainer but without the IDE stuff—it’s just focused on the runtime. You create a Coastfile at your project root and usually point to your project's docker-compose from there. When you run `coast build` next to the Coastfile you will get a build (essentially a docker image) that can be used to spin up multiple Docker-in-Docker runtimes of your project.

Once you have a coast running, you can then do things like assign it to a worktree, with `coast assign dev-1 -w worktree-1`. The coast will then point at the worktree-1 root.

Under the hood the host project root and any external worktree directories are Docker-bind-mounted into the container at creation time but the /workspace dir, where we run the services of the coast from, is a separate Linux bind mount that we create inside the running container. When switching worktrees we basically just do umount -l /workspace, mount --bind <path_to_worktree_root>, mount --make-rshared /workspace inside of the running coast. The rshared flag sets up mount propagation so that when we remount /workspace, the change flows down to the inner Docker daemon's containers.

The main idea is that the agents can continue to work host-side but then run exec commands against a specific coast instance if they need to test runtime changes or access runtime logs. This makes it so that we are harness agnostic and create interoperability around any agent or agent harness that runs host-side.

Each coast comes with its own set of dynamic ports: you define the ports you wish to expose back to the host machine in the Coastfile. You're also able to "checkout" a coast. When you do that, socat binds the canonical ports of your coast (e.g. web 3000, db 5432) to the host machine. This is useful if you have hard coded ports in your project or need to do something like test webhooks.

In your Coastfile you point to all the locations on your host-machine where you store your worktrees for your project (e.g. ~/.codex/worktrees). When an agent runs `coast lookup` from a host-side worktree directory, it is able to find the name of the coast instance it is running on, so it can do things like call `coast exec dev-1 make tests`. If your agent needs to do things like test with Playwright it can so that host-side by using the dynamic port of your frontend.

You can also configure volume topologies, omit services and volumes that your agent doesn't need, as well as share certain services host-side so you don't add overhead to each coast instance. You can also do things like define strategies for how each service should behave after a worktree assignment change (e.g. none, hot, restart, rebuild). This helps you optimize switching worktrees so you don't have to do a whole docker-compose down and up cycle every time.

We'd love to answer any questions and get your feedback!

CodingFont: A game to help you pick a coding font

2026-03-30 @ 15:16:35Points: 284Comments: 169

How to turn anything into a router

2026-03-30 @ 13:28:54Points: 554Comments: 203

Bird brains (2023)

2026-03-30 @ 13:14:27Points: 282Comments: 181

Do your own writing

2026-03-30 @ 12:39:56Points: 301Comments: 91

Mathematical methods and human thought in the age of AI

2026-03-30 @ 11:05:37Points: 189Comments: 74

The stealthy startup that pitched brainless human clones

2026-03-30 @ 11:02:14Points: 40Comments: 45

I use Excalidraw to manage my diagrams for my blog

2026-03-30 @ 07:17:06Points: 267Comments: 108

I am definitely missing the pre-AI writing era

2026-03-30 @ 07:03:18Points: 238Comments: 186

Build123d: A Python CAD programming library

2026-03-29 @ 20:58:22Points: 109Comments: 44

Seeing Like a Spreadsheet

2026-03-28 @ 16:28:32Points: 60Comments: 18

Roulette Computers: Hidden Devices That Predict Spins

2026-03-28 @ 13:39:40Points: 49Comments: 13

From Proxmox to FreeBSD and Sylve in our office lab

2026-03-28 @ 12:20:28Points: 70Comments: 56

Cherri – programming language that compiles to an Apple Shortuct

2026-03-27 @ 23:39:44Points: 226Comments: 46

Researchers find 3,500-year-old loom that reveals textile revolution

2026-03-27 @ 20:57:17Points: 56Comments: 3

Agents of Chaos

2026-03-27 @ 20:30:05Points: 51Comments: 4

IronGlass Brings Legendary Soviet Cinema Lenses to Mirrorless Cameras

2026-03-26 @ 13:49:47Points: 12Comments: 4

In math, rigor is vital, but are digitized proofs taking it too far?

2026-03-26 @ 09:41:44Points: 94Comments: 83

Archives

2026

2025

2024

2023

2022