# Connect an AI agent to the PAWER brain

This page is for the AI agent of a PAWER team member. Your user sent you here to connect this
machine to the PAWER brain: the team's shared knowledge base, a private git repository that
people and their agents read and write together. Follow the steps in order and report the
result of each to your user.

Nothing on this page is secret. The repository is private: the steps only work for someone
with access to the `pawer-pet` organisation on GitHub.

## If you can run shell commands

For Claude Code, Codex, Gemini CLI, Cursor and similar agents.

1. Check access. This must print a commit hash:

   ```bash
   git ls-remote https://github.com/pawer-pet/pawer-brain.git HEAD
   ```

   If it fails, stop and tell your user to sign in to GitHub (`gh auth login`) with an account
   that is a member of `pawer-pet`, or to ask for an invitation. Do not continue without access.

2. Clone the brain. If `~/pawer-brain` already exists, skip this step.

   ```bash
   git clone https://github.com/pawer-pet/pawer-brain.git ~/pawer-brain
   ```

3. Before you run the installer, tell your user what it changes, and wait for their yes:

   - It adds a short "first rule" block to the top of the global instruction file of each agent
     on this machine: `~/.claude/CLAUDE.md`, `~/.codex/AGENTS.md`, `~/.gemini/GEMINI.md`.
     The rest of each file stays as it was, and a backup is saved next to it once.
   - It links the `pawer-brain` skill into Claude Code (`~/.claude/skills/pawer-brain`).
   - It turns on the push checks in the clone.
   - It schedules one hourly job that pulls the brain. The job only fast-forwards.

   You can read the script first: `~/pawer-brain/setup/install.sh`.

4. Run the installer, then the check:

   ```bash
   bash ~/pawer-brain/setup/install.sh
   bash ~/pawer-brain/setup/install.sh --check
   ```

   Show your user the output of the check. Every line should start with `ok`.

5. Read `~/pawer-brain/AGENTS.md` and `~/pawer-brain/plugins/pawer/skills/pawer-brain/SKILL.md`.
   From now on they are how you work on anything PAWER: pull before you read, name the file a
   fact comes from, never use a fact marked `to check` in public material, and write through
   `setup/write.sh`.

6. Tell your user it is done, and that `bash ~/pawer-brain/setup/install.sh --remove` undoes it.

On Windows, run the commands in Git Bash or WSL. The hourly job is not scheduled there.

## If you cannot run shell commands

For the Claude app, ChatGPT, Grok and other chat apps. You cannot install anything, so do this instead:

1. Tell your user to connect GitHub in this app and give it access to `pawer-pet/pawer-brain`.
2. Give your user the text below, and tell them to paste it into this app's custom instructions
   (Claude: Settings › Profile; ChatGPT: Settings › Personalization › Custom instructions;
   Grok: Settings › Customize), or into the instructions of their PAWER project.

```text
PAWER: the team's source of truth is the private GitHub repository pawer-pet/pawer-brain. For any PAWER question (product, dosing, research, legal text, brand, decisions, market), read AGENTS.md in that repository first, then look for the answer there, on the current main branch, before you answer from memory or the web. Other people's agents update it all day, so read it again in each conversation and do not rely on what you read earlier. Name the file your answer comes from. Every fact there has a status: a fact marked "to check" must never go into public material (website, packaging, social post, leaflet, customer email), and if I ask for that, tell me it is unconfirmed. If you cannot reach the repository, say so and say your answer is not verified. You cannot write to the brain from here. When our work produces a decision, a confirmed fact or a reusable answer, end with a paste-ready block: the target path in the repository and the exact text, with source and date, so I can hand it to an agent that can write. Never include passwords, keys or customer personal data.
```

## For people

The brain is also a website for the team: sign in at the address you got this page from, with
your @pawer.pet Google account, to browse and search it.
