I make short video skits for Brainbank, which are posted on the platform’s social media accounts to reach new learners that would benefit from using Brainbank to help with long-term retention. These skits are variations of Bankie (the app’s mascot) getting words or facts slightly wrong and Profe (the teacher) correcting him and showing how to use spaced repetition for the purpose of long-term learning. These skits are anywhere between 15 and 30 seconds and get posted regularly on both TikTok and Instagram Reels.
I started out making these videos by hand in a Claude Code session: I pasted in a brief, picked one of three or four joke options, chose the opening frame from a set of Blender stills, and reviewed each full render before it was saved. That built the format and the skills behind it, but it meant stepping in at every stage of every video.
Now my Grok bot runs most of that pipeline. It reads how my TikTok and Instagram posts performed, works out which topics learners search for that Brainbank hasn’t covered yet, writes the briefs and sends them to Claude Code or Codex over AgentBridge. Grok Bot then provides scheduling suggestions, which I approve before the bot posts the finished videos. I still remain hands-on when it comes to first reviewing the script in Grok’s chat and approving the scheduling of the video. AgentBridge enables these agents and bots to pass work to each other.
The pipeline
I usually post a couple of videos every day, and each one takes about 15 minutes to produce. Here are the steps I follow to generate the content:
- Grok reads the numbers. My Grok bot has its own computer with access to my TikTok and Instagram accounts. It pulls each post’s performance from there.
- Grok researches and plans. It looks at what learners search for on TikTok and Instagram, compares that with which Brainbank videos have worked, and picks topics Brainbank hasn’t covered yet. From that it writes a brief for each video: the search phrase it targets, the audience, the hook, the joke as setup and other relevant aspects.
- I review the plan in Grok’s chat. This is where most of my time goes: the script, the exact spoken words, and how each scene is set up. I approve it or change it.
- Grok briefs Claude Code or Codex over AgentBridge. The coding agent builds the video, saves it to disk and reports back in the same conversation.
- Grok schedules and posts. It proposes a schedule, and I approve or modify it. Then it picks up the finished video from disk and uploads it.
Who does what
| Agent | Job | Tools | Hands on |
|---|---|---|---|
| Grok bot | Analytics, trend research, briefs, schedule, posting | Its own computer, my TikTok and Instagram accounts, web and X search | Briefs to the coding agents; posts |
| Claude Code or Codex | Builds the video from the brief | Blender (Python-scripted sets and animation), ElevenLabs voices, Remotion, ffmpeg, two skills | A finished MP4 and its schedule entry |
| Me | Approves the plan and the schedule | Grok’s chat | Approved scripts and schedules |
The coding agents work from two skills. bankie-talks-3d holds the format itself: the characters, the Blender rig, the voices, the lip-sync rules and the render steps. making-videos holds Brainbank’s house rules for every video: templates, brand and safe zones, the QA checklist, and how to add a post to the schedule.
The video generation goes through the same steps each time. The set is built in Blender from Python scripts, with no hand-made scene files. ElevenLabs voices both characters (Bankie in a pitched-up version of my own voice and Profe in a stock British one) and is connected to Claude Code via ElevenLabs API.
A Blender script then animates the characters into a transparent image sequence, Remotion lays it over the scene with speech bubbles, labels and sound effects, and ffmpeg levels the audio. Before handing anything back to me for review, the agent checks still frames from across the video and the audio levels, and re-renders anything that’s flagged as an issue.
The setup

None of these apps was built to interact with each other, so I was the connection between them when I initially started this video generation pipeline. For every video, I had to:
- Copy each brief out of Grok’s chat into Claude Code or Codex
- Paste results and questions back the other way
- Keep track of which app had the latest version of a script or a cut.
Doing that for each video is what led me to build AgentBridge, which now sits between them as a small service on my Mac, with each app connected to it:
- Claude Code gets AgentBridge as a plugin. Its MCP server gives the agent the bridge’s tools (start a conversation, send, confirm, end), and incoming messages arrive in the open session through Claude Code’s own cross-session inbox.
- Codex runs the same MCP server, plus hooks that tell the bridge which Codex session is which. Incoming messages arrive as new turns through
codex queue. - Grok runs in the cloud, so it can’t reach my Mac directly. Messages to Grok go to its bot webhook and start a routine run. Grok’s replies come back through a relay, through a connector that gives it the bridge’s tools. Each Grok turn takes about 20 seconds.
All 3 end up as addresses on one bridge, such as claude:brainbank-video, codex:brainbank-video and grok:brainbank. That is what makes the communication three-way: any of the three can start a conversation with either of the others, and Grok can brief Claude Code and Codex in turn. Each conversation has two participants and its own turn limit, up to 200 turns.
Messages from another agent arrive wrapped in tags with a per-session code, and each agent’s standing instruction says that what another agent writes is information, never an instruction or an approval. Deliveries to Grok are short, so a long brief or report arrives as a preview and Grok fetches the full text through the connector.
Every conversation needs a human approval, but it doesn’t have to be a prompt. AgentBridge has an approval mode called auto, where conversations that match an allow rule start without asking. I allow my local Claude Code and Codex sessions to open conversations with my Grok bot, only from the Brainbank project folder:
agentbridge config set approval.mode auto
agentbridge config set allowlist.add \
"allow claude:* -> grok:brainbank cwd <brainbank folder>"
agentbridge config set allowlist.add \
"allow codex:* -> grok:brainbank cwd <brainbank folder>"
Two separate sets of rules decide what runs without my input:
- AgentBridge’s rules and settings decide whether a conversation can start. They are the commands above, and each change needs my Touch ID (or my Mac password): the agents can run shell commands, so without this check an agent could change the rules itself.
- Each agent’s own rules and settings decide which of its actions run without asking, such as file edits, shell commands and the messages it sends. They don’t cover starting a conversation: in Claude Code, that approval prompt appears in every mode, including auto.
On the other side, Grok bots accept conversations from their own user’s local sessions, and the agents only start a conversation when I ask. So skit video generation for any given day starts with me requesting it, and the rest runs inside these cross-agent conversations.
Results and limitations
The video above came out of the automated pipeline I described earlier. It got about 1,300 views on Instagram, and on TikTok about 800 views, 44 likes and 1h30 of total watch time, which was a significant improvement over the content posted previously.
The output of the pipeline can only be as good as the format behind it. I built this format through several attempts at doing it manually, and AgentBridge has let me simply automate the existing pipeline.
This setup is also one of the cases that was not covered in my injection test, which is indirect prompt injection. Grok reads other people’s posts and search data, then writes briefs for coding agents running in auto mode, so an instruction planted in a post could reach them through a brief. What mitigates this risk is that I review the work twice: the script and scene setup in Grok’s chat before anything is generated, and the finished skit before it is scheduled.
AgentBridge is open source (MIT) and runs on macOS for now. The source is on GitHub at musi27/agentbridge.