Post videos on X
Agent that posts your videos to X
Each explainer that went public on YouTube is posted to X as a native video, with a caption from its own numbers and the YouTube link in one reply. A video that lives only on YouTube is found only by people who search YouTube. The same explainer posted to X as a native upload plays in the timeline, where a link to YouTube would not; but posting it by hand means someone downloading the file, writing a caption, uploading it and remembering the link, twice a week, for a channel that has only just started.
Running on our own company since Oct 27, 2026 · X · Risk: Medium. Needs Upload videos to YouTube to run: It posts each explainer after the YouTube distribution agent has made it public, and links back to it. Everything on this page is public; there is nothing to sign in for unless you want us to run it for you.
Tasks and outputs
What it takes on
Pick the video
Reads the YouTube registry for public videos, drops the ones already on X and the ones on hold, takes the oldest, and asks the YouTube Data API whether it is still public.
Write and check
Writes the caption from the video’s run record in a session with no way to post, then the lint and the content review read it: shape, 280 characters, no link, the brand rule, every number above 12 in the record.
Upload, post and record
Uploads final.mp4 in chunks through the X API, posts the caption with the video attached and the reply with the YouTube link, writes the registry entry, commits it and triggers the deploy.
Who it is for: Teams that already publish explainer videos on YouTube and want each one on X as well, as a native video with a caption of its own and the YouTube link underneath, without a person at the keyboard and without the browser automation X suspends accounts for.
How we use it: We built it in October 2026 for our own X account, the one the X posting agent posts from. On Tuesday and Friday at 1:30 PM US Eastern, after the YouTube distribution agent’s morning publish window, it takes the oldest explainer that is public on YouTube and not yet on X, one a run, confirms with the YouTube Data API that it is still public, has a session write the caption from the video’s own run record, lints it and runs the content review, uploads the file through the X API and posts the caption with the video attached, then one reply with the YouTube link. X runs one to two videos behind YouTube by design: a video goes public there at a random minute of a weekday morning, and reaches X the next run at the earliest, so a person has days to pull a video off YouTube before it is posted here. The first post went out on 2026-10-27, with the first video, A01.
What a video post looks like
01The caption is a hook line that says something in words, a blank line, and two or more short lines. At most 280 characters as X counts them; the hook at most 110.
02No link and no domain in the caption. The YouTube link goes in the reply, and the reply carries that link and no other.
03No brand before 2026-10-26. No client name ever: the companies in a finding are “a startup”, “one company”, “a vendor”.
04None of the banned words, no em or en dash, no opener, no call to follow. Every number above 12 is in the video’s run record, which the draft names; the lint reads that file and refuses a number it cannot find.
05The video is the one on YouTube: public there when the run starts, confirmed with the YouTube Data API, and never one on the hold list.
06A caption that fails the lint or is sent back by the content review is not posted; the run record is never edited to make one pass.
The rules the agent’s output is written to, from the file named above. This site prints no example output; what the agent has shipped is in its run log.
Workflow
How a run goes, step by step
Pick a step to see what goes in, what comes out, and where a person is involved.
Step 1 of 6
Pick the oldest video not yet on X
On Tuesday and Friday at 1:30 PM US Eastern, the wrapper brings its checkout to the latest main, checks that the posting account’s credentials are there, and reads the YouTube distribution agent’s registry for videos read back as public. It drops the ones already in this agent’s registry and the ones on the hold list and takes the oldest by the time it went public. Nothing ready ends the run before any session starts, with a line in the log on the machine.
web/content/youtube-videos.json, web/content/x-videos.json and Workflows/x-video/config.md
One video folder, such as 2026-10-18-A01, or no run
Nobody. A person puts a video on the hold list to keep it off X for good.
Step 2 of 6
Confirm it is still public on YouTube
One call to the YouTube Data API with the YouTube distribution agent’s token. A video a person set back to private since the registry last saw it is skipped and the run says so. This is the buffer in action: X runs one to two videos behind YouTube, and the days in between are when a person pulls a video.
The video’s YouTube id
A confirmed public video, or a skip
Nobody. The check exists so that a person’s action on YouTube is enough.
Step 3 of 6
Write the caption
A session starts with the video’s folder name, reads its run record (the script, the facts list, the title and the question it answers) and the shared voice rules, and writes the caption and the reply. The session can read the repository and run the lint, and nothing else: it holds no credentials and cannot run the posting script. It runs the lint on its draft and, when it passes, accepts it for the wrapper.
docs/AEO/Growth Plan/_workspace/video/<video>/summary.md and the voice rules
A draft file: the video, the caption, the reply, the sources
Nobody. A session that writes nothing within its time limit is stopped and the run ends with no post.
Step 4 of 6
Lint again, then the content review
The wrapper runs the same lint on the accepted draft, then calls the content review on the caption alone: a lint of the text, then a separate session that names the weakest lines and gives a verdict with quotes. A pass goes on; a send-back holds the post, and the wrapper commits only the row the review wrote, so the next run finds a clean checkout.
The accepted draft
A row in the review ledger, and a go or a hold
Nobody. A held caption is rewritten by the next run’s session, not by a person.
Step 5 of 6
Upload the video and post
The posting script probes final.mp4 with ffprobe against X’s limits, uploads it through the X API’s chunked media upload (initialise, append in chunks, finalise, wait until X has processed it), then posts the caption with the media attached and, when X answers 201, the reply with the YouTube link under it. A refused caption leaves nothing and writes nothing; a refused reply leaves the caption live and the entry says partial. Nothing is retried.
The accepted draft, the file in the media folder and the credentials file
Post ids, or a named refusal
When the reply is refused: a person posts it by hand or leaves the post without its link. The run does not wait.
Step 6 of 6
Record, commit and deploy
After the caption went out, the script writes one entry to the registry, keyed by the video’s folder: the ids, the post’s link, date and time, the two segments as posted, what X reported for the upload, the YouTube video and the time it went public there, and ok or partial. The wrapper commits exactly the registry and the review row, pushes, and triggers the deploy that builds this log. A run that posted nothing writes nothing and shows as a gap.
The ids, the draft and the upload’s report
One entry in web/content/x-videos.json, and this record
When the push fails: a person pushes. The entry is already written locally.
Before you start
What you’ll need to bring
Company material
Explainer videos of your own that are already public on YouTube, each with a run record the caption’s numbers can be traced to. Ours are the video creation agent’s, published by the YouTube distribution agent.
Source material
The YouTube registry (which video is public and since when), the media folder with each video’s final.mp4, and a hold list a person keeps. The agent reads all three and writes only its own registry.
Platform account
An X developer account with pay-per-use credits and an app with write permission, and the posting account authorized once against it through X’s PIN flow; plus the YouTube sign-in the distribution agent already holds, for the public check.
Run environment
A machine that is on in the afternoon: Node.js and ffprobe for the scripts, an agent runner that follows a written workflow for the writing step, and a scheduler. We use Claude Code under Windows Task Scheduler. No browser is needed.
Guides and files
Set it up yourself
The setup guide, and the files the agent is built from. You run it in your own environment, with your own accounts.
- 01
Runtime
- Node.js 20 or later for the scripts, with no packages to install, and ffprobe for the file checks before upload. The YouTube check is one call to the YouTube Data API with the YouTube distribution agent’s token.
- A scheduler that starts the wrapper twice a week in the afternoon, after the videos have gone public on YouTube, and an agent runner that follows the written workflow for the writing step — ours is Claude Code, started by Windows Task Scheduler on the founder’s machine.
- 02
Browser setup
- None. The upload and both posts go out through the API; nothing in this agent opens a browser. That is also why it is allowed: X lists browser automation as grounds for permanent suspension and permits automated original posts through the API.
- 03
Account setup
- An X developer account with pay-per-use credits and an app with read and write permission. At 2026 prices the post with the video costs $0.015 and the reply $0.20, because it carries a URL; the media upload has no line on X’s rate card.
- The posting account, authorized once against that app through X’s PIN flow; its four OAuth 1.0a strings do not expire. Ours is the same account the X posting agent uses, and a separate account from the developer account.
- The YouTube distribution agent’s sign-in, read-only here, for the check that the video is still public.
- 04
Configuration
- The configuration file: the handle that posts and the hold list of videos never to post to X, which a person edits.
- The YouTube distribution agent’s registry (which videos are public and since when) and the video creation agent’s media folder (where final.mp4 is), both read and never written.
- The lint rules, as constants at the top of the video post script and the shared lint: change a rule there, not the flow.
- 05
First run
- Run the video post script with a draft in dry-run mode: it checks the draft, probes the file and prints the requests it would send, uploading and posting nothing.
- Post the first video by hand with the script, open the post on the account’s timeline, play the video, open the reply’s link, check the registry entry, then register the schedule.
x-video.md
Workflow · Markdown. The steps the writing session follows: the video, the run record, the caption and the reply, the checklist, the lint.
config.md
Config · Markdown. The handle that posts and the hold list of videos never to post to X. Edited by a person.
video.mjs
Script · Node. One video: the YouTube check, the lint, the upload, the caption and the reply through the X API, the registry entry. Never retries.
media.mjs
Script · Node. The chunked media upload: ffprobe checks against X’s limits, initialise, append, finalise, and the wait for processing.
run-x-video.ps1
Scheduler · PowerShell. The twice-weekly run: the checkout, the pick, the writing session, the lint, the content review, the post, one commit of the registry and the review row, the deploy trigger.
x-videos.json
Registry · JSON. One entry per video posted, keyed by the video’s folder. The file this log is built from.
Not packaged for public download yet. The guide on the left describes what each one does, step by step, so you can rebuild the setup; to have us run one, order it in the block below.
Run log
Every run on record, newest first
Public and read-only. Open a record to read the steps, where the record comes from, and what happened when something needed a person.
Open the log on its own pageweb/content/x-videos.json), as of Nov 24, 2026. The registry does not record a run that found no video public on YouTube and not yet on X, or that stopped before posting (a caption the content review sent back, a file outside X’s limits, an upload X refused): those are in the log on the machine, and a run without a record is a gap. A reply X refused after the caption went out is recorded as such. Runs are scheduled for Tuesday and Friday at 1:30 PM US Eastern, after the YouTube distribution agent’s morning publish window, and each takes the oldest video not yet on X, so X runs one to two videos behind YouTube. The numbers below are counted from the records shown.Nov 20, 202613:322026-11-12-D06 · Video post · FridayLive on X: “our customer filter on X kept out the customers.”SucceededVideo postedNo one needed for this run
Steps
- DoneTook 2026-11-12-D06, the oldest video public on YouTube (since Nov 17, 2026) with no X post yet and not on the hold list
- DoneConfirmed with the YouTube Data API that the video was still public
- DoneWrote the caption from the video’s run record in a session that can read the repository and nothing else: no credentials, no way to post; a hook line, a blank line, two or more short lines, 280 characters at most, no link, no brand before Oct 26, 2026, every number above 12 in the record
- DonePassed the lint a second time and the content review of the caption
- DoneUploaded final.mp4 through the X API in chunks (0:53, 8.8 MB), posted the caption with the video attached, then the reply with the YouTube link under it
- DoneWrote this entry to the registry, committed it with the review row, pushed, and triggered the deploy that built this record
How it was handled
No stop in this run: the registry entry is written only after the API accepted the caption with the video, and the reply follows it.
Next step
None. The record shows that the video went out on X, not what it led to.
Nov 17, 202614:132026-11-09-B12 · Video post · TuesdayLive on X: “a bio with founder words and seller words is a seller's.”SucceededVideo postedNo one needed for this run
Steps
- DoneTook 2026-11-09-B12, the oldest video public on YouTube (since Nov 16, 2026) with no X post yet and not on the hold list
- DoneConfirmed with the YouTube Data API that the video was still public
- DoneWrote the caption from the video’s run record in a session that can read the repository and nothing else: no credentials, no way to post; a hook line, a blank line, two or more short lines, 280 characters at most, no link, no brand before Oct 26, 2026, every number above 12 in the record
- DonePassed the lint a second time and the content review of the caption
- DoneUploaded final.mp4 through the X API in chunks (0:54, 10.8 MB), posted the caption with the video attached, then the reply with the YouTube link under it
- DoneWrote this entry to the registry, committed it with the review row, pushed, and triggered the deploy that built this record
How it was handled
No stop in this run: the registry entry is written only after the API accepted the caption with the video, and the reply follows it.
Next step
None. The record shows that the video went out on X, not what it led to.
10 days with no run on record
Nov 6, 202613:322026-10-27-A02 · Video post · FridayLive on X: “all ten AI answers said a small B2B company needs no separate AEO budget.”SucceededVideo postedNo one needed for this run
Steps
- DoneTook 2026-10-27-A02, the oldest video public on YouTube (since Nov 3, 2026) with no X post yet and not on the hold list
- DoneConfirmed with the YouTube Data API that the video was still public
- DoneWrote the caption from the video’s run record in a session that can read the repository and nothing else: no credentials, no way to post; a hook line, a blank line, two or more short lines, 280 characters at most, no link, no brand before Oct 26, 2026, every number above 12 in the record
- DonePassed the lint a second time and the content review of the caption
- DoneUploaded final.mp4 through the X API in chunks (1:57, 11.6 MB), posted the caption with the video attached, then the reply with the YouTube link under it
- DoneWrote this entry to the registry, committed it with the review row, pushed, and triggered the deploy that built this record
How it was handled
No stop in this run: the registry entry is written only after the API accepted the caption with the video, and the reply follows it.
Next step
None. The record shows that the video went out on X, not what it led to.
Nov 3, 202613:322026-10-26-B01 · Video post · TuesdayLive on X: “Copilot still cites six pages we took down.”SucceededVideo postedNo one needed for this run
Steps
- DoneTook 2026-10-26-B01, the oldest video public on YouTube (since Oct 30, 2026) with no X post yet and not on the hold list
- DoneConfirmed with the YouTube Data API that the video was still public
- DoneWrote the caption from the video’s run record in a session that can read the repository and nothing else: no credentials, no way to post; a hook line, a blank line, two or more short lines, 280 characters at most, no link, no brand before Oct 26, 2026, every number above 12 in the record
- DonePassed the lint a second time and the content review of the caption
- DoneUploaded final.mp4 through the X API in chunks (1:59, 12.2 MB), posted the caption with the video attached, then the reply with the YouTube link under it
- DoneWrote this entry to the registry, committed it with the review row, pushed, and triggered the deploy that built this record
How it was handled
No stop in this run: the registry entry is written only after the API accepted the caption with the video, and the reply follows it.
Next step
None. The record shows that the video went out on X, not what it led to.
Oct 30, 202616:072026-10-22-C02 · Video post · FridayLive on X: “an AI engine can find your page and still not name you.”SucceededVideo postedNo one needed for this run
Steps
- DoneTook 2026-10-22-C02, the oldest video public on YouTube (since Oct 27, 2026) with no X post yet and not on the hold list
- DoneConfirmed with the YouTube Data API that the video was still public
- DoneWrote the caption from the video’s run record in a session that can read the repository and nothing else: no credentials, no way to post; a hook line, a blank line, two or more short lines, 280 characters at most, no link, no brand before Oct 26, 2026, every number above 12 in the record
- DonePassed the lint a second time and the content review of the caption
- DoneUploaded final.mp4 through the X API in chunks (1:49, 8.6 MB), posted the caption with the video attached, then the reply with the YouTube link under it
- DoneWrote this entry to the registry, committed it with the review row, pushed, and triggered the deploy that built this record
How it was handled
No stop in this run: the registry entry is written only after the API accepted the caption with the video, and the reply follows it.
Next step
None. The record shows that the video went out on X, not what it led to.
Oct 30, 202613:332026-10-19-A03 · Video post · FridayLive on X: “GPT-6 Sol's top AEO budget for a seed startup buys monitoring and a report at one agency.”SucceededVideo postedNo one needed for this run
Steps
- DoneTook 2026-10-19-A03, the oldest video public on YouTube (since Oct 23, 2026) with no X post yet and not on the hold list
- DoneConfirmed with the YouTube Data API that the video was still public
- DoneWrote the caption from the video’s run record in a session that can read the repository and nothing else: no credentials, no way to post; a hook line, a blank line, two or more short lines, 280 characters at most, no link, no brand before Oct 26, 2026, every number above 12 in the record
- DonePassed the lint a second time and the content review of the caption
- DoneUploaded final.mp4 through the X API in chunks (1:47, 6.4 MB), posted the caption with the video attached, then the reply with the YouTube link under it
- DoneWrote this entry to the registry, committed it with the review row, pushed, and triggered the deploy that built this record
How it was handled
No stop in this run: the registry entry is written only after the API accepted the caption with the video, and the reply follows it.
Next step
None. The record shows that the video went out on X, not what it led to.
Oct 27, 202613:322026-10-18-A01 · Video post · TuesdayLive on X: “AI answers about a startup's category almost never cite the startup's own site.”SucceededVideo postedNo one needed for this run
Steps
- DoneTook 2026-10-18-A01, the oldest video public on YouTube (since Oct 22, 2026) with no X post yet and not on the hold list
- DoneConfirmed with the YouTube Data API that the video was still public
- DoneWrote the caption from the video’s run record in a session that can read the repository and nothing else: no credentials, no way to post; a hook line, a blank line, two or more short lines, 280 characters at most, no link, no brand before Oct 26, 2026, every number above 12 in the record
- DonePassed the lint a second time and the content review of the caption
- DoneUploaded final.mp4 through the X API in chunks (1:59, 7.9 MB), posted the caption with the video attached, then the reply with the YouTube link under it
- DoneWrote this entry to the registry, committed it with the review row, pushed, and triggered the deploy that built this record
How it was handled
No stop in this run: the registry entry is written only after the API accepted the caption with the video, and the reply follows it.
Next step
None. The record shows that the video went out on X, not what it led to.
No runs match these filters
There are no runs of “Post videos on X” with that status in that date range. Try a wider range or another status.
The task finished. The record says which: a post published, or a draft written.
The run stopped. The record says where, why, and what happens next.
The run is waiting on a person: a sign-in, a challenge to solve, or a closing to rewrite.
“Succeeded” means the task in the record finished, and the record says which: a post published, or a draft written. It does not measure reach, leads or revenue. Records never include private messages or personal details of people outside the team. Times are US Eastern, from the commit that wrote the record.
The latest five of 7 runs. See all of them on the log’s own page
Good to know
Where it stops and asks for you
- No video is public on YouTube without an X post, or every such video is on hold. The run ends before any session, with a line in the log. Nothing is posted; the next run looks again.
- The video is no longer public on YouTube. The run skips it and says so. A person pulled it in the buffer, which is what the buffer is for.
- The posting account’s credentials file is missing. The run ends before any session. A person runs the one-time PIN authorization again.
- The session did not write a draft within its time limit. The session is stopped; nothing is posted; the video waits for the next run.
- The draft failed the lint, or the content review sent it back. Nothing is posted. The review row is committed on its own so the checkout stays clean; the next run writes the caption again.
- ffprobe finds the file outside X’s limits, or X refuses the upload. Nothing is posted and nothing is written; the output says which limit or which error. A person checks the file.
- X refused the caption. Nothing is posted and nothing is written; the output says why: 401 token, 402 credits, 403 duplicate text or permission, 429 rate limit.
- X refused the reply. The caption with the video is live and recorded as partial; the record here needs a person, who posts the reply by hand or leaves the post without its link. Nothing is retried.
- The push failed. The commit stays local and a person pushes; the registry entry is already written.
Risk notice
What to watch for
- Nobody reads a post before it goes out. The gates are the lint (shape, length, links, brand, banned words, every number above 12 traced to the run record) and the content review; a caption can still pass both and be dull. The video itself was checked when it was made and again when it went to YouTube; this agent adds no check of the video.
- The buffer is the only stop: a video pulled from YouTube before the run is skipped, one pulled after the post is live stays on X until a person deletes it. The hold list keeps a video off X for good.
- X’s developer rules shape this agent: original posts through the paid API, no browser. The video upload is a media upload like the X posting agent’s charts, only larger, and X’s limits on size and length are checked before anything is sent.
- Posting costs money, about $0.22 a video in API fees and about $2 with the writing and review sessions, from the developer account’s credits the other X agents share. Set a monthly limit in the developer console.
- The music licence covers YouTube; a track that does not also cover X keeps the video on the hold list.
FAQ
Questions about this agent
Why one to two videos behind YouTube?
Because a video goes public on YouTube at a random minute of a weekday morning, and this agent runs twice a week in the afternoon and takes the oldest video without an X post. The gap is the buffer: a person who sees a problem on YouTube has days to set the video back to private, and the YouTube check at the start of every run then skips it. X has no scheduled-publish window of its own to stop a post in.
Can the writing session post something it should not?
No. The session that writes has no credentials and cannot run the posting script; the worst it can do is write a bad caption, and the lint and the content review read the caption before anything is sent. The posting script is run by the wrapper, or by a person.
The reply with the link was refused.
The caption with the video is live; the registry entry says partial and the record here needs a person. Post the reply by hand from the registry’s text, or leave the post without its link; the agent does not retry a refused request.
Why does the caption carry no link?
A post that carries a URL costs $0.20 instead of $0.015 at 2026 prices, and X shows a native video larger than a link card. The link goes in the reply, where it is one tap away for anyone who wants the longer page.
Run it for your company
The same agent, your buyers’ questions, your account.
Sign in, tell us your site in three lines, and we email you within one working day with how we would run it for you and what it costs. Nothing to install, nothing goes out without your approval.
Would you rather we ran this agent for you? There is a managed service for that.
Talk to usThe other agents are in the Agent menu at the top of this page, and all of them on the home page.
See all agents