Ren

Spaces

Each shared space is a folder in spaces/. The folder’s name is the space’s slug, and a space.yaml inside describes it.

Declare a space

All a space needs is a space.yaml with a name:

spaces/engineering/space.yaml
name: Engineering

Everything else the space has goes in the same folder: its instructions, memory, agents, apps, automations and channels. Configuration files shows where each one goes.

Fields

KeyWhat it sets
nameRequired. The name shown in Ren.
descriptionThe space’s description
settingsThe space’s model, steps, permissions and repositories. See Organization → Settings.
brainScope, brain, handWhere the space’s chats run. See Runtime.
usesAgents of other spaces that this space uses. See Agents.
factoryThe space’s factory. See Factory.
renamedFromEarlier slugs. See Rename, move and remove.
spaces/engineering/space.yaml
name: Engineering
description: Plans, builds and reviews the Acme example app.
settings:
  permissions:
    - action: shell
      resource: rm -rf *
      effect: deny

Runtime

A space’s chats run on two kinds of machine. The brain runs the agent itself, and the hand runs the agent’s file and shell tools. brainScope, brain and hand choose them, as the space’s Compute page does. Most spaces can leave all three out and use the defaults.

KeyValuesDefault
brainScopespace (Per space): all chats share one brain. session (Per chat): each chat gets its own.space
brain.providerWhere the brain runs. ren environment provider brains lists the choices.Ren’s default provider
brain.environmentA machine of that provider, by its name in environments.yamlRen’s standard machine
hand.placementcolocated: tools run on the brain’s machine. remote: on the machine that hand.environment names. none: no file or shell tools.colocated
hand.environmentA machine, by its name in environments.yaml. Required with remote.

This space gives each chat its own brain and runs its tools on the Web build machine, which environments.yaml declares:

spaces/engineering/space.yaml
name: Engineering
brainScope: session
hand:
  placement: remote
  environment: Web build

A runtime change takes effect when the brain next starts. Compute explains when that is, and how to shut the space down to apply the change now.

Remove a space

Deleting a space’s folder archives the space along with its agents, apps, automations and channels. The organization’s first space is the exception: Ren never archives it.

Personal spaces

The spec covers shared spaces only, so pull leaves personal spaces out. They still share names with the rest of the organization: a shared space can’t take a personal space’s slug, and an agent can’t take the name of an agent in one.