Documentation Index
Fetch the complete documentation index at: https://docs.replicas.dev/llms.txt
Use this file to discover all available pages before exploring further.
Configure repositories with replicas.json or replicas.yaml
Replicas looks for a configuration file at the root of your Git repository. It runs setup commands when workspaces start, so every agent begins with the right dependencies and environment.
Supported filenames (checked in order):
replicas.jsonreplicas.yamlreplicas.yml
File schema
JSON format
YAML format
YAML is especially useful for multiline system prompts:separate: false:
Fields
warmHook(optional) - object containing shell commands to run during pre-warming. Same schema asstartHook:timeout(optional) - timeout in milliseconds. Defaults to 300000 (5 minutes). Applies per individual command by default. Whenseparate: false, this is the timeout for the entire combined script.commands- array of shell commands. Commands run sequentially during warm pool creation. Ideal for slow installs and builds.separate(optional) - defaults totrue. Each command runs in its own shell process with an independent timeout. Set tofalseto run all commands as a single script in one shell session, sharing environment variables and working directory changes between commands.
startHook- object containing shell commands to execute when the workspace starts:timeout(optional) - timeout in milliseconds. Defaults to 300000 (5 minutes). Applies per individual command by default. Whenseparate: false, this is the timeout for the entire combined script.commands- array of shell commands. Commands run sequentially in the workspace directory. Perfect for installing dependencies, building projects, or running setup scripts.separate(optional) - defaults totrue. Each command runs in its own shell process with an independent timeout. Set tofalseto run all commands as a single script in one shell session, sharing environment variables and working directory changes between commands.
systemPrompt(optional) - custom instructions for coding agents in the workspace.
Start hooks
Start hooks run automatically when the engine starts up. Each command runs in its own shell process by default, with a 5-minute timeout per command. Setseparate: false to run all commands as a single script in one shell session where environment variables, cd changes, and other shell state carry over between commands.
Warm hooks
Warm hooks run during pre-warming, before a workspace is assigned to a user. Like start hooks, each command runs in its own process by default. Setseparate: false to run them as a single script with shared shell state. Use warm hooks for expensive setup like dependency installs and builds so workspaces provision instantly. See Warm Hooks for full details on warm pools, execution order, and limits.
System prompts
ThesystemPrompt field provides custom instructions that agents follow throughout the workspace.
YAML’s block scalar syntax (|) makes long system prompts easy to read and maintain:
Initializing a config file
Use the CLI to create a config file:Best practices
- Commit your config file to your repo so all workspaces use the same setup.
- Use
warmHookfor slow installs and builds, and keepstartHooklightweight for session-specific setup. - Keep
startHookcommands fast. Agents wait for setup to complete before starting work. - Test hooks locally before committing to ensure they work on CI systems too.
- Use YAML format if your system prompt is long or multiline — it’s easier to read and maintain.