Pi Messenger Crewのロゴ

Pi Messenger Crew

コミュニティ
nicobailon
pi-messenger-crew

Orchestrator reference for pi-messenger Crew planning, task management, configuration, and agent coordination. Crew workers already have the pi_messenger actions they need in crew-worker.md.

概要

公開者nicobailon
リポジトリpi-messenger
スキル名pi-messenger-crew
スター
719
フォーク
58
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    nicobailonがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Pi Messenger Crew」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/nicobailon/pi-messenger/tree/main/skills/pi-messenger-crew
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nicobailon/pi-messenger.git /tmp/pi-messenger
mkdir -p .claude/skills
cp -r /tmp/pi-messenger/skills/pi-messenger-crew .claude/skills/pi-messenger-crew
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでPi Messenger Crewを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にPi Messenger Crewを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Pi Messenger Crewは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Pi-Messenger Crew Skill

Crew workers do not need this skill. crew-worker.md already contains every pi_messenger action workers need for task execution.

Orchestrators and humans can use this as the full reference for planning, task management, configuration, and Crew internals.

Use pi-messenger for multi-agent coordination and Crew task orchestration.

Quick Reference

Join or Leave the Mesh

typescript
pi_messenger({ action: "join" })
pi_messenger({ action: "leave" })

Check Status

typescript
pi_messenger({ action: "status" })
pi_messenger({ action: "list" })  // See other agents
pi_messenger({ action: "feed" })  // Activity feed

Crew Workflow

1. Check Crew Agents

typescript
pi_messenger({ action: "crew.agents" })  // Verify 5 agents
pi_messenger({ action: "crew.install" }) // Informational: shows discovered sources

2. Plan from PRD

typescript
// Auto-discover PRD.md in current directory
pi_messenger({ action: "plan" })

// Or specify path
pi_messenger({ action: "plan", prd: "path/to/PRD.md" })

// Or pass an inline prompt (no PRD file needed)
pi_messenger({ action: "plan", prompt: "Scan the codebase for bugs focusing on error handling" })

// Re-plan with a steering prompt (wipes existing tasks, preserves progress notes)
pi_messenger({ action: "plan", prompt: "Split the auth module into login and registration" })

// Steer first-time planning (prompt injected into progress notes before planner runs)
pi_messenger({ action: "plan", prd: "docs/PRD.md", prompt: "focus on backend first" })

// Plan + auto-start autonomous work when planning completes
pi_messenger({ action: "plan" })  // auto-starts workers (default)

// Cancel active or stale planning
pi_messenger({ action: "plan.cancel" })

Re-planning rejects if any tasks are in_progress — stop or complete them first. The steering prompt is injected into planning-progress.md's Notes section where the planner reads it on every pass.

Optional: Activate Team Context

typescript
pi_messenger({ action: "team.setup", name: "migration-squad" })
pi_messenger({ action: "team.setup", name: "review-squad" })
pi_messenger({ action: "team.setup", name: "research-squad", message: "Research first, then plan the implementation." })
pi_messenger({ action: "team.memory.note", type: "decision", message: "Use cursor pagination for task history" })
pi_messenger({ action: "team.roles" })
pi_messenger({ action: "team.status" })

Team is optional. Use team.setup for first-run setup: it activates a profile, saves editable JSON if needed, creates a starter charter when missing, and returns next steps. Crew remains the execution engine. Team role names follow the packaged pi-subagents vocabulary where possible (context-builder, delegate, oracle, planner, researcher, reviewer, scout, worker). pi-messenger may read subagent markdown metadata from disk when present, but it does not require or invoke subagents. Active Team profiles let the planner tag tasks with role and riskLabels, then inject role, charter, and memory context into worker prompts. High-risk tasks wait for task.approve; task.reject records feedback and rejected tasks surface task.revise / task.revise-tree next steps.

3. Work on Tasks

typescript
// Single wave (runs ready tasks once)
pi_messenger({ action: "work" })

// Autonomous (keeps running until done/blocked)
pi_messenger({ action: "work", autonomous: true })

// Override concurrency or model for this wave
pi_messenger({ action: "work", autonomous: true, concurrency: 4 })
pi_messenger({ action: "work", model: "claude-sonnet-4-20250514" })

4. Task Management

typescript
pi_messenger({ action: "task.list" })
pi_messenger({ action: "task.ready" })  // Tasks with no pending deps
pi_messenger({ action: "task.show", id: "task-1" })
pi_messenger({ action: "task.start", id: "task-1" })
pi_messenger({ action: "task.progress", id: "task-1", message: "Implemented auth middleware" })
pi_messenger({ action: "task.done", id: "task-1", summary: "What was done" })
pi_messenger({ action: "task.block", id: "task-1", reason: "Why blocked" })
pi_messenger({ action: "task.unblock", id: "task-1" })
pi_messenger({ action: "task.reset", id: "task-1" })
pi_messenger({ action: "task.reset", id: "task-1", cascade: true })  // Reset dependents too

