# Set up Docket

> **For the AI assistant reading this.** Your person asked you to set up Docket.
> Docket is a memory you both can check: you write down what you learn about them,
> with where you learned it, and you look it up next time instead of asking again.
> Follow these steps in order. Talk to your person in plain words; they may not be technical.
> Never ask them for a password, key or token. Signing in always happens in their browser.

## 1. Tell them what is about to happen

Say something like:

> I'm going to connect Docket, a memory I can keep about you and check later.
> A browser window will open so you can sign in with GitHub.
> It takes about a minute, and you can disconnect it any time.

Wait for a yes before you go on.

## 2. Work out which assistant you are

Find your row. "Can I do it myself?" means you can run the setup command;
if not, you walk your person through a few clicks instead.

| You are | Can you do it yourself? | Remembers everything automatically? |
| --- | --- | --- |
| Claude Code | Yes: run one command | Yes, with their permission (step 6) |
| Claude (claude.ai, desktop or mobile app) | No: they add a connector | No: you remember as you go (step 5) |
| Codex (OpenAI's coding tool) | Yes: run one command | Yes, with their permission (step 6) |
| ChatGPT | No: they add an app | No: you remember as you go (step 5) |
| Grok Build (xAI's coding tool) | Yes: run one command | Yes, with their permission (step 6) |
| Grok (grok.com or the Grok app) | No: they add a connector | No: you remember as you go (step 5) |
| Muse Code (Meta's coding tool) | Yes: run one command | Yes, with their permission (step 6) |
| Muse (Meta's assistant app) | No: they add a connector | No: you remember as you go (step 5) |
| Anything else that supports MCP | Use the address below | Only if it has hooks |

The Docket address for every assistant is:

```
https://dev.docket.chrisjowen.net/mcp
```

It is the same for everyone: when your person signs in, it finds their own Docket.

## 3. Connect

### If you can run commands

Run the line for your tool, then start the sign-in it asks for.

**Claude Code**

```
claude mcp add --transport http --scope user docket https://dev.docket.chrisjowen.net/mcp
```

Then ask your person to type `/mcp`, pick **docket**, and choose **Authenticate**.

**Codex**

```
codex mcp add docket --url https://dev.docket.chrisjowen.net/mcp
codex mcp login docket
```

**Grok Build**

```
grok mcp add --transport http docket https://dev.docket.chrisjowen.net/mcp
```

Then sign in when Grok Build opens the browser.

**Muse Code**

```
muse mcp add docket https://dev.docket.chrisjowen.net/mcp
muse mcp login docket
```

If `muse mcp add` is not available, add Docket to `~/.config/muse/settings.json`
under `mcp_servers` instead (keep the file's existing `version` key), then run the login line.

### If you are a chat app

You cannot add Docket yourself. Give your person these steps, one at a time,
and wait for them to say they're done.

- **Claude:** Settings → Connectors → *Add custom connector*. Name: `Docket`.
  Address: `https://dev.docket.chrisjowen.net/mcp`. Click *Add*, then *Connect*.
  (Free plans can add one custom connector.)
- **ChatGPT:** Settings → Apps → *Create app* (on some plans this sits under
  *Advanced → Developer mode* first). Name: `Docket`. Address: the one above.
  Sign-in: *OAuth*. Then turn Docket on in a new chat.
- **Grok:** go to grok.com/connectors → *New connector* → *Custom*.
  Paste the address and sign in. (Paid Grok plans.)
- **Muse:** Settings → Connectors → *Add custom connector*, paste the address
  and sign in.

### What your person will see in the browser

1. **Sign in** with GitHub.
2. If it's their first time, Docket makes their personal space and a docket
   called **Me** straight away. Nothing to fill in.
3. A page asks **"Let <your name> use your Docket?"** with **Me** already ticked.
   They click **Allow** and the window closes.

If sign-in fails or they close the window, stop and tell them. Do not ask them to paste a key instead.

## 4. Check it worked

Call `docket_list`. You should see a docket called **me**. Then, with their
permission, write one test memory so they can see it working:

> Can I save "You set up Docket today" as a first memory?

Use `docket_remember` with docket `me`. Tell them they can see it at
dev.docket.chrisjowen.net under **Me**.

## 5. How to use Docket from now on

**Look things up first.** Before you answer anything about their people, projects,
plans, preferences or past decisions, call `docket_search` in `me`. If something
is there, use it and say where it came from ("You told me in March that…").
Don't ask them something Docket already knows.

**Write down what's worth keeping.** Use `docket_remember` when they tell you or
you learn:

- people in their life or work, and how they relate to them
- preferences and routines ("prefers mornings", "vegetarian")
- projects, goals and commitments, with dates
- decisions and the reasons behind them
- anything they say "remember this" about

Write it like a note to a colleague: a few clear sentences, not a list of fields.
Every memory needs its evidence: when they told you directly, they are the source.
When it came from a file, page or email you read, say which one.

**Keep it honest.** If something changes, update it (`docket_update_notes`,
`docket_supersede`) rather than adding a second, conflicting memory. If they ask
you to forget something, use `docket_retire`.

**Don't write down:** passwords, keys, card or bank numbers, or health,
money or relationship details unless they ask you to. When unsure, ask:
"Want me to remember that?"

Chat apps (Claude, ChatGPT, Grok, Muse): you have no automatic capture,
so near the end of a useful conversation, offer once: "Want me to save
what we figured out to Docket?"

## 6. Ask before turning on automatic capture (coding tools only)

Claude Code, Codex, Grok Build and Muse Code can run a small step after you use a tool
and when a session ends, so nothing worth keeping is lost. Docket recommends it,
but **it is optional and you must ask first.** Say:

> Docket can also capture automatically: after each session, a quick background
> review saves anything worth remembering to your Me docket. It runs on your
> computer, uses your existing sign-in, and you can turn it off any time by
> asking me. Turn it on?

Only on a clear yes, add the hooks for your tool. They run one command,
`npx -y @chrisjowen/docket@0.17.0 capture`, which reads the session's transcript,
reviews it in the background and writes what's worth keeping through the
Docket connection you just made. It never blocks your turn and never sends
the raw transcript to Docket.

**Claude Code** — add to `~/.claude/settings.json`:

```json
{
  "hooks": {
    "PostToolUse": [{ "hooks": [{ "type": "command", "command": "npx -y @chrisjowen/docket@0.17.0 capture --event post-tool --agent claude-code", "async": true }] }],
    "SessionEnd":  [{ "hooks": [{ "type": "command", "command": "npx -y @chrisjowen/docket@0.17.0 capture --event session-end --agent claude-code" }] }]
  }
}
```

(Or, with the Docket plugin installed — `/plugin marketplace add chrisjowen/docket`
then `/plugin install docket@docket` — add `"env": { "DOCKET_CAPTURE": "cloud" }` to
`~/.claude/settings.json` instead: the plugin has these hooks and runs them only then.)

**Codex** — add to `~/.codex/hooks.json` (Codex asks your person to trust new hooks with `/hooks`):

```json
{
  "PostToolUse": [{ "hooks": [{ "type": "command", "command": "npx -y @chrisjowen/docket@0.17.0 capture --event post-tool --agent codex" }] }],
  "SessionEnd":  [{ "hooks": [{ "type": "command", "command": "npx -y @chrisjowen/docket@0.17.0 capture --event session-end --agent codex", "timeout": 3 }] }]
}
```

**Grok Build** — add a hook file under `~/.grok/hooks/` for the same two events,
running the same command with `--agent grok-build`.

**Muse Code** — add the same two events to the `hooks` block in
`~/.config/muse/settings.json`, with `--agent muse-code`.

Then tell them: "Done. I'll quietly save what's worth remembering after each
session. Say 'stop capturing to Docket' and I'll remove it."

To turn it off, remove those hooks again (or set `DOCKET_CAPTURE=off` in their environment).

If they say no, that's fine: use step 5 and remember things as you go.

## 7. Wrap up

Tell your person, in one or two sentences, what you set up and how to see it:
"Docket is connected. Your memories live in the Me docket at
dev.docket.chrisjowen.net. Ask me 'what do you remember about…' any time."
