hermes-agent/agent
zccyman a574246837 feat(auxiliary): add configurable fallback chains + main-agent safety net
Layered fallback for auxiliary tasks (compression, vision, tts, web_extract,
session_search, etc.):

  1. Primary aux provider (existing)
  2. User-configured auxiliary.<task>.fallback_chain (new)
  3. Main agent provider + model (new — last-resort safety net)
  4. Warn user + re-raise original error (new)

For users on 'auto' (no explicit aux provider), the existing
_try_payment_fallback auto-detection chain runs instead — its Step 1
already IS the main agent model, so they get the same behaviour without
configuration.

The configured fallback_chain config schema comes from #26882 / @zccyman;
the main-agent safety net + exhaustion warning were added on top.

Closes #26882. Builds on the capacity-error gate fix in the previous
commit (#26803 / @Bartok9).
2026-05-17 17:15:31 -07:00
..
lsp chore: ruff auto-fix PLR6201 resweep — tuple → set in membership tests (#27355) 2026-05-17 02:29:41 -07:00
transports fix(codex): allow kanban worker board writes 2026-05-17 11:50:43 -07:00
__init__.py
…
account_usage.py
…
agent_init.py fix(run_agent): guard memory provider init against empty/whitespace string 2026-05-16 23:43:09 -07:00
agent_runtime_helpers.py fix(agent): reset _fallback_index at turn start even when no fallback activated 2026-05-16 23:41:45 -07:00
anthropic_adapter.py
…
async_utils.py
…
auxiliary_client.py feat(auxiliary): add configurable fallback chains + main-agent safety net 2026-05-17 17:15:31 -07:00
background_review.py fix(run_agent): isolate background review fork from external memory plugins (#27190) 2026-05-16 23:42:49 -07:00
bedrock_adapter.py chore(deps): lazy-install boto3/botocore for bedrock adapter 2026-05-17 02:31:18 -07:00
browser_provider.py fix(browser): self-review pass — dead-import, log levels, future-proofing 2026-05-17 04:04:15 -07:00
browser_registry.py fix(browser): self-review pass — dead-import, log levels, future-proofing 2026-05-17 04:04:15 -07:00
chat_completion_helpers.py fix(xai): wire schema sanitizer into post-refactor build_api_kwargs 2026-05-17 13:13:22 -07:00
codex_responses_adapter.py
…
codex_runtime.py fix(xai): surface provider 'error' SSE frame in Codex fallback stream (#27184) 2026-05-16 23:41:09 -07:00
context_compressor.py
…
context_engine.py
…
context_references.py
…
conversation_compression.py fix(auxiliary): resolve xai oauth compression from pool — port to conversation_compression 2026-05-16 23:33:59 -07:00
conversation_loop.py fix(copilot): GitHub Models 413 hint — port to extracted conversation_loop 2026-05-16 23:38:45 -07:00
copilot_acp_client.py
…
credential_pool.py fix(auth) fix a few cases where refresh tokens were not rotated. 2026-05-17 16:56:37 -07:00
credential_sources.py
…
curator.py
…
curator_backup.py
…
display.py
…
error_classifier.py
…
file_safety.py
…
gemini_cloudcode_adapter.py
…
gemini_native_adapter.py
…
gemini_schema.py
…
google_code_assist.py
…
google_oauth.py
…
i18n.py
…
image_gen_provider.py
…
image_gen_registry.py
…
image_routing.py
…
insights.py
…
iteration_budget.py
…
lmstudio_reasoning.py
…
manual_compression_feedback.py
…
markdown_tables.py
…
memory_manager.py
…
memory_provider.py
…
message_sanitization.py
…
model_metadata.py fix(metadata): qwen3.6-plus has a 1M context window (#27008) 2026-05-17 02:31:18 -07:00
models_dev.py
…
moonshot_schema.py
…
nous_rate_guard.py
…
onboarding.py
…
plugin_llm.py
…
portal_tags.py
…
process_bootstrap.py
…
prompt_builder.py
…
prompt_caching.py
…
rate_limit_tracker.py
…
redact.py
…
retry_utils.py
…
shell_hooks.py refactor(security): extract _block_message helper to unify block logic in _parse_response 2026-05-17 02:31:18 -07:00
skill_commands.py
…
skill_preprocessing.py
…
skill_utils.py
…
stream_diag.py
…
subdirectory_hints.py
…
system_prompt.py
…
think_scrubber.py
…
title_generator.py
…
tool_dispatch_helpers.py feat: add supports_parallel_tool_calls for MCP servers (#26825) — port to tool_dispatch_helpers 2026-05-16 23:36:37 -07:00
tool_executor.py
…
tool_guardrails.py
…
tool_result_classification.py
…
trajectory.py
…
usage_pricing.py
…
video_gen_provider.py
…
video_gen_registry.py
…
web_search_provider.py
…
web_search_registry.py
…