Use This Hidden Feature To Make Your Notion Agents Autonomous
This guide teaches a Notion workflow that makes custom Notion Agents more autonomous than they are by default.
This guide teaches you how to set up OpenAI Codex in Cursor, run Codex in the cloud from your phone, and configure Codex to review your code automatically. You’ll produce a Codex-ready project setup and a workflow for local coding, cloud tasks, and pull request reviews.
Rundown Pro
Every course and recording, the certification program and member perks, for $29 a month. Guides stay free.
Step 1 of 6
For this guide, use the Cursor extension because it keeps your agent chat separate from your terminal. If you use VS Code or Windsurf, you can follow along as well.
Go to https://developers.openai.com/codex/quickstart/ and select your IDE, then follow the brief download instructions.
Step 2 of 6
Open a project in Cursor. Press CMD+Shift+P, search for Codex, and select New Codex Agent.
You should see a Codex agent window open.
Ask the agent to create an AGENTS.md file from your project files.
Create an AGENTS .md file based on the project files.If you’re starting from scratch, give Codex your PRD or spec sheet instead.
After it creates AGENTS.md, ask it to initialize git and write a commit if you have not done that yet.
Step 3 of 6
Click the slash button to see available commands.
The most important commands are:
Use the official documentation for the full list of slash commands.
Step 4 of 6
Go to https://chatgpt.com/codex/settings/connectors and connect your GitHub account.
This lets Codex access your repositories and create pull requests from its work. Tasks run in isolated cloud sandboxes, so your local machine stays free.
To access Codex from anywhere, go to chatgpt.com/codex, select a repository and branch, and give it a prompt. Codex will run the code in a virtual environment.
You can edit your project-specific virtual environments so Codex can use your API keys or browse the web.
Step 5 of 6
Codex can automatically review every pull request in the cloud.
Now whenever you open a pull request, Codex will automatically review it.
Step 6 of 6
Cloud-based Codex calls from the web or other connectors do not count against your 5-hour local limit. Use this workflow to save tokens:
Commit these changes to a new branch and submit a new pull request.Mark it complete to keep your progress. The background follows.
These Rundown Pro recordings cover the same tool or topic as this guide.
$29/mo, cancel anytime
You’ll install Codex, connect it to a project, and create an AGENTS.md file that tells Codex about your project. You’ll also explore slash commands and set up automated code reviews.
Check your connection, then try again.