// Create tasks manually
pi_messenger({ action: "task.create", title: "Implement auth", content: "Detailed spec...", dependsOn: ["task-1"] })
pi_messenger({ action: "task.create", title: "Change auth API", role: "worker", riskLabels: ["auth", "api-contract"] })
pi_messenger({ action: "task.approve", id: "task-2" })

// Split a task into subtasks (two-phase: inspect then execute)
pi_messenger({ action: "task.split", id: "task-3" })  // Inspect: shows spec, deps, dependents
pi_messenger({ action: "task.split", id: "task-3", subtasks: [
  { title: "Subtask A", content: "..." },
  { title: "Subtask B", content: "..." }
] })  // Execute: creates subtasks, parent becomes milestone

5. Task Revision

typescript
// Revise a single task's spec (planner rewrites based on your prompt)
pi_messenger({ action: "task.revise", id: "task-3", prompt: "add error handling for network failures" })

// Revise a task and all its transitive dependents (subtree revision)
// Planner sees the full subtree and can add/remove/modify tasks
pi_messenger({ action: "task.revise-tree", id: "task-3", prompt: "split this into separate API and CLI tasks" })

Single revision rewrites one task's spec. Tree revision rewrites an entire subtree — the planner can modify existing tasks, add new ones (capped at 2x subtree size), remove pending ones, and rewire dependencies. Done tasks in the subtree are preserved; revisable tasks reset to todo.

Both revisions are mutually exclusive (only one revision at a time).

6. Review

typescript
// Review a task implementation
pi_messenger({ action: "review", target: "task-1" })

// Review the overall plan
pi_messenger({ action: "review", target: "plan", type: "plan" })

Overlay Keybindings

The Crew overlay (accessible via /messenger then tab to Crew) supports these keybindings:

Global: [+/-] Adjust worker concurrency (1-10), [c] Cancel active planning, [Esc] Close/back

Task list view: [↑/↓] Navigate, [Enter] Detail view

Task actions (list and detail):

  • [s] Start task (todo only)
  • [r] Reset task, [R] Cascade reset (reset + all dependents)
  • [u] Unblock task (blocked only)
  • [b] Block with reason (in_progress only)
  • [q] Stop worker (in_progress with live worker)
  • [m] Message worker (in_progress with live worker)
  • [S] Split task (shows hint with command)
  • [p] Revise task spec, [P] Revise subtree (not in_progress, not milestone)
  • [x] Delete task (not while worker is active)
  • [←/→] Navigate between tasks in detail view

File Coordination

typescript
// Reserve files before editing
pi_messenger({ action: "reserve", paths: ["src/index.ts", "src/types.ts"], reason: "Working on core" })

// Release when done
pi_messenger({ action: "release" })

Agent Communication

typescript
// Rename yourself
pi_messenger({ action: "rename", name: "MyAgentName" })

// Send message to specific agent
pi_messenger({ action: "send", to: "OtherAgent", message: "Hello!" })

// Broadcast to all
pi_messenger({ action: "broadcast", message: "Announcement" })

Messages are logged to the feed and visible in the overlay. DMs interrupt only the target agent (delivered as steering); broadcasts interrupt all agents.

Typical Crew Session

typescript
// 1. Join
pi_messenger({ action: "join" })

// 2. Plan (spawns planner agent)
pi_messenger({ action: "plan" })

// 3. Check tasks
pi_messenger({ action: "task.list" })

// 4. Work
pi_messenger({ action: "work", autonomous: true })

// 5. Status
pi_messenger({ action: "status" })

Data Storage

Crew stores data in .pi/messenger/crew/:

.pi/messenger/crew/
├── config.json              # Project config (concurrency, models, coordination, etc.)
├── plan.json                # Plan metadata
├── planning-progress.md     # Planner output log (Notes section for steering)
├── planning-outline.md      # Latest plan outline
├── planning-state.json      # Current planning phase/pass
├── agents/                  # Optional: project-level crew agent overrides
│   └── crew-worker.md
├── tasks/
│   ├── task-1.json          # Task metadata (status, deps, summary)
│   ├── task-1.md            # Task spec (planner-generated)
│   ├── task-1.progress.md   # Worker progress log
│   └── ...
├── blocks/
│   └── task-N.md            # Block context
└── artifacts/               # Debug artifacts (agent input/output)

Team stores active project state in .pi/messenger/team/:

.pi/messenger/team/
├── team.json        # Active team/profile
├── charter.md       # Project team charter
├── memory.jsonl     # Structured memory source of truth
├── decisions.md     # Human-readable memory rollups
├── interfaces.md
├── risks.md
└── handoffs.md

Reusable profiles are JSON files under ~/.pi/agent/messenger/team-profiles/.

The activity feed lives at .pi/messenger/feed.jsonl (project-scoped, shared across all agents in the project).

Each crew agent ships with a default model:

AgentRoleDefault Model
crew-plannerplanneranthropic/claude-opus-4-6
crew-workerworkeranthropic/claude-haiku-4-5
crew-reviewerrevieweranthropic/claude-opus-4-6
crew-plan-syncanalystanthropic/claude-haiku-4-5

Override via crew.models.<role> in config. To customize an agent for a project, copy it from ~/.pi/agent/extensions/pi-messenger/crew/agents/ to .pi/messenger/crew/agents/ and edit the frontmatter — project-level agents override extension defaults by name. Agents support thinking: <level> in frontmatter (off, minimal, low, medium, high, xhigh). Config thinking.<role> overrides the frontmatter value.

Configuration

User-level config goes in ~/.pi/agent/pi-messenger.json under a crew key. Project-level config goes in .pi/messenger/crew/config.json. Project overrides user, both override defaults.

Crew spawns multiple LLM sessions in parallel — start with a cheap worker model and scale up. Add this to ~/.pi/agent/pi-messenger.json:

json
{ "crew": { "models": { "worker": "claude-haiku-4-5" } } }

Model strings accept provider/model format for explicit provider selection and :level suffix for inline thinking control:

json
{ "crew": { "models": { "worker": "anthropic/claude-haiku-4-5", "planner": "openrouter/anthropic/claude-sonnet-4:high" } } }

The :level suffix and the thinking.<role> config are independent — if both are set, the suffix takes precedence.

Full example (~/.pi/agent/pi-messenger.json):

json
{
  "crew": {
    "concurrency": { "workers": 3, "max": 6 },
    "models": { "worker": "claude-haiku-4-5", "planner": "claude-sonnet-4-6" },
    "coordination": "chatty",
    "work": { "maxAttemptsPerTask": 5 }
  }
}

Project-level (.pi/messenger/crew/config.json):

json
{
  "concurrency": { "workers": 4 },
  "coordination": "moderate",
  "models": { "worker": "gpt-4.1" },
  "planning": { "maxPasses": 1 },
  "work": {
    "maxWaves": 50,
    "env": { "OPENAI_API_BASE": "https://custom.endpoint" }
  }
}

Key Settings

SettingDescriptionDefault
concurrency.workersDefault parallel workers per wave2
concurrency.maxMaximum workers allowed via + key (hard ceiling: 10)10
dependenciesDependency scheduling mode: advisory or strict"advisory"
coordinationWorker communication level: none, minimal, moderate, chattychatty
messageBudgetsMax outgoing messages per worker per level (sends rejected after limit){ none: 0, minimal: 2, moderate: 5, chatty: 10 }
models.workerDefault model for workersanthropic/claude-haiku-4-5
models.plannerDefault model for planneranthropic/claude-opus-4-6
models.reviewerDefault model for revieweranthropic/claude-opus-4-6
models.analystDefault model for analyst (plan-sync)anthropic/claude-haiku-4-5
thinking.plannerThinking level for planner agent(from frontmatter)
thinking.workerThinking level for worker agents(from frontmatter)
thinking.reviewerThinking level for reviewer agents(from frontmatter)
thinking.analystThinking level for analyst agents(from frontmatter)
planning.maxPassesMax planner/reviewer refinement passes1
work.maxWavesMax autonomous waves50
work.maxAttemptsPerTaskMax attempts before auto-blocking a task5
work.stopOnBlockStop autonomous mode when any task blocksfalse
work.shutdownGracePeriodMsGrace period before SIGTERM on abort30000
work.envEnvironment variables passed to spawned workers{}

Coordination Levels

Controls how much workers communicate during execution:

  • none: No coordination instructions. Workers just execute their task.
  • minimal: Check reservations before editing files. Message if conflicts.
  • moderate: Announce start/completion via broadcast. Check reservations. Ask about unclear dependencies.
  • chatty (default): All of moderate, plus: DM peers whose tasks overlap, share progress on interface changes, respond to incoming messages, claim next task after completion.

At moderate and chatty, workers also receive recent activity context and concurrent task info in their prompts.

Model Override Priority

Worker model is resolved with this priority (highest wins):

  1. Per-task model field on the task object
  2. Per-wave model param on the work call
  3. Team role model when present
  4. Config-level crew.models.worker
  5. Host session model
  6. Agent .md frontmatter model field

Graceful Shutdown

When you cancel a work run (Ctrl+C), workers receive a shutdown sequence:

  1. Inbox message asking the worker to stop, release reservations, and exit
  2. Wait shutdownGracePeriodMs (default 30s) for clean exit
  3. SIGTERM if still running, wait 5s
  4. SIGKILL if still running

Tasks from gracefully shutdown workers reset to todo for retry on the next wave. Crashed workers (non-graceful exit) block the task in autonomous mode to prevent retry loops.

よくある質問

AIスキル「Pi Messenger Crew」では何ができますか?

Orchestrator reference for pi-messenger Crew planning, task management, configuration, and agent coordination. Crew workers already have the pi_messenger actions they need in crew-worker.md.

TypingMindでPi Messenger Crewを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Pi Messenger Crewはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにPi Messenger Crewをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/nicobailon/pi-messenger/tree/main/skills/pi-messenger-crewを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Pi Messenger Crewを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Pi Messenger Crewで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもPi Messenger Crewを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Pi Messenger Crew」は無料ですか?

nicobailonがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