In a significant update for developers looking to offload complex or time-consuming tasks, Codex has unveiled a new 'Goals' functionality. This feature allows users to set persistent objectives for Codex, enabling it to work autonomously towards achieving them over extended periods, potentially spanning hours or even days.
The 'Goals' feature integrates seamlessly into both the Codex application and its command-line interface (CLI), offering developers a versatile tool for managing intricate projects. Once a goal is defined, Codex will dedicate its processing power to achieving it, only ceasing when the objective is met or if the user chooses to pause or modify the task.
The full discussion can be found on OpenAI Youtube's YouTube channel.
Defining and Pursuing Goals
The process for utilizing the 'Goals' feature begins by typing `/goal` in the message composer, which activates the goal-setting mode. From there, users can articulate their desired outcome. The system demonstrates this by showing an example of migrating a JavaScript codebase to TypeScript. The goal specifies that the application should compile in strict mode without explicit 'any' type definitions, and the codebase should be split into multiple files for easier maintenance. A subsequent refinement suggests translating tests to TypeScript using Vitest.
The video illustrates how Codex can handle goals with measurable targets. For instance, a goal might be to reduce the time to interactive of a homepage to below one second, requiring clear test criteria to be met. If users find it challenging to articulate their goals precisely, Codex can assist by first planning the implementation or by interviewing the user to gather more detailed requirements before formalizing the goal.
