Skip to content

Slash Commands

LingXiao has 66 built-in slash commands available in both TUI and WebUI chat input. Commands are registered in src/commands/slash_registry.ts and dispatched by src/commands/dispatcher.ts.

HandlerMeaningNotes
tui-localClient handles locally without backend callFor view switches, help, exit
callbackMust be sent to backend dispatcherFor runtime state, sessions, tools, permissions, models, workflow
CategoryPurpose
sessionSession lifecycle and history
viewTUI/Web panels and reports
permissionTool permission and approval controls
projectOrchestration project controls
modelModels, language, and configuration
toolsRuntime tools, plugins, network helpers, skills
miscHelp, doctor, quit, and uncategorized commands
CommandHandlerDescription
/resumecallbackRestore a session or open resume modal
/sessioncallbackShow current session/workspace/permission summary
/clearcallbackClear current conversation in DB and memory
/compactcallbackForce Leader context compression
/forkcallback/fork [messageId]; fork session from a message (registered but currently non-functional)
/dreamcallbackConsolidate checkpoints into structured MEMORY.md
/historycallbackRecent sessions modal
/stopcallbackInterrupt current session
CommandHandlerDescription
/taskstui-localOpen task board/DAG view
/agentstui-localOpen agent overview
/graphtui-localOpen graph/blackboard view
/notestui-localOpen work notes
/gittui-localOpen Git workspace panel
/changescallbackFile changes/checkpoint report
/maintui-localReturn to main channel
/refreshcallbackHydrate current session snapshot
/resettui-localReset current view
CommandHandlerDescription
/permissionscallbackPermission effective/layer/pending request modal
/modecallback/mode <strict|dev|networked|yolo> [session|project|local|user]
/allow-toolcallbackAdd allow rule
/deny-toolcallbackAdd deny rule
/ask-toolcallbackAdd ask rule
/approvecallbackApprove pending permission or plan
/denycallbackDeny pending permission request

/mode, /allow-tool, /deny-tool, /ask-tool persist to different layers:

  • session: SQLite session_state, key TOOL_PERMISSION_CONTEXT
  • project: .lingxiao/permissions.project.json
  • local: .lingxiao/permissions.local.json
  • user: ~/.lingxiao/permissions.user.json

Defaults to session when not specified.

CommandHandlerDescription
/eternalcallback/eternal <goal>|status|pause|resume|clear|delete|set; manage Eternal long-term goal
/teamcallback/team status|on|off; show or switch collaboration mode
/routecallback/route <auto|direct|hybrid|delegate>; set Leader execution route preference
/projectscallbackOrchestration project board
/project-pausecallbackPause current project
/project-resumecallbackResume current project
/project-prioritycallback/project-priority <critical|high|normal|low>
/project-replancallbackForce current project to replan
/project-resetcallbackForce recovery/reset for current project
/project-unblockcallback/project-unblock <dependency-id>
/project-archivecallbackArchive current project
/intervenecallback/intervene @agent <message>
/cancel-taskcallback/cancel-task <task-id> [reason]
/broadcastcallbackBroadcast message to all agents
CommandHandlerDescription
/modelscallbackList configured models grouped by provider
/modelcallback/model <model-id>; update Leader model and persist
/languagetui-local/language <zh|en>
/configtui-local/config | /config set <key> <value> | /config reset <key> | /config reset-all | /config init
CommandHandlerDescription
/bughuntcallback/bughunt [target]; start or resume bughunt ledger
/bughunt-statuscallbackShow bughunt ledger summary
/bughunt-reportcallbackGenerate bughunt report from ledger
/officecallback/office [on|off]; toggle office plugin
/workflowcallback/workflow [on|off]; toggle workflow tool injection
/skillscallbackSkill source and role skill modal
/hookscallbackHooks configuration report
/fetchcallback/fetch <url>; fetch URL content
/searchcallback/search <query>; web search helper
/lscallback/ls <path>; directory preview
/opencallback/open <path>; read first 200 lines
/loopcallback/loop [interval] <prompt>; loop task management
CommandSession KeyRuntime Effect
/officeOFFICE_MODE_ACTIVEEnables office document/canvas capabilities
/workflowWORKFLOW_MODE_ACTIVEExposes workflow leader tools

/mcp is the slash-command surface for MCP server management, sharing the same config and runtime client as the mcp ToolRegistry tool.

SubcommandDescription
/mcp listList configured servers
/mcp search <query>Dynamically query marketplace sources
/mcp install <entry-id>Install a marketplace MCP entry
/mcp tools [server-id]Inspect server-exposed tools
/mcp call <server-id> <tool-name> [args]Call a server tool
/mcp resources [server-id]Inspect server resources
/mcp read-resource <server-id> <uri>Read a server resource
/mcp prompts [server-id]Inspect server prompts
/mcp get-prompt <server-id> <prompt-name> [args]Get a prompt
/mcp templates [server-id]List resource templates
/mcp snapshot [server-id]Show initialize capability snapshot
/mcp add-remote <id> <url> [name]Create a streamable-http server
/mcp add-stdio <id> <command> [args...]Create a stdio server
CommandHandlerDescription
/helptui-localShow grouped help
/doctorcallbackRuntime diagnostics modal
/quittui-localExit client
/exittui-localExit client

Each command result carries a content string and optional type. Results are discriminated by action:

TypeactionExtra Fields
CommandMessageResultnonenone, plain system message
CommandResumeModalResultresume_modalsessions
CommandItemsModalResulthistory_modal / skills_modal / doctor_modal / permissions_modal / projects_modalitems
CommandReportModalResultreport_modaltitle, report
CommandHydrateResulthydratesessionStatus, tasks, messages, channels, tokenUsage?, agentTokens?, leaderStatus, leaderMode?, leaderReason?
  • /fork is registered as callback type but has no handler in dispatcher.ts commandRegistry; currently non-functional.
  1. Register every new slash command in slash_registry.ts
  2. Add callback behavior in dispatcher.ts when handledBy is callback
  3. Update Web autocomplete only after the backend registry exists
  4. New command result actions must be documented here and handled by the target client
  5. Synonymous commands (e.g. /quit and /exit) are registered as separate entries; command names are not normalized