npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@joseph0926/plan-loop

v1.1.0

Published

MCP server for Claude-Code and Codex async collaboration with CLI setup

Readme

Plan Loop

Plan Loop is an MCP server that enables an asynchronous plan review loop between Claude-Code (planner) and Codex (reviewer) by sharing session state on disk.

Repository layout

  • packages/cli/src/: MCP server source code (Node.js + TypeScript)
  • packages/core/src/: MCP core library (state + tools)
  • packages/vscode/: VSCode extension (Marketplace only)
  • .mcp.json.example: sample MCP server configuration (copy to .mcp.json to use)

Quick start

  1. Install & setup (recommended)
# Run once with npx (no install)
npx @joseph0926/plan-loop setup

# Or install globally
npm install -g @joseph0926/plan-loop
plan-loop setup

Setup options

plan-loop setup                    # Setup both Claude (project) + Codex (user)
plan-loop setup --claude           # Claude Code only (project scope)
plan-loop setup --claude --user    # Claude Code (user scope, ~/.claude.json)
plan-loop setup --codex            # Codex only (user scope)
  1. Manual registration (optional)

Claude Code - Add to .mcp.json (project) or ~/.claude.json (user):

{
  "mcpServers": {
    "plan-loop": {
      "command": "npx",
      "args": ["-y", "@joseph0926/plan-loop"]
    }
  }
}

Codex - Add to ~/.codex/config.toml:

[mcp_servers.plan-loop]
command = "npx"
args = ["-y", "@joseph0926/plan-loop"]
  1. Use tools (example)
pl_start({ goal: "Plan a login feature" })
pl_submit({ session_id: "abc123", plan: "1. ..." })
pl_get_plan({ session_id: "abc123" })
pl_feedback({ session_id: "abc123", rating: "🟢", content: "LGTM" })

Tool list

  • pl_start: start a session
  • pl_submit: submit a plan
  • pl_get_plan: fetch the latest plan
  • pl_feedback: submit feedback for the latest plan
  • pl_get_feedback: fetch the latest feedback
  • pl_status: fetch full session data
  • pl_list: list all sessions (with filter/sort)
  • pl_delete: delete a session
  • pl_force_approve: approve an exhausted session

Agent Collaboration

Claude-Code (planner) and Codex (reviewer) collaborate to review plans.

Quick Start

# 1. Claude-Code: Start session and submit plan
pl_start({ goal: "Implement login feature" })
pl_submit({ session_id: "...", plan: "1. DB schema..." })

# 2. Codex: Fetch plan and provide feedback
pl_get_plan({ session_id: "..." })
pl_feedback({ session_id: "...", rating: "🟡", content: "Please specify auth method" })

# 3. Claude-Code: Check feedback and revise
pl_get_feedback({ session_id: "..." })
pl_submit({ session_id: "...", plan: "Revised plan..." })

# 4. Codex: Approve
pl_feedback({ session_id: "...", rating: "🟢", content: "LGTM" })

Detailed Agent Guidelines

See AGENTS.md for detailed workflows and feedback auto-completion guide.

State storage

Session files are stored under ~/.plan-loop/sessions/.

Development

npm run dev
npm run build

Sample configuration

To add MCP configuration to your project:

cp .mcp.json.example .mcp.json

License

MIT