Skip to content

feat: cortex init — first-time setup wizard (#276) - #283

Merged
hurttlocker merged 1 commit into
mainfrom
feat/276-init-wizard
Mar 1, 2026
Merged

hurttlocker merged 1 commit into
mainfrom
feat/276-init-wizard

Conversation

@hurttlocker

Copy link
Copy Markdown
Owner

What

cortex init — the P0 first-time user experience. Auto-detects your environment and gets you to a working Cortex in one command.

What it does

  1. Creates ~/.cortex/ directory
  2. Auto-detects LLM provider from env vars (OPENROUTER_API_KEY, GOOGLE_API_KEY, OPENAI_API_KEY)
  3. Auto-detects Ollama for embeddings (health check on localhost:11434)
  4. Writes ~/.cortex/config.yaml with detected settings (or commented-out examples if nothing found)
  5. Creates or verifies the SQLite database
  6. Prints actionable next steps

Output (existing setup)

🧠 Cortex Setup

  ✓ Config already exists: ~/.cortex/config.yaml

  ✓ Database: ~/.cortex/cortex.db (5015 memories, 11743 facts)

🚀 Ready! Next steps:

  cortex import ~/notes/        # Import your files
  cortex search "what I know"   # Search your knowledge
  cortex doctor                  # Verify full setup

Flags

  • -y — Accept defaults without prompting (CI-friendly, non-interactive)

Testing

All 890+ tests pass. No test changes needed.

Closes #276
Part of adoption sprint epic #267

Interactive setup that:
1. Creates ~/.cortex/ directory and config.yaml
2. Auto-detects LLM provider from env vars (OPENROUTER, GOOGLE, OPENAI)
3. Auto-detects Ollama for embeddings (health check on localhost:11434)
4. Creates or verifies the SQLite database
5. Prints actionable next steps

Flags:
  -y  Accept defaults without prompting (CI-friendly)

When config exists, reports current state instead of overwriting.
When LLM keys are missing, tells you exactly which env var to set.
When Ollama isn't running, links to install page.

All 890+ tests pass.

Closes #276
@hurttlocker
hurttlocker merged commit 9538a8f into main Mar 1, 2026
4 checks passed
@hurttlocker
hurttlocker deleted the feat/276-init-wizard branch March 1, 2026 15:32
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.

feat: cortex init wizard — guided first-time setup

1 participant