Skip to main content
Building one agent? The standalone project created by circuit new is all you need.
The CLI detects standalone projects and Bun workspaces. Each shared package owns its dependencies; agents import packages by name. Upload sends the workspace source and lockfile. Circuit installs the agent’s production dependencies into one code artifact.

Layout

Declare the workspace at the repository root:
Give each shared package its own manifest and dependencies:
Depend on it from the agent:
Import the package by name, without TypeScript path aliases:
Run bun install at the root and commit bun.lock.

Forking a workspace agent

Forking or editing a published workspace agent copies its uploaded workspace config, lockfile, agent directory and shared packages into the builder. Bun links the packages as in the source monorepo. The fork is a snapshot, not a live link to the original repository.

Next steps