Borrowing it
Nothing to install: this file belongs to mutonby/openshorts. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/mutonby/openshorts/main/CLAUDE.mdgit clone --depth 1 https://github.com/mutonby/openshortsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/mutonby/openshorts/claude-md)<a href="https://agentmods.dev/instructions/mutonby/openshorts/claude-md"><img src="https://agentmods.dev/badge/instructions/mutonby/openshorts/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/mutonby/openshorts/claude-md"><img src="https://agentmods.dev/badge/instructions/mutonby/openshorts/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.02260 | $0.02260 |
| Opus 5.5 | $0.00904 | $0.00904 |
| Sonnet 5.5 | $0.00452 | $0.00452 |
| Haiku 4.5 | $0.00226 | $0.00226 |
Grade A, and why
openshorts CLAUDE.md scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- `DRAIN_TIMEOUT_SECONDS` must stay below the deployment's (Coolify) stop grace period. The image must ship `curl` for the platform health check. How it starts
The opening of the file, as written. The whole thing — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
OpenShorts is an AI-powered vertical video generator that turns long YouTube videos or local uploads into short 9:16 clips for TikTok, Instagram Reels and YouTube Shorts. Google Gemini 3.1 Flash-Lite (gemini-3.1-flash-lite, overridable with GEMINI_MODEL) picks the viral moments and writes the titles. It ships as self-host (BYOK) and as a Cloud edition (BILLING_ENABLED, code under cloud/).
Development Commands
docker compose up --build # full stack: backend :8000 (FastAPI), frontend :5175 (Vite proxies the API)
cd dashboard && npm install
npm run dev # dev server with HMR (:5173)
npm run build # production build (CI runs this)
npm run lint # ESLint, --max-warnings 0
pip install -r requirements.txt
uvicorn app:app --host 0.0.0.0 --port 8000
pytest tests/ -v # CI runs this without the heavy ML stack
Pipeline
Ingest (yt-dlp or upload) → transcription (word timestamps) → scene detection → Gemini picks moments (15-60 s) → FFmpeg cut → vertical reframing → effects/subtitles → hook overlay → optional ElevenLabs dubbing → S3/R2 backup → optional social posting via Upload-Post.
Key Files
main.py: core processing (transcription, scene detection, clip extraction, reframing). Runs as a child process per job.app.py: FastAPI server, job queue, REST endpoints, deploy handover/drain.clip_selection.py,layout_picker.py,reframe_v2.py,split_layout.py,screencast_layout.py,camera_inset.py: moment picking and layouts.editor.py(Gemini FFmpeg effects),hooks.py(hook overlays),subtitles.py(SRT/ASS, burning),translate.py(ElevenLabs dubbing),thumbnail.py.mcp_server.py,mcp_stdio.py: MCP over HTTP and stdio.cloud/: auth, API keys, metering, billing, lifecycle emails, account erasure, autopilot, proxy ledger, alerts.dashboard/src/App.jsx: main React component.dashboard/vite-plugin-seo.js+dashboard/seo/: build-time SEO pages, sitemap, llms.txt.dashboard/seo/data.js: single source of truth for pricing/pipeline/competitor facts.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today Changed · +34 tokens per session bbda2aee23e6
- 9d ago Changed · +4 lines · +277 tokens per session 3413c98f714a
- 10d ago Changed · +17 tokens per session 925efab85a73
- 1mo ago Changed · -725 lines · -11,496 tokens per session 2999dae19c51
- 1mo ago Changed · +39 lines · +630 tokens per session c790ed73a7cb
- 1mo ago Changed · +12 lines · +221 tokens per session 9cb16b3ccd3b
- 1mo ago Changed · +72 lines · +1,086 tokens per session 70d8040c725b
- 1mo ago Changed · +34 lines · +572 tokens per session 4b6b4e08e116
- 1mo ago Changed · +138 lines · +2,381 tokens per session b0b0d8c1ddfc
- 1mo ago First seen · 536 lines · 8,538 tokens per session scan A 104fcb249a54
openshorts CLAUDE.md is an instructions file published in the GitHub repository mutonby/openshorts (7,508 stars, last pushed yesterday), licensed MIT. It adds 2,260 tokens to every session, about $0.0090 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). It comes from a forked repository.
openshorts CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| openshorts CLAUDE.mdmutonby/openshorts | Instructions file | 7.5k | yesterday | MIT | A | 2,260 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |