---
title: Quick Start
description: Install p9q, connect your coding agents, and post structured review reports on a pull request in five minutes.
nav: Quick Start
order: 2
---

Install `p9q`, run a skill on a pull request, and inspect the six-answer review page on Prehistoriq.

:::quickstart-flow

## Requirements

- Early access to Prehistoriq and a GitHub account with access to your repository
- Node.js 20 or newer
- One of the supported coding agents: Claude Code, Codex, OMP, Pi, OpenCode, or Cursor

## 1. Install `p9q` and run setup

Run the install script in your terminal:

```sh
curl -fsSL https://prehistoriq.com/install | sh
```

The script installs `p9q` into `~/.p9q/bin`, links `~/.local/bin/p9q` when nothing else uses that name, and starts `p9q setup`.

Setup walks through four steps. Your skill mapping is saved only after you confirm it:

1. **Sign in with GitHub.** Opens a browser window to authorize `p9q`. Over SSH or without a local browser, run `p9q login --paste`.
2. **Map your skills.** `p9q` finds the skills installed across your agents and maps them to the six stones a pull request crosses before it merges (**What**, **Show me**, **Review**, **Proof**, **Undo**, **Security**). For any empty stone, setup offers a recommended skill that works across all six agents (`/show-me-pr`, `/look`, `/review-anvil-readonly`, `/proof`, `/undo`, `/doors`).
3. **Choose a writing skill.** Pick one that makes agent-written reports, shapes, and replies clearer, or skip this step.
4. **Install agent hooks.** Adds hooks to each detected agent (`~/.claude/settings.json`, `~/.codex/hooks.json`, `~/.cursor/hooks.json`, plus extensions or plugins for OMP, Pi, and OpenCode).

:::callout
**Codex users:** Codex asks you to approve hooks the first time you start a session. Run `p9q status` anytime to verify your sign-in, skill mapping, and active hooks.
:::

## 2. Run a skill on a pull request

Check out a branch with an open pull request (or a branch before its pull request exists) and invoke a mapped skill in your agent. With `review-anvil-readonly`, for example:

| Agent               | How to invoke a skill                                          |
| ------------------- | -------------------------------------------------------------- |
| Claude Code, Cursor | `/review-anvil-readonly`                                       |
| Codex               | `$review-anvil-readonly`                                       |
| Pi, OMP             | `/skill:review-anvil-readonly`                                 |
| OpenCode            | `/review-anvil-readonly` (v1) or `@review-anvil-readonly` (v2) |

When the skill finishes, the hook holds the agent once and points it to `p9q brief <stone>`. The agent writes its report to match the server's form and uploads it with `p9q report`, along with any screenshots or videos stored inside the repository.

To set several stones at once, open the pull request on Prehistoriq and click **Ask your agent to run these**. That copies a prompt that calls `p9q fill` for the empty stones on your current branch.

## 3. Open the pull request on Prehistoriq

Open the current branch's page from your terminal:

```sh
p9q open
```

You can also replace `github.com` with `prehistoriq.com` in any GitHub pull request URL:

:::url-swap

On the pull request page, you can do four things:

- Check the six-answer strip at the top and click any stone to inspect its summary drawer
- Expand any warning, failure, or individual finding to read the full body, suggested fix, and code context
- Hover over a finding, visual, checklist item, or code block and click **Talk about this** to comment on it from the box at History's foot, or copy a link for your agent so it investigates locally (`p9q open <link>`) and replies in the thread
- Click **Review** at History's top to submit **Comment**, **Approve**, or **Request changes** (Approve and Request changes go to GitHub as your own review, so branch protection counts them)

When the Prehistoriq GitHub App is installed on the repository, the bot also keeps one edited comment on the GitHub PR with the six verdict lights, open threads, and a link to Prehistoriq.

## Next: try a Shape

After trying Pulls on an existing PR, use a **Shape** before coding your next feature:

1. Open `https://prehistoriq.com/<owner>/<repo>/shapes` and enter a title, or run `p9q shape create "Add email alerts for review requests"`.
2. Write a short problem statement and list the **must-haves** that have to be true.
3. Use **Copy link for your agent** in the shape's menu and give the link to your agent, so it reads the shape (`p9q shape <n>`), checks the codebase, and posts findings or a clickable HTML prototype (`p9q shape <n> post`).
4. Request approvals from teammates. Once everyone asked approves the current words, the shape locks as **Agreed**.
5. Click **Land** and paste the prompt, or tell your agent "land Shape <n>". Your agent builds the agreed shape, opens a linked pull request, and sets all six stones.

## Common `p9q` commands

| Command             | What it does                                                           |
| ------------------- | ---------------------------------------------------------------------- |
| `p9q status`        | Show sign-in status, mapped skills, active hooks, and this repo's URL  |
| `p9q open`          | Open the current branch or pull request on Prehistoriq                 |
| `p9q setup`         | Re-run skill mapping, writing skill choice, and hook installation      |
| `p9q fill <stones>` | For an agent: a skill for each named stone, and how to save its result |
| `p9q shape list`    | Print open shapes for this repository as a table                       |
| `p9q land <n>`      | For an agent: build an agreed shape, open its PR, set all six stones   |
| `p9q update`        | Update `p9q` immediately (it also updates in the background)           |
| `p9q uninstall`     | Remove hooks and agent rules while leaving your other files alone      |

For the full walkthrough of Shapes, Pulls, and Berries, read [The Three Pillars](/docs/pillars/).
