fix: improve custom prompt documentation and actually use prompt descriptions (#5332)

Expand the custom prompts documentation and link it from other guides. Show saved prompt metadata in the slash-command popup, with tests covering description fallbacks.
This commit is contained in:
Thibault Sottiaux
2025-10-18 15:58:31 -07:00
committed by GitHub
parent 11c019d6c5
commit c81e1477ae
4 changed files with 100 additions and 21 deletions

View File

@@ -59,6 +59,8 @@ Below are a few bite-size examples you can copy-paste. Replace the text in quote
| 6 | `codex "Carefully review this repo, and propose 3 high impact well-scoped PRs"` | Suggests impactful PRs in the current codebase. |
| 7 | `codex "Look for vulnerabilities and create a security review report"` | Finds and explains security bugs. |
Looking to reuse your own instructions? Create slash commands with [custom prompts](./prompts.md).
### Memory with AGENTS.md
You can give Codex extra instructions and guidance using `AGENTS.md` files. Codex looks for `AGENTS.md` files in the following places, and merges them top-down: