Skip to content

cortex export obsidian — 3-layer brain export #268

Closed

Description

@hurttlocker

Summary

Native Go implementation of the 3-layer brain export (Dashboard → Topics → Entity Hubs).

Port from

scripts/cortex_to_obsidian.py (v2.1, 33KB) — proven architecture with:

  • 10K+ facts → 12 topics + 30 entity hubs
  • Topic classification via regex patterns
  • Entity extraction from SPO triples
  • Hub type taxonomy: person, project, strategy, system, concept
  • Dense wikilink mesh with cross-topic entity references
  • Frontmatter: synced, hub_type, refs, topics, tags

CLI Interface

cortex export obsidian [--vault <path>] [--output <dir>] [--dry-run] [--clean]

Acceptance Criteria

  • Produces identical 3-layer structure to Python script
  • Configurable vault path (default: cwd or config)
  • Dashboard MOC with stats, topic links, entity hub index
  • Topic notes with entity cross-links and type distribution
  • Entity hub notes with SPO facts grouped by predicate
  • Zero orphan notes in output
  • --dry-run previews without writing
  • --clean removes output dir before sync

Part of epic #267

Activity

  1. added
    enhancement
    on Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions