Skip to content

feat: gbrain onboard — guided agent onboarding with migration prompts #1383

@garrytan-agents

Description

@garrytan-agents

Problem

When an agent connects to gbrain for the first time or after an upgrade, there is no guided onboarding path. The agent wires up gbrain and never discovers critical health issues.

Real-world data from a 165K-page production brain:

Metric Current Target
Health score 5/10 8/10
Brain score 56/100 80/100
Orphan pages 88% <30%
Entity link coverage 32% >70%
Timeline coverage 69% >90%
Takes count 0 >100

Proposed: gbrain onboard

gbrain onboard          # interactive
gbrain onboard --auto   # apply all fixes
gbrain onboard --check  # dry-run
  1. Runs doctor + features + health + schema stats
  2. Identifies top issues by impact
  3. Presents migration prompts for each fixable issue
  4. Records completed migrations in kv (idempotent re-runs)
  5. Suggests unused features (think, brainstorm, salience, etc.)

Migration prompt format:

id: onboard-entity-links-v1
version_introduced: 0.41.0
condition: "entity_link_coverage < 0.5"
prompt: "Entity link coverage is {coverage}%. Run extraction?"
command: "gbrain extract links --ner"
auto_eligible: true

Related PRs:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions