Developer Guide

How to Edit Videos With Codex and Automate Social Media

December 1, 2026 · By Sabrina Ramonov

How to edit videos with Codex: which setup fits, the 32 KiB AGENTS.md cap, the missing skills fix, and social media automation for the MP4.

Codex terminal editing a vertical reel that flows to a Blotato tile and a comment-to-DM bubble

You can edit videos with Codex today by having it write and run the code that does the cutting: FFmpeg commands, a Remotion or HyperFrames project, or a skill folder that captions and renders on your computer. What Codex works from depends on what it loads, and the defaults load less than you would expect.

When we opened our own skill folder, ContentSkills, in Codex CLI with default settings, Codex read the first 32 KiB of a 44,693-byte instructions file and its skills list showed none of the repo’s 12 skills. One config line and one symlink fixed both. This guide covers those two fixes, a check you can run in your own Codex, the edit route ContentSkills documents for agents, and the step after it: posting the finished MP4 and answering the comments it gets.

How to Edit Videos With Codex at a Glance (2026)

There are five working ways to edit videos with Codex, and they differ in where the edit happens: in your terminal, in code that builds the video, or in an editor app that Codex drives.

PathWhat it editsSetupWhere it breaks
Codex plus FFmpeg, no skillAny file you point atFFmpeg installed, nothing elseCodex writes every command from scratch, and you check each render by watching the file
A local skill folder (ContentSkills and similar repos)Talking-head takes and faceless shortsClone, then a one-time setupCodex lists repo skills only from .agents/skills, and long instructions get cut (both fixable, below)
Remotion’s Codex pluginVideos built as code compositionsInstall from Plugins in the ChatGPT desktop app, then type $remotionYou describe the video as a composition, which suits titles and motion graphics more than trimming a raw take
HyperFrames with CodexYour footage beside a live preview, or projects in your own foldersPick Codex as the agent in the Studio app or browser, or install its Codex plugin for the terminalThe live preview and per-turn undo are in Studio, so the terminal route skips them
ChatCut Desktop over MCPFootage on a real editing timelineInstall the desktop app and connect it to CodexGenerated B-roll spends ChatCut credits on top of your Codex usage

This guide follows the local skill folder, because it keeps footage in a folder you control and the same agent can post the result once Blotato is connected. If you edit by dragging clips on a timeline, pick a row that has one.

ContentSkills is free and open source (AGPL-3.0) and runs on your Codex usage, with optional paid AI footage through kie.ai. HyperFrames Studio is free to start, and Pro is $25 a month for 25,000 credits. Remotion is free for individuals and companies of up to three people. Posting through Blotato starts at $29 a month with no per-post fee, so more posts do not raise the bill, though accounts, DM contacts and the scheduled queue have plan limits.

I founded Blotato, and my team also built ContentSkills, so weigh what follows with that in mind. Posting from Codex needs a paid Blotato plan.

What Codex Saw When We Opened ContentSkills

We cloned ContentSkills, opened Codex CLI 0.171 in the folder on December 1, 2026, and asked it to answer only from the instructions already loaded into the session. No file reads, no commands. Then we ran the same question with -c project_doc_max_bytes=65536, the same setting as the config line below.

Default settings
1. Last heading Codex can see:  ## Styles: the user's look, over any theme
2. Last sentence it can see:    In `colors`, `accent` is the colour that pops, ...
3. "Map for agents" section?    No

project_doc_max_bytes = 65536
1. Last heading Codex can see:  ## Commits to this repository
2. Last sentence it can see:    Commit or push only when the user asks.
3. "Map for agents" section?    Yes

OpenAI’s AGENTS.md guide explains the cut: Codex stops reading project instructions at project_doc_max_bytes, which is 32 KiB by default. The ContentSkills AGENTS.md is 44,693 bytes, so about the last quarter never reaches Codex. That quarter holds the “Map for agents” section, which tells an agent where everything lives so it does not have to read the code.

