Documentation
¶
Overview ¶
Package agents renders the five Codex agent TOMLs `orch render-agents` writes into <repo>/.codex/agents/ (PRD §22): each file's model and model_reasoning_effort are substituted from the effective configuration's hosts.codex.roles, but the surrounding body — name, description, developer_instructions — is the canonical shipped text embedded from adapters/codex/agents/*.toml (adapters/codex/embed.go's AgentTOMLs). That embed is the one source of truth: this package never carries its own copy of the prose, so the shipped plugin files and this package's rendered output cannot silently diverge from one another.
Index ¶
Constants ¶
const Dir = ".codex/agents"
Dir is the repo-relative, slash-form destination directory `orch render-agents` writes into. It is a machine-local artifact (like config.local.toml), not a committed one: a repository's own .gitignore, not this package, decides whether it is tracked.
Variables ¶
This section is empty.
Functions ¶
func Write ¶
Write atomically writes each of files into repoRoot's Dir, creating the directory if absent and overwriting any existing file: a temp file in the same directory, synced, then renamed over the destination (internal/config.WriteLocal's shape, which also replaces atomically on Windows). On any single file's failure the files written before it are left in place; the failing file's own prior content, if any, is left untouched and its temp file removed on a best-effort basis.