wiff: Instructions file for Codex

AGENTS.md

wiff AGENTS.md is an instructions file for Codex, OpenCode from xxxoooxoxo/wiff. It costs 1,288 tokens per session, scanned A, original, MIT.

Project instructions for using and developing wiff, a workflow system that lets coding agents coordinate multi-step work through MCP tools. MCP is a way for an AI coding tool to call external tools.

In plain words
What is it for?
Use them when orchestrating wiff workflows from another program or when changing the wiff codebase, including its agent calls and workflow scripts.
Why use it?
They document the required workflow interface and restrictions, reducing mistakes when agents start, monitor, wait for, or cancel long-running jobs.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: reads ~/.codex or $CODEX_HOME, but also the file is AGENTS.md. Also seen: mentions AGENTS.md; mentions Codex.

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

Reuse

Borrowing it

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

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/xxxoooxoxo/wiff/agents-md.svg)](https://agentmods.dev/instructions/xxxoooxoxo/wiff/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/xxxoooxoxo/wiff/agents-md"><img src="https://agentmods.dev/badge/instructions/xxxoooxoxo/wiff/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,288 This file is loaded in full into every session.
When invoked 1,288 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.01288 $0.01288
Opus 5 $0.00644 $0.00644
Sonnet 5 $0.00258 $0.00258
Haiku 4.5 $0.00129 $0.00129

Measured 8d ago against content hash fa35237d5245, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

wiff 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 8d 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 · 37 lines

How it starts

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

AGENTS.md

Instructions for coding agents. Two audiences: agents orchestrating with wiff from a harness, and agents working on this codebase.

Orchestrating with wiff (driving it from a harness)

wiff exposes five MCP tools through a disposable stdio bridge: workflow_start, workflow_status, workflow_wait, workflow_cancel, and workflow_models. The bridge auto-starts a detached local daemon that owns workflow execution, so runs survive the launching harness or MCP process exiting. You author a workflow as a plain JavaScript script and pass it to workflow_start with an absolute cwd; everything persists under ~/.wiff/runs/<runId>/.

Before authoring a script, read plugins/wiff/skills/workflow/references/api.md — it is the full script contract. Inside Codex the bundled $workflow skill loads it for you; from any other harness, read it (or copy the skill into your harness's skills directory).

Rules that catch agents out:

  • Workflow code is sandboxed. No imports, filesystem, shell, network, time, or randomness inside the script — those all throw. Agents do the external work; the script only orchestrates.
  • Give every agent() call a stable key. Keys are the resume/cache identity. A run resumed after a crash or script edit replays completed agents with unchanged (key, input) for free; without keys you re-pay for everything.
  • parallel() takes thunks (() => agent(...)), not started promises, and preserves result order. Any rejection fails the workflow with AggregateError — that is deliberate (fail-hard). Use parallelSettled() only when the script explicitly handles per-item failure.
  • Defaults: model gpt-5.6-sol, effort medium, sandbox read-only, 10-minute execution timeout after queue admission. Set effort: "low" for mechanical work and effort: "high" for deep review or synthesis; raise the sandbox to workspace-write only for agents that must edit files.
  • Concurrent writers need isolation: "worktree". Each writing agent gets a fresh detached git worktree; clean ones vanish, dirty ones are kept and listed on the run for you to inspect or merge. Requires cwd to be inside a git repository.
  • Deterministic scripts resume. To pick up a dead or cancelled run: workflow_start with { resumeFromRunId }. Completed agents replay from the journal; agents interrupted mid-turn re-run with a digest of their previous transcript injected.
  • Concurrency is capped at min(16, max(2, cores − 2)) running children (excess queue), and a run may request at most 1000 agents.
  • Personas (agentType: "name") resolve from <cwd>/.codex/agents/<name>.md, then ~/.codex/agents/<name>.md (CODEX_WORKFLOW_AGENTS_DIR overrides). Editing a persona invalidates the cache of agents that use it.
  • Don't poll blindly. workflow_wait blocks up to 55 s for a state change; loop on it rather than hammering workflow_status.
  • The parent may disconnect. Preserve the runId before ending the parent turn. A later MCP bridge can wait, inspect, or cancel the same daemon-owned run. Graceful daemon restarts resume durable active runs; abrupt daemon death leaves them safely interrupted for explicit resume.
  • The first bridge supplies daemon environment. The daemon inherits that bridge's PATH, backend credentials, and Wiff/Codex environment defaults until it restarts. If those values change, gracefully terminate the pid in ~/.wiff/daemon.json or wait for idle shutdown before starting new work.
  • Inspect failures from disk. ~/.wiff/runs/<runId>/journal.jsonl records every phase/agent event with input hashes and token usage; agents/*.jsonl hold full per-child transcripts. Read those before re-running anything.

Read the full file on GitHub · 37 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. 8d ago First seen · 37 lines · 1,288 tokens per session scan A fa35237d5245

Subscribe to this mod's changes

wiff AGENTS.md is an instructions file published in the GitHub repository xxxoooxoxo/wiff (5 stars, last pushed 19d ago), licensed MIT. It adds 1,288 tokens to every session, about $0.0064 per session on Opus 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-31.

Related

Other instructions, from other repositories

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,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

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 · 6,785 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, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 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,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens