Ren

Organization

The root of the .ren folder holds what every space in your organization shares: settings in org.yaml and instructions in instructions.md.

Declare the organization

Every spec needs org.yaml. The smallest one sets nothing:

org.yaml
settings: {}

settings is the only key, because the organization’s name, logo and members stay in the app. The organization’s instructions go in instructions.md next to it, and its memory in memory/; see Instructions and memory.

Settings

The same settings keys work at three levels: in org.yaml, in a space’s space.yaml and in an agent’s agent.yaml. All of them are optional.

KeyWhat it sets
modelThe default model: endpointId, modelId and an optional variant
defaultModelsModels for other types, such as image generation or audio transcription
stepsThe limit on model calls in one run (Max steps in the app), from 1 to 1000. The default is 100.
permissionsPermission rules
referencesRepositories that chats read

This org.yaml asks before every git push, never lets agents edit .env files and gives every chat the example app:

org.yaml
settings:
  steps: 150
  permissions:
    - action: shell
      resource: git push *
      effect: ask
    - action: edit
      resource: "*.env"
      effect: deny
  references:
    - alias: example-app
      repository: https://github.com/acme/example-app
      description: The Acme web app, its API and its tests.

Permissions

A rule has an action, a resource pattern and an effect of ask or deny. Actions without a rule are allowed.

ActionResource
readA file path, such as secrets/*
editA file path, such as *.env
shellA command, such as git push *
webfetchA URL
websearchA search query

Permissions explains the patterns.

References

A reference needs an alias, the repository address as https://<host>/<owner>/<repo>, and a description. Write the description with care, because Ren reads it to decide which repository a request is about. To read a branch other than the default, add branch, such as branch: develop.

Models

Model IDs come from your model providers and are awkward to type by hand. Pick the model in the app and run ren infra pull, which writes the model block for you.

How levels combine

A chat starts from the organization’s settings, then adds its space’s, then its agent’s. How they combine depends on the key:

KeyResult
instructionsAll of them, in that order
modelThe chat’s model, else the agent’s, the space’s, then the organization’s: the first one that is available
stepsThe agent’s, else the space’s, else the organization’s
permissionsAll rules; the strictest wins
referencesAll of them. When two use the same alias, the agent’s wins over the space’s, and the space’s over the organization’s.