motif: Instructions file for Codex

AGENTS.md

motif AGENTS.md is an instructions file for Codex, OpenCode from jvogan/motif. It costs 1,025 tokens per session, scanned A, original, MIT.

Repository instructions for Motif for Claude Science, a portable plugin repository with a focused connector. They define the project's important files, commands, ownership boundaries, and interface-testing requirements.

In plain words
What is it for?
Use them when type-checking, testing, previewing, or changing the Motif artifact and its plugin, including responsive, theme, mouse, and keyboard behaviour.
Why use it?
They prevent agents from using misleading type-check commands or treating a passing automated check as proof that the interface works correctly.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/jvogan/motif/agents-md"><img src="https://agentmods.dev/badge/instructions/jvogan/motif/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,025 This file is loaded in full into every session.
When invoked 1,025 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.01025 $0.01025
Opus 5.5 $0.00410 $0.00410
Sonnet 5.5 $0.00205 $0.00205
Haiku 4.5 $0.00103 $0.00103

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

Security

Grade A, and why

motif 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 1mo 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 · 96 lines

How it starts

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

Motif — Agent Guide

This is a portable workbench and plugin repository with a narrow Motif-owned MCP App connector. Keep the Motif core host-neutral and independent of any desktop application, native database, or predecessor identity. Codex and Claude Science are adapters around the same runtime, not separate products.

Start here

npm run typecheck
npm test
npm run preview:motif

Use npm run typecheck, never npx tsc --noEmit. The root tsconfig.json is solution-style ("files": [] plus project references), so --noEmit finds no files and exits 0 unconditionally, while tsc -b follows the project references. It is not a weaker check; it does not check this repository. scripts/__tests__/gate-parity.test.mjs fails if the typecheck script drifts to --noEmit.

For visible changes, open preview/motif-artifact.html in a real browser and exercise wide, narrow, light, dark, resized-panel, mouse, and keyboard states. A passing DOM assertion is not proof that a control is legible or reachable.

Important paths

  • motif.html — Vite entry
  • src/artifacts/motif-artifact.tsx — standalone runtime entry
  • src/artifacts/motif-artifact.css — artifact styling
  • src/artifacts/motif-for-claude-science-plugin/ — Claude plugin source
  • src/artifacts/motif-for-codex-plugin/ — Codex plugin source
  • src/artifacts/motif-for-claude-science-skill/ — standalone skill
  • mcp/motif/ — bounded Motif MCP tools and resource registration
  • src/mcp-app/ — full-workbench MCP App bridge
  • scripts/build-claude-science-artifact.mjs — deterministic distributable
  • scripts/build-preview.mjs — isolated browser preview
  • e2e/ — focused real-browser workflow coverage

Product contracts

  • Product name: Motif
  • Compatibility package/plugin slug: motif-for-claude-science
  • Current release version is 0.4.0 and must stay aligned in runtime, package, manifest, and changelog.
  • New schemas, environment variables, page APIs, output files, and provenance identifiers use motif / MOTIF_ names.
  • Do not reintroduce predecessor names or initials in public contracts. Do not claim that an older connector is Motif.
  • window.motifHelp() is the runtime manifest for page-local APIs.

Read the full file on GitHub · 96 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. 1mo ago Changed · +4 lines · +41 tokens per session db46a56f2670
  2. 1mo ago Changed · +2 lines · +41 tokens per session 27fd62d551de
  3. 2mo ago First seen · 90 lines · 943 tokens per session scan A 234c8d02fb1c

Subscribe to this mod's changes

motif AGENTS.md is an instructions file published in the GitHub repository jvogan/motif (49 stars, last pushed 8d ago), licensed MIT. It adds 1,025 tokens to every session, about $0.0041 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

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens