Skip to main content
Version: develop (unreleased)

Agents

An agent is the AI coding tool that writes the scripts and scenes. Tubematic drives three of them: Claude Code, Codex and OpenCode. You install at least one, and Tubematic starts it on a schedule. You do not have to open an agent session yourself.


Supported agents​

AgentCommandLog in withSlash commands
Claude CodeclaudeRun claude once and follow the promptsYes
Codexcodexcodex loginNo
OpenCode v2opencodeopencode auth loginYes

OpenCode means the v2 CLI, the @opencode/cli package. The older opencode-ai package is not supported. Log OpenCode in to a paid provider: its free models are too weak to write a video.

You can install any number of agents side by side.

Install an agent​

Install the agent's CLI, log it in, then run this from the install directory:

python3 onboard.py --install-agent claude # or: codex, opencode

The command first checks that Tubematic is installed, that the CLI is on your PATH, and that the CLI is logged in. Then it asks:

QuestionNotes
Install scopeuser puts Tubematic's skills in your home directory, so every session of that agent has them. project keeps them inside the agent's workspace. Codex supports user only and is not asked
WorkspaceThe directory scheduled runs start from. Default ~/.tubematic-agent/<agent>. Each agent needs its own
Wipe the workspaceAsked only when the workspace exists, after showing what is in it
ModelsEnter one per prompt and press Enter on an empty line to finish. The first one is the agent's default

The command checks each model with the CLI before it keeps it. An unknown model costs nothing. A valid one costs one very small call. You can type any model name; the suggestions come from what the installed CLI knows.

After the questions it copies Tubematic's skills and slash commands into place, registers Tubematic's tools with the CLI (at http://localhost:4100/mcp), installs the Remotion skill, and sets up what the agent may do without asking, so a scheduled run does not stop at a permission prompt.

The Remotion skill needs Node.js 22.20 or newer. Without it the command warns that it skipped the Remotion skills and finishes, and the agent writes scenes without them. Install Node and run the command again.

If you had an agent session open, restart it. An agent reads its skills and tools once, when a session starts.

Where the files go​

Agent and scopeSkills and commandsTools registered
Claude Code, user~/.claude/skills/ and ~/.claude/commands/, and the skills again in the workspaceFor every Claude Code session
Claude Code, project<workspace>/.claude/For the workspace only
Codex~/.codex/skills/For every Codex session
OpenCode, user~/.config/opencode/skills/ and ~/.config/opencode/commands/For every OpenCode project
OpenCode, project<workspace>/.opencode/For the workspace only

Scheduled runs start from the agent's workspace. The agent reaches Tubematic only through its tools, so it needs neither the install directory nor the database.

Update an agent​

Run the same command again. Do this to:

  • change the agent's models,
  • copy skills into place again after you edit one,
  • check the models again after you upgrade the CLI.

Each question shows the stored answer. Press Enter at the model prompt to keep the stored list; the command checks each model again.

Choose which agent makes a video​

Settings, Agents tab: a card for each installed agent with its models, its share, its default model and its effort level

Tubematic gives each new video to an agent by share. Set the shares on Settings → Agents, where you also set:

  • the default agent,
  • each agent's default model,
  • each agent's effort level: low, medium, high (the default), xhigh or max.

You cannot add or remove a model on that tab, because the dashboard has no CLI to check one with. Use --install-agent for that.

To give one domain's videos to one agent, press Edit domain on the domain's row on the Topics page and choose the Agent. You can also choose a Model from that agent's list and an Effort. Every new video in the domain then starts on that agent, and the shares apply to the domains you leave on Automatic. If you uninstall the agent, the domain's new videos go back to being shared.

To change one video's agent, model or effort, use the pickers on the video at Topic Proposed, Script Ready or Video Ready. Picking a different agent resets the model to that agent's default.

Topic research can run on a different agent, model and effort from your videos. Choose them under Settings → Research. Blank uses the default agent.

python3 onboard.py --list-agents prints the supported agents and the installed ones, with their shares and models.

Uninstall an agent​

python3 onboard.py --uninstall-agent claude

After you confirm, the command removes Tubematic's skills, commands and tool registration for that agent. It keeps:

  • the workspace, which may hold the agent's own files,
  • the agent's record, so videos already assigned to it still name it,
  • the Remotion skill, which other projects may use.

A video assigned to an uninstalled agent waits. Tubematic does not hand it to another agent. Install the agent again, or pick another agent on the video. Research is the exception: if the agent you chose for research is uninstalled, research runs on the default agent.

You cannot uninstall the default agent while another agent is installed. Make another one the default on Settings → Agents first.

To remove Tubematic altogether, see Uninstalling.


Running an agent session yourself​

This is optional. Everything below has an equivalent on the dashboard.

Open the agent from its workspace:

cd ~/.tubematic-agent/claude && claude

Claude Code and OpenCode have these slash commands:

CommandWhat it doesOn the dashboard
/tubematicLists the commands
/tubematic-statusShows videos by stage, spend and container healthPipeline page
/tubematic-submit-new-job <topic>Scores a topic and creates a video from itNew Video page
/tubematic-add-topic <domain>Adds a domain for curriculum researchTopics page
/tubematic-pause-domain <id>Stops research in one domainPause topic generation on the domain's row
/tubematic-resume-domain <id>Resumes itThe same button
/tubematic-list-strategiesShows the research modes that are onTopics page
/tubematic-set-strategy <modes>Turns research modes on or offThe toggles on the Topics page
/tubematic-pausePauses the pipelineThe switch above the tabs on Settings
/tubematic-resumeResumes itThe same switch
/tubematic-dashboard-statusChecks the containers are runningpython3 scripts/service.py status
/tubematic-create-style <videos>Makes a new visual style from reference videos, with samples and a report. See Making your own style
/tubematic-install-style <source>Stages an external style from a folder, a zip, a git repository or the gallery, reads its code and gives you the link to install itProfiles → Styles
/tubematic-register-mcpRegisters Tubematic's tools with the agent againSee Troubleshooting

Codex has no slash commands. Ask in plain words, for example "show the Tubematic pipeline status". It has the same tools and skills.

/tubematic-submit-new-job differs from the New Video page in three ways. The agent scores the topic first and declines one that scores below 5, with advice on how to reframe it. It looks for the topic's angle and files it with the video; a topic with no angle is filed without one. It also files the video in a matching domain, where the New Video page files it under Manual Videos.

Getting help from the agent​

Each agent has a troubleshooting skill that walks through a problem with you and drafts a bug report. It runs only when you ask for it by name:

AgentHow to start it
Claude Code/tubematic-troubleshooting
Codex$tubematic-troubleshooting
OpenCode"Use the tubematic-troubleshooting skill."

See Reporting a bug.

How agents are deployed and driven is in The Agent Layer.