Free · Offline · MIT licensed · Rust CLI + MCP

subkit — Free Open-Source Subtitle Timing & QC CLI for AI Agents

subkit — Subtitle Edit for AI Agents: Check, retime and convert SRT/VTT/ASS subtitles in one command — overlaps, reading speed and bad timing as machine-readable JSON, with 14.2x fewer tokens. Offline, fast, and free.

Install in one minute — see the install commands below. Source and README: github.com/creatorops-studio/subkit. 100% local — no network calls at all in the free build.

Subtitle work only, stated up front: subkit parses, checks, retimes and converts subtitle text (SRT, WebVTT, ASS/SSA). It never touches video or audio: no burn-in, no re-encode, no H.264 anywhere, no ASR transcription. If you need captions burned into video, use ffmpeg; if you need speech turned into subtitles, use Whisper.

One JSON spec, one fixed subtitle file

Overlaps trimmed, 2-frame gaps enforced, short cues extended — declared in one small fix spec, applied in one command. No Python, no hand-editing the whole file, no new overlap introduced by the fix itself.

# 1. Check a subtitle file — exits 1 on any error-level issue
subkit check examples/sample.srt

# 2. See the same report as JSON
subkit check examples/sample.srt --json

# 3. Fix the safe stuff from one small spec
subkit fix examples/fix.json

# 4. Shift every cue by +1.5 s
subkit shift examples/sample.srt -o shifted.srt --ms 1500

# 5. Convert SRT -> WebVTT (or -> ASS, or back)
subkit convert examples/sample.srt -o sample.vtt --format vtt

The whole fix spec is 30 tokens:

{"input": "sample.srt", "output": "fixed.srt", "fix": {"trim_overlaps": true, "min_gap_ms": 83, "extend_short_ms": 833}}

A QC report your agent can actually use

Fifteen checks with severity, cue number and a fix suggestion: overlaps, reading speed (CPS), too-short/too-long cues, gaps under 2 frames, line length, line count, empty cues, out-of-order cues, plus parser warnings (duplicate index, unbalanced ASS braces) surfaced as Info. Machine-readable with --json; exits 1 on any error, so CI can gate on it. Defaults follow common broadcast/streaming practice (Netflix timed-text style guide, EBU-TT): 20 CPS, 42 chars/line, max 2 lines, 0.83–7 s duration, ≥2 frames between cues.

The sample file fails the way real files fail: subkit check examples/sample.srt reports 3 errors and 3 warnings — and after subkit fix, the fixed file passes.

Install in one minute

Install straight from GitHub with a Rust toolchain (cargo) — the crate is not on crates.io yet:

cargo install --git https://github.com/creatorops-studio/subkit

Prefer a ready-made binary? Download the Release v0.1.0 binary (1,075,000 B) from github.com/creatorops-studio/subkit/releases/tag/v0.1.0.

Measured numbers, not marketing

Measured 5 December 2026 with subkit benchmark on the release binary. Tokens ≈ characters / 4 (standard approximation); the hand-fixed subtitle file is kept verbatim in examples/sample-fixed.srt and the fix spec in src/bench.rs, so the comparison is reproducible. The debug loops the hand-edit usually needs are not counted in the 14.2× — with them, the saving is larger.

What was measuredResult
Token cost for one subtitle fix — fix-spec JSON30 tokens vs 425 tokens (hand-rewritten file) — 14.2× saving
Parse sample.srt (24 cues)0.018–0.063 ms
Parse + QC sample.srt0.025–0.051 ms
Parse + fix sample.srt0.012–0.015 ms
Parse + convert SRT → VTT0.034–0.043 ms
Parse + convert SRT → ASS0.037–0.049 ms
Peak RSS2,952 KB (~2.9 MB)
FormatsSRT, WebVTT, ASS/SSA — parse, check, retime and convert between all three
Tests86 green (72 unit + 14 integration, debug and release, 0 warnings)
Binary size (release, stripped)1,075,000 B (1.03 MiB)

Built for AI agents first

MCP server with four tools (check_subtitles, retime_subtitles, convert_subtitles, fix_subtitles). Add this to your MCP config — no Python, no browser, no cloud:

{
  "mcpServers": {
    "subkit": {
      "command": "subkit",
      "args": ["mcp"]
    }
  }
}

Example agent flow: check_subtitles → write a fix spec (30 tokens, measured) → fix_subtitles → check_subtitles again to confirm. Compare that with the agent reading the whole broken file and writing the whole fixed file by hand (425 tokens, measured — plus the debug loops when it introduces a new overlap) — see the repo README for the full benchmark.

Built with: Rust, a single static binary, and an MCP server — clap + serde + serde_json.

Subtitle work only — stated up front

subkit parses, checks, retimes and converts subtitle text (SRT, WebVTT, ASS/SSA). It never touches video or audio: no burn-in, no re-encode, no H.264 anywhere, no ASR transcription. Subtitle Edit and Aegisub already do this job for humans with a GUI, and the Rust library subtitler covers 17 formats — we say so plainly in the README. What subkit does is the part agents get wrong by hand: timing math, QC rules, and format conversion, offline and in milliseconds.

fix never rewords text, never splits cues, never changes line breaks — line length and reading speed need rewording, and the QC report says so. If fix cannot repair something safely, it says so instead of guessing.

Free, offline, MIT

Single static binary, no cloud, no account. Free core is 80% of a real subtitle QC tool; Pro (coming later, $10–29/month) adds karaoke timing, style presets, batch cloud API and a Cloud API.

Frequently asked questions

Is subkit really free?

Yes — MIT licensed, free core forever. Pro is a separate paid tier for karaoke/style/batch features.

Does it work offline?

Yes. 100% local; no network calls at all in the free build.

Which formats?

SRT, WebVTT and ASS/SSA — parse, check, retime and convert between all three.

Does it burn subtitles into video?

No — subtitle text only, no video encode, no H.264. Use ffmpeg for burn-in.

Does it transcribe speech?

No — no ASR. Use Whisper for transcription, then subkit for timing and QC.

How do I use it with Claude Code?

Add the MCP server block from the repo README to your MCP config; the agent gets check_subtitles, retime_subtitles, convert_subtitles, fix_subtitles.

What does fix not do?

It never rewords text, never splits cues, never changes line breaks — line length and reading speed need rewording, and the QC report says so.

How do I install it?

Run cargo install --git https://github.com/creatorops-studio/subkit (needs a Rust toolchain), or download the Release v0.1.0 binary (1,075,000 B) from the v0.1.0 release. The crate is not on crates.io yet.

Check, retime and convert subtitles in one command.

Free, offline, MIT licensed — get the source on GitHub. Subtitle text only: no video encode, no burn-in, no H.264, no transcription. If you are a human with a GUI, use Subtitle Edit; if you are an agent that needs a 30-token fix and a machine-readable report, this is the tool.