Module: OllamaAgent::CLI::ReplShared

Included in:
Repl, TuiRepl
Defined in:
lib/ollama_agent/cli/repl_shared.rb

Overview

Slash-command handlers shared by Repl and TuiRepl. rubocop:disable Metrics/ModuleLength, Layout/HashAlignment, Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/MethodLength, Style/NumericPredicate – REPL command dispatch

Constant Summary collapse

SLASH_COMMANDS =
{
  "/help"     => "Show this help message",
  "/status"   => "Show run budget, provider, memory summary",
  "/session"  => "Show or switch session (usage: /session [id])",
  "/memory"   => "Query long-term memory (usage: /memory [key])",
  "/remember" => "Store a fact (usage: /remember key = value)",
  "/clear"    => "Clear short-term context for this session",
  "/config"   => "Show current agent configuration",
  "/model"    => "Show or set chat model (usage: /model [name])",
  "/models"   => "List available models and capabilities (usage: /models [filter|--usable|--tools|--vision])",
  "/provider" => "Show or switch provider (usage: /provider [name])",
  "/index"    => "Summarise the project repository index",
  "/exit"     => "Exit the REPL"
}.freeze