[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112695":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":15,"stars7d":16,"stars30d":16,"stars90d":14,"forks30d":14,"starsTrendScore":17,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":10,"pushedAt":29,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":14,"starSnapshotCount":14,"syncStatus":15,"lastSyncTime":33,"discoverSource":34},112695,"dojo-video-harness","PansaLegrand\u002Fdojo-video-harness","PansaLegrand","Open-source video editor where you and an AI agent work on the same timeline. Run locally, bring your own model keys. Powered by Dojo Video Engine.","https:\u002F\u002Fgithub.com\u002FPansaLegrand\u002Fdojo-video-engine",null,"TypeScript",81,1,0,2,22,14,58.1,"MIT License",false,"main",true,[24,25,26,27,28],"ai-agent","local-first","mit-license","typescript","video-editor","2026-11-22 02:14:21","2026-11-23 17:43:27","# Dojo Video Harness\n\n[![CI](https:\u002F\u002Fgithub.com\u002FPansaLegrand\u002Fdojo-video-harness\u002Factions\u002Fworkflows\u002Fcheck.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002FPansaLegrand\u002Fdojo-video-harness\u002Factions\u002Fworkflows\u002Fcheck.yml)\n[![MIT License](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-green.svg)](LICENSE)\n\n**An open-source video editor you run locally, with a TypeScript agent you can understand and extend.** Import your footage, edit the same timeline by hand or through chat, and export an MP4 in your browser. Ordinary validated chat edits apply directly; Compare and Undo let you inspect or reverse them.\n\n**Want to try the hosted product? [Open DojoClip Video Edit AI](https:\u002F\u002Fdojoclip.com\u002Fen\u002Fapplications\u002Fvideo-edit-ai).** DojoClip adds managed accounts, projects, provider jobs, storage, and payments. This repository is the smaller local editor and developer foundation; it does not install the commercial SaaS.\n\n![The local editor with a structured pending question](docs\u002Fassets\u002Feditor-question.png)\n\n_Browser-test screenshot with synthetic model responses._\n\n## Choose the right project\n\n| Project                                                                | Use it for                                                                        | What you operate                                             |\n| ---------------------------------------------------------------------- | --------------------------------------------------------------------------------- | ------------------------------------------------------------ |\n| **This harness**                                                       | Edit local footage, study the agent, add tools or skills                          | A single-user localhost app; your own optional provider keys |\n| [Dojo Video Engine](https:\u002F\u002Fgithub.com\u002FPansaLegrand\u002Fdojo-video-engine) | Build scene rendering, playback, inspection, and export into your own application | TypeScript packages and browser media APIs                   |\n| [DojoClip](https:\u002F\u002Fdojoclip.com\u002Fen\u002Fapplications\u002Fvideo-edit-ai)         | Use the hosted editor and managed AI services                                     | An account in the commercial product; no local server setup  |\n\nThe harness includes the shared editor UI, command validation, timeline history, captions, editable graphics, browser preview\u002Fexport, and a bounded model\u002Ftool loop. It deliberately excludes commercial authentication, billing, Postgres\u002FPrisma, Redis queues, cloud-storage configuration, production workers, and deployment credentials. Local image\u002Fvideo-generation adapters are not shipped; the optional BYOK music adapter is available.\n\nNo DojoClip database or commercial environment file is needed. Projects and receipts use local files; imported originals use browser IndexedDB. The UI is English-only, while media text and provider-supported captions can use other languages. See [the scope and synchronization policy](docs\u002Fopen-source-scope.md).\n\n## Run locally\n\nRequirements: Git, Node **20.19+** (Node **22** recommended), npm, and a desktop browser with WebCodecs support. Chromium is the tested path. FFmpeg is only needed for acceptance tests.\n\n```sh\ngit clone https:\u002F\u002Fgithub.com\u002FPansaLegrand\u002Fdojo-video-harness.git\ncd dojo-video-harness\nnpm run launch\n```\n\n`launch` installs locked dependencies when missing, creates `.env` without overwriting an existing file, checks the environment, and starts the editor. It opens a browser from an interactive terminal; otherwise open **http:\u002F\u002F127.0.0.1:4310**. The published engine packages install automatically. No sibling repository or pnpm installation is needed.\n\nCreate a project and import a short clip. **Manual editing, subtitle import, preview, and MP4 export need no API keys.** For chat or speech recognition, open **Provider settings** and configure the relevant provider below.\n\n```sh\nnpm run dev                # Start again after initial setup\nnpm run setup -- --install # Install updated locked dependencies after git pull\nnpm run doctor             # Check Node, local storage, and port availability\nnpm run dev -- --no-open    # Start without opening the browser\n```\n\nThe launcher supports PowerShell, macOS, and Linux. Keep the same local address: browser media belongs to its origin. An occupied port produces guidance rather than silently switching addresses. To run a production build locally, use `npm run build` then `npm start`.\n\n## Try these workflows\n\nThese examples use capabilities exercised by the repository's tests. Chat wording is a starting point: inspect the resulting edit, and use Undo or a follow-up instruction when needed. See [verification](#verification) for the distinction between scripted tests and live-model evidence.\n\n### 1. Make a short branded clip — no keys\n\n1. Create a project and import a video plus a PNG logo you own.\n2. Trim the imported clip on the timeline. Move the imported logo to an overlay track and align its timing with the footage.\n3. Add a text title or import an SRT\u002FVTT subtitle file.\n4. Preview, adjust the placement, then export MP4.\n\nThis is a local editing workflow. It needs neither an AI provider nor an account. Rendering and export run in the browser; supported media depends on browser codecs and admission limits.\n\n### 2. Revise a title through conversation — GPT key\n\nIn an open project, choose **Whole project** scope and ask:\n\n> Add a title saying “Hello” for the first three seconds.\n\nThen send each follow-up separately:\n\n> Make it red.\n\n> Put a yellow backing behind it.\n\n> Make the text bigger.\n\nThe title stays editable on the timeline. Ordinary local edits apply automatically; Compare and Undo remain available. The [bounded correction diagnostic](docs\u002Fconversational-corrections-2026-11-04.md) records a tested four-turn version of this workflow, including preserved object identity and rendered changes.\n\n### 3. Caption and translate a speech clip — GPT and ASR keys\n\nImport a short spoken clip, choose **Whole project** scope, and ask:\n\n> Add English captions to this clip, then add Spanish translations below them. Keep the original English captions.\n\nIf transcript evidence is missing, the app requests source\u002Fprovider consent before transcription and then continues the original instruction. Review timing, wording, and translated facts before export. Transcription uploads are capped at **25 MiB** and require genuine word timestamps. Already imported subtitle text can be edited manually without an ASR key.\n\nFor an explicit multi-clip workflow, import two spoken clips named `Clip A` and `Clip B` without existing linked captions, then ask:\n\n> Join Clip A then Clip B, generate English captions, translate them to Spanish, then export.\n\nThat workflow has its own review card: approve provider access, review and apply the prepared edit, then use **Export approved workflow**. The saved export is bound to the applied revision. See [workflow behavior and evidence](docs\u002Fbasic-workflows-and-music-2026-11-03.md).\n\n### 4. Add an editable intro or ending — GPT key\n\nWith footage on the timeline, ask:\n\n> Add a three-second 3–2–1 countdown before my footage. Move the footage after the countdown and keep its full duration.\n\nOr:\n\n> Add a two-second animated “Thanks for watching” ending after my footage.\n\nThese can be native grouped graphics with editable text and animation. They do not require generating another video asset. You can move, trim, split, or edit the graphic and export it with the footage. Trimming cuts animation beats; it does not automatically retime them or ripple neighboring clips. See [the intro\u002Foutro tests and limitations](docs\u002Fintro-outro-items-2026-11-04.md).\n\n### Optional: generate background music — Kie key\n\nConfigure **Background music · Kie** in `\u002Fen\u002Fsettings`, then use the Background music panel or ask through chat. The panel works without a GPT key. **Generate and insert music** approves one paid job and its displayed placement, length, and volume. The first returned track is stored locally and inserted when ready. Undo removes an edit; it does not repeat generation or refund a provider charge. See [music setup and recovery](docs\u002Fbasic-workflows-and-music-2026-11-03.md).\n\n## Configure only the providers you need\n\n| Operation                                          | Credentials                           |\n| -------------------------------------------------- | ------------------------------------- |\n| Manual edits, subtitle import, preview, MP4 export | None                                  |\n| Chat edits and caption translation                 | Your compatible GPT Responses API key |\n| Speech transcription                               | Your ASR key, configured separately   |\n| Optional instrumental music generation             | Your Kie music key                    |\n\nUse **Provider settings** to enter the base URL, exact model ID, and matching key. Settings take effect for new requests; active jobs keep their original configuration. Advanced defaults can use [`.env.example`](.env.example), copied to your private `.env`. App settings override those defaults.\n\nThe chat adapter supports **GPT models through the Responses API with function calls and tool-result continuation**. Vercel AI Gateway is one documented provider example:\n\n```dotenv\nLLM_BASE_URL=https:\u002F\u002Fai-gateway.vercel.sh\u002Fv1\nLLM_MODEL=openai\u002Fgpt-6-sol\nLLM_API_KEY=your-vercel-ai-gateway-key\n```\n\nOther compatible endpoints can use the same adapter. Supply the base URL without `\u002Fresponses` and a model ID in `gpt-*` or `openai\u002Fgpt-*` form. Availability and compatibility depend on your provider\u002Faccount; a listed model name alone is not a compatibility guarantee. Non-GPT model families and Chat Completions are outside the shipped adapter's scope. There is no silent provider switching or automatic paid retry.\n\nSpeech recognition supports OpenAI-compatible word-timestamp endpoints and ElevenLabs Scribe. The **Use ElevenLabs** preset selects `https:\u002F\u002Fapi.elevenlabs.io\u002Fv1` and `scribe_v1`; enter your own ElevenLabs key. Segment-only output is rejected rather than converted into invented word timings. Music defaults are documented in `.env.example`.\n\nSaved keys stay in the local server's private data directory and are never returned to the browser. Keep `.env` and `DATA_DIR` private and out of Git. Chat sends project context to your configured provider. Transcription sends the consented source; preview pixels require consent. Remote provider usage is billed by that provider. The local host is intended for a single user on loopback, not deployment as a public multi-user service.\n\n## How it works and what stays synchronized\n\n```text\nManual controls ─┐\n                 ├─ validated commands → ProjectDocument → compiled Scene → engine\nChat + tools ────┘\n```\n\nBoth editing paths share the document and history. The host validates scope, source evidence, locks, and revisions before applying an edit. The agent can inspect sources, read skills, ask structured questions, and prepare dependent stages. Registered browser tools support consented source sampling, candidate previews, one verified correction round, and export tied to the applied revision.\n\nThe current local profile is **local-editor-v14**, using **agent kit 0.2.9**, **loop 0.2.0**, and published **engine 1.2.3**. Older saved runs retain their original behavior and budgets. The latest shared editing behavior is reused by the commercial host through its own adapters; commercial services are not copied into this app.\n\n- **Web → harness:** selected editor components, managed and checked by file hashes.\n- **Engine → both apps:** published rendering\u002Fplayback\u002Fexport packages at exact versions.\n- **Harness → commercial host:** portable agent loop, tool contracts, and skills.\n- **Editing semantics:** some shared helpers plus separate kernels checked against the same conformance cases; there is no automatic whole-product sync. [Remaining differences](docs\u002Fopen-source-scope.md#remaining-source-differences) include a bounded capability-target schema description gap.\n\nSee [the scope policy](docs\u002Fopen-source-scope.md), [synchronization evidence](docs\u002Fsynchronization-readiness-2026-11-08.md), and [UI sync instructions](docs\u002Fsyncing-product-ui.md).\n\n## Learn or extend the implementation\n\nStart with [the guided walkthrough](docs\u002Flearn-the-harness.md) and [architecture](docs\u002Farchitecture.md). Coding agents should read [AGENTS.md](AGENTS.md).\n\n| Location                                             | Responsibility                                                      |\n| ---------------------------------------------------- | ------------------------------------------------------------------- |\n| `packages\u002Fagent-loop\u002F`, `packages\u002Fagent\u002Fsrc\u002Floop.ts` | Bounded model → tool → observation loop and local integration       |\n| `packages\u002Fagent-kit\u002F`, `packages\u002Fagent\u002Fsrc\u002Ftools.ts` | Shared tool definitions, skills, and native host ports              |\n| `skills\u002F`                                            | Trusted Markdown guidance for existing tools                        |\n| `packages\u002Fcore\u002Fsrc\u002Flib\u002Fvideo-project\u002F`               | Document, validated commands, source evidence, and history          |\n| `packages\u002Fadapters\u002Fsrc\u002F`                             | GPT, ASR, and music transports                                      |\n| `packages\u002Fui\u002Fsrc\u002Fhost\u002F`                              | Local user, copy, and provider adapters                             |\n| `apps\u002Fserver\u002Fsrc\u002F`                                   | Local files, durable runs, consent, provider settings, and receipts |\n\nA useful first extension is a read-only tool that counts clips on a track. Or add a trusted lowercase `skills\u002Fname.md` file and restart the host. Markdown guides registered tools; it cannot install executable code or authorize spending. Follow [the extension guide](docs\u002Fextending.md).\n\nHarness packages are source workspaces here, not a published embeddable SDK. Engine packages are published separately. Durable recovery retains completed replies and receipts; uncertain paid submissions need reconciliation. See [the current agent map](docs\u002Fagent-system.md) and [edge cases](docs\u002Fedge-cases.md) for exact limits.\n\n## Verification\n\n```sh\nnpm run check                    # OSS boundary, integrity, types, tests, build\nnpx playwright install chromium\nnpm run test:browser              # Actual browser\u002Fmedia tests; needs ffmpeg + ffprobe\n```\n\nThe browser suite uses synthetic provider HTTP responses while exercising real UI, storage, rendering, and decoded MP4\u002Faudio. It does not spend provider credits or use `.env` keys. Test artifacts go to ignored `test-results\u002F`.\n\nThe [readiness ledger](docs\u002Freadiness-progress.md) records version-specific local checks, public CI, separate live-model evaluations, retained failures, and remaining coverage. [The agent map](docs\u002Fagent-system.md) identifies the current build. These records do not establish universal creative quality or support for every codec, browser, provider, or arbitrarily long instruction.\n\nLive provider probes are opt-in and incur your provider's charges; see [milestone testing](docs\u002Fagent-milestone-testing.md) before running them. The full release checklist lives in [the readiness plan](docs\u002Fharness-readiness-plan.md).\n\n## License\n\nMIT for the harness and extracted editor code. Engine and third-party assets retain their notices. See [THIRD_PARTY.md](THIRD_PARTY.md).\n","Dojo Video Harness 是一个开源的本地化视频编辑器，支持用户与可定制的 AI 代理在统一时间线上协同编辑视频。核心功能包括：基于浏览器的本地运行（无需服务器）、手动剪辑与自然语言指令驱动的 AI 编辑双模式、结构化命令验证、时间线历史追踪、字幕与图形编辑、以及 MP4 导出；技术上采用 TypeScript 构建，集成 Dojo Video Engine 渲染与导出能力，并支持用户自带模型 API 密钥（BYOK）。适用于个人创作者快速试验 AI 辅助剪辑逻辑、开发者研究\u002F扩展本地 AI 视频工作流，或需要离线、隐私敏感环境下的轻量视频编辑场景。","2026-11-24 04:43:52","CREATED_QUERY"]