samelie/claude-plugin-pnpm

Claude Code plugin for pnpm monorepos — agent teams, workspace-aware fixing, changeset shipping

JavaScript

0

81 commits

updated Sep 22, 2026

See the code

See what people are saying

SourceMessageScoreDate

Plan mode is dead

I will try to update this repositorysoon, but I had to stop because the ahem compatibility failure of Claude Code env features; observer; agent workflow message passing LACKING on installed marketplace plugins I am still actively working on thesis : a self-directed plan mode to generate artifacts…

0

Sep 26, 2026

Plan mode is dead

Still working on and with this but had to move it private because marketplace installed plugins loose capability https://github.com/samelie/claude-plugin-pnpm/tree/main/skil...

0

Sep 26, 2026

README

claude-plugin-pnpm

A Claude Code plugin that turns a single prompt into a coordinated multi-agent team — from requirements through implementation. Built for pnpm monorepos.

"as a team, build a cache layer for the API"

That one sentence triggers a full agentic pipeline: requirements gathering, codebase research, research-informed refinement, architecture planning, parallel implementation, code review, and verification — all coordinated by a lead agent with disk-backed artifacts at every step.

The Pipeline

Every team follows the same artifact chain. Each phase reads the previous phase's output from disk — no context window pressure, full traceability.

prompt.md → clarify → explore → present → requirements.md
  → research(findings.md)
  → REFINE LOOP (semi-autonomous, grills with research findings)
  → plan(design.md + team-plan.md)
  → review → spawn → implement → verify

How It Works

PhaseAgentWhat Happens
PersistleadRaw user request saved to prompt.md — source of truth for intent
ClarifydesignerOne question at a time, recommended answers, codebase exploration
Exploredesigner2-3 approaches with tradeoffs, user picks
PresentdesignerSection-by-section requirement approval
WritedesignerSynthesizes requirements.md — canonical handoff
ResearchresearcherDeep codebase investigation via CocoIndex + claude-mem + code
RefinedesignerSemi-autonomous: self-resolves code questions, asks humans only for judgment calls. Cross-references research against requirements.
PlanplannerProduces design.md (architecture) + team-plan.md (tasks, ownership, phases)
ImplementcodersParallel agents, file-ownership enforced, QB reviews
Verifyverifier + finisherLint, types, tests, cleanup

Semi-Autonomous Refine

The refine phase is where research meets requirements. After the researcher explores the codebase, the designer:

  • Self-resolves questions answerable by code exploration (no lead round-trip)
  • Returns to lead only for human-judgment questions (scope, priority, preference)
  • Tracks rounds, self-resolved vs human-resolved counts
  • Max 10 rounds (configurable), every round writes to disk
Research found existing cache layer in @scope/utils covering 80% of requirements.
→ Designer self-resolves: "extend existing" instead of "build new"
→ Updates requirements.md inline
→ Asks human: "Should we add TTL support? Recommended: yes, existing pubsub supports it."

Agent Roster

Every agent has explicit tool scoping — researchers can't edit code, reviewers can't write source files.

Planning Phase

AgentRoleTools
team-designerPhase-aware requirements (clarify/explore/present/write/refine)Read, Glob, Grep, Write, Bash
team-researcherCodebase investigation, evidence gatheringRead, Glob, Grep, Write, Bash
team-plannerArchitecture + task decompositionRead, Glob, Grep, Write, Bash

Execution Phase

AgentRoleTools
team-coderImplementationRead, Write, Edit, Glob, Grep, Bash
team-reviewerCode quality reviewRead, Glob, Grep, Bash, Write
team-spec-reviewerSpec compliance (runs before quality review)Read, Glob, Grep, Bash
team-testerTest strategy + writingRead, Write, Edit, Glob, Grep, Bash
team-verifierLint, types, knip, testsRead, Glob, Grep, Bash, Write
team-finisherRemove logs, enforce standards (runs last)Read, Write, Edit, Glob, Grep, Bash
team-architectDeep-dive module analysis (mid-execution)Read, Glob, Grep, Bash, Write
team-investigatorRoot cause debuggingRead, Glob, Grep, Write, Bash
team-security-auditorOWASP security auditRead, Glob, Grep, Bash, Write
team-codex-verifierVerify stage delegated to a Codex worker — opt-in, see belowRead, Write, Bash

Codex Execution Lane (opt-in)

A verify stage can run on an OpenAI Codex worker instead of a Claude subagent. It is off unless a plan asks for it: delegation rides the Agent field a task already has — name team-codex-verifier instead of team-verifier. There is no config file, no plan-format field and no repo-level flag, so a plan that never names the role never touches the lane.

Requirements: codex on PATH and a completed codex login. No API key — auth rides your local login. The upstream openai/codex-plugin-cc marketplace plugin must not be installed; this plugin vendors the pieces it needs (installing it injects slash commands, a proactive subagent and a Stop-hook loop that fight the run lane).

What you get: the worker runs the same gates and writes the same team-session/ artifact, and the STATUS: protocol classifies its output unchanged. Transport failures (dead turn, unreachable binary, timeout, unparseable envelope) are classified apart from gate verdicts and surface as STATUS: BLOCKED — they go to a human gate rather than burning re-dispatch retries on a worker that never ran.

Measured, on a free plan: ≈1.4 percentage points of a 30-day window per turn. Verdict parity against the Claude path was identical on a seeded 4-failure set — same file, line, column and error text. A failed turn cost more than the passing turn and the smoke turn combined, so the lane front-loads zero-cost preconditions rather than retrying.

Licensing: codex-lane/vendor/codex-plugin-cc/** is Apache-2.0, © OpenAI, vendored verbatim at v1.0.6 @ db52e28 and never patched; LICENSE and NOTICE ship beside it. Everything else in this plugin is MIT.

Natural Language Triggers

No special syntax. The lead interprets intent:

What You SayWhat Happens
"as a team, build X"Full pipeline: persist → clarify → plan → implement
"that's clear" / "move on"Exit clarify → explore approaches
"option A" / "go with B"Selection recorded → present requirements
"approved" / "looks good"Approve section → next
"plan it" / "let's plan"Exit refine → planning
"skip refine"Bypass refine, straight to planner
"as a team (fork), build X"Fork mode — ~10x cost reduction on parallel agents

Structured Coordination

Disk-Backed Artifacts

All state lives on disk in team-session/{team-name}/. No in-memory-only state. Agents are stateless — they read previous phases from disk, write their output, return. Context windows don't limit history.

STATUS Protocol

Every agent ends with a structured status:

STATUS: CLEAN                              — done, no issues
STATUS: PARTIAL — completed 3/5 tasks      — progress, more to do
STATUS: ERRORS_REMAINING: 2 in @scope/api  — tried, issues remain
STATUS: BLOCKED — missing API schema       — can't proceed

Interrupt Protocol

Lead can interrupt long-running agents:

INTERRUPT: scope changed
Action: pause | abort | report_status

Agents complete their current atomic operation, write progress to disk, respond with status.

Phase Gating

Phases are sequential. Tasks within a phase run in parallel. blockedBy enforces ordering. QB reviews gate phase transitions.

Skills

SkillPurpose
team-kit-createFull pipeline: scope → plan → spawn prompt
team-kit-runExecute a task as a native-workflow multi-agent run
workspace-fixFix lint/types/knip in workspace packages
changesetGenerate changesets from git diff
shipChangeset + knowledge refresh + git workflow

Fork Mode (Cost Optimization)

For ~10x cost reduction on parallel agents:

export CLAUDE_CODE_FORK_SUBAGENT=1

Children inherit the lead's context via prompt cache. First child pays full price, children 2-N pay ~10%.

"as a team (fork), implement the auth refactor"

Dependencies

This plugin integrates with four open-source tools. Use /third-party-manager to check versions, update, and verify.

ToolPurposeRepo
context-modeContext window protection via FTS5mksglu/context-mode
claude-memCross-session memorythedotmack/claude-mem
cavemanToken-optimized communicationJuliusBrussee/caveman
cocoindex-codeAST-based code searchcocoindex-io/cocoindex-code
Dependency install instructions

claude-mem

Cross-session memory and observation capture.

npx claude-mem install
# Or: curl -fsSL https://install.cmem.ai/openclaw.sh | bash

cocoindex-code

AST-based semantic code search — 70% token savings vs grep.

# [full] extra ships torch + sentence-transformers for local embeddings.
# The slim package makes search silently return zero results.
uv tool install --upgrade 'cocoindex-code[full]'
ccc init && ccc index

context-mode

Context window protection via FTS5 knowledge base.

Installed via Claude Code marketplace.

caveman

Token-optimized communication mode (~75% reduction).

Installed via Claude Code marketplace. Enable with /caveman full.

Install

# add the marketplace (clones the GitHub repo), then install the plugin
/plugin marketplace add samelie/claude-plugin-pnpm
/plugin install claude-plugin-pnpm@adddog-tools

Known Issues

claude-mem port mismatch (2026-04-22)

Hook health check uses hardcoded port calc 37700 + $(id -u) % 100, but service default is 37777.

Fix: Set port in ~/.claude-mem/settings.json:

{
  "CLAUDE_MEM_WORKER_PORT": "37701"
}

Then restart: pkill -f worker-service

Contributors

samelie

76 commits

samelie/claude-plugin-pnpm

Claude Code plugin for pnpm monorepos — agent teams, workspace-aware fixing, changeset shipping

JavaScript

0

81 commits

updated Sep 22, 2026

See the code

See what people are saying

SourceMessageScoreDate

Plan mode is dead

I will try to update this repositorysoon, but I had to stop because the ahem compatibility failure of Claude Code env features; observer; agent workflow message passing LACKING on installed marketplace plugins I am still actively working on thesis : a self-directed plan mode to generate artifacts…

0

Sep 26, 2026

Plan mode is dead

Still working on and with this but had to move it private because marketplace installed plugins loose capability https://github.com/samelie/claude-plugin-pnpm/tree/main/skil...

0

Sep 26, 2026

README

claude-plugin-pnpm

A Claude Code plugin that turns a single prompt into a coordinated multi-agent team — from requirements through implementation. Built for pnpm monorepos.

"as a team, build a cache layer for the API"

That one sentence triggers a full agentic pipeline: requirements gathering, codebase research, research-informed refinement, architecture planning, parallel implementation, code review, and verification — all coordinated by a lead agent with disk-backed artifacts at every step.

The Pipeline

Every team follows the same artifact chain. Each phase reads the previous phase's output from disk — no context window pressure, full traceability.

prompt.md → clarify → explore → present → requirements.md
  → research(findings.md)
  → REFINE LOOP (semi-autonomous, grills with research findings)
  → plan(design.md + team-plan.md)
  → review → spawn → implement → verify

How It Works

PhaseAgentWhat Happens
PersistleadRaw user request saved to prompt.md — source of truth for intent
ClarifydesignerOne question at a time, recommended answers, codebase exploration
Exploredesigner2-3 approaches with tradeoffs, user picks
PresentdesignerSection-by-section requirement approval
WritedesignerSynthesizes requirements.md — canonical handoff
ResearchresearcherDeep codebase investigation via CocoIndex + claude-mem + code
RefinedesignerSemi-autonomous: self-resolves code questions, asks humans only for judgment calls. Cross-references research against requirements.
PlanplannerProduces design.md (architecture) + team-plan.md (tasks, ownership, phases)
ImplementcodersParallel agents, file-ownership enforced, QB reviews
Verifyverifier + finisherLint, types, tests, cleanup

Semi-Autonomous Refine

The refine phase is where research meets requirements. After the researcher explores the codebase, the designer:

  • Self-resolves questions answerable by code exploration (no lead round-trip)
  • Returns to lead only for human-judgment questions (scope, priority, preference)
  • Tracks rounds, self-resolved vs human-resolved counts
  • Max 10 rounds (configurable), every round writes to disk
Research found existing cache layer in @scope/utils covering 80% of requirements.
→ Designer self-resolves: "extend existing" instead of "build new"
→ Updates requirements.md inline
→ Asks human: "Should we add TTL support? Recommended: yes, existing pubsub supports it."

Agent Roster

Every agent has explicit tool scoping — researchers can't edit code, reviewers can't write source files.

Planning Phase

AgentRoleTools
team-designerPhase-aware requirements (clarify/explore/present/write/refine)Read, Glob, Grep, Write, Bash
team-researcherCodebase investigation, evidence gatheringRead, Glob, Grep, Write, Bash
team-plannerArchitecture + task decompositionRead, Glob, Grep, Write, Bash

Execution Phase

AgentRoleTools
team-coderImplementationRead, Write, Edit, Glob, Grep, Bash
team-reviewerCode quality reviewRead, Glob, Grep, Bash, Write
team-spec-reviewerSpec compliance (runs before quality review)Read, Glob, Grep, Bash
team-testerTest strategy + writingRead, Write, Edit, Glob, Grep, Bash
team-verifierLint, types, knip, testsRead, Glob, Grep, Bash, Write
team-finisherRemove logs, enforce standards (runs last)Read, Write, Edit, Glob, Grep, Bash
team-architectDeep-dive module analysis (mid-execution)Read, Glob, Grep, Bash, Write
team-investigatorRoot cause debuggingRead, Glob, Grep, Write, Bash
team-security-auditorOWASP security auditRead, Glob, Grep, Bash, Write
team-codex-verifierVerify stage delegated to a Codex worker — opt-in, see belowRead, Write, Bash

Codex Execution Lane (opt-in)

A verify stage can run on an OpenAI Codex worker instead of a Claude subagent. It is off unless a plan asks for it: delegation rides the Agent field a task already has — name team-codex-verifier instead of team-verifier. There is no config file, no plan-format field and no repo-level flag, so a plan that never names the role never touches the lane.

Requirements: codex on PATH and a completed codex login. No API key — auth rides your local login. The upstream openai/codex-plugin-cc marketplace plugin must not be installed; this plugin vendors the pieces it needs (installing it injects slash commands, a proactive subagent and a Stop-hook loop that fight the run lane).

What you get: the worker runs the same gates and writes the same team-session/ artifact, and the STATUS: protocol classifies its output unchanged. Transport failures (dead turn, unreachable binary, timeout, unparseable envelope) are classified apart from gate verdicts and surface as STATUS: BLOCKED — they go to a human gate rather than burning re-dispatch retries on a worker that never ran.

Measured, on a free plan: ≈1.4 percentage points of a 30-day window per turn. Verdict parity against the Claude path was identical on a seeded 4-failure set — same file, line, column and error text. A failed turn cost more than the passing turn and the smoke turn combined, so the lane front-loads zero-cost preconditions rather than retrying.

Licensing: codex-lane/vendor/codex-plugin-cc/** is Apache-2.0, © OpenAI, vendored verbatim at v1.0.6 @ db52e28 and never patched; LICENSE and NOTICE ship beside it. Everything else in this plugin is MIT.

Natural Language Triggers

No special syntax. The lead interprets intent:

What You SayWhat Happens
"as a team, build X"Full pipeline: persist → clarify → plan → implement
"that's clear" / "move on"Exit clarify → explore approaches
"option A" / "go with B"Selection recorded → present requirements
"approved" / "looks good"Approve section → next
"plan it" / "let's plan"Exit refine → planning
"skip refine"Bypass refine, straight to planner
"as a team (fork), build X"Fork mode — ~10x cost reduction on parallel agents

Structured Coordination

Disk-Backed Artifacts

All state lives on disk in team-session/{team-name}/. No in-memory-only state. Agents are stateless — they read previous phases from disk, write their output, return. Context windows don't limit history.

STATUS Protocol

Every agent ends with a structured status:

STATUS: CLEAN                              — done, no issues
STATUS: PARTIAL — completed 3/5 tasks      — progress, more to do
STATUS: ERRORS_REMAINING: 2 in @scope/api  — tried, issues remain
STATUS: BLOCKED — missing API schema       — can't proceed

Interrupt Protocol

Lead can interrupt long-running agents:

INTERRUPT: scope changed
Action: pause | abort | report_status

Agents complete their current atomic operation, write progress to disk, respond with status.

Phase Gating

Phases are sequential. Tasks within a phase run in parallel. blockedBy enforces ordering. QB reviews gate phase transitions.

Skills

SkillPurpose
team-kit-createFull pipeline: scope → plan → spawn prompt
team-kit-runExecute a task as a native-workflow multi-agent run
workspace-fixFix lint/types/knip in workspace packages
changesetGenerate changesets from git diff
shipChangeset + knowledge refresh + git workflow

Fork Mode (Cost Optimization)

For ~10x cost reduction on parallel agents:

export CLAUDE_CODE_FORK_SUBAGENT=1

Children inherit the lead's context via prompt cache. First child pays full price, children 2-N pay ~10%.

"as a team (fork), implement the auth refactor"

Dependencies

This plugin integrates with four open-source tools. Use /third-party-manager to check versions, update, and verify.

ToolPurposeRepo
context-modeContext window protection via FTS5mksglu/context-mode
claude-memCross-session memorythedotmack/claude-mem
cavemanToken-optimized communicationJuliusBrussee/caveman
cocoindex-codeAST-based code searchcocoindex-io/cocoindex-code
Dependency install instructions

claude-mem

Cross-session memory and observation capture.

npx claude-mem install
# Or: curl -fsSL https://install.cmem.ai/openclaw.sh | bash

cocoindex-code

AST-based semantic code search — 70% token savings vs grep.

# [full] extra ships torch + sentence-transformers for local embeddings.
# The slim package makes search silently return zero results.
uv tool install --upgrade 'cocoindex-code[full]'
ccc init && ccc index

context-mode

Context window protection via FTS5 knowledge base.

Installed via Claude Code marketplace.

caveman

Token-optimized communication mode (~75% reduction).

Installed via Claude Code marketplace. Enable with /caveman full.

Install

# add the marketplace (clones the GitHub repo), then install the plugin
/plugin marketplace add samelie/claude-plugin-pnpm
/plugin install claude-plugin-pnpm@adddog-tools

Known Issues

claude-mem port mismatch (2026-04-22)

Hook health check uses hardcoded port calc 37700 + $(id -u) % 100, but service default is 37777.

Fix: Set port in ~/.claude-mem/settings.json:

{
  "CLAUDE_MEM_WORKER_PORT": "37701"
}

Then restart: pkill -f worker-service

Contributors

samelie

76 commits

Languages

JavaScript

97.1%

Shell

2.9%