SpliceKit: Instructions file for Codex

AGENTS.md

SpliceKit AGENTS.md is an instructions file for Codex, OpenCode from elliotttate/SpliceKit. It costs 9,879 tokens per session, scanned A, original, MIT.

Instructions for controlling Final Cut Pro, Apple's video-editing application, through direct program calls sent to a local JSON-RPC server. It forbids keyboard simulation, AppleScript, menu clicking, and accessibility-based UI control.

In plain words
What is it for?
Use it to inspect and edit Final Cut Pro timelines, sequences, clips, and markers through direct object calls or supported bridge commands.
Why use it?
It sets a single programmatic way to edit projects and avoids fragile interactions that depend on the visible application interface. It also requires checking project details before editing or opening one.

Instructions file for CodexOpenCode

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

This is elliotttate/SpliceKit's own configuration. It tells Codex and OpenCode how to work on SpliceKit 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 SpliceKit configures →

Reuse

Borrowing it

Nothing to install: this file belongs to elliotttate/SpliceKit. 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/elliotttate/SpliceKit/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/elliotttate/SpliceKit

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 SpliceKit AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/elliotttate/splicekit/agents-md"><img src="https://agentmods.dev/badge/instructions/elliotttate/splicekit/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9,879 This file is loaded in full into every session.
When invoked 9,879 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.09879 $0.09879
Opus 5.5 $0.03952 $0.03952
Sonnet 5.5 $0.01976 $0.01976
Haiku 4.5 $0.00988 $0.00988

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

Security

Grade A, and why

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

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

AGENTS.md · 906 lines

How it starts

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

SpliceKit - Programmatic Final Cut Pro Control

SpliceKit is an ObjC dylib injected into FCP's process. It exposes all 78,000+ ObjC classes via a JSON-RPC server on TCP 127.0.0.1:9876. Everything is fully programmatic -- no AppleScript, no UI automation, no menu clicks.

NEVER Use Keyboard Simulation or AppleScript

All FCP actions MUST go through direct ObjC calls. Never use any of these:

  • SpliceKit_simulateKeyPress() or synthetic NSEvent key events
  • CGEvent keyboard/mouse posting
  • osascript / NSAppleScript / AppleScript tell application
  • Accessibility APIs (AXUIElement) for clicking or typing
  • Frame-stepping loops (nextFrame x N) when seekToTime exists

Instead, always use one of these patterns (in priority order):

  1. Direct method call on the timeline/sequence/clip object via objc_msgSend
  2. Responder chain via [NSApp sendAction:NSSelectorFromString(@"selector:") to:nil from:nil]
  3. Batch bridge endpoint (e.g. timeline.addMarkers) for operations on multiple items
  4. Menu execute via menu.execute for actions only accessible through menus

If an action doesn't have a direct ObjC selector yet, find one using explore_class / search_methods on the relevant class (FFAnchoredTimelineModule, FFAnchoredSequence, etc.) rather than simulating the keyboard shortcut.

Quick Start

1. bridge_status()                    -- verify connection
2. get_timeline_clips()               -- see timeline contents
3. timeline_action("blade")           -- edit
4. verify_action("after blade")       -- confirm

CRITICAL: Must Know Before Editing

Opening a Project

If get_timeline_clips() returns an error about "no sequence", load a project:

# Navigate: library -> sequences -> find one with content -> load it
libs = call_method_with_args("FFLibraryDocument", "copyActiveLibraries", "[]", true, true)
libs_handle = json.loads(libs)["handle"]
lib = call_method_with_args(libs_handle, "objectAtIndex:", '[{"type":"int","value":0}]', false, true)
lib_handle = json.loads(lib)["handle"]
seqs = call_method_with_args(lib_handle, "_deepLoadedSequences", "[]", false, true)
seqs_handle = json.loads(seqs)["handle"]
allSeqs = call_method_with_args(seqs_handle, "allObjects", "[]", false, true)
# For each sequence result, extract its "handle" before calling hasContainedItems
# Example: seq_handle = json.loads(seq)["handle"]
# Check each: call_method_with_args(seq_handle, "hasContainedItems", "[]", false)
# Load: get NSApp -> delegate -> activeEditorContainer -> loadEditorForSequence:

Read the full file on GitHub · 906 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 · 906 lines · 9,879 tokens per session scan A 45cdf03bb54e

Subscribe to this mod's changes

SpliceKit AGENTS.md is an instructions file published in the GitHub repository elliotttate/SpliceKit (199 stars, last pushed 2mo ago), licensed MIT. It adds 9,879 tokens to every session, about $0.0395 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

SpliceKit AGENTS.md compared with instructions from other repositories

SpliceKit AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
SpliceKit AGENTS.mdelliotttate/SpliceKitInstructions file1992mo agoMITA9,879Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file275k2d agoMITA4,313Codex, OpenCode