pi-minimax-pack

extension

Pi agent harness with policy gates, project detection, verification loop, drift protection, artifact validation, and runtime enforcement for weak models

by · v0.5.0 · published 2mo ago

$ pi install npm:pi-minimax-pack
downloads/mo
92
stars
last push
open issues

Signals

license: MITtestspi manifest: missinginstall size: —deps: 0peer deps: 0

Download trend

187 downloads · last 12 weeks (weekly)

README

MiniMax Token Plan — Top 3.9% Usage



Built by a Top 3.9% MiniMax power user — 3.15B tokens consumed and counting.


MiniMax Platform Pi Package License: MIT

Get MiniMax Token Plan · Pi.dev Docs · Report Issue


pi-minimax-pack

Generic Pi agent harness with policy gates, project detection, verification loop, drift protection, artifact validation, memory-to-rule promotion, and installed-resource advice.

The harness is intentionally generic. Project-specific behavior lives in .pi/minimax-policy.json and profiles, not in extension code.

Why MiniMax?

This harness is designed and battle-tested with MiniMax M2.7 — a model optimized for repo-scale engineering, agent workflows, and long skill adherence. The runtime enforcement features (forced sequencing, auto-correction, context pruning, decomposition) make even weaker models perform reliably under structured constraints.

🔗 Try MiniMax Platform → — 204K context, ~60 tps standard / ~100 tps highspeed

Install

pi install git:https://github.com/adi805/pi-minimax-pack

After install, restart Pi. Works globally from any directory.

To refresh after upstream updates:

pi update git:github.com/adi805/pi-minimax-pack

What it does (automatic, no slash commands needed)

FeatureTriggerBehavior
Contract injectionEvery turnInjects solver loop, scope control, verification contract into system prompt
Command gateEvery bash callClassifies risk (safe/build/test/install/destructive/deploy/database/network) and applies policy
Read-before-write gateedit/write toolBlocks overwriting existing files without reading first
Forced read-backAfter every writeAuto-steers agent to read back written files
Auto-correction loopVerification failureSends evidence + hint back to model (max 3 iterations)
Context pruningEvery LLM callCollapses old tool results to 1-line summaries
DecompositionComplex promptsForces step-by-step execution for multi-action requests
Skill auto-routingKeyword detectionInjects relevant skill (incident/research/design/web/browser/multimodal)
Status reportEvery responseAuto-appends changed/verified/unverified/blocked labels
Auto-grindAfter code changesTriggers verification commands (test/lint/build) automatically
Drift detectionWorkstream changeAlerts when task switches without approval
Artifact validationAfter BUILD successChecks output dirs exist and are non-empty

Skills included

SkillTriggers on
minimax-incident-triage-harnesserror, crash, bug, failed
minimax-deep-researchresearch, investigate, compare, analyze
minimax-anti-slop-designui, design, landing page, layout
minimax-multimodal-toolkitimage, video, audio, tts, voice
minimax-web-opsweb search, url, docs, latest
minimax-browser-opsbrowser, click, screenshot, inspect
minimax-m2-self-evolutionrefactor, optimize, iterate, improve
minimax-agentic-coding-guideambiguous/large tasks

Prompt templates

CommandPurpose
/minimax-preflightCheck project type + policy before changes
/minimax-diagnoseDiagnose failures with evidence-first approach
/minimax-verifyRun smallest relevant verification
/minimax-risk-fixApply minimal safe fix under policy constraints
/minimax-policy-reviewReview current policy and gate behavior
/minimax-promote-ruleTurn correction into policy rule

Policy

Create .pi/minimax-policy.json in any project to customize behavior:

{
  "version": 1,
  "commandPolicy": {
    "safeRead": "allow",
    "build": "preflight",
    "install": "require_reason",
    "destructive": "require_approval",
    "unknown": "ask"
  }
}

See docs/POLICY_SCHEMA.md for full schema.

Development

npm run smoke         # extension runtime smoke test
npm run test:policy   # policy loader
npm run test:project  # project detector
npm run test:command  # command risk classifier
npm run test:state    # task state machine
npm run test:artifact # artifact validator
npm run test:memory   # memory-to-rule

Links


Made with 🔥 by adi805 — powered by MiniMax