Custom prompt discovery and expansion helpers.
Summary
Functions
Expands a prompt's content using positional or named arguments.
Lists custom prompts from $CODEX_HOME/prompts (or a provided directory).
Types
Functions
@spec expand(prompt() | map() | String.t(), String.t() | [String.t()] | map() | nil) :: {:ok, String.t()} | {:error, map()}
Expands a prompt's content using positional or named arguments.
If the prompt contains named placeholders (e.g. $USER), the args must be
provided as KEY=value pairs. Otherwise positional arguments expand $1..$9
and $ARGUMENTS.
Lists custom prompts from $CODEX_HOME/prompts (or a provided directory).
Options
:dir- override prompt directory:exclude- list of prompt names to skip