The Dagger team has introduced Container Use, an open-source tool that redefines how AI-based coding agents interact with shared codebases. By assigning each agent its own containerized sandbox and Git worktree, Container Use enables parallel development without conflicts, manual stashing, or clone juggling.
Traditional approaches to running multiple agents on the same repository often result in merge conflicts, overwritten changes, or complex stash workflows. Container Use solves this by provisioning isolated environments for each agent, allowing them to operate independently on the same codebase.
Each environment includes:
Container Use integrates seamlessly with the Zed editor, enabling developers to launch and manage agent environments directly from their workspace. When activated, the tool automates environment creation and lifecycle management, allowing agents to run in the background without disrupting the main editing session.
Developers can configure a “background” profile in Zed, where Container Use handles agent tasks asynchronously. This setup allows users to:
container-use watchcontainer-use logcontainer-use diffBy combining containerization with Git worktrees, Container Use offers several advantages for AI-driven development:
Container Use provides a simple CLI for managing agent environments:
container-use list # View active environments
container-use watch # Monitor agent activity
container-use log # Review command history
container-use diff # Compare changes across agents
Container Use introduces a powerful abstraction for managing AI coding agents in parallel. By leveraging containerized sandboxes and Git worktrees, it eliminates workflow conflicts and simplifies multi-agent orchestration. Whether used with Zed or integrated into custom pipelines, Container Use enables scalable, isolated development for modern engineering teams.