NousResearch/hermes-agent

Alibaba and Anthropic auth and config fixes

Cluster 1739 · agent. Data as of

Nothing open on GitHub. Fix merged in #2332 on 21 Mar 2026. Check it covers your case.

The short answer

0open issues
0open PRs
4items grouped
Known?
Yes. 4 related items grouped here, 1 issue already closed.
Fix event
A fix was merged to main in PR #2332. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this resolved, deciding PR #2332. That is separate from the fix event.
Still open
Nothing open on GitHub.

A mix of bug fixes targeting authentication and configuration issues for two providers: Alibaba/DashScope (model name handling, 401 auth errors, agent identity injection) and Anthropic (OAuth autodiscovery, token setup flow, stale entry pruning).

Open issues0

No open issues.

Open PRs0

No open pull requests.

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #2314 fix(agent): inject model identity for Alibaba Coding Plan

    merged to main

    files: run_agent.py

    Show the diff
    • run_agent.py
      @@ -2329,6 +2329,18 @@ def _build_system_prompt(self, system_message: str = None) -> str:
                   timestamp_line += f"\nProvider: {self.provider}"
               prompt_parts.append(timestamp_line)
       
      +        # Alibaba Coding Plan API always returns "glm-4.7" as model name regardless
      +        # of the requested model. Inject explicit model identity into the system prompt
      +        # so the agent can correctly report which model it is (workaround for API bug).
      +        if self.provider in ("alibaba-coding-plan", "alibaba-coding-plan-anthropic"):
      +            _model_short = self.model.split("/")[-1] if "/" in self.model else self.model
      +            prompt_parts.append(
      +                f"You are powered by the model named {_model_short}. "
      +                f"The exact model ID is {self.model}. "
      +                f"When asked what model you are, always answer based on this information, "
      +                f"not on any model name returned by the API."
      +            )
      +
               platform_key = (self.platform or "").lower().strip()
               if platform_key in PLATFORM_HINTS:
                   prompt_parts.append(PLATFORM_HINTS[platform_key])
  • #2332 fix: Alibaba/DashScope: preserve model dots, fix 401 auth, fix dead provider check (salvage #1748 + fix #2314)

    merged to main

    files: agent/anthropic_adapter.py, run_agent.py, tests/test_anthropic_adapter.py

1 PR closed without merging

From the close comments: merged via another change 1

  • #1748 Fix Alibaba/DashScope: preserve model dots (qwen3.5-plus) and fix 401 auth (Fixes #1739) · merged via another change → #2332, #2314
Closed issues · 1
  • Closed#1739[Bug]: Can't use alibaba codingplan w,th hermes agent
How this cluster was grouped
  • Link evidence (structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
  • Pairwise link density 0.50: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. 1.00 means every pair is linked.

Pick up a Lab task

Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.

Open the Lab

At a glance

Subsystem
agent
Merged PRs
#2314, #2332
Closed issues
1
Attempts
1 PR closed without merging
Fix link checked
21 Mar 2026. This confirmation is old and may be out of date (a revert or reopen would not have invalidated it here); re-verify.

For your agent

The same facts, typed.