openprd-loop

openprd-loop is a command for Codex from DavidLam-oss/obsidian-wechat-converter. It costs 0 tokens per session (399 once invoked), scanned A, a copy of loop, MIT.

A command-loop adapter that turns structured change tasks into a sequence of development sessions for Codex or Claude. It can initialize a workspace, plan tasks, inspect the next dependency-ready task, prepare or run one task, and finish it when a commit is explicitly requested.

In plain words
What is it for?
Use it to initialize a workspace, build a feature list from change tasks, find the next ready task, prepare or run a single agent session, diagnose Codex setup, and finish a task with a commit when requested.
Why use it?
It organizes longer development work into individual tasks with dependencies and a self-test step, reducing the need to coordinate each stage manually. It also provides checks for the required agent tools.

Command for Codex

Written for Codex: installed under .codex/. Also seen: mentions Claude Code; mentions Codex.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/davidlam-oss/obsidian-wechat-converter/openprd-loop
Clone the repo
git clone --depth 1 https://github.com/DavidLam-oss/obsidian-wechat-converter

Made for: Codex.

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 openprd-loop

README.md
[![agentmods](https://agentmods.dev/badge/commands/davidlam-oss/obsidian-wechat-converter/openprd-loop.svg)](https://agentmods.dev/commands/davidlam-oss/obsidian-wechat-converter/openprd-loop)
Your own site
<a href="https://agentmods.dev/commands/davidlam-oss/obsidian-wechat-converter/openprd-loop"><img src="https://agentmods.dev/badge/commands/davidlam-oss/obsidian-wechat-converter/openprd-loop.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 399 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 89% 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.00000 $0.00399
Opus 5 $0.00000 $0.00199
Sonnet 5 $0.00000 $0.00080
Haiku 4.5 $0.00000 $0.00040

Measured yesterday against content hash 2987dad85f1f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

openprd-loop 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 yesterday.

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

89% identical to loop — 2 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.

.codex/prompts/openprd-loop.md · 24 lines

What it actually says

OpenPrd Loop

使用长程 agent harness 做开发落地。

  1. Run openprd loop . --init once for the workspace.
  2. Run openprd loop . --plan --change <id> to build the feature list from structured change tasks.
  3. Run openprd loop . --next to inspect the next dependency-ready task.
  4. Run openprd loop . --run --agent codex --dry-run or openprd loop . --run --agent claude --dry-run to prepare one fresh single-task session.
  5. For real Codex runs, OpenPrd preflights codex --version before launching the child session. If a Codex optional dependency is missing, diagnose it with openprd doctor . --tools codex; only use openprd loop . --run --agent codex --repair-agent when the user explicitly approves the global npm repair.
  6. Only run openprd loop . --run when the current user message explicitly asks to execute development, continue a task, or perform deep research/benchmarking.
  7. 每个任务都必须先自测;前端界面任务在 Codex 桌面优先用 Computer Use,在 CLI/Claude Code 优先用 Playwright 或 MCP 自动化。
  8. After the session completes, run openprd loop . --finish --item <task-id> --commit only when commit is explicitly part of the requested execution.

Do not continue into the next task inside the same agent session.

For interactive OpenPrd work, rebuild state from .openprd/ before acting. In unattended automation, skip OpenPrd context/gates unless the task explicitly opts into OpenPrd.

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. yesterday First seen · 24 lines · 0 tokens per session scan A 2987dad85f1f

Subscribe to this mod's changes

openprd-loop is a command published in the GitHub repository DavidLam-oss/obsidian-wechat-converter (304 stars, last pushed 22d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 399 tokens. A static security scan graded it A with 0 findings. It is 89% identical to loop, differing in 2 lines, and is treated as a copy.