Skip to content

feat: add cortex demo first-win command - #298

Merged
hurttlocker merged 1 commit into
mainfrom
xmate/demo-293
Mar 1, 2026
Merged

hurttlocker merged 1 commit into
mainfrom
xmate/demo-293

Conversation

@hurttlocker

Copy link
Copy Markdown
Owner

Implements #293.

What shipped

  • Added new top-level command: cortex demo
  • Runs a complete first-win flow on temporary data + temporary DB (no pollution of user DB):
    1. creates 4 sample markdown files
    2. imports with --extract --no-enrich --no-classify
    3. runs demo searches and shows results
    4. runs cortex doctor
    5. prints "your turn" commands

Flags

  • --db <path>: optional custom temp DB path
  • --dir <path>: optional custom demo files path
  • --cleanup: remove demo files + DB artifacts after run

UX goals covered

Tests

  • Added cmd/cortex/demo_test.go:
    • TestCreateDemoMarkdownFiles
    • TestCleanupDemoArtifacts

Validation

  • go test ./cmd/cortex -run 'Demo|CreateDemo|CleanupDemo' -v ✅
  • go test ./... ✅
  • Manual smoke: go run ./cmd/cortex demo --cleanup ✅

@hurttlocker
hurttlocker merged commit 7739b9e into main Mar 1, 2026
4 checks passed
@hurttlocker
hurttlocker deleted the xmate/demo-293 branch March 1, 2026 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants