senpi: Instructions file for Codex

AGENTS.md

senpi AGENTS.md is an instructions file for Codex, OpenCode from code-yeongyu/senpi. It costs 5,222 tokens per session, scanned A, original, MIT.

Repository instructions for Senpi, an extension-first coding-agent monorepo. They define strict procedures for exploring, planning, tracking, implementing, reviewing, and merging requested changes.

In plain words
What is it for?
Use them for Senpi changes that require reading relevant guidance, creating a worktree, recording detailed tasks, running checks, opening a pull request, and collecting completion evidence.
Why use it?
They make the agent follow the project’s required process and preserve compatibility with the upstream repository before modifying code.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/code-yeongyu/senpi/agents-md"><img src="https://agentmods.dev/badge/instructions/code-yeongyu/senpi/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,222 This file is loaded in full into every session.
When invoked 5,222 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.05222 $0.05222
Opus 5.5 $0.02089 $0.02089
Sonnet 5.5 $0.01044 $0.01044
Haiku 4.5 $0.00522 $0.00522

Measured 3d ago against content hash 3492f4e91388, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

senpi 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 3d 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 · 180 lines

How it starts

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

Senpi Repository Guide

Generated: 2026-08-24 Commit: baf15a54d Branch: initdeep-refresh-20260824

Senpi is an extension-first coding-agent monorepo. Keep changes scoped, preserve upstream mergeability, and read the nearest AGENTS.md plus every applicable changes.md before editing.

MANDATORY EXECUTION PROTOCOLS — NON-NEGOTIABLE

PROTOCOL 1 — EXPLICITLY REQUESTED MODIFICATIONS

WHEN A PATCH MUST BE MADE TO THIS REPOSITORY AND THE USER HAS EXPLICITLY INSTRUCTED THE MODIFICATION, THE FOLLOWING SEQUENCE IS ABSOLUTE AND BINDING. EXECUTE EVERY STEP, IN THIS EXACT ORDER. SKIPPING, REORDERING, OR ABBREVIATING ANY STEP IS A DEFECT:

  1. EXPLORE — READ EVERY FILE, SYMBOL, AND TEST THE CHANGE TOUCHES BEFORE WRITING A SINGLE LINE.
  2. MAKE A PLAN — A DECISION-COMPLETE PLAN EXISTS BEFORE ANY CODE.
  3. ADD TODOS IN ULTRA-DETAIL — MIRROR EVERY ATOMIC PLAN STEP INTO THE TODO LIST.
  4. MAKE A NEW WORKTREE — NEVER IMPLEMENT IN THE SHARED WORKTREE.
  5. MAKE A PR AND WORK UNTIL IT GETS MERGED — AN UNMERGED PR IS UNFINISHED WORK.
  6. SET A GOAL AND RUN THE ULW LOOP — EVERY SUCCESS CRITERION PASSES WITH CAPTURED EVIDENCE.
  7. MANAGE TODOS OBSESSIVELY — UPDATE ON EVERY STATE TRANSITION. A STALE TODO LIST IS A DEFECT.

DELIVERY STOP INVARIANT: UNDER PROTOCOL 1, “PR OPENED” IS NEVER A VALID STOP CONDITION, GOAL SUCCESS CRITERION, OR FINAL TODO. DELIVERY ENDS ONLY WHEN GITHUB REPORTS MERGED AND THE TASK WORKTREE IS REMOVED. WHILE GATES ARE PENDING, KEEP MERGE/CLEANUP TODOS OPEN, MONITOR TO COMPLETION, THEN MERGE-COMMIT AND CLEAN UP BEFORE THE FINAL RESPONSE.

PROTOCOL 2 — USER-REQUESTED PR REVIEWS

WHEN THE USER REQUESTS A PR REVIEW, YOU MUST:

  1. MAKE A NEW WORKTREE — CREATE A DEDICATED GIT WORKTREE AND PULL THE PR BRANCH INTO IT. NEVER CHECK THE PR OUT IN THE SHARED WORKTREE.
  2. REVIEW INSIDE THAT WORKTREE — RUN THE FULL REVIEW (READ, BUILD, TEST, QA) THERE.
  3. CLEAN UP WHEN THE REVIEW IS DONE — THE MOMENT THE REVIEW IS FINISHED, REMOVE THE WORKTREE (git worktree remove THEN git worktree prune). A LEFTOVER REVIEW WORKTREE IS A DEFECT.

Read the full file on GitHub · 180 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. 3d ago Changed · +8 tokens per session 3492f4e91388
  2. 13d ago Changed · +1 lines · +181 tokens per session 6a98b5b72acd
  3. 15d ago Changed · +9 tokens per session 571e1b297c74
  4. 24d ago Changed · -69 tokens per session f8147bb8f623
  5. 1mo ago Changed · +11 lines · +412 tokens per session 073f45e72108
  6. 1mo ago Changed · -42 tokens per session 1cb70385f9b1
  7. 1mo ago Changed · +88 tokens per session b486d0bd4467
  8. 1mo ago Changed · +2 lines · +80 tokens per session 3a4e96c8a833
  9. 1mo ago Changed · +1 lines · +198 tokens per session 75c652de8e6d
  10. 2mo ago First seen · 165 lines · 4,357 tokens per session scan A bdecd4dfab69

Subscribe to this mod's changes

senpi AGENTS.md is an instructions file published in the GitHub repository code-yeongyu/senpi (511 stars, last pushed yesterday), licensed MIT. It adds 5,222 tokens to every session, about $0.0209 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

senpi AGENTS.md compared with instructions from other repositories

senpi AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
senpi AGENTS.mdcode-yeongyu/senpiInstructions file511yesterdayMITA5,222Codex, 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