PactKit

What is PactKit?

PactKit is a governance framework that enforces the P.A.C.T. contract between humans and AI agents. It compiles development workflows, role definitions, and behavioral rules into executable constitutions and playbooks for Claude Code, OpenCode, Codex CLI, and more.

Name origin: Pact (契约) + Kit — the governance contract.

The core idea: CODE is the Law. Data is the Truth. Prompt is ONLY instruction. AI is ONLY creativity.

PrincipleBoundary
P — Promptis ONLY instructionTells AI how to act — defines process, never state
A — AIis ONLY creativityFormatting, summarization, language — never deterministic logic
C — Codeis the LawSole executor of deterministic operations — no bypass
T — TruthData is the TruthFactual basis for all judgment — no memory, no fabrication

At a Glance

25 CLI SubcommandsDeterministic operations as code, not prompts
9 AgentsSpecialized roles with constrained tools
11 CommandsPDCA-centric workflow entry points
10 SkillsVisualize, Board, Scaffold, Trace, Draw, Analyze, and more
8 RulesModular constitution modules (2 core + 6 on-demand)

Supported AI Tools

Since v2.9.0, pip install pactkit includes all IDE adapters. A single pactkit init deploys to all three IDEs by default.

ToolFormatCommandNotes
Claude CodeClassicpactkit initIncluded by default
Claude Code PluginPluginMarketplace installNo Python required
OpenCodeOpenCodepactkit initIncluded by default
Codex CLICodexpactkit initIncluded by default
TraeComing soon

Use --format <name> to target a single IDE (e.g., pactkit init --format opencode).

Quick Start

pip install pactkit
pactkit init

Requires Python 3.10+. Deploys to Claude Code (~/.claude/), OpenCode (~/.config/opencode/), and Codex CLI (~/.codex/) in one step.

pip install pactkit

# Deploy to one IDE only:
pactkit init --format claude    # Claude Code only
pactkit init --format opencode  # OpenCode only
pactkit init --format codex     # Codex CLI only

Requires Python 3.10+. The --format flag targets a single IDE.

# In Claude Code:
/plugin marketplace add pactkit/claude-code-plugin
/plugin install pactkit

No Python required. Restart Claude Code and you're ready.

Trae integration is under development. Stay tuned.

Then start using commands:

/project-plan "Add user authentication"
/project-act STORY-001
/project-check
/project-done

Next Steps

On this page