Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript
2.9 KB
Raw Blame

Migrating your OpenClaw brain to gbrain v0.41.2.0 (greenfield)

The v0.41.2.0 lens packs ship a one-shot importer that re-ingests your existing OpenClaw brain (~/git/brain/atoms/, concepts/, ideas/) through the new ingestion cathedral. Pages land in gbrain with an imported_from: markdown-greenfield frontmatter marker so the new extract_atoms + synthesize_concepts cycle phases skip them (lossless import with provenance).

Before you migrate

  1. Upgrade gbrain to v0.41.2.0+:

    gbrain upgrade
    gbrain --version  # should be 0.41.2.0 or later
    
  2. Activate the creator pack (or gbrain-everything if you also want investor + engineer lenses on the same brain):

    gbrain config set schema_pack gbrain-creator
    # OR
    gbrain config set schema_pack gbrain-everything
    
  3. Apply schema migration v94 (take_domain_assignments table):

    gbrain apply-migrations --yes
    

Status: the importer is not wired to the CLI

The importer (src/core/ingestion/sources/markdown-greenfield.ts) shipped as a module only; no gbrain command invokes it. The invocation this guide originally documented, gbrain capture --source markdown-greenfield --repo ~/git/brain, fails with unknown flag --repo: capture --source selects a brain source id, and capture has no --repo flag. To index an existing markdown brain today, use gbrain import <dir> (see gbrain import --help). Pages imported that way do not carry the imported_from: markdown-greenfield marker described above.

After the import

Verify counts match:

gbrain stats
# Should show ~24K new pages with type=atom/concept/idea

The next gbrain dream cycle will:

  • Run extract_atoms on NEW transcripts (skips pages with the imported_from marker — your historical atoms are frozen, not re-extracted).
  • Run synthesize_concepts on NEW atoms (skips imported concepts for the same reason).
  • Run extract_facts over the imported pages — facts fences in imported atoms/concepts populate the facts table normally.

Retiring your OpenClaw's parallel crons

After verifying the import, retire your OpenClaw's parallel atom pipeline cron entries. In ~/git/your-openclaw/workspace/cron.json:

  • Remove atom-pipeline-coordinator (every-30-min cron)
  • Remove atom-backfill-coordinator (every-10-min cron)

Replace with nothing — gbrain's autopilot already runs extract_atoms + synthesize_concepts inside every dream cycle when gbrain-creator (or gbrain-everything) is the active pack.

The OpenClaw skills themselves shrink to thin wrappers:

  • content-atom-extractor → calls gbrain dream --phase extract_atoms
  • concept-synthesis → calls gbrain dream --phase synthesize_concepts
  • atom-backfill-coordinator → DELETED (backfill is now part of extract_atoms via the Source Quote + lesson enrichment in one Haiku call per transcript)