Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 1.55 KB

File metadata and controls

28 lines (24 loc) · 1.55 KB

AGENTS

Runtime behavior

  • Startup banner shows ASCII art and a boxed header with the active provider model label.
  • Use /clear to reset history, /exit to quit, and /model to pick a provider when both API keys are set.
  • Tool output is abbreviated; errors are printed as red bullets.
  • Always run cargo test after making code changes.
  • /model opens a selectable list (arrow keys + enter) to choose OpenRouter vs HybridAI.
  • /chatbot opens a selectable list of HybridAI chatbots when HybridAI is active; selection persists to ~/.config/hybridai/nano_config.json.
  • Input history is navigable with up/down arrows and stored in ~/.hybridai/history.jsonl.

Providers

  • If HYBRIDAI_API_KEY is set (non-empty), HybridAI is used; otherwise OPENROUTER_API_KEY is used.
  • HybridAI displays model label as HybridAI/Codingbot in the header.
  • OpenRouter uses the chat completions API with tools.
  • HybridAI uses a local chat completions endpoint with messages, tools, and tool_choice, plus enable_rag, and requires HYBRIDAI_CHATBOT_ID.

Environment variables

  • OPENROUTER_API_KEY (required for OpenRouter)
  • OPENROUTER_MODEL (default: anthropic/claude-sonnet-4.5)
  • OPENROUTER_REFERER, OPENROUTER_TITLE (optional headers for OpenRouter)
  • HYBRIDAI_API_KEY (required for HybridAI)
  • HYBRIDAI_MODEL (default: gpt-5-nano)
  • HYBRIDAI_CHATBOT_ID (required for HybridAI)
  • HYBRIDAI_BASE_URL (default: http://localhost:5000)

Debug logging

  • Requests and responses are appended to debug.log (URL + JSON body + status + raw response).