NousResearch/hermes-agent

Alibaba Coding Plan model identity workaround fixes

Cluster 2300 · agent. Data as of

2 open items. Fix merged in #2314 on 21 Mar 2026. Check it covers your case.

The short answer

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

These issues and pull requests address a bug where the Alibaba Coding Plan provider returns an incorrect model identity, and track iterative fixes to the workaround logic including a stale provider name check.

Open issues1

  • Issue#66134Model-identity workaround no longer fires for alibaba-coding-plan (stale provider name check)

Open PRs1

  • PR#66135fix(agent): drive model-identity workaround from provider profile

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])

2 PRs closed without merging

From the close comments: merged via another change 1 · superseded by another PR 1

  • #2302 fix: Alibaba Coding Plan Provider Returns Incorrect Model Iden · superseded by another PR → #2314
  • #2304 fix(agent): inject model identity for Alibaba Coding Plan to work around API returning wrong model name · merged via another change → #2314
Closed issues · 1
  • Closed#2300[Bug]: Alibaba Coding Plan Provider Returns Incorrect Model Identity
How this cluster was grouped
  • Link evidence (partly structural links): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
  • Members outside that structural core may belong to a different underlying problem.
  • Pairwise link density 0.29: 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
Closed issues
1
Attempts
2 PRs 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.