Claude Code Tools

@adddog/claude-plugin-pnpm

official

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

Version
0.5.0
Last Updated
2026-06-21
Source
official

@adddog/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-auditorPost-implementation audit + diagnostic loggingRead, Write, Edit, Glob, Grep, Bash
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-monitorTeam health observer (5+ agent teams)Read, Glob, Grep, Bash, SendMessage
quarterbackQA reviewer — read-only by designRead, Grep, Glob, Bash, SendMessage

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-clarifyRequirements extraction dispatch guide
team-kit-exploreApproach exploration dispatch guide
team-kit-presentSection-by-section design approval
team-kit-reviewPost-plan review checklist
workspace-fixFix lint/types/knip in workspace packages
changesetGenerate changesets from git diff
shipChangeset + knowledge refresh + git workflow
debug-sessionRoot cause investigation — single or team escalation
brainstorm-sessionRequirements gathering before implementation

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.

pipx install cocoindex-code
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

# Claude Code marketplace (recommended)
claude plugin add @adddog/claude-plugin-pnpm

# Or npm
npm install -g @adddog/claude-plugin-pnpm

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