Skip to Content
Mind Palace 0.3.1-alpha is out. Check it out →
ReferenceCLI Reference

CLI Reference

All commands are deterministic. Validation uses embedded schemas.


Quick Reference

CommandPurposeModifies State
exploreSearch codebase, symbols, call graphsNo
storeStore idea/decision/learningYes
recallSearch and retrieve knowledgeNo
briefGet file briefing and intelligenceNo
initInitialize .palace/ structureYes
scanBuild/refresh IndexYes
checkVerify freshness and CINo
serveStart MCP serverNo
sessionManage agent sessionsYes
corridorCross-workspace sharingVaries
dashboardStart web dashboardNo
cleanCleanup stale dataYes
updateSelf-update to latestYes
versionShow version infoNo

Core Commands

explore

Search the codebase, symbols, and call graphs.

palace explore "<query>" [options] palace explore --map <symbol> [options] palace explore --rooms

Options:

FlagDescription
--room <name>Filter to specific room
--roomsList all configured rooms
--limit <n>Maximum results (default: 10)
--fuzzyEnable fuzzy matching
--fullGet full context (generates context-pack.json)
--map <symbol>Trace call graph for a symbol or file
--file <path>File path for --map mode
--depth <n>Recursion depth for call chain (1-10)
--direction <d>Trace direction: up, down, or both

store

Store ideas, decisions, and learnings (auto-classified).

palace store "<content>" [options]

Options:

FlagDescription
--as <type>Force type: decision, idea, learning
--scope <scope>Scope: file, room, palace (default: palace)
--path <path>Scope path for file/room scope
--directBypass proposals workflow (human-only, creates approved records directly)

recall

Search and retrieve knowledge.

palace recall [query] [options]

Options:

FlagDescription
--type <type>Filter by type: decision, idea, learning
--pendingShow decisions awaiting outcome

Subcommands:

  • update <id> <outcome>: Record decision outcome (success, failed, mixed)
  • link --<rel> <target> <source>: Create relationships between records (flags before source ID)

brief

Get file briefing and intelligence.

palace brief <file-path> [options]

Options:

FlagDescription
--sessionsInclude recent agent activity details

Setup & Indexing

init

Initialize the palace in the current directory.

palace init [options]

Options:

FlagDescription
--detectAuto-detect project type and generate rooms
--with-outputsAlso create generated output templates
--forceOverwrite existing curated files

scan

Build or refresh the Index (Tier-0).

palace scan [options]

Options:

FlagDescription
--fullForce full rescan (default: incremental)
--deepEnable LSP-based deep analysis

Parses files using Tree-sitter and stores symbols in SQLite. For Dart/Flutter projects, deep analysis runs automatically to extract accurate call relationships via LSP.


check

Verify Index freshness and validate schemas.

palace check [options]

Options:

FlagDescription
--strictHash all files (slower but thorough)
--diff <range>Scope check to a specific git diff range
--collectAlso generate context pack from diff
--signalAlso generate change signal from diff

Maintenance

clean

Cleanup stale sessions, agents, and old learnings.

palace clean [--dry-run]
Last updated on