# Automate tasks with the Codex app

Source: https://www.youtube.com/watch?v=xHnlzAPD9QI
Recap page: https://rapidrecap.app/video/xHnlzAPD9QI
Generated: 2026-02-03T18:38:08.486+00:00

---
## Quick Overview

Andrew Ambrosino from OpenAI demonstrates how the Codex application allows users to automate specific software development tasks, such as generating daily engineering briefs or ensuring pull requests are green, by creating scheduled, context-aware automations.

**Key Points:**
- Andrew Ambrosino, representing Codex at OpenAI, demonstrates the automation features within the Codex application.
- One key automation demonstrated is the "Daily Brief" which scans the last 24 hours of commits in a specified workspace (codex-vscode) and produces an execution briefing formatted with Markdown.
- Another automation, "Green PRs," checks for open pull requests (PRs) using a GitHub tool and fixes any CI failures, only updating PRs that need updating against the base branch.
- The automations use memory, remembering previous issues (like merge conflicts or linting errors) to improve future runs, leading to more precise fixes and better context awareness.
- The user interface displays a list of automations with their status (e.g., 'in progress', 'starts in 14m', 'paused') in the left sidebar.
- Ambrosino notes that while these automations are highly useful, users occasionally need to manually intervene or 'tinker' with the prompts for perfect execution, especially concerning complex merge conflicts.

![Screenshot at 00:20: Andrew Ambrosino begins detailing the setup of a scheduled automation named "Daily Brief," which is configured to run periodically and analyze recent commits.](https://ss.rapidrecap.app/screens/xHnlzAPD9QI/00-00-20.jpg)

**Context:** The video features Andrew Ambrosino of OpenAI showcasing the capabilities of the Codex application, specifically focusing on its automation features designed to streamline software development workflows. The demonstration centers around setting up custom, scheduled tasks that leverage the Codex AI model to interact with code repositories, such as checking PR status, fixing CI failures, and generating summaries of recent code activity.

## Detailed Analysis

Andrew Ambrosino from OpenAI details how the Codex application enables developers to automate routine, time-consuming tasks directly within their workflow. He illustrates this by showing the 'Automations' tab on the left panel of the application interface, which lists various existing tasks like 'Cleanup,' 'Green PRs,' and 'Daily Brief.' He elaborates on the 'Daily Brief' automation, which is configured to look at the latest remote origin/master or origin/main commits from the last 24 hours and produce an execution briefing using specific Markdown formatting rules, including a preamble and grouped narrative walkthroughs. He then shows the 'Green PRs' automation, designed to use a GitHub tool (`gh tool`) to check for open PRs, fix CI failures, and handle base branch updates intelligently. A critical feature highlighted is that these automations possess memory; they remember previous issues, such as merge conflicts or errors that caused CI failures, allowing them to resolve similar issues more effectively in subsequent runs. While this automation significantly reduces manual work—likening it to a personalized GPT pulse every morning—Ambrosino admits that issues like complex merge conflicts sometimes require manual intervention or refinement of the automation prompts to achieve perfect results.

### Automation Overview

- Demonstrating the Automations tab interface
- Listing existing tasks like 'Daily Brief' and 'Green PRs'
- Highlighting automation status indicators (in progress, scheduled times)

### Daily Brief Automation Setup

- Prompt instructs Codex to produce an exec briefing on the last 24 hours of commits in the 'codex-vscode' workspace
- Formatting requires rich Markdown, specific preamble, and narrative walkthrough subtitles

### Green PRs Automation Logic

- Checks for open PRs and fixes CI failures using a GitHub tool
- Automates base branch updates and handles permissions issues for merges
- Utilizes memory to resolve recurring issues like formatting or merge conflicts

### Value Proposition

- Automations provide a personalized AI pulse every morning, automating tasks that are otherwise tedious or time-consuming
- Improves efficiency by proactively handling PR hygiene and reporting

![Screenshot at 00:13: The main application interface showing the 'Automations' list on the left sidebar and a central area prompting the user to 'Let's code'.](https://ss.rapidrecap.app/screens/xHnlzAPD9QI/00-00-13.jpg)
![Screenshot at 00:20: The 'Edit automation' modal open, displaying the detailed prompt instructions for the 'Daily Brief' automation, including formatting requirements.](https://ss.rapidrecap.app/screens/xHnlzAPD9QI/00-00-20.jpg)
![Screenshot at 00:36: The two speakers discussing the functionality, with Andrew Ambrosino gesturing while referring to the laptop screen.](https://ss.rapidrecap.app/screens/xHnlzAPD9QI/00-00-36.jpg)
![Screenshot at 03:26: The 'Edit automation' modal showing the specific prompt for the 'Green PRs' task, detailing CI failure fixing and base branch updating logic.](https://ss.rapidrecap.app/screens/xHnlzAPD9QI/00-03-26.jpg)
![Screenshot at 04:31: The OpenAI logo displayed after the main discussion segment concludes.](https://ss.rapidrecap.app/screens/xHnlzAPD9QI/00-04-31.jpg)
