effection: Instructions file for Codex

AGENTS.md

effection AGENTS.md is an instructions file for Codex, OpenCode from thefrontside/effection. It costs 455 tokens per session, scanned A, original, MIT.

An agent contract for Effection, a JavaScript and TypeScript library for managing asynchronous work. It explains the difference between lazy operations and eager promises, and how structured concurrency keeps work inside its owning scope.

In plain words
What is it for?
Use it when changing Effection code involving operations, promises, generators, spawning tasks, or scopes.
Why use it?
It prevents an agent from assuming that Effection behaves like other asynchronous libraries or inventing unsupported APIs. This helps preserve the library’s core behavior.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/thefrontside/effection/agents-md"><img src="https://agentmods.dev/badge/instructions/thefrontside/effection/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 455 This file is loaded in full into every session.
When invoked 455 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.00455 $0.00455
Opus 5.5 $0.00182 $0.00182
Sonnet 5.5 $0.00091 $0.00091
Haiku 4.5 $0.00046 $0.00046

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

Security

Grade A, and why

effection 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 · 49 lines

What it actually says

AGENTS.md — Effection repository contract

This file is for AI agents contributing to the Effection repository. It adds repository-only rules on top of the public behavioral contract, which it does not repeat.

Before you modify or reason about Effection code, read the public contract in docs/agents.md, the copy checked out on this branch. The website publishes the same document at https://frontside.com/effection/AGENTS.md. It holds the invariants: operations versus promises, scope ownership, tasks and halting, context, the concurrency operations, promise interoperability, resources and cleanup, ensure(), useAbortSignal(), and streams.

Instructions scoped to a subdirectory, such as www/AGENTS.md for the website, apply in addition to this file.

Code style

  • Always use braces for if statements. No bare/braceless if blocks.

Commit and PR conventions

Use gitmoji for commit and pull request subjects. For changes to files that direct the behavior of AI such as AGENTS.md or llms.txt use a robot emoji instead of the standard gitmoji for documentation

Do not include any agent marketing material (e.g. "Generated with...", "Co-Authored-By: <agent>") in commits, pull requests, issues, or comments.

Pre-commit workflow

Before committing any changes to this repository:

  1. Run deno fmt to format all changed files
  2. Run deno lint to check for lint errors (TypeScript files only)
  3. Fix any issues before committing

This applies to all file types that Deno formats (TypeScript, JavaScript, Markdown, JSON, etc.). The www/ subdirectory follows the same rules.

Pull requests

When creating a pull request, use the template at .github/pull_request_template.md. The PR description must include:

  • Motivation — describe the problem or feature request the PR addresses.
  • Approach — provide a brief summary of the changes made.
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 · +2 lines · +24 tokens per session 46ce23d0a740
  2. 1mo ago Changed · -457 lines · -3,606 tokens per session 0fe3b0c1ea0d
  3. 1mo ago Changed · +46 lines · +407 tokens per session 6a235ecb6cbc
  4. 2mo ago First seen · 458 lines · 3,630 tokens per session scan A 8500360c3944

Subscribe to this mod's changes

effection AGENTS.md is an instructions file published in the GitHub repository thefrontside/effection (865 stars, last pushed 4d ago), licensed MIT. It adds 455 tokens to every session, about $0.0018 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

effection AGENTS.md compared with instructions from other repositories

effection AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
effection AGENTS.mdthefrontside/effectionInstructions file8654d agoMITA455Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,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