CLI Commands
All Xavier commands live under the /xavier namespace.
/xavier setup
Scaffolds the vault, runs the interactive interview, and configures Xavier for your workflow.
/xavier setupWhat it does:
- Creates
~/.xavier/with the full directory structure - Initializes as a git repository
- Creates a private GitHub repo (default name:
xavier-ai) - Detects the active runtime and wires the adapter
- Installs default reviewer personas (correctness, security, performance)
- Interviews you: name, teams, preferences, review priorities, git strategy, export vault path
- Detects existing global skills and coexists without conflict
Re-running setup: safe to run on an existing vault. Updates preferences without losing content.
/xavier review
Spawns concurrent persona-driven reviewers to analyze your code changes.
/xavier reviewWhat it does:
- Loads vault context (team conventions, recurring review patterns)
- Detects the current diff via
git diff - Spawns 3 reviewer remoras in parallel (correctness, security, performance)
- Aggregates findings incrementally as each reviewer completes
- Delivers a verdict: approve, request changes, or rethink
- Stores the review note in
~/.xavier/knowledge/reviews/
Active learning: if 2+ past reviews exist for this repo, recurring patterns are injected into reviewer prompts automatically.
Persona override: place persona files in <your-repo>/.xavier/personas/ to override global personas for that repo.
/xavier add-dep
Adds a dependency-skill to the vault.
/xavier add-dep <package-name>Example:
/xavier add-dep drizzle-ormCreates ~/.xavier/skills/drizzle-orm/ with best practices, API patterns, and documentation links.
/xavier remove-dep
Removes a dependency-skill from the vault.
/xavier remove-dep <package-name>/xavier deps-update
Checks lockfile versions against existing dependency-skills and regenerates stale ones.
/xavier deps-updateRun this after updating dependencies in your project.
/xavier learn
Scans the current repository and generates knowledge notes in the vault.
/xavier learnWhat it produces:
- Architecture map (modules, responsibilities, connections)
- Decision log (inferred architectural decisions)
- Dependency graph (internal modules, external deps, entry points)
- Dependency-skills for packages you select
Ecosystem: Node.js projects only (package.json).
/xavier ideate
Panel-based brainstorming with dynamically selected personas.
/xavier ideateSpawns multiple agents with different perspectives relevant to the topic you're exploring. Uses the same Shark concurrency model as review.
/xavier prd
Interactive PRD creation enriched with vault context.
/xavier prdFlow:
- Browse and select relevant vault context (past PRDs, architecture notes, team conventions)
- Interactive interview about the problem and solution
- User verification quiz
- PRD written to
~/.xavier/prd/
/xavier tasks
Decomposes a PRD into phased implementation tasks.
/xavier tasksFlow:
- Select a PRD from
~/.xavier/prd/ - Codebase exploration
- Vault context loaded via PRD's wikilinks
- Vertical slice decomposition with acceptance criteria and backpressure commands
- Tasks written to
~/.xavier/tasks/
/xavier loop
Autonomous iteration engine for executing task phases.
Task-file mode
/xavier loopSelect a task file from ~/.xavier/tasks/. The loop executes phases in order with backpressure verification.
Freeform mode
/xavier loop "Refactor all handlers to use the new error pattern"Accepts a plain description without requiring a formal task file.
Guardrails:
- Strict backpressure pre-flight (all checks must pass before starting)
- Automated verification after each phase
- Max iteration limits
- Completion promises
/xavier export
Exports a vault note to your personal Obsidian vault.
With a path
/xavier export prd/webhook-supportInteractive
/xavier exportBrowse exportable notes and select one.
Exportable directories: prd/, tasks/, knowledge/repos/, knowledge/teams/, knowledge/reviews/
Destination: <your-vault>/x-inbox/x-<filename>.md
Last updated: 4/8/26, 10:45 PM
Edit this page on GitHub