ypi: Instructions file for Codex

AGENTS.md

ypi AGENTS.md is an instructions file for Codex, OpenCode from rawwerks/ypi. It costs 5,026 tokens per session, scanned A, original, MIT.

Instructions for running ypi prose programs and long-running background tasks, including a notification when a task finishes.

In plain words
What is it for?
Use them to launch ypi tasks in tmux, run work in the background, and continue working until a completion notification arrives.
Why use it?
They prevent the agent from repeatedly checking whether a background task is done. A sentinel file signals completion and wakes the agent when needed.

Instructions file for CodexOpenCode

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

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

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/raw/Documents/GitHub/rlm-cli.

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/rawwerks/ypi/agents-md"><img src="https://agentmods.dev/badge/instructions/rawwerks/ypi/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,026 This file is loaded in full into every session.
When invoked 5,026 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.05026 $0.05026
Opus 5.5 $0.02010 $0.02010
Sonnet 5.5 $0.01005 $0.01005
Haiku 4.5 $0.00503 $0.00503

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

Security

Grade A, and why

ypi 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 · 381 lines

How it starts

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

Agent Instructions — ypi

Running Prose Programs & Background Tasks

Launch long-running tasks in tmux with a sentinel file. The notify-done extension watches /tmp/ypi-signal-* and injects a message into your conversation when the task finishes — no sleeping, no polling, no tmux capture-pane loops. How it works:

  • Idle → triggerTurn fires immediately, you get a new turn
  • Busy (mid-tool-execution) → message is steered in, delivered after the current tool finishes
  • Either way, the notification appears in your message history and you respond to it
# Launch with sentinel (you'll be woken up when it finishes)
tmux send-keys -t eval:land "cd ~/Documents/GitHub/ypi && rp ypi .prose/land.prose; echo done > /tmp/ypi-signal-${YPI_INSTANCE_ID}-land" Enter
# That's it. Keep working on other things. You'll get a message like:
#   ⚡ Background task "land" completed: done
# ...and a new turn is triggered so you can respond to it.

IMPORTANT: Do NOT poll or sleep-loop waiting for background tasks. Do not sleep && tmux capture-pane in a loop. Do not check progress unless asked. Just keep working — the extension will interrupt you when it's ready.

Sentinel naming: /tmp/ypi-signal-${YPI_INSTANCE_ID}-{name} — always include $YPI_INSTANCE_ID so the signal reaches THIS instance, not a sibling. The {name} part appears in the notification. File contents become the notification body. The file is deleted after consumption. Key programs:

  • rp ypi .prose/land.prose — "land it" / "land the plane": tests, push, handoff
  • rp ypi .prose/release.prose confirm_release='Approved.' — cut an npm release
  • rp ypi .prose/check-upstream.prose — verify Pi compatibility
  • rp ypi .prose/incorporate-insight.prose insight='...' — propagate an insight across the repo

Version Control: Use jj, not git

This repo uses jj (Jujutsu) for version control. Git is only for GitHub sync.

# Working with changes
jj status                    # What's changed
jj diff                      # See the diff
jj describe -m "message"     # Describe current change
jj new                       # Start a new change on top

# Pushing to GitHub
jj bookmark set master       # Point master at current change
jj git push                  # Push to GitHub

# Reviewing sub-agent work
jj log                       # See all changes including sub-agent workspaces
jj diff -r <change-id>       # Review a sub-agent's edits
jj squash --from <change-id> # Absorb a sub-agent's work into yours
jj abandon <change-id>       # Discard a sub-agent's work

Read the full file on GitHub · 381 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 · 381 lines · 5,026 tokens per session scan A 98c76fb42693

Subscribe to this mod's changes

ypi AGENTS.md is an instructions file published in the GitHub repository rawwerks/ypi (392 stars, last pushed 4mo ago), licensed MIT. It adds 5,026 tokens to every session, about $0.0201 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

ypi AGENTS.md compared with instructions from other repositories

ypi AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ypi AGENTS.mdrawwerks/ypiInstructions file3924mo agoMITA5,026Codex, 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