Slash Commands#

Enkaidu supports a variety of / commands to help manage the runtime environment.

Start with /help to display a list of all available slash commands along with their descriptions.

Whenever you’re done, use /bye to exit from Enkaidu.

  • Including files#

    • /include image_file <PATH>

      • Include an image from a file with the next query to the AI model.
    • /include text_file <PATH>

      • Include text from a file with the next query to the AI model.
    • /include any_file <PATH>

      • Include any supported file with the next query to the AI model.
    • /include response_json_schema <PATH>

      • Specify a JSON schema description to tell the model that the next response should be a JSON object matching the schema.
  • Tools management#

    Tools#

    • /tool ls

      • List all available tools that you can activate.
    • /tool info <TOOLNAME>

      • Provide detailed information about the specified tool.

    Toolsets#

    • /toolset ls

      • List all built-in toolsets available for activation.
    • /toolset load <TOOLSET_NAME>

      • Load all the tools from the specified toolset.
    • /toolset unload <TOOLSET_NAME>

      • Unload all the tools from the specified toolset.
  • Prompts#

    • /prompt ls

      • List available prompts
    • /prompt info <NAME>

      • List the details about the specific prompt.
    • /prompt use <NAME>

      • Use or invoke a prompt by name. If the prompt has arguments, you will be asked to enter values for each one.

    System prompts#

    • /system_prompt ls: List available system prompts

    Macros#

    • /macro ls: List available macros
  • Session Management#

    The /session command is used to manage sessions, where each sessions has history and configuration.

    Multiple sessions New in 0.8.6#

    • /session ls

      • List the active sessions by name.
    • /session new <NAME> [model=<MODELNAME>]

      • Create a new named session, with the option to specify a model name, allowing different sessions to use different LLMs
    • /session goto <NAME>

      • Switch to another named session.

    Saving and Loading#

    • /session save <FILEPATH>

      • Save the current chat session to a JSONL file. The file should not be edited.
    • /session load <FILEPATH> [tail=<N>]

      • Load a saved chat session from its JSONL file, and optionally tails last N chats.

    Reset#

    • /session reset [system_prompt_name=name]
      • Reset and clear the current chat session including tools and MCP connections and starts a new per config
      • Optionally, change the system prompt.

    Nested Sessions#

    • /session push [keep_tools=yes|no] [keep_prompts=yes|no] [keep_history=yes|no] [system_prompt_name=NAME]

      • Push the current chat session and fork/branch a new one with the same AI model
      • Keep tools, prompts, and history as specified
      • Optionally, change the system prompt.
    • /session pop [retain=none|last_full|last_outline|session|session_outline] [replace=yes|no] New in 0.8.8

      • Restore the previously pushed session.
      • Retain some of this session’s chat history if retain= specified (default is none)
        • last_full retains the entire last conversation including all the turns between user request and assistant response.
        • last_outline retains the user request and assistant response of the last conversation.
        • session retains the entire chat history since this session started or forked.
        • session_outline retains the first user request and the last assistant response of this session.
      • Replace parent chat history if replace=yes, otherwise no

    Other#

    • /session usage
      • Show the token usage/size for the current chat session based on the most recent response from the LLM.

    Deprecated Will be removed in 0.9.0#

    • /session pop_and_take [response_only=yes|no] [reset_parent=yes|no]
      • Use /session pop ... instead.