Global Configuration
Set you-agent-factory operator model defaults and manage global / named factories under ~/.you-agent-factory.
Operator Model Defaults
Use operator defaults when you want one preferred provider and model across runs without editing every factory worker. Defaults apply only to INFERENCE_WORKER and AGENT_WORKER entries that omit modelProvider or model. Authored worker values stay as written. Script workers and poller workers never receive operator defaults. The runtime fills omitted fields in memory at startup and does not persist those fills into factory.json.Default config path:
Example operator config:
Environment overrides (each field independently):
| Variable | Purpose |
|---|---|
| YOU_DEFAULT_WORKER_MODEL_PROVIDER | Overrides defaults.workerModelProvider from the config file |
| YOU_DEFAULT_WORKER_MODEL | Overrides defaults.workerModel from the config file |
Global CLI flags (highest precedence per field):
| Flag | Purpose |
|---|---|
| --default-worker-model-provider | Overrides file and environment for the worker model provider |
| --default-worker-model | Overrides file and environment for the worker model |
You Configuration Schema
The live you-config schema is the contract for ~/.you-agent-factory/config.json. defaults holds operator model preferences parsed from file before env and flag resolution. workerPresets names reusable file-only worker model presets. backendScopeID identifies the local provider-backed runtime boundary. Open the full schema and API references when you need exhaustive contract lookup beyond this teaching embed.You operator and system configuration
objectThe shared .you-agent-factory/config.json contract owned by the Operator Settings service.
- additionalProperties
false (closed)
Fields
- backendScopeID
backendScopeIDOptionalstringStable identifier for the local provider-backed runtime boundary owned by operator_settings.
- defaults
defaultsOptionalobjectOperator defaults parsed by operator_settings from file before env/flag resolution.
- additionalProperties
false (closed)
- additionalProperties
- runtime
runtimeOptionalobjectRuntime observability settings loaded from operator configuration before command-line overrides.
- additionalProperties
false (closed)
- additionalProperties
Named worker model presets parsed from file only.
Named Factories
Named factories are persisted factory definitions under a factory root. The project-local root defaults to ./factory (or the path you pass with --dir). The global shared root is ~/.you-agent-factory/factories. Use you run --named <name> to resolve a canonical persisted name: project-local first, then the global shared root, then built-in catalog materialization on first use. Listing, saving, updating, and deleting always target exactly one root via --dir; they never merge project-local and global entries in one command.Global shared factories root:
Default project-local root:
Factory Name Contract
The live FactoryName definition is the customer-facing identifier for one stored named factory. Named resolution and factory-session lookup use that identity. Exhaustive Factory field inventories stay on the full schema and API reference pages.FactoryName
stringCustomer-facing identifier for one stored named factory. `GET /factory-sessions/~default/factory` may also return the reserved `UNDEFINED` identifier when the active runtime is still the default root factory and no durable current-factory pointer exists. Semantic validation failures return `INVALID_FACTORY_NAME`, including attempts to activate a named factory with the reserved identifier.
- pattern
^(UNDEFINED|[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)$ - minLength
1
Factory Runner Versus Operator Defaults
Factory-level runner in factory.json is topology-owned and distinct from operator model defaults. The live RunnerID contract lists built-in runner identifiers for factory and workstation runner selection. Operator defaults do not rewrite runner fields. Set operator defaults or author modelProvider on workers when you need a preferred model worker provider — do not expect runner to stand in for operator defaults.RunnerID
stringStable built-in runner identifiers supported by factory and workstation runner selection.
- enum
"codex" | "claude" | "antigravity"
How To Use
Create ~/.you-agent-factory/config.json with defaults.workerModelProvider and defaults.workerModel when you want one preferred provider and model across runs. Override a single invocation with YOU_DEFAULT_WORKER_MODEL_PROVIDER and YOU_DEFAULT_WORKER_MODEL, or with --default-worker-model-provider and --default-worker-model on the root you command. Precedence is independent per field: file, then env, then flag. For named factories, list one root at a time, run with you run --named, and save or update under the --dir root you intend to own. Use the factories configuration page when you need factory.json topology instead of operator or global factory settings. Packaged @you/* invocation signatures stay on their sibling docs surfaces.List named factories under the project-local root:
List named factories under the global shared root:
Run a named factory (project-local first, then global, then built-in materialization):
Save a named factory under a chosen root:
Update an existing named factory under a chosen root:
Limits And Assumptions
This page is the web operator-defaults and global / named-factories reference. It is not a sync of packaged CLI docs, not the factory.json topology overview, not workers, workstations, or resources field dumps, not packaged @you/* invocation deep dives, not factory-session, and not submitting-work. Use the related factories and documentation links for factory.json topology, CLI command surfaces, and worker field contracts. Operator-default startup failures stay short here: missing config continues with no defaults; malformed config, unsupported providers, and DEFAULT without a concrete lower-precedence provider fail before dispatch. Exhaustive System config and Factory field inventories live on the schema and API reference pages linked from the schema sections.Operator-default failure modes:
| Condition | Behavior |
|---|---|
| Missing ~/.you-agent-factory/config.json | Startup continues with no operator defaults |
| Malformed config JSON | Fails before service construction; error names the config path |
| Unsupported workerModelProvider | Fails before dispatch with accepted provider summary |
| DEFAULT without a lower-precedence concrete provider | Fails before dispatch with resolution guidance |
| Authored worker modelProvider or model | Operator defaults do not override authored values |