The problem
A small software team has no night shift. When a background job stops or a dashboard turns red at 3 a.m., nobody sees it until the morning, and the first hour of the day goes to reading logs instead of fixing the cause. Worse, several unrelated problems often get counted as one, so the team chases the wrong thing.
Architecture
- Channel
- Schedule (nightly runs)
- Agent
- Reads dashboards and logs
- Separates causes, drafts fixes
- Writes the incident report
- Tools
- Codex scheduled task
- Your repo and error dashboard
- Human
- Engineer reviews and merges
Where the data stays: Logs and code stay in your own repo and environment; the agent writes only inside the project and never changes production data or contacts a customer.
Design flow
- A nightly run reads the dashboard and the logs
- A spike is found and grouped by cause
- Expected cases are split from real failures
- A decision is needed: the on-call engineer is paged insteadOnly sometimes
- Fixes and the dashboard change are drafted with a report
- Engineer reads the report, reviews and merges in the morningHuman checkpoint
Setup
Total time: 2 h 55 min our estimate
- 1 h
Done when: One page names the three systems to watch, where their logs and dashboard are, the thresholds, the expected cases that are not failures, and the one rule: no production data changes, no customer contact.
- 45 min
Done when: With the project open in the ChatGPT desktop app, the prompt above returns a grouped list of failures by cause with log lines and a draft report for last night, and nothing was written outside the project.
Starter prompt
Written from how the use case works and its sources. Replace the parts in square brackets.
The starter prompt opens with the members steps above.
Risks and data
Data
Logs can contain customer identifiers and credentials: keep the agent inside your own environment, mask secrets in logs before it reads them, and never let it change production data or write to a customer.
How it goes wrong
It goes wrong when the agent fixes the symptom and hides the cause (a dashboard that stops counting), when a drafted fix is merged without a read, or when the schedule runs with wider access than the job needs. The first sign is a quiet dashboard with unhappy customers. Keep the report as the product, the merge as the human step, and the agent's access as narrow as the job allows.
How the agent works
It starts
An engineer configures Codex to run on a schedule: it checks the company's systems, spots errors, drafts fixes or routes urgent issues to the right person.
The agent works
Large assignments can be queued at night so the team wakes up to work to review and merge. , read through tens of thousands of log lines and found two unrelated problems being counted together: about a third came from a background system that had stopped revalidating workflows, and most of the rest were customers with no remaining credits that the dashboard labelled as system failures. The agent corrected the workflow, changed the reporting logic so the dashboard separates the two cases, and documented the incident. m. reported failures were back to normal. The human checkpoint is the morning: the engineer reads the incident report and reviews and merges what the agent drafted.
The result
In your own build, set the agent's permissions so it cannot reach beyond the project.
Worked example
Goliath Data, a Chattanooga real estate platform that grew from three people to about 20 (OpenAI Academy story, 14 August 2026), scans tens of thousands of county records a day. Software engineer Brian Przezdziecki configured Codex to work on a schedule, checking company systems, spotting errors and drafting fixes or routing urgent issues to the right person; large assignments are queued at night and the team wakes up, in his words, to a plethora of work to review and merge. One July night a scheduled Codex agent caught a spike in owner lookup failures around 3 a.m., about half an hour after the dashboard turned red; reported failures approached 99%. It reviewed tens of thousands of log lines and found two unrelated problems counted together: roughly one third from a background system that had stopped revalidating workflows, and most of the rest customers with no remaining credits labelled as system failures. The agent corrected the workflow, fixed the reporting logic so the dashboard would separate the two cases and documented the incident. By 5:40 a.m. reported failures were back to normal, and the team woke to the incident report rather than an open outage.
The source names Codex. OpenAI's own pricing page lists ChatGPT Work and Codex as included in every ChatGPT plan from Free to Enterprise, and its scheduled tasks page describes recurring runs in the ChatGPT desktop app (local projects, the computer stays on) or in the cloud, with results landing in a Scheduled inbox; availability depends on your plan and workspace settings, so check yours. Claude Code runs the same pattern with its own scheduled routines. Both run unattended under the sandbox you choose: keep writes inside the project.
Join the Agent OS Club
Get hours back with a team of AI agents for every department, set up step by step for the tools you use, with a person answering your questions. Founding member price: USD 14.95 a month or USD 150 a year, locked for as long as you stay. Cancel any time.
Founding offer, ends 31 December 2026 or at member 100
Join the Agent OS ClubBuilding this for an organization? Learn more at theagentiv.com
Sources
- https://academy.openai.com/public/blogs/goliath-data-from-three-people-to-20-in-chattanooga
- https://learn.chatgpt.com/docs/automations
- https://learn.chatgpt.com/docs/pricing
Published: 2026-11-17