clawforge: Instructions file for Codex

AGENTS.md

clawforge AGENTS.md is an instructions file for Codex, OpenCode from Dr-SoloDev/clawforge. It costs 869 tokens per session, scanned A, original, MIT.

Repository instructions for ClawForge, a tool that turns YAML scripts into narrated demo videos. It uses Playwright for recording, edge-tts for speech, and ffmpeg for video processing.

In plain words
What is it for?
Use them to run tests and examples, validate or resume video scripts, check dependencies, change output settings, enable verbose logs, or work with the CLI, MCP servers, and SDK.
Why use it?
They explain the available commands, required external programs, entry points, and main processing flow so changes can fit the project correctly.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is Dr-SoloDev/clawforge's own configuration. It tells Codex and OpenCode how to work on clawforge itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything clawforge configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Dr-SoloDev/clawforge. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Dr-SoloDev/clawforge/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/Dr-SoloDev/clawforge

Made for: Codex, OpenCode.

Wrote 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.

agentmods badge for clawforge AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/dr-solodev/clawforge/agents-md/github.svg)](https://agentmods.dev/instructions/dr-solodev/clawforge/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/dr-solodev/clawforge/agents-md"><img src="https://agentmods.dev/badge/instructions/dr-solodev/clawforge/agents-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.

agentmods 80×15 button for clawforge AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/dr-solodev/clawforge/agents-md"><img src="https://agentmods.dev/badge/instructions/dr-solodev/clawforge/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 869 This file is loaded in full into every session.
When invoked 869 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00869 $0.00869
Opus 5.5 $0.00348 $0.00348
Sonnet 5.5 $0.00174 $0.00174
Haiku 4.5 $0.00087 $0.00087

Measured 2mo ago against content hash 7917e03bd04a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

clawforge AGENTS.md scanned grade A with 0 findings 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 2mo ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 87 lines

How it starts

The opening of the file, as written. The whole thing — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ClawForge

Demo videos as code — YAML script → Playwright recording → edge-tts narration → ffmpeg → MP4.

Commands

npm test                          # Run all tests (node --test test/*.test.js)
npm start                         # node bin/clawforge.js
npm run example                   # Run examples/demo-script.yaml
clawforge check-deps              # Verify ffmpeg, ffprobe, edge-tts, Playwright
clawforge validate <script.yaml>  # Validate only, no execution
clawforge resume <checkpoint.json># Resume from .clawforge-checkpoints/
clawforge -o <dir>                # Override output directory
clawforge --verbose               # Verbose logging

External deps

  • ffmpeg + ffprobe in PATH
  • edge-tts Python package (pip install edge-tts)
  • Chromium (npx playwright install chromium)

Entrypoints

Purpose File
CLI bin/clawforge.js
MCP stdio server bin/clawforge-mcp.js
MCP SSE server (port 3100) clawforge-mcp-sse/index.js
Library (npm package) src/sdk-exports.js → exports ClawForgeSDK

Architecture

ClawForgeSDK (events + checkpoint)
  → ProductionSession.run()
    → 1. narrate()      edge-tts → per-scene MP3s
    → 2. record()       Playwright → single MP4
    → 3. compose()      ffmpeg → final MP4 (concat audio, mix music, burn subtitles/overlay)

MCP tools

  • clawforge_produce_video — script path or object, returns {outputPath, stats}
  • clawforge_validate_script — validate without running
  • clawforge_check_dependencies — status of all deps
  • clawforge_dry_run — validate + dep check

Two transports: stdio (npx clawforge-mcp) and SSE (GET /mcp, POST /mcp?sessionId=... on port 3100).

Tests

Uses Node.js built-in test runner. Files: test/smoke.test.js, validator.test.js, errors.test.js, subtitles.test.js, music.test.js, webcam.test.js.

CI (.github/workflows/ci.yml) tests on Node 20.x + 22.x, runs all tests + pipe JSON-RPC through MCP stdio server.

Read the full file on GitHub · 87 lines

Changes

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.

  1. 2mo ago First seen · 87 lines · 869 tokens per session scan A 7917e03bd04a

Subscribe to this mod's changes

clawforge AGENTS.md is an instructions file published in the GitHub repository Dr-SoloDev/clawforge (11 stars, last pushed 27d ago), licensed MIT. It adds 869 tokens to every session, about $0.0035 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

clawforge AGENTS.md compared with instructions from other repositories

clawforge AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
clawforge AGENTS.mdDr-SoloDev/clawforgeInstructions file1127d agoMITA869Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode