---
title: "Discussion on \"Hexagonal Architecture and Agent Sandboxes\" | Hashnode"
description: "Discussion on \"Hexagonal Architecture and Agent Sandboxes\". We used to say Dev should resemble Production (in configuration, if not scale) as closely as possible. However we're now adding completely agentic workflows to our development pipeline. Does the Dev e"
url: "https://hashnode.com/posts/hexagonal-architecture-and-agent-sandboxes/6b0781c185b21d234991c87b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Hexagonal Architecture and Agent Sandboxes](https://aiden.ziegelaar.io/hexagonal-architecture-and-agent-sandboxes?utm_source=hashnode&utm_medium=feed)

We used to say Dev should resemble Production (in configuration, if not scale) as closely as possible. However we're now adding completely agentic workflows to our development pipeline. Does the Dev e

8h ago · 6 min read · aiden.ziegelaar.io  
Read the article

## Written by

[Aiden Ziegelaar](https://hashnode.com/@aidenziegelaar)

@aidenziegelaar · Perth, Australia

  
[View profile](https://hashnode.com/@aidenziegelaar)

Principal Engineer @ SpacetoCo

I have a diverse industry background ranging from startup scale embedded IOT and Industry 4.0 through to enterprise scale Edutech companies and utility providers. My expertise lies in cloud native, secure software development, with a keen interest in exploring emerging technologies.

## Responses 2

Markdown supported · ⌘↵ to post

[Seedance AI](https://hashnode.com/@seedance-ai)

[3h ago](https://hashnode.com/posts/hexagonal-architecture-and-agent-sandboxes/6b0781c185b21d234991c87b/comment/6b07ceb7f141871d190926af)

Treating shared Dev environments as unsafe once agents hold real API credentials is spot on. Using ports-and-adapters to swap out external billing or auth adapters inside ephemeral sandboxes stops agents from stepping on each other or triggering unwanted side effects.

[Olivia](https://hashnode.com/@oliviacreates)

[8h ago](https://hashnode.com/posts/hexagonal-architecture-and-agent-sandboxes/6b0781c185b21d234991c87b/comment/6b078d8df19914e4dea4b7ab)

Swapping the S3 adapter for a local volume is a neat illustration — the same ephemeral environment working for a human reviewer as well as the agent is what sold me on the approach.
