feat: grounding in documentation
Resolved 💬 3 comments Opened Apr 17, 2025 by kendonB Closed Aug 7, 2025
💡 Likely answer: A maintainer (tomascupr, contributor)
responded on this thread — see the highlighted reply below.
This would be a tool that searches specifically for relevant documentation when unsure about syntax or arguments.
The models have fairly good knowledge of these but still make mistakes especially for niche packages/languages.
The logic to do this should be similar to what a human would do (a last resort): try using what you remember first, observe errors, fix using what you remember, observe persistent errors, check online, damn still not working, check docs, record the lesson in the memory.
3 Comments
https://github.com/openai/codex/pull/277
Further to the discussion in #277 (now closed and locked), here are some findings from Simon Willison doing exactly exactly this:
Thanks for the feedback! Please try the latest version of Codex CLI, as we're actively working on improvements. If the issue persists, feel free to report it again.