See Ash Code logo See Ash Code

I needed separate agent profiles more than separate containers

Ashlynn Antrobus
• • 3 min read

By July, my container-based agent profiles had become an endless stream of authentication and tooling problems.

I wanted separate working identities and persistent agent state. I had made those goals depend on maintaining container images, home-directory mounts, runtime users, and tool installations inside the containers.

I switched to running the existing host CLIs with separate home profiles. That was a better match for the separation I needed.

What the containers made me maintain

The earlier experiments used separate agent containers with persistent homes and shared project directories. The idea was to keep each agent’s state while making the code available to both.

In practice, the boundaries kept producing setup work. A base image’s entrypoint could run instead of the shell I expected. A mounted home could hide files installed there while building the image. Cache files created as root could become unwritable for the runtime user.

Installing another tool or completing an OAuth flow then involved the container environment as well as the tool itself. I was spending time repairing the mechanism around the profile.

The profile is state, not another copy of the executable

The replacement keeps the CLIs on the host and selects a home directory for the launched profile. A run_profile wrapper maps a profile name to its command and launches it with that profile’s environment.

The July arrangement included calvin for Codex, meredith for Claude, and nicholas for Antigravity.

The distinction looks like this:

Before
  agent container -> its tool installation + mounted home + project mount

After
  host CLI -> selected profile home -> profile state and configuration
           -> shared project working directory

The home selection gives tools a separate place for state they store relative to home. That can include sessions, configuration, and identity-related files. It doesn’t require another copy of the executable for each profile.

Three dragons share a computer while keeping separate folders on their desk.

I still need to know where an individual tool keeps its state. A tool using an explicitly configured path outside home won’t become separate just because I selected another home directory.

What this separation does and doesn’t do

This arrangement let the profiles keep their working state without requiring a new image build for every tool change. The host installations remained the tools I used normally, with their ordinary account setup.

It is not a security sandbox. A process still has the permissions of the host user running it. Different profile directories don’t prevent that user from accessing other files it is allowed to read or write.

That distinction helps keep the design focused. Profile separation handles the state and identity problem. Restrictions on tool execution need their own boundary when I require them.

I kept the profiles separate and ran the tools on the host. That gave me the separate state I needed without maintaining the same tools in several containers.

AA

Written by Ashlynn Antrobus

Software developer, author, and builder. Sharing technical lessons learned from building tools like Ebook2Text, IndexedDict, and rag-mcp, and navigating life as a programmer with dyslexia.