Quickstart
Install pair-cli, set up the Knowledge Base, and start using AI-assisted development — for new and existing projects.
Get up and running with pair on macOS or Linux. By the end of this guide, your project will have a Knowledge Base that gives your AI assistant full context about your development standards.
Prerequisites
- Node.js 18 or higher
- pnpm (or npm) package manager
- Terminal access
Install pair-cli
Option 1: Package Manager (Recommended)
Install pair-cli globally:
Or with pnpm:
Option 2: Manual Install (Offline)
For air-gapped environments:
- Download the latest release from GitHub Releases
- Extract the
pair-cli-manual-vX.Y.Z.zipfile - Run directly from the extracted folder
Verify Installation
Expected output:
Install the Knowledge Base
Navigate to your project root and run:
This creates the .pair/ folder with documentation, guidelines, how-to guides, and adoption templates. It also sets up .github/ workflows and the agent bridge pattern (AGENTS.md).
Your project now has:
See what pair can install in your project:
Start Using pair
Your AI assistant (Claude, Copilot, Cursor) now reads the .pair/ folder automatically. The next step is creating your adoption files — the project-specific decisions that keep every AI session aligned.
You don't write these files manually. The AI generates them interactively, asking the right questions along the way.
New Project
Run /pair-next in your AI assistant. It detects empty adoption files and walks you through:
- PRD creation — the AI asks about your product vision, users, pain points, and features, then generates
.pair/adoption/product/adopted/PRD.md - Bootstrap — the AI guides you through architecture, tech stack, infrastructure, and way-of-working decisions, generating adoption files in
.pair/adoption/tech/adopted/ - What comes next —
/pair-nextcontinues to suggest the right next step as your project evolves
Existing Project
For projects with an existing codebase, the AI reverse-engineers your project context — reading dependencies, config files, Git history, and code structure — then proposes adoption files for you to review and refine.
The quick version: run pair-cli install, then paste a reverse-engineering prompt into your AI assistant. It analyzes the codebase, presents findings, and asks you to confirm before generating any files.
For the full guided walkthrough with the complete prompt and step-by-step refinement process, see the Existing Project tutorial (~30 min).
Keep Your KB Up to Date
When pair publishes new guidelines, templates, or how-to improvements:
This refreshes the Knowledge Base content (guidelines, how-tos, templates) while preserving your adoption files — your decisions are never overwritten.
The Development Process
pair defines a 9-step development lifecycle organized in four levels:
| Level | Steps | What Happens |
|---|---|---|
| Induction | PRD → Bootstrap → Initiatives | One-time setup: define product, architecture, tech stack |
| Strategic | Epics | Break initiatives into feature-level epics |
| Iteration | Stories → Refine → Tasks | Break epics into stories, add acceptance criteria, plan tasks |
| Execution | Implement → Code Review | TDD cycle, quality gates, structured review |
Each step has a how-to guide in .pair/knowledge/how-to/ that the AI follows, and a matching skill (e.g., /pair-process-implement) that automates it. Run /pair-next at any point to find out which step comes next.
Learn more about the Process Lifecycle
Choose Your Setup
The steps above work for everyone. For environment-specific configuration:
- Solo Setup — Working alone? Minimal setup, no team coordination needed.
- Team Setup — Shared standards, adoption files, and the agent bridge pattern for multi-developer teams.
- Organization Rollout — Custom KB packaging, distribution, and governance across multiple teams.
Want a guided, end-to-end walkthrough? Pick a tutorial that matches your context — solo developer (~30 min), team lead (~45 min), or enterprise architect (~60 min).
Feeling lost? Check the FAQ — it covers the most common questions about process, languages, tools, and customization.