planr-pipeline: Instructions file for Codex

AGENTS.md

planr-pipeline AGENTS.md is an instructions file for Codex, OpenCode from openplanr/planr-pipeline. It costs 3,010 tokens per session, scanned A, a copy of OpenPlanr AGENTS.md, MIT.

A set of instructions for planr-pipeline, a project that organizes development work through task and planning files. It describes how an agent should gather context before making changes.

In plain words
What is it for?
It helps agents find the relevant task, follow its linked planning documents, understand the requested outcome, and use the repository context when planning work.
Why use it?
It reduces the chance of implementing a task without understanding its parent request, dependencies, or acceptance criteria.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 planr-pipeline AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/openplanr/planr-pipeline/agents-md.svg)](https://agentmods.dev/instructions/openplanr/planr-pipeline/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/openplanr/planr-pipeline/agents-md"><img src="https://agentmods.dev/badge/instructions/openplanr/planr-pipeline/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,010 This file is loaded in full into every session.
When invoked 3,010 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 86% copy Near-identical to another mod 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.03010 $0.03010
Opus 5 $0.01505 $0.01505
Sonnet 5 $0.00602 $0.00602
Haiku 4.5 $0.00301 $0.00301

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

Security

Grade A, and why

planr-pipeline 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 6d 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.

Origin

This is a copy

86% identical to OpenPlanr AGENTS.md — 113 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

AGENTS.md · 273 lines

How it starts

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

planr-pipeline — Agent Instructions

Generated by OpenPlanr on 2026-05-03

This project follows a structured agile workflow. All planning artifacts are in .planr/.

Context-Gathering Protocol

Before implementing a task, gather the strongest available planning context. Use the artifact hierarchy when it exists; when it does not, use the explicit user request, repository ADRs/docs, and the existing code as the authoritative context. Missing .planr/ artifacts must never block an otherwise well-specified change.

Step 1: Read the Task List

  • If .planr/tasks/ or .planr/quick/ exists, open the relevant task file
  • Parse the frontmatter to find storyId or featureId
  • Identify the target subtask (first unchecked - [ ] item)
  • Read ALL subtasks to understand the full scope and dependencies
  • If no task artifact exists, treat the user's explicit implementation plan as the task specification and continue to Step 3.

Step 2: Read the Parent Chain (when present)

Follow the artifact hierarchy upward — each level adds critical context:

  1. User Story.planr/stories/US-XXX-*.md

    • Read the full story (role, goal, benefit, acceptance criteria)
    • Find and read the matching Gherkin file: .planr/stories/US-XXX-gherkin.feature
    • Extract the parent featureId from frontmatter
  2. Feature.planr/features/FEAT-XXX-*.md

    • Read the full feature (overview, functional requirements, technical considerations)
    • Extract the parent epicId from frontmatter
  3. Epic.planr/epics/EPIC-XXX-*.md

    • Read the epic summary (business value, problem statement, success criteria)
    • This provides the WHY behind the work

Step 3: Read Architecture Context

  • Read ALL ADRs in .planr/adrs/ — these are binding technical decisions
  • Check .planr/checklists/AGILE-DEVELOPMENT-GUIDE.md for current progress

Step 4: Scan the Codebase

Before writing code, understand what exists:

  1. Identify the tech stack — Read package.json, tsconfig.json, or equivalent
  2. Scan the source tree — List directories under src/ (or project root)
  3. Read architecture files — Look for these high-priority files:
    • Type definitions: src/models/types.ts, src/types/index.ts, or src/types.ts
    • Core services: src/services/ — understand CRUD patterns
    • Entry point: src/index.ts, src/main.ts, or src/app.ts — understand registration patterns
    • Config: src/config.ts or src/services/config-service.ts
  4. Find related files — Search for files matching keywords from the task description
  5. Check project rules — Read .planr/rules.md if it exists (MANDATORY rules)

Read the full file on GitHub · 273 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. 6d ago First seen · 273 lines · 3,010 tokens per session scan A d81ce2ba439d

Subscribe to this mod's changes

planr-pipeline AGENTS.md is an instructions file published in the GitHub repository openplanr/planr-pipeline (2 stars, last pushed 1mo ago), licensed MIT. It adds 3,010 tokens to every session, about $0.0151 per session on Opus 5. A static security scan graded it A with 0 findings. It is 86% identical to OpenPlanr AGENTS.md, differing in 113 lines, and is treated as a copy.

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,182 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