← Catalog

@aefree/pi-plastic

Pi tools and skills for Plastic SCM and Unity Version Control workflows.

Package

Install

Install with PiG

pig install npm:@aefree/pi-plastic

Install with Pi

pi install npm:@aefree/pi-plastic
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "skills": [
    "./skills"
  ],
  "extensions": [
    "./index.ts",
    "./extensions/plastic-branch-status.ts",
    "./extensions/bash-cm-diff-guard.ts",
    "./extensions/bash-cm-merge-guard.ts",
    "./extensions/file-discovery-filter.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.12.0 (README.md). PiG does not review it.

Pi Plastic

Plastic SCM / Unity Version Control tools and workflow guidance for Pi.

Use it to inspect a workspace, review changes without opening a GUI, and perform explicitly scoped branch, checkin, merge, shelveset, and code-review operations.

What you get

  • Native Plastic commands in Pi, with structured results and on-demand discovery.
  • Native description edits and review discussions/workflow, with scoped comment discovery and explicit reviewer/status decisions; see comment and review tools.
  • Text-only diffs and generated review patches, with explicit scope and bounded output.
  • Agent-driven server conflict resolution: inspect conflicts, validate merged files, and submit per-file JSON decisions without a merge UI.
  • Truthful mutation receipts: command completion, observed identities, partial effects, and uncertainty stay separate.
  • Pi integration: compact tool displays, a Plastic branch footer, Bash guards, and optional Plastic ignore/cloak filtering for file discovery.
  • The using-plastic skill, with task-specific references loaded only when needed.

Install

Install the npm release at user scope:

pi install npm:@aefree/pi-plastic

To test the current Git version instead:

pi install https://github.com/aefreedman/pi-plastic

Git main can contain unreleased changes; npm installs the published release. See setup for pinned releases, local checkouts, configuration, and updating an existing installation.

Requirements

  • Node.js 22.19.0 or newer and the latest stable Pi.
  • An authenticated Plastic CLI (cm) 11.0.16.10616 or newer on PATH, or an explicit executable override.
  • A configured Plastic workspace for workspace-scoped tools.
  • A compatible non-GUI diff for text comparisons. Patch generation uses the native CLI and needs no external diff backend; see diff and patch setup.

Restart existing Pi processes after installation or source changes. User-scope installation makes the guards available across workspaces; project-local settings alone do not protect child processes launched elsewhere.

Start with inspection

Open Pi in the intended Plastic workspace and ask it to inspect pending changes. The default balanced mode starts with plastic_status, plastic_currentBranch, and plastic_tool_search active.

These are tool calls inside Pi, not shell commands:

plastic_status(source="xml", maxItems=20)
plastic_tool_search(query="text diff")
plastic_diff(mode="workspace", paths=["Assets/Example.txt"])

XML status is opt-in and has Windows CM11 source validation. Pick the status source appropriate to your client using the status guide. Load other capabilities as needed; don't enable all tools or run every preflight as routine ceremony.

Find the right documentation

NeedStart here
Install, update, or configure executablesSetup
Find a tool or understand on-demand loadingTool catalog and loading
Interpret success, partial results, and failuresSafety and receipts
Inspect status, branches, workspaces, or object IDsStatus · Discovery
Add, undo, switch, check in, or manage branchesWorkspace operations
Merge or close out a branchMerging
Compare changes or generate a patchDiffs and patches
Save/apply a shelf or create/update a reviewShelvesets and reviews
Understand the footer, displays, or file-discovery integrationIntegrations
Work on the package or consume its structured APIDevelopment

The documentation index routes by task and by tool. Agents should read the relevant page or section, not the whole manual. For operational workflows, start with the skill.

Important safety behavior

  • Prefer plastic_* tools. Raw cm diff / cm differences and unsafe interactive merge commands are blocked by the loaded Bash guards.
  • Mutations do not require package-owned approval tokens or UI confirmation. The agent must still have user authorization and inspect the intended scope.
  • A completed command is not automatically a verified effect. Read the receipt before chaining calls; after an uncertain mutation, inspect state rather than blindly retrying.
  • The tool reports supported facts and unknowns; the agent chooses further investigation or resolution within the user's authorization. No universal rollback, conflict-resolution, or cross-platform guarantee is implied.

Contributing and license

For a checkout, run npm ci --ignore-scripts --no-audit --no-fund and npm test. See development, contributing, and security reporting.

MIT. See LICENSE.