OpenAI 是如何使用 Codex 的
OpenAI是如何使用Codex: 用例1:代码理解 识别核心逻辑;梳理服务和板块之间的关系;追踪数据在系统中的流转;识别架构模式和文档确实的部分 用例2:重构和迁移: 跨文件执行修改操作;拆分模块 用例3:性能优化: 用于识别并解决性能瓶颈问题 …
战个未来吧 · 学习笔记与工程实践
OpenAI是如何使用Codex: 用例1:代码理解 识别核心逻辑;梳理服务和板块之间的关系;追踪数据在系统中的流转;识别架构模式和文档确实的部分 用例2:重构和迁移: 跨文件执行修改操作;拆分模块 用例3:性能优化: 用于识别并解决性能瓶颈问题 …
Best practices Strong first use : Context and Prompts Clear prompting makes results more reliable A good default is to include four things in your prompt: Goal: What are you trying to change or build? Context: Which files, folders, docs, examples, or errors matter for this task? You can @ mention certain files as context. Constraints: What standards, architecture, safety requirements, or conventions should Codex follow? Done when: What should be true before the task is complete, such as tests passing, behavior changing, or a bug no longer reproducing? it is similar to Claude Code Best practices …
Prompting overview Larger task,plz include these parts: Goal Context Output: format,length,level of detail Boundaries Describe the result u need: not detailed list,but needed details those change what AI should produce Add useful context: for example: necessary attach file; visual work: screenshot,image;and point out which area matters web search: Explicitly( 显式地 ) ask to use Web Search in the conversation. share resources: using a directory Use connected sources: name where it should look and what if should find …
Skills & Plugins Helps to complete repeatable work with the right instructions,resources,and tools,They reduce the need to paste the same prompt ,template,requirements,or process into every chat. Skill: A skill packages instructions and supporting resources for a specific task or workflow. Plugin: A plugin is an installable bundle that can include skills, connectors, or both. Connectors are backed by Model Context Protocol (MCP) servers and can optionally include custom ChatGPT UI. …
Personalize GPT set preference and carry useful context across chats: Choose a personality: Friendly, pragmatic,or None Add custom instructions: In your global AGENTS.md Carry context forward with memories: Memories are separate from required project guidance. Keep instructions that must always apply in AGENTS.md or checked-in project documentation. Add recent activity with Computer History Review what Computer History includes before enabling it Manage personalization: pen Settings to update your personality, custom instructions, memories, and other available personalization controls. See ChatGPT desktop app settings for an overview of everyday preferences.
Custom instructions with AGENTS.md agents.md is read before doing any work How codex discovers guidance: The instruction chain: 1.Global scope: in your Codex directory(default~/.codex): u can also use AGENTS.override.md,but only the first non-empty AGENTS.md is read 2.Project scope: At the project root in each directory along the path,it checks for AGENTS.override.md ,then AGENTS.md,then any fallback names in project_doc_fallback_filenames. Codex includes at most one file per directory 3.Merge order: The later ,the higher : because they appear later in the prompt …