Expand description
Render a loaded compose into on-disk artifacts.
Outputs under <root>/state/:
envs/<project>-<agent>.env— env vars for the agent wrapper.mcp/<project>-<agent>.json— MCP stdio config for the runtime.claude/<project>-<agent>.json— wrapper-managed Claude Code settings (currently aPreToolUsedeny hook for synchronous-prompt tools that strand a headless pane). Claude-code agents only.role_prompts/<project>-<agent>.md(multi-file role_prompt only) — the ordered concatenation of every source file declared in the role’srole_prompt: [...]list. Re-materialized on every render so any source-file edit lands in the agent’s prompt at next boot.
systemd / launchd unit rendering lives behind a feature flag when
those back-ends are enabled via supervisor.type.
Functions§
- claude_
settings_ path - Absolute path to the wrapper-managed Claude Code settings file. The
file carries the default
PreToolUsedeny hook for synchronous-prompt tools (AskUserQuestion,EnterPlanMode,ExitPlanMode) so a headless agent doesn’t strand on a picker no one will answer. The wrapper applies it viaclaude --settings <path>for every claude-code agent except those inpermission_mode: attended. - env_
path - Absolute path to the rendered env file for a given agent.
- mcp_
path - Absolute path to the rendered MCP config for a given agent.
- render_
agent - Rendered env + MCP content for a single agent.
- render_
claude_ settings - Wrapper-managed Claude Code settings JSON for a single agent. Returns
Some(json)forclaude-coderuntime regardless ofpermission_mode— the wrapper decides whether to apply it. ReturnsNonefor runtimes that don’t read Claude settings (codex, gemini, …). - role_
prompt_ concat_ path - Absolute path to the materialized concatenation of a multi-file
role_promptlist. Only ever written for the list form — single-filerole_promptkeeps pointing at its source path directly. - system_
prompt_ path - Resolve the absolute path that
SYSTEM_PROMPT_PATHwill point at. - write_
role_ prompt_ concat - Materialize the multi-file
role_promptconcatenation for one agent.