pactify

module
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2026 License: MIT

README

Pactify

Pactify is a harness router. It delegates coding tasks to codex (the default), kimi, agy and opencode, and records jobs, logs and results locally. The Claude Code plugin provides slash commands; the Go CLI manages the same jobs.

The latest published release is v0.13.0, the first harness router release. The pact protocol, ledger, MCP server and agent wiring were retired in AJ-744; tag v0.12.0 remains the rollback anchor. See CHANGELOG.

Install

Install the published binary on macOS or Linux (amd64 / arm64):

curl -fsSL https://raw.githubusercontent.com/agentjoey/pactify/main/install.sh | sh
pactify sub --help

Or install with Go (version in go.mod): go install github.com/agentjoey/pactify/cmd/pactify@latest. To build from a checkout: go build -o pactify ./cmd/pactify.

Install and authenticate the harness CLI you intend to use. Check its integration with pactify sub doctor <harness>; see doctor.

Claude Code plugin

/plugin marketplace add agentjoey/pactify
/plugin install pactify@pactify

Use /delegate (or /pactify:delegate) for default codex delegation, or select /codex, /kimi, /agy or /opencode. /jobs (or /pactify:jobs) is read-only: /jobs all includes older jobs and /jobs <id> shows one job. Read the plugin guide for brief writing and result review.

CLI basics

echo "Inspect the repository and report findings" | pactify sub run --read-only --wait 0s
pactify sub run codex --write --worktree --wait 0s < brief.md   # the task brief is read from stdin
pactify sub status --all
pactify sub wait <job-id>
pactify sub result <job-id>
pactify sub logs <job-id> --tail 20

Review the complete worktree diff and untracked files, and run acceptance checks before pactify sub apply <job-id>. Use pactify sub discard <job-id> to discard a result, or pactify sub run --resume <job-id> --worktree for rework in the same worktree. Job IDs accept an unambiguous prefix. See router configuration for aliases and fallback, job status and cost reporting.

codex is the default; kimi, agy and opencode are experimental. kimi has no read-only mode. agy --read-only uses plan mode and managed hooks. opencode uses a per-job opencode serve; its read-only mode denies shell/edit tools, reports sandboxed=false, and fails with readonly_violation if repository files change. See harness contracts for access boundaries.

Dashboard

pactify serve --addr 127.0.0.1:17082

Open http://127.0.0.1:17082 for Dashboard, Jobs and Settings; Live is embedded in job details. The server provides /api/sub and embedded static assets. Keep it on loopback. External access uses Cloudflare Tunnel + Access; configure PACTIFY_ALLOWED_ORIGINS for the proxy origin. The Origin guard is not login authentication. See deployment prerequisites.

For a separate local read-only panel, run pactify sub panel (random loopback port, opens the browser), or pactify sub panel --port 17100 --no-open.

Architecture · Development and deployment · Operations · Contributing

Directories

Path Synopsis
cmd
pactify command
internal
acp
Package acp is a Go client for the Agent Client Protocol (ACP) — JSON-RPC 2.0 spoken to a stdio subprocess over newline-delimited JSON.
Package acp is a Go client for the Agent Client Protocol (ACP) — JSON-RPC 2.0 spoken to a stdio subprocess over newline-delimited JSON.
cockpit/golden
Package golden records sanitized protocol traffic.
Package golden records sanitized protocol traffic.
cockpit/opencodeapi/cmd/permissions command
Command permissions exports the adapter's exact policies for the isolated API probe.
Command permissions exports the adapter's exact policies for the isolated API probe.
credentiallinks
Package credentiallinks preserves atomically refreshed login files using only metadata and rename.
Package credentiallinks preserves atomically refreshed login files using only metadata and rename.
gitx
Package gitx reads repository state for harness workers.
Package gitx reads repository state for harness workers.
lockx
Package lockx provides a cross-process advisory file lock (flock(2)) for job state.
Package lockx provides a cross-process advisory file lock (flock(2)) for job state.
procx
Package procx identifies local processes without relying on reusable PIDs alone.
Package procx identifies local processes without relying on reusable PIDs alone.
sub
Package sub provides persistence and result collection for harness jobs.
Package sub provides persistence and result collection for harness jobs.
subpanel
Package subpanel serves the standalone, read-only harness job panel.
Package subpanel serves the standalone, read-only harness job panel.
vendorenv
Package vendorenv isolates a single-vendor agent from sibling vendors' API keys.
Package vendorenv isolates a single-vendor agent from sibling vendors' API keys.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL