Files
zeekay 901a81abe9 docs: describe this product, and only what it can do
The docs read as OpenAI's Codex CLI: a getting-started page titled for it,
`codex --enable skills` and `code sandbox macos` for commands that do not
exist, defaults given as gpt-5.1-codex-max/openai when they are
zen5-coder/hanzo, a Homebrew page describing a formula we do not publish.

Removed three tui-stream-chunking notes and the execpolicy page: they
document modules and a subcommand that live only in the vendored upstream
copy. There is no execpolicy subcommand and no .codexpolicy loader in
code-rs; the page told users to run something the binary does not have.

Rewrote tui-alternate-screen against the source. It described an
auto/always/never enum and a --no-alt-screen flag; the shipped behavior is a
tui.alternate_screen bool with Ctrl+T, which replays the transcript into
scrollback on the way out — a better answer to Zellij than the one written
down. Genuine openai-provider documentation stays.
2026-08-07 21:51:19 -07:00

1.4 KiB
Raw Permalink Blame History

Custom prompts

Save frequently used prompts as Markdown files and reuse them quickly from the slash menu.

  • Location: Put files in $CODE_HOME/prompts/ (defaults to ~/.code/prompts/; Dev also reads legacy ~/.codex/prompts/).
  • File type: Only Markdown files with the .md extension are recognized.
  • Name: The filename without the .md extension becomes the slash entry. For a file named my-prompt.md, type /my-prompt.
  • Content: The file contents are sent as your message when you select the item in the slash popup and press Enter.
  • Arguments: Local prompts support placeholders in their content:
    • $1..$9 expand to the first nine positional arguments typed after the slash name
    • $ARGUMENTS expands to all arguments joined by a single space
    • $$ is preserved literally
    • Quoted args: Wrap a single argument in double quotes to include spaces, e.g. /review "docs/My File.md".
  • How to use:
    • Start a new session (Dev loads custom prompts on session start).
    • In the composer, type / to open the slash popup and begin typing your prompt name.
    • Use Up/Down to select it. Press Enter to submit its contents, or Tab to autocomplete the name.
  • Notes:
    • Files with names that collide with built‑in commands (e.g. /init) are ignored and won’t appear.
    • New or changed files are discovered on session start. If you add a new prompt while Dev is running, start a new session to pick it up.