openclawbrain-site

SOP: Create a new OpenClaw agent + dedicated OpenClawBrain profile (TypeScript-first)

Canonical flow for a new profile-style setup:

A) Decide IDs and paths

agentId="pelican"
agentName="Pelican"
workspaceDir="$HOME/.openclaw/workspace-pelican"

Conventions:

B) Create workspace skeleton

mkdir -p "$workspaceDir/memory"

: > "$workspaceDir/AGENTS.md"
: > "$workspaceDir/SOUL.md"
: > "$workspaceDir/USER.md"
: > "$workspaceDir/MEMORY.md"
: > "$workspaceDir/IDENTITY.md"
: > "$workspaceDir/TOOLS.md"
: > "$workspaceDir/active-tasks.md"
: > "$workspaceDir/memory/$(date +%F).md"

Populate policy/persona files before live traffic.

C) Build and verify OpenClawBrain package set

Run from the OpenClawBrain TypeScript workspace root:

corepack enable
pnpm install
pnpm check
pnpm release:pack

Promote one versioned pack set for this rollout.

D) Add agent brain profile in OpenClaw runtime

Add a dedicated profile for this agentId with defaults on:

{
  "agentId": "pelican",
  "brain": {
    "enabled": true,
    "packSet": "<versioned-pack-set>",
    "fastBootFromExistingFiles": true,
    "backgroundLearning": {
      "enabled": true,
      "prioritizeNewEvents": true
    },
    "labels": {
      "human": true,
      "self": true
    },
    "scanner": {
      "enabled": true
    },
    "harvest": {
      "enabled": true
    },
    "continuousGraphLearning": {
      "enabled": true,
      "decay": true,
      "hebbianCofiring": true,
      "structuralUpdates": true
    },
    "teacher": {
      "onHotPath": false
    }
  }
}

E) Bind routing

Bind inbound channels to the new agentId in OpenClaw runtime config.

Minimum checks:

F) Add workspace policy snippet

Copy into SOUL.md:

## Always-on memory policy (default)

- Treat clear user corrections as immediate labels.
- Treat durable user teachings as first-class labels.
- Keep human + self labels enabled.
- Keep scanner and harvest enabled.
- Keep teacher off the hot path.
- Never store secrets in workspace memory files.

G) Verification checklist

Runtime checks:

Boundary checks:

Proof checks:

H) Common footguns