omp packages

@eyevanovich/picm-factory0.6.2

PiCM workspace and coding-context tools for Pi and Claude Code.

GitHub Actions Published 2 days ago MIT ~126 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

PiCM Factory

PiCM Factory helps create, adopt, maintain, and improve folder-agent workspaces and agent-readable coding repositories. It supports Pi Coding Agent through an npm package and Claude Code through a self-contained plugin bundle.

Quick start with Pi

You'll need Node.js 22.19 or newer to install Pi with npm:

npm install -g --ignore-scripts @earendil-works/pi-coding-agent

For a project-local install, I highly recommend pinning this version so behavior stays consistent and you get to decide when to update:

mkdir my-workflow
cd my-workflow
pi install -l npm:@eyevanovich/picm-factory@0.6.2 # remove version to always install latest
pi

Then run:

/picm-new

For a global install stored in your user settings, drop the -l:

pi install npm:@eyevanovich/picm-factory@0.6.2 # remove version to always install latest

A project-level entry for the same package can override this global install. An unpinned install follows npm's latest and can be refreshed easily with pi update --extensions.


To add PiCM Factory to an existing project, install it from that project's root and run /picm-adopt. For local development, replace the npm specifier with /path/to/picm-factory.

Claude Code

Install PiCM Factory once from the PiCM marketplace. Run this inside Claude Code:

/plugin install picm-factory --marketplace eyevanovich/picm-factory#claude-marketplace

The marketplace is available once the first marketplace-enabled release is published. Use Claude Code 2.1.281 or newer for the setup below, and make sure Node.js 24 or newer is available for the bundled helpers.

Open Claude in your workspace and run /picm-factory:help. The other commands are /picm-factory:new, /picm-factory:adopt, /picm-factory:maintain, and /picm-factory:optimize. The Claude setup guide covers updates, native AGENTS.md loading, and how to try the release ZIP without installing.

Choose a command

You do not need to know PiCM or ICM terminology. The table uses Pi command names; Claude's equivalents are listed above.

Command Use it when What it does
/picm-new [workflow description] You are starting a workflow in a new or mostly empty folder. Interviews you, presents a final direction, then creates a minimal workspace after conversational sign-off.
/picm-adopt [coding | adoption request] The folder already contains source code, agent instructions, workflows, stages, or reference material. Add coding when you already know it is a coding repository or monorepo. Inspects first and proposes additive PiCM support without converting the project. coding only skips initial classification; regular /picm-adopt can offer the same Coding Repository profile.
/picm-maintain [strict | balanced] [focus or session request] Guidance is stale, conflicting, or drifting from intended behavior. Keeps guidance aligned and current through health checks and agreed repairs. trace investigates one symptom; session retrospectives are optional.
/picm-optimize [focus or session request] You want better agent behavior or a more efficient workflow. Improves guidance and context/token use, and identifies workflow-tooling opportunities. Direct edits remain documentation-only; session retrospectives are optional.
/picm-help You want command help. Explains syntax, examples, installation, and safety behavior.

Arguments are optional conversational input, not required flags; bare commands remain valid. In interactive Pi, type a space after /picm-adopt or /picm-maintain to see argument completions.

Examples:

/picm-new Create a three-stage publishing workflow
/picm-adopt coding
/picm-maintain routing
/picm-maintain trace "final output drifted from the approved source"
/picm-maintain use the past five sessions
/picm-optimize
/picm-optimize use the past five sessions

Maintenance depth and reminders

A later interactive /picm-maintain run lets you choose a one-run depth with Strict preselected. /picm-maintain strict and /picm-maintain balanced bypass the selector; a bare non-TUI command defaults to Strict. Legacy Light metadata is preserved for compatibility but is not an available maintenance mode.

  • Strict (recommended): broader systematic coverage across declared roots and mapped contexts; higher cost.
  • Balanced: representative coverage of major boundaries and one coding path; lower cost.

PiCM can save the last completed pass in .picm/config.json even when reminders are off. Maintenance status reports that time separately from reminder settings; changing the schedule doesn't count as completing work. Only Pi offers reminders at startup. Dismiss a due reminder for the session, or snooze it for one day or one week across restarts. Recording a completed pass, including a manually started one, clears the snooze and restarts the normal interval. The reminder never starts work on its own.

Safety model

PiCM Factory is conservative by design:

  • Privacy before reads. Agents select eligible paths using Git ignores, configured/session exclusions, and known sensitive boundaries before reading or searching content. Secrets and sensitive material must stay out of model-visible reads, tool output, consultation, memory, and reusable context—even with approval. Uncertain sources need already-sanitized input; sanitizing after disclosure is too late. These are agent-followed rules, not a claim that PiCM or host tools sandbox every read.
  • Non-destructive adoption. Existing structure is preserved unless the signed-off direction changes it.
  • Final direction before edits. New, adopt, maintain, and optimize inspect first, state a concise direction and material effects, then wait for conversational sign-off. Optional diffs or file review can clarify consequential changes; routine implementation within the agreed direction does not require repeated approval.
  • Checkpoint advice, not a gate. A user-created Git checkpoint can help with substantial existing-content changes. PiCM never initializes, stages, commits, resets, cleans, or restores Git for you.
  • Behavior and efficiency through guidance. Maintain keeps guidance aligned and current; optimize improves the approach, including unwanted behavior and unnecessary context/token or tool use. Optimization edits documentation only, records explicitly agreed behavioral corrections, and preserves required safeguards. Neither command implicitly implements or executes integrations; tooling changes are separate follow-ups. No semantic equivalence or unmeasured token savings are claimed.
  • Optional session evidence. Both maintain and optimize offer documentation only, this session, recent sessions, or both. When requested, the agent locates available local history for the current workspace, reports coverage, and adapts to the work represented—not just coding. Session access still respects privacy boundaries. Maintenance-integrated optimization reuses the selected evidence and findings.

Maintenance includes the required redundancy guide on both hosts. Pi loads optional package guides and templates by name; workspace discovery doesn't need access to .pi/. Claude reads optional guides from its plugin.

Both hosts offer a named reader for .md, .js, and root package.json in supported Git workspaces. Discovery uses repo-local ignore rules, not personal Git settings. To keep a personally ignored file out of PiCM, add a repository rule or a PiCM privacy exclusion. The reader combines settings and policy checks with one bounded read; it isn't a workflow prerequisite or a sandbox.

.pi/ configures project-local Pi resources. .picm/ holds small PiCM metadata and reports; it is maintainer-only context, not normal workflow context.

Learn more

Acknowledgments

PiCM Factory independently adapts ideas from Jake Van Clief and David McDermott's Interpretable Context Methodology, the Clief Notes community, and RinDig/icm-architect. It runs on Pi Coding Agent by Mario Zechner.

The optional session-retrospective approach in maintain and optimize is inspired by Matt Pocock’s retro skill, adapted for PiCM’s documentation-only scope.

Development

Agent integrations live in pi/ and claude-code/; canonical guidance, templates, and portable runtime live in shared/. The build assembles self-contained Claude command skills and copies their supporting resources into ignored dist/claude-code/. Generated copies aren't edited or committed. The root package remains the Pi npm installation entry point.

npm run check

See CONTRIBUTING.md for development and pull-request guidance.