Skip to main content
Glama
README.md
# AgentVideoEngine

A video editor that your AI agent operates through chat.

Describe the video you want in chat. Your agent uses the editor on your computer to build a draft, show previews and export a finished video. Your project keeps links to the original recordings and saves a history of the edit.

## What it can do

- Find possible retakes inside one recording and preview the matching source ranges.
- Search a screen recording for visible words on macOS. See the matching pictures and source timestamps, even in silent footage.
- Analyze an editing reference with a separately installed REA Video environment and save its local shot breakdown for review. [Reference-analysis setup](docs/technical-reference.md#analyze-a-reference-video)
- Build a playable first draft from a supplied script and timed transcripts. Use several takes in one recording, several files, or both.
- Stage a draft, preview the exact changes and apply it as a saved revision. Compare or restore earlier versions.
- Cut by transcript words, insert pauses and blend neighboring clips. Add a slide transition with optional motion blur. Start sound before the picture changes or let it continue afterward.
- Reframe footage, adjust its color and animate changes in position, size or opacity.
- Balance voice, music and effects. Lower music under speech and reduce mild background noise.
- Correct caption words and line breaks while keeping them synced through later cuts, with word highlighting intact. Add titles, name labels and callouts, or animate a meter, title or image on individual spoken words. Each action follows its word through later cuts.
- Zoom in on a real label in a screen recording, underline it as you explain it, and pull back. The editor uses the label position found locally on your Mac.
- Export vertical, wide or square video, subtitle files and an editable timeline for compatible editors.
- Move a project with its source media or reconnect a recording that moved.
- Find isolated picture glitches in an exported MP4 and view the frame between its neighbors.
- Compare two exported MP4s and flag unexpected picture or audio changes outside the requested edit.
- Flag crops and zooms that enlarge footage too much, with timestamps for review.
- Scan the whole exported video's audio for possible speech gaps and report the moments to listen to before sharing.

These checks help find places to review. You still need to watch and listen to the finished video.

## Current status

**Developer preview.** The editing, rendering and agent connection have been tested on macOS using generated sample videos. Other operating systems have not been verified.

Setup uses a terminal and a chat agent that supports MCP and local files. MCP is the connection that gives your agent access to the editor's tools.

## Get started

You will need these local tools.

- Node.js 22 or newer.
- FFmpeg, including `ffmpeg` and `ffprobe`.
- An installed Chrome or Chromium browser to create the finished video.
- The speech tool and model if you want the engine to transcribe recordings. [Setup reference](docs/technical-reference.md#requirements-and-setup)

Download this project and open a terminal in its folder. If you use an AI coding agent, it can help with these setup steps.

Run these commands in the project folder.

```sh
npm ci
node src/cli.mjs doctor
```

The first command installs the app's dependencies. The second checks which local tools are available. It may report missing transcription tools even if you only want to use an existing transcript.

Your agent can start the editor when it needs it. Reconnect the MCP server after an update so your agent sees the new tools. [Agent connection instructions](docs/technical-reference.md#mcp-connection)

## Try your first video

Keep your original footage in a local folder and give your connected agent the file path and a brief.

> Use this recording to draft a shorter edit. Preserve my wording, remove the retakes we identify and add readable captions. Show me the draft before applying it. Then export a vertical version and an SRT subtitle file.

Review the preview and tell your agent what to change. Watch and listen to the final export before using it.

## All your takes in one recording

Keep recording the way you normally do. The agent can use the transcript to find pauses, restarts and repeated passages inside the same file. A saved map links those possible attempts to timestamps and picture previews.

The agent can search a line and preview its different deliveries before choosing cuts. Repeated wording suggests places to review.

With a script, ask “Build a first cut from these lines and show me the other takes of my opening.” The editor stages matches in script order and identifies lines that need review. You can ask for the second opening and play the revised draft.

For a screen recording, ask “Show me where Back Tap appears on screen.” On macOS, the agent can index sampled frames with Apple Vision and return the matching timestamps and pictures. Later searches reuse the local index. Short flashes between samples can be missed.

## Adjust the sound through chat

Ask your agent to level voice across takes, lower music while you speak, or adjust one sound independently. You can also ask it to fade a sound in or out, move the sound ahead of a cut, or reduce mild background noise.

The agent saves those adjustments with the edit and uses the complete audio mix for previews and exports.

## Adjust the picture through chat

Ask your agent to brighten a recording, keep a person in frame, or slowly zoom in on a detail. A saved color correction can follow every cut from one recording or be adjusted clip by clip. Compare the same frame before and after to choose the look.

## Deliver or move the edit

Ask for an MP4 in the shape you need, an SRT or VTT subtitle file, or an editable OpenTimelineIO file. The timeline handoff carries media and cuts. Bring the finished MP4 to show the intended graphics, color and mix. [Delivery guide](docs/delivery.md)

Each moving preview and final MP4 gets a quality report beside it. Before delivery, the agent can check the exact file against that report. The editor flags previews, changed files and finals below the selected resolution target.

Final exports also check crop and zoom enlargement and scan the full audio for possible speech gaps. The report gives timestamps to review before sharing. When source word timings are available, they help find pauses even when music covers the silence. These are review cues: a pause may be intentional, and music or noise can hide missing speech. The editor keeps your cuts intact. Your agent can adjust unwanted gaps or framing and export again. It can also check enlargement before rendering with `quality_preflight`.

Use a project bundle to move the editable engine project and its media to another machine. A bundle includes saved transcripts, custom settings and registered media. Review its contents before sharing. Your agent can also reconnect a moved file after verifying that its contents match the original. [Technical reference](docs/technical-reference.md)

## Licensing

The source is public, but no reuse license has been selected for the app's original code. See [licensing](LICENSE) and the [third-party notices](THIRD_PARTY_NOTICES.md) before reusing or redistributing it.

TDQS

B3.2/5.0

Scored across 36 tools

Disambiguation4/5

Most tools are clearly differentiated by resource family (project_*, media_*, draft_*, revision_*, job_*, export_*) and by explicit scoping sentences in descriptions (e.g. source_preview bypasses color/audio finishing vs preview_render uses full mix). A few boundaries are soft: graphic_presets is named like a read-only lister but actually adds text overlays already covered by edit_apply's upsert_overlay, and the four preview/render tools plus preview_render vs export_render require careful reading to separate.

Naming Consistency3/5

Two competing conventions coexist: resource-first compound names (media_add, project_create, draft_apply, job_get, transcript_import) versus verb-first names (export_subtitles, preview_render, review_cuts, transcribe), and a few names are bare nouns or ambiguous (graphic_presets, project_bundle). Everything is snake_case and readable, so an agent can map names to families, but the pattern is not uniform.

Tool Count3/5

36 tools is heavy and exceeds the comfortable range, though the domain (headless video editing with transcription, drafts, revisions, previews, jobs) is genuinely large and each family is internally cohesive. There is mild duplication in the preview surface (source_preview, color_preview, preview_render, review_cuts) that pushes this toward over-scoped.

Completeness4/5

Coverage is broad: project lifecycle (create/validate/inspect/import/bundle/open), media ingestion and relinking, transcription, editing, drafts, revision history with compare/restore, exports (MP4, subtitles, OTIO), previews, and full job control. Minor gaps remain, such as no project deletion/cleanup, no explicit asset or overlay listing outside project_inspect, and no per-clip query tool.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues