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.
  • Session Management#

    The /session command has a number of subcommands.

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

    Saving and Loading#

    • /session save <FILEPATH>

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

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

    Reset#

    • /session reset [system_prompt_name=name]
      • Resets and clears the current session including tools and MCP connections and starts a new per config, optionally switching to the specific system prompt.

    Interim Sessions#

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

      • Pushes the current session and forks a new one, keeping tools, prompts, and history as specified, and optionally switching to the specific system prompt.
    • /session pop

      • Restores the previously pushed session.
    • /session pop_and_take [response_only=yes|no] [reset_parent=yes|no]

      • Restores the previously pushed session and takes and appends last chat from the interim session, after resetting the parent session if requested.
  • 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