prehistoriq Docs

Quick Start

View as Markdown

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

1
Yellow clay terminal key
$ curl .../install | sh ✓ p9q linked · 3 agents hooked
Install & setup

Sign in with GitHub, map your skills, and wire agent hooks.

2
Yellow clay hook
/look → p9q report
Uploads findings + local screenshots
Run a skill

Invoke any mapped skill in your agent on a branch or PR.

3
Yellow clay mammoth with magnifying glass
What Show me Review Proof Undo Security
6 answers · threads · GitHub Approve
Review on Pulls

Open with p9q open or swap the host in the PR URL.

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:

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 review categories (What, Show me, Review, Proof, Undo, Security). For any empty category, 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).

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:

AgentHow 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 <category>. 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 run several categories 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 missing categories on your current branch.

3. Open the pull request on Prehistoriq

Open the current branch's page from your terminal:

p9q open

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

https://github.com/owner/repo/pull/42
https://prehistoriq.com/owner/repo/pull/42

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

  • Check the six-answer strip at the top and click any tile 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 to start a thread, or click Ask my agent so your agent investigates locally (p9q discuss <thread>) and replies in the thread
  • Submit Comment, Approve, or Request changes from the box at the bottom (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. Click Bring my agent so your agent 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 fills all six review categories.

Common p9q commands

CommandWhat it does
p9q statusShow sign-in status, mapped skills, active hooks, and this repo's URL
p9q openOpen the current branch or pull request on Prehistoriq
p9q setupRe-run skill mapping, writing skill choice, and hook installation
p9q fill <categories>For an agent: a skill for each named category, and how to save its result
p9q shape listPrint open shapes for this repository as a table
p9q land <n>For an agent: build an agreed shape, open its PR, fill all six categories
p9q updateUpdate p9q immediately (it also updates in the background)
p9q uninstallRemove hooks and agent rules while leaving your other files alone

For the full walkthrough of Shapes, Pulls, and Berries, read The Three Pillars.