Ren

Apps

A custom app packages the tools you give your agents: MCP servers, skills, the secrets they need and the webhooks they offer. Each one is a folder in apps/ of the space that owns it.

Declare an app

An app needs an app.yaml with a name and a description. It can also have a mcps.yaml for its MCP servers and a skills/ folder with one folder per skill:

spaces/engineering/apps/engineering-tools/
├── app.yaml
├── mcps.yaml
└── skills/
    └── code-review/
        └── SKILL.md
spaces/engineering/apps/engineering-tools/app.yaml
name: Engineering tools
description: Review and release tools for acme/example-app.

The folder’s name is the app’s slug. It must be unique across all of Ren, not just your organization.

When apply creates an app, Ren also creates its first shared profile, which holds the app’s sign-ins and secrets for the owner space.

Field in app.yamlWhat it sets
nameRequired. The name shown in Ren.
descriptionRequired. What the app does.
iconAn https:// address of the app’s logo
dependsOnSlugs of apps it includes. See Dependencies.
requiredCredentialsThe secrets the app needs. See Secrets.
environmentPackages and commands for the machine. See Setup packages.
webhooksWebhooks that a space can turn on. See Webhook presets.

MCP servers

mcps.yaml lists the app’s MCP servers, keyed by slug:

spaces/engineering/apps/engineering-tools/mcps.yaml
docs:
  name: Docs
  description: Searches the acme engineering docs.
  transport:
    type: remote
    url: https://docs.acme.example/mcp
  auth:
    type: bearer
    credential: bearerToken
  requiredCredentials:
    - kind: secret
      name: bearerToken

transport says where the server runs. A remote server is at an https:// url. A local server runs on the space’s machine from a command, with optional cwd and env.

auth says what each profile supplies so Ren can sign in to the server:

auth.typeEach profile suppliesOther keys
noneNothing
oauthA sign-intokenEndpointAuth
bearerA secret, sent as Authorization: Bearercredential
header, queryA secret, sent in the header or query parameter you namecredential, name
basicA username and a passwordusername, password

credential, username and password each name a secret, which the server lists under requiredCredentials as in the example. See Secrets.

Skills

Each skill is a folder under skills/, named after the skill. It holds either the skill’s own files or a pointer to them on GitHub.

Skill files

SKILL.md starts with frontmatter that has a name, which must match the folder’s name, and a description. Every other file in the folder is part of the skill and must be text:

skills/code-review/
├── SKILL.md
└── references/
    └── rules.md
spaces/engineering/apps/engineering-tools/skills/code-review/SKILL.md
---
name: code-review
description: Reviews a pull request of acme/example-app against Acme's review rules.
---

Read the diff, then check it against references/rules.md.

Ren keeps a copy of these files, so to update the skill, edit them and apply. If the skill already lives in a GitHub repository, point to it instead, so there’s one place to edit.

Skills from GitHub

For a public skill, or one you keep in a repository, put a skill.yaml in the folder in place of SKILL.md. Ren then reads the skill from GitHub.

spaces/engineering/apps/engineering-tools/skills/release-notes/skill.yaml
upstream:
  url: https://github.com/acme/agent-skills
  ref: main
  path: skills/release-notes
KeyWhat it sets
urlThe repository’s address, https://github.com/<owner>/<repo>
pathRequired. The folder in the repository that holds SKILL.md, or . for the repository’s root
refA branch, a tag or a full 40-character commit. Without it, the repository’s default branch.

With a branch, a tag or no ref, the skill follows new commits without an apply: Ren checks for them at most every 5 minutes. To freeze a skill until you decide to update it, set ref to a commit.

Ren reads skills from GitHub only. A public repository needs no setup. For a private one, connect GitHub for your organization and give the Ren app access to the repository.

Secrets

The spec never holds a secret’s value. It only names the secrets the app needs, under requiredCredentials. Each profile then gets its own values, which someone enters in the app or with the CLI.

spaces/engineering/apps/engineering-tools/app.yaml
name: Engineering tools
description: Review and release tools for acme/example-app.
requiredCredentials:
  - kind: env
    name: DEPLOY_TOKEN
    description: A token for the deploy API.

There are two kinds:

  • kind: env is an environment variable that the app’s commands read. Declare it in app.yaml, or with the skill that needs it.
  • kind: secret is a value that an MCP server’s auth uses. Declare it with that server in mcps.yaml.

A skill declares its own under metadata in the frontmatter of SKILL.md, or next to upstream in skill.yaml:

spaces/engineering/apps/engineering-tools/skills/changelog/SKILL.md
---
name: changelog
description: Publishes the changelog of acme/example-app.
metadata:
  requiredCredentials:
    - kind: env
      name: CHANGELOG_TOKEN
---

Publish the changelog of the last release.

Add optional: true to a secret the app can work without. A profile then connects without it, and only the part that needs it fails.

Don’t put a secret in a local MCP server’s env. Those values are plain text that anyone who can read the app sees.

Dependencies

dependsOn lists other apps that this app includes. A space that adds the app gets those apps too, and one profile connects all of them.

spaces/engineering/apps/engineering-tools/app.yaml
name: Engineering tools
description: Review and release tools for acme/example-app.
dependsOn: [release-tools]

A dependency can be one of your organization’s apps or one from the registry.

Setup packages

If the app’s tools need software installed, list it under environment. Ren installs the packages and runs the commands on the machine where a chat runs its tools:

spaces/engineering/apps/engineering-tools/app.yaml
name: Engineering tools
description: Review and release tools for acme/example-app.
environment:
  packages:
    apt: [jq]
    npm: [vercel]
  buildCommands:
    - vercel --version

packages also takes pip and go lists. For software that every chat in a space needs, build it into the space’s machine instead.

Webhook presets

An app can offer ready-made webhooks, so each space that uses it doesn’t have to write its own. Declare them under webhooks in app.yaml, keyed by the preset’s slug:

spaces/engineering/apps/engineering-tools/app.yaml
name: Engineering tools
description: Review and release tools for acme/example-app.
webhooks:
  deploy-failed:
    name: Deploy failed
    description: Starts a chat when a deploy of acme/example-app fails.
    message: A deploy failed. Find the cause and report it.
    secret: provider
    setup: |
      1. Open the deploy settings of acme/example-app.
      2. Add a webhook with the URL and the signing secret.

A preset takes the same keys as a custom webhook, such as message, signature and filter, plus three of its own:

KeyWhat it sets
descriptionRequired. What the webhook does.
secretRequired. ren: Ren makes the signing secret when a space turns the preset on. provider: the person who turns it on pastes the secret that the provider gives.
setupRequired. The steps to follow after turning it on, in Markdown

A space turns a preset on in its webhooks.yaml; see App presets. The preset stays in the app, so when you change it, every space that uses it gets the change.