Guides
Documentation
Working with agents

Work across two repositories

One spec or issue that changes two workspaces, built in step.

Some changes don't fit in one repository: an API and the app that calls it, a library and its consumer. Name a companion workspace and one spec or issue covers both sides, with a contract they agree on and a build in each.

Choosing a companion

While you compose, open How it runs and pick a Companion workspace — any other workspace in your account that has a repository. Leave it on None for work that stays in one repository.

One shaping, both codebases

The agent reads both checkouts while shaping or diagnosing. It ends the document with a Cross-repo contract — what each side promises the other — and a final section with the companion's share of the work.

What happens when you accept

Accepting creates a twin in the companion workspace, already accepted, holding the contract and its slice. From then on the two build, continue, and ship on their own, and each pull request links to the other.

Fragua refuses the acceptance if the companion section is missing or the companion's Foundation isn't ready, and tells you which. Taking back the acceptance removes a twin that hasn't started building; once it has, cancel or reject it in its own workspace first.

See also: Spec agent · Branches and pull requests