PACT — Orchestration Harness for Claude Code
Stop vibe coding. Start orchestrating. PACT turns a single Claude Code session into a managed team of specialist AI agents that prepare, design, build, and test your code systematically.
The Problem
You ask Claude Code to build a feature. It starts coding immediately — no research, no design, no plan. Halfway through, it loses context and starts guessing. You end up with code that sort of works but wasn't thought through.
This is vibe coding: one AI trying to do everything at once, with no structure and no memory.
The Solution
PACT turns one AI into a coordinated dev team. Instead of a single Claude guessing at everything, 12 specialist agents plus an orchestrator handle what they're best at — research, architecture, implementation, concurrent audit, testing — through a systematic Prepare, Architect, Code, Test cycle.
| Without PACT | With PACT |
|---|
| AI starts coding immediately | Research and planning happen first |
| Context lost mid-task | Each specialist gets a fresh context window |
| One agent guesses at everything | Dedicated researchers, architects, coders, auditors, testers |
| No memory between sessions | Persistent memory system across sessions |
| No durable workflow state | Append-only session journal survives compaction and task GC |
| Same mistakes repeated | Lessons learned are captured and reused |
Quick Start
Prerequisite: PACT requires Agent Teams, which is experimental and disabled by default. Add "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1" and "CLAUDE_CODE_ENABLE_TODO_TOOLS": "1" to the "env" section of your ~/.claude/settings.json before installing. The first enables Agent Teams. The second restores the task tools PACT must have to bootstrap.
1. Install the plugin
/plugin marketplace add Synaptic-Labs-AI/PACT-Plugin
/plugin install PACT@pact-plugin
2. Set up the orchestrator (detailed options below)
cp ~/.claude/plugins/cache/pact-plugin/PACT/*/CLAUDE.md ~/.claude/CLAUDE.md
3. Allow team file access (prevents permission prompts during agent operations)
Add team directory access and PACT permission allow rules to your ~/.claude/settings.json — see Enabling Agent Teams for the full settings block.
4. Restart Claude Code and go
/PACT:orchestrate Build user authentication with JWT
See full installation for all options including auto-updates.
Loading PACT at session start
PACT is delivered through the --agent flag — claude --agent PACT:pact-orchestrator launches Claude Code with the orchestrator persona loaded directly. Two convenience options:
Per-project: .claude/settings.json convention
Add the agent setting to your project's .claude/settings.json so every session in that repo opens with the orchestrator persona:
{
"agent": "PACT:pact-orchestrator"
}
Plain claude in the project root then loads PACT automatically.
Global: bundled pact shell script (recommended for global use)
The plugin ships a ready-to-use launcher script at pact-plugin/bin/pact. Symlink it onto a directory on your PATH:
ln -s "$HOME/.claude/plugins/cache/pact-plugin/PACT/<version>/pact-plugin/bin/pact" \
"$HOME/.local/bin/pact"
(Replace <version> with the installed version — check via ls ~/.claude/plugins/cache/pact-plugin/PACT/.)
Then pact (with any flags claude accepts) launches a PACT-loaded session from anywhere. The script is a thin wrapper around claude --agent PACT:pact-orchestrator "$@".
Upgrade and trust-model notes for the symlink pattern:
- The symlink target is version-pinned — after a plugin upgrade, the old version directory is removed and the symlink dangles. Re-create the symlink after each minor/major upgrade by re-running the
ln -s above with the new <version>. (For automatic upgrade-resilience, wait for the first-class CLI wrapper roadmapped below, or use the shell-function alternative.)
- The symlink follows plugin updates atomically — whatever
bin/pact ships in the next plugin version becomes your pact command on next invocation. This is convenient (auto-patching ergonomic improvements) but it means a compromised plugin distribution would auto-execute on next pact invocation. Trade-off: symlink follows updates / shell function (or manual copy) is one-shot tamper-evident. Symlink is reasonable as default for the same reason the rest of the plugin tree is — the entire plugin cache is user-trust-bounded — but it's a documented choice, not unstated default.
Global: alternative pact() shell function
If you prefer not to symlink, add this to your ~/.zshrc or ~/.bashrc:
pact() { claude --agent PACT:pact-orchestrator "$@"; }
Same effect as the symlinked script.