OpenAI's Codex AGENTS.md guide stating that project_doc_max_bytes defaults to 32 KiB.
OpenAI's Codex AGENTS.md guide stating that project_doc_max_bytes defaults to 32 KiB.

The skills list was the second surprise. Codex looks for repo skills in .agents/skills, and ContentSkills keeps its 12 skills in skills/, linked for Claude Code as .claude/skills. So the session listed Codex’s built-ins and nothing from the repo.

Codex can still reach them, because every skill path the instructions mention, like skills/make-video/SKILL.md, sits inside the first 32 KiB. It just does not know them by name.

What Codex loads from a repo: AGENTS.md cut off at the size cap, repo skills found in .agents/skills, and the two-line fix that loads both.
What Codex loads from a repo: AGENTS.md cut off at the size cap, repo skills found in .agents/skills, and the two-line fix that loads both.

We tested what Codex loads, not a full render. That test is the first-hand part of this guide, and the edit steps below say where they come from.

Two Lines That Load the Whole Toolkit

Run these once and Codex loads the full instructions and lists every repo skill by name.

Raise the instruction limit in ~/.codex/config.toml:

project_doc_max_bytes = 65536

Then link the skills where Codex looks for them, from inside the ContentSkills folder:

mkdir -p .agents && ln -sfn ../skills .agents/skills

Start a new Codex session after both. Codex builds its instruction chain once per session, so an open session keeps the shorter map. With the symlink in place, our test listed all 12 skills, from contentskills:make-video and contentskills:quality-check to contentskills:post-scheduler, and you can call any of them directly with $.

To check your own setup, open a new session in the folder and send a shorter version of the prompt we used:

Answer only from the instructions already loaded. Do not read files or run commands.
Quote the last ## heading of the project AGENTS.md you were given, and list every
skill available in this session.

If the answer is ## Commits to this repository and the list includes the contentskills: skills, both fixes took. The same prompt works on any repo whose AGENTS.md runs long.

One more Codex detail. The repo ships a plugin.json at its root but no .agents/plugins/marketplace.json, the catalog file OpenAI’s plugin docs describe for a repo. The install route the README gives is to tell your agent to set it up.

The ContentSkills repository on GitHub, tagged codex, with its AGPL-3.0 license and the 1.0.0 release.
The ContentSkills repository on GitHub, tagged codex, with its AGPL-3.0 license and the 1.0.0 release.

How to Edit a Video With Codex, Step by Step

This is the ContentSkills route from an empty folder to a finished MP4, taken from the repo’s own instructions for agents. They run as shell commands plus a local web page for the storyboard and review. The setup step still ends by telling you to open Claude Code, so stay in Codex when it says that. We have not rendered a video in Codex yet, so treat these steps as the documented route, not a tested run.

Step 1: Install Codex

Use Codex in the ChatGPT desktop app or the Codex CLI. On macOS and Linux the CLI installs with curl -fsSL https://chatgpt.com/codex/install.sh | sh. Sign in with your ChatGPT account.

Step 2: Tell Codex to set up ContentSkills

Open Codex and send:

setup https://github.com/blotato/contentskills

The repo’s setup instructions tell the agent to clone it to ~/contentskills, check for Node 22 or newer, FFmpeg and uv, install what is missing, and run npm run setup, which downloads about 1.5 GB of local voice and transcription tools. In Codex’s default Auto mode, commands that need the network stop for your approval, so expect a few prompts. Approve them knowing what each one downloads.

Step 3: Apply the two lines and restart

Add the config line and the symlink from the section above, then open a fresh Codex session inside ~/contentskills.

Step 4: Ask for the edit

Give Codex the clip’s path (dragging the file into the terminal pastes it) and say edit this video. For a specific look, say edit this video based on this style: and paste an Instagram reel link.

Step 5: Approve the storyboard

Codex sends a storyboard link before it renders anything. Open it in your browser and press Make my video. After the render, a quality check looks for captions on your face or outside the app safe zone, bad loudness, dead air and frozen frames, and fixes what it finds for up to five rounds. A fix that changes the storyboard comes back to you for approval first.

Step 6: Review and finish

The review page plays the cut with a note box and a timeline of sections. Click a scene, say what to change, and Codex patches the affected sections instead of rebuilding the whole video. When you press Finish video, the version on screen is saved as out/final.mp4.

The full prompt list, from faceless videos to effects behind you, is in my guide to editing videos with Claude. Those prompts are written for whichever agent opens the folder.

Keep Codex From Posting Before You Look

Set this up before your first post. The storyboard gate covers the edit, but blotato_create_post both publishes and schedules, and the call has no draft step.

Codex can gate each MCP server’s tools. Add Blotato through ~/.codex/config.toml like this, and write tools ask first while read-only tools run freely:

[mcp_servers.blotato]
url = "https://mcp.blotato.com/mcp"
http_headers = { "blotato-api-key" = "YOUR_API_KEY" }
default_tools_approval_mode = "writes"

The writes mode prompts for any tool not marked read-only, so a post, comment, DM or automation change waits for your yes, and you can still override single tools with tools.<tool>.approval_mode. Pick one connection route, either this block or the setup below, so you don’t end up with a second, ungated Blotato server. Copy the key from Settings, then API, in your Blotato account. Generating it ends a free trial and starts the paid plan. Keep it in your personal config, never in the repo.

Post the MP4 From Codex

Connect Blotato, and connect the Instagram account you want to post to in Blotato’s Accounts page first. Codex can only list accounts that are already connected.

The quickest connection is one prompt in Codex: Setup Blotato from blotato.com/codex. Blotato’s setup asks you to set /permissions to Approve for me while it installs, so switch it back afterward.

With a ChatGPT sign-in, Codex installs the plugin (codex plugin add blotato@openai-curated-remote), you approve access in ChatGPT, and then you start a new Codex session. With an OpenAI API key sign-in, it runs codex mcp add Blotato --url https://mcp.blotato.com/mcp and opens the Blotato sign-in. The guided Codex setup walks through both, and the config.toml block above includes the write gate.

Then ask Codex to post out/final.mp4 to Instagram as a reel. Behind that one sentence, the agent makes five calls, four of them Blotato tools:

  1. blotato_list_accounts finds your Instagram account ID.
  2. blotato_create_presigned_upload_url returns an upload URL and the public URL the file will live at.
  3. Codex PUTs the MP4 to the upload URL. In Auto mode this is another network approval.
  4. blotato_create_post publishes or schedules the reel with that public URL in mediaUrls.
  5. blotato_get_post_status reports in-progress until it lands on published (with a link when one is available), scheduled, or failed with an error message.

The create call returns a submission ID, not proof the reel is live, so tell Codex to poll the status before it reports success.

Turn the Comments Into DMs

This step pays off once your reels already get comments, and only on Instagram or Facebook. If you are still finding your first viewers, skip it and post consistently.

A reel that says “comment GUIDE and I’ll send it” needs something to send it. Ask Codex for the reel’s Blotato post ID from your published posts, then have it call blotato_create_automation with a comment-received trigger, your keyword and the DM text. The trigger needs Blotato’s post ID, not Instagram’s own ID.

The automation starts as an inactive draft unless you activate it, and by default it also posts a public reply under each triggering comment. Keyword matching is a case-insensitive substring match, so a short keyword like “red” also fires on “shared”. Pick a word that cannot hide inside another one. Meta’s reply windows and the other rules an automation inherits are in my DM automation API breakdown.

Where This Setup Falls Short

  • No timeline in Codex. ContentSkills gives you a storyboard and a review page, not clips you drag. If you edit by feel, every change going through a note box will slow you down.
  • The Codex path needs the two fixes. ContentSkills 1.0.0 shipped in late November 2026, and its README still says to open Claude Code. We have not run a full render in Codex yet, so expect rough edges.
  • Setup is heavy. About 1.5 GB of downloads, and transcription and voice run on your own machine. Close other heavy apps before the first render.
  • DM automation covers Instagram and Facebook only, and it replies to people who comment or message you. It never cold-messages anyone.
  • The trial excludes the API and MCP, so posting from Codex starts with a paid plan.

Codex, Claude Code or Another Agent?

ContentSkills reads the same AGENTS.md whichever agent opens it, and Claude Code finds its skills through the .claude/skills link without changes. If you switch between Codex and Claude Code, both can work from one folder, and your style profile and projects stay put.

The posting layer carries over too. Blotato’s MCP server sits at https://mcp.blotato.com/mcp, and the MCP setup guide has the steps per agent. For the video engines themselves, I compared Remotion vs HyperFrames with the license math.

The Honest Pitch: One Account From Render to Reply

Once the MP4 exists, one Blotato connection decides where it goes and confirms it went live.

If you would rather call the REST API than use MCP, upload a local file with POST /media/uploads (it returns the same presigned and public URLs), or pass a direct link to a publicly reachable video file. The accountId comes from GET /users/me/accounts:

curl -X POST https://backend.blotato.com/v2/posts \
  -H "blotato-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "post": {
      "accountId": "YOUR_INSTAGRAM_ACCOUNT_ID",
      "content": {
        "text": "Edited with Codex. Comment GUIDE for the setup.",
        "mediaUrls": ["YOUR_PUBLIC_VIDEO_URL"],
        "platform": "instagram"
      },
      "target": { "targetType": "instagram", "mediaType": "reel" }
    }
  }'

Leave out a scheduling field and it publishes right away. Add scheduledTime as a sibling of post, not inside it, to queue it. The API docs cover the rest.

Through MCP, Codex builds these requests for you, finding the account IDs and uploading the file itself. The same Blotato account reaches 12 destinations. On Instagram and Facebook it also handles DMs and replies to comments on posts published through Blotato. Analytics come back for eight destinations through the REST API, and LinkedIn, Slack, Discord and Google Business Profile return no metrics yet.

See what each Blotato plan includes

Sabrina’s Take

I’m biased, since both ContentSkills and Blotato are ours. If you only need clips cut, stop after Step 6. The posting half of this guide matters once you publish most days.

If you want one agent to cut the video and post it, add the two lines and keep writes on approval for your first week. Once your reels pull comments on Instagram or Facebook, let it answer those too.

Edit Videos With Codex FAQs

Can Codex edit videos?

Yes, through tools on your computer. Codex writes and runs FFmpeg commands, builds Remotion or HyperFrames projects, or follows a skill folder like ContentSkills. Codex itself has no timeline.

Can ChatGPT Codex generate videos from nothing?

It can build videos from code, such as animated titles, charts and faceless shorts with a script and a narrator voice. ContentSkills makes faceless videos from a topic with free local voices, and its optional generate skill adds paid AI footage through kie.ai. Remotion builds motion graphics as code compositions.

Why does Codex ignore part of my AGENTS.md?

Codex reads project instructions only up to project_doc_max_bytes, which defaults to 32 KiB. Anything past that limit never reaches the model. Raise it in ~/.codex/config.toml, for example to 65536, or split instructions across nested folders.

Why don’t my skills show up in Codex?

Codex lists repo skills from .agents/skills, plus your user folder, admin paths, installed plugins and the skills bundled with Codex. For a repo that keeps skills somewhere else, the quickest fix is a symlink pointing .agents/skills at that folder, for example mkdir -p .agents && ln -sfn ../skills .agents/skills. Start a new session afterward.

Which Codex skill or plugin is best for short-form video?

It depends on where you want the edit to happen. ContentSkills, which is ours, documents a local workflow for talking-head takes and faceless shorts, with posting through a separate Blotato connection. HyperFrames Studio offers a live preview with per-turn undo, and Remotion’s plugin builds motion graphics as code compositions. We have not tested them side by side, and our roundup of Codex plugins for creators covers the image and design tools too.

Can Codex post the edited video to Instagram or TikTok?

Yes, once you connect a posting tool. With Blotato connected, Codex uploads the MP4, publishes or schedules it, and checks the status until it reads published, scheduled or failed. Each call posts to one account, so posting to Instagram and TikTok is two posts.