# Repository Briefing: Gitruck/cli
> Source: https://repoforai.com/repo/Gitruck/cli (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/Gitruck/cli
- **Official Docs / Website**: https://ai-mcn.tv/gtrk
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: B (56/100 · Maintenance 26/35 · Adoption 4/25 · Releases 6/20 · License 20/20)
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: CLI, API
- **Momentum**: 977 ★ total (+0 24h / +1 7d) · 4 forks
- **Topics**: `agent-skills`, `agentic-ai`, `ai`, `ai-agents`, `ai-video`, `ai-video-editing`, `ai-video-editor`, `claude-code`, `claude-skills`, `codex-plugin`, `codex-skills`, `cursor-plugin`
- **When to Use**: Best for: Creators and production teams that repeatedly turn talking-head footage, interviews or scripts into first-pass timelines and want to keep a human editor in control of the finish. Skip if: Media must remain entirely offline, you need a cross-platform visual editor, or delivery depends on editable native effects surviving the handoff.

## Overview
```text
### Architecture & Core Mechanics
Gitruck separates workflow orchestration from media execution. Skills in Codex, Claude Code, Cursor or another compatible agent organize the steps; the TypeScript package `@gitruck/cli` exposes `gtrk` as the local executable. The CLI coordinates Tonghe Cloud analysis and processing, brings outputs back and assembles a local `.gtrk` timeline. The Windows client is for preview and manual refinement, not a second chat interface.

The package targets Node.js 20.6 or newer and lists two runtime dependencies, `hash-wasm` and `jszip`; FFmpeg is a separate media prerequisite. The repository separates `src/`, `contracts/` and `skills/`, with plugin directories for Claude Code, Codex and Cursor. A separate integration brings AI Drama Desk `return-v1` segments and their manifest onto an independent video track aligned to beat intervals. For an existing Desk project, the CLI can connect using an API address and project ID without scanning the Desk repository.

### Key Capabilities & Differentiators
The strongest workflow is script-guided rough cutting: `gtrk oralcut "./talk.mp4" --script "./script.txt"` turns talking-head footage into a project for further editing. Long-to-short workflows retain original speech in selected highlights, while narrated workflows can pair a new voiceover with selected footage. The pipeline can also lay candidate visuals from a local media library or platform assets onto the timeline, add captions and motion graphics, or run individual operations such as transcription and vocal separation.

The `.gtrk` project carries separate picture, audio, caption and motion-graphics layers, and `gtrk render` provides an MP4 path. For an already refined timeline, use `gtrk project export --project` with the project path rather than rerunning `oralcut`. Export supports 剪映 projects, Premiere XML, FCPXML and OTIO, with motion-graphics elements pre-rendered for those handoffs. Selecting only `gtrk` keeps the native `beat_track` and skips that pre-rendering.

### Trade-offs & Limitations
Compared with starting directly in 剪映 or Premiere, gtrk is most useful upstream: it automates repetitive first-pass editing while delivering a timeline an editor can continue to work on. It does not replace a full nonlinear editor for interactive finishing. Rough-cut handoffs and exports from fully packaged projects have different compatibility limits, and pre-rendered motion graphics should not be treated as editable native effects in the destination editor.

Local projects do not imply local-only processing. Talking-head rough cuts and long-to-short project workflows keep source video local and upload extracted audio by default; visual assistance or smart split-screen sends a compressed video proxy, and some cloud tools may require a video upload. The MIT license applies to the CLI code, not cloud usage. Project initialization costs zero credits, but structured project export is charged per export, with additional per-minute charges for motion-graphics elements that miss the shared cache.

### Hardware & Deployment Guide
On Windows, macOS or Linux, run `npx @gitruck/cli@latest install` with Node.js ≥20.6. For conversational use, the agent must support Skills and be able to execute local commands. The installer configures the CLI and Skills and prompts for a Tonghe Cloud API key; cloud operations require an account and available credits. Restart the agent session after installation. Check FFmpeg with `gtrk deps status`, run `gtrk deps install` explicitly if needed, and use `gtrk doctor` to diagnose setup problems.

The desktop client is Windows-only; non-Windows deployments should plan around CLI rendering or a supported editor handoff. Treat this as a local client for a hosted processing pipeline, not as an offline or self-hosted replacement for the cloud backend. If a cloud job already has an ID, recover its result before submitting a replacement. There is no listed GitHub release milestone; use the npm installation path and record the package version tested in your workflow.
```

## Key Capabilities
```text
- Execution model: Agent Skills organize workflows; the Node.js `gtrk` CLI runs them and can also be called from scripts.
- Editable project: Local `.gtrk` timelines retain picture, audio, captions and motion graphics for further editing.
- Media handling: Talking-head rough cuts and long-to-short jobs upload extracted audio by default and keep source footage local; visual assistance or smart split-screen adds a compressed proxy upload.
- Editor handoff: Export the refined timeline to 剪映, Premiere XML, FCPXML or OTIO; motion-graphics elements are pre-rendered for these exports.
- Selective processing: Run transcription or individual tools such as denoising, vocal separation and frame interpolation without running the full production workflow.
- Generated-shot integration: AI Drama Desk segments can be placed by beat on a separate AI video track via `gtrk ai-drama lay`.
```

## Quick Start / Clone
```bash
npx @gitruck/cli@latest install
```
