RFC: Workspace-level orchestration — shared scaffolding, governance, and knowledge across repositories #172
sonupreetam
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
Today,
uf initoperates at the single-repo level: it scaffolds agents, commands,convention packs, and Dewey sources into one repository. For organizations with
multiple related repos (e.g., a product repo, shared libraries, infrastructure),
this means duplicated configuration, per-repo constitutions, and repeated setup.
This RFC proposes a workspace abstraction — a parent-level concept that spans
multiple repositories, enabling shared governance, shared agents, unified knowledge,
and single-command setup across an entire project constellation.
Motivation
Duplicated scaffolding — Running
uf initin 5 repos produces 5 copies ofthe same agents, commands, and convention packs. Customizing one requires
manually syncing to the others.
Fragmented knowledge — Dewey already indexes sibling repos via
sources.yamlrelative paths, but this is configured per-repo with no workspace-level awareness.
Each repo's Dewey instance is independent.
No constitution inheritance — Each repo has its own constitution. There's no
mechanism for an org-level constitution to cascade to project repos while allowing
local overrides.
Per-repo setup overhead —
uf setupanduf doctoroperate on one directory.Verifying a whole environment (5 repos + tools) requires running doctor in each.
Agent context boundaries — Agents working in one repo cannot easily reference
specifications, decisions, or patterns from related repos without manual context
injection.
Prior Art & Landscape
Several tools are innovating in this space:
/multitaskfor parallel subagentsworkspaceconfig field (proposed, #19515)Common patterns across all solutions:
Proposed Design
Workspace Definition
A workspace is defined by a
uf-workspace.yamlfile placed in a parent directory:Layered Resolution
Configuration resolves with increasing specificity:
Unified Commands
uf workspace init— scaffold workspace config, link reposuf workspace doctor— health check all repos + shared infrauf workspace sync— push shared config changes to all reposuf init(in a repo) — inherits workspace-level config, adds only repo-specific filesDewey Integration
sources.yamlgenerated from workspace definitionConstitution Inheritance
Alignment with Existing Principles
uf initalone; workspace is optionalOpen Questions
uf sandbox(container-level isolation)?Next Steps
Looking for feedback on:
All reactions