Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript
8.6 KB
Raw Blame
{
  "status": "success",
  "engine": "pglite",
  "path": "{{HOME}}/.gbrain/brain.pglite",
  "pages": 0,
  "embedding_check": {
    "ok": true,
    "skipped": "no_embedding"
  },
  "content": {
    "version": 1,
    "brain_id": "{{UUID}}",
    "source_id": "default",
    "source_incarnation": "{{UUID}}",
    "root": "{{HOME}}/.gbrain/content/{{UUID}}/default",
    "repository_kind": "content_directory",
    "backup": "not_verified",
    "status": "ready",
    "stage": "complete",
    "pending_actions": [
      "Optional: initialize Git explicitly; configure an off-host backup separately."
    ],
    "owned_root": true,
    "fresh_root_activation": true,
    "root_identity": "{{ROOT_IDENTITY}}"
  },
  "notices": [
    {
      "code": "harness_wiring",
      "kind": "info",
      "why": "gbrain is not connected to an agent here, and this step is not a command the agent runs by itself; say so in the reply that reports the install, without waiting on it. Which agent app should get gbrain memory? The install guide has a one-line command for each. For Claude Code or Codex, run `gbrain setup claude-code` or `gbrain setup codex` (it registers serve behind gbrain's launcher, so the session directory's bunfig.toml and .env never load). For any other host, register `<absolute path to gbrain> serve --surface starter --advertise verbs` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw).",
      "fix": {
        "consent": [
          "persistent_install"
        ],
        "actor": "user",
        "why": "For Claude Code or Codex, run `gbrain setup claude-code` or `gbrain setup codex` (it registers serve behind gbrain's launcher, so the session directory's bunfig.toml and .env never load). For any other host, register `<absolute path to gbrain> serve --surface starter --advertise verbs` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw).",
        "user_message": "Which agent app should get gbrain memory? The install guide has a one-line command for each.",
        "docs": "{{DOCS_BASE}}/docs/protocol/MEMORY_VERBS_v1.md#install-the-4-command-quickstart",
        "requires_exclusive": false
      },
      "contract_version": 1
    },
    {
      "code": "first_run_decisions",
      "kind": "ask",
      "why": "The brain is ready and these first-run settings are in effect as listed; none blocks memory. Relay them once, in the reply that reports the install, as the current settings and how to change them; do not hold the install open or end it waiting on an answer. When the user picks an option, run its command. Nothing paid turns on from these settings without a key the user supplied.",
      "user_message": "gbrain is installed. In effect: search mode conservative; agents save only what you ask them to remember, until you turn on automatic saving (salient is recommended: durable facts you state, saved with provenance). Upkeep: free upkeep runs on its own while your agent's gbrain session is open. Nothing is deleted or paid for without you. Turn off: gbrain config set maintenance.auto false. Optional schedule: gbrain maintain --schedule. Conversation archive: on. gbrain keeps one redacted page per conversation per day from your agent sessions (Claude Code, Codex, OpenClaw, Hermes, Grok) in the conversations source, written by the maintenance pass. Without an embedding key nothing leaves this machine. Turn off: gbrain transcripts archive off. Estimated downstream input cost of the retrieved payload at 10K queries/month (Haiku 5.5 / Sonnet 5.5 / Opus 5.5): conservative $4 / $80 / $160, balanced $10 / $200 / $400, tokenmax $20 / $400 / $800 per month. Nothing needs an answer now; tell me any time if you want to change any of these, and I'll apply it.",
      "decisions": [
        {
          "id": "search_mode",
          "question": "Which search mode should this brain use? Estimated downstream input cost of the retrieved payload at 10K queries/month (Haiku 5.5 / Sonnet 5.5 / Opus 5.5): conservative $4 / $80 / $160, balanced $10 / $200 / $400, tokenmax $20 / $400 / $800 per month.",
          "options": [
            {
              "id": "conservative",
              "label": "conservative (applied)",
              "argv": [
                "gbrain",
                "config",
                "set",
                "search.mode",
                "conservative"
              ]
            },
            {
              "id": "balanced",
              "label": "balanced",
              "argv": [
                "gbrain",
                "config",
                "set",
                "search.mode",
                "balanced"
              ]
            },
            {
              "id": "tokenmax",
              "label": "tokenmax",
              "argv": [
                "gbrain",
                "config",
                "set",
                "search.mode",
                "tokenmax"
              ]
            }
          ],
          "default": "conservative",
          "default_reason": "No chat key (Anthropic/OpenAI/Google) and no ready reranker — conservative keeps a tight 4K budget; balanced's reranker could not run."
        },
        {
          "id": "writeback",
          "question": "Should agents save important facts the user states (preferences, decisions, commitments) automatically, with provenance? Saved facts are readable by agents connected to this brain; transient facts expire. Off any time with `gbrain config set memory.auto_writeback off`.",
          "options": [
            {
              "id": "salient",
              "label": "Save durable facts the user states directly (recommended)",
              "argv": [
                "gbrain",
                "config",
                "set",
                "memory.auto_writeback",
                "salient"
              ]
            },
            {
              "id": "all",
              "label": "Every direct factual statement (more low-value facts, more extraction spend)",
              "argv": [
                "gbrain",
                "config",
                "set",
                "memory.auto_writeback",
                "all"
              ]
            },
            {
              "id": "off",
              "label": "Save only what the user explicitly asks to remember (records the answer)",
              "argv": [
                "gbrain",
                "config",
                "set",
                "memory.auto_writeback",
                "off"
              ]
            }
          ],
          "default": "off",
          "default_reason": "In effect now: agents save only what the user asks them to remember. salient is recommended for a personal brain; it is opt-in, so it turns on only when the user picks it."
        },
        {
          "id": "upkeep",
          "question": "Upkeep: free upkeep runs on its own while your agent's gbrain session is open. Nothing is deleted or paid for without you. Turn off: gbrain config set maintenance.auto false. Optional schedule: gbrain maintain --schedule.",
          "options": [
            {
              "id": "on",
              "label": "Keep free upkeep on (in effect now)"
            },
            {
              "id": "off",
              "label": "Turn free upkeep off",
              "argv": [
                "gbrain",
                "config",
                "set",
                "maintenance.auto",
                "false"
              ]
            }
          ],
          "default": "on",
          "default_reason": "In effect now: the agent's gbrain serve runs the free upkeep tier while idle; nothing needs an answer."
        },
        {
          "id": "conversation_archive",
          "question": "Conversation archive: on. gbrain keeps one redacted page per conversation per day from your agent sessions (Claude Code, Codex, OpenClaw, Hermes, Grok) in the conversations source, written by the maintenance pass. Without an embedding key nothing leaves this machine. Turn off: gbrain transcripts archive off.",
          "options": [
            {
              "id": "on",
              "label": "Keep the conversation archive on (in effect now)"
            },
            {
              "id": "off",
              "label": "Turn the conversation archive off",
              "argv": [
                "gbrain",
                "transcripts",
                "archive",
                "off"
              ]
            }
          ],
          "default": "on",
          "default_reason": "In effect now: on by default on a personal brain; nothing needs an answer."
        }
      ],
      "contract_version": 1
    }
  ],
  "contract_version": 1
}