A local-first multi-agent app development platform, built on PenguinHarness
AgentHub 0.4.4: a max thinking level, and gateway heartbeats that no longer kill a stream
- Date: 2026-08-19
- Type: feature
- Scope:
core,server,web,cli,docs - PR: #334
- Issue: #286
- Breaking: yes — on DeepSeek models the
lowandxhightiers now send shallower efforts than before; pickmaxto keep the depthxhighused to give.
@prismshadow/agenthub moved from 0.4.2 to 0.4.4, over two releases: 0.4.3 skips the heartbeat events gateways inject into a streaming response instead of failing the stream (agenthub #174), and 0.4.4 added a MAX thinking level above XHIGH and re-mapped every client's effort vocabulary onto the widened ladder (agenthub #176). The harness took the new tier all the way through: max is now a selectable thinking level in the Web pickers, a valid thinking_level for run_subagent, and an accepted value everywhere a level is stored or sent.
Gateway heartbeats
A gateway in front of a model API — one-api-style proxies, OpenRouter — sends a heartbeat during a long generation. On 0.4.2 that event reached the unknown-event guard and threw, the harness classified the throw as a retryable request failure, and the retry hit the next heartbeat: a long generation through such a gateway reconnected until it gave up, showing as an endless "reconnecting" in the Web App.
- Responses-protocol clients (
gpt-5.6,openai-responses,minimax-m3) treatkeepaliveas a known no-op; Chat Completions clients (openai-chat,deepseek-v4,glm-5.3,kimi-k3) readchoicesonly when the field is populated; the Anthropic-protocol clients (claude-5,ant-messages) acceptping. Genuinely unknown events still fail loudly. - 0.4.4 then generalized the Gemini half: instead of inferring a heartbeat from a chunk carrying neither candidates nor usage,
gemini3_7marks a chunkunusedwhen nothing was read out of it at all — no content items, no usage, no finish reason. Streams that omit usage behave the same either way.
The max tier
ThinkingLevelNamegained"max", andmapThinkingLevelmaps it to AgentHub'sThinkingLevel.MAX. Every client maps the tier onto the deepest effort its vendor accepts and degrades silently where no such tier exists — Gemini and MiniMax M3 stop at theirhigh— so picking it never fails.maxis offered in the Web pickers, not merely accepted as a stored value. The pickers excludenonebecause many models cannot disable thinking;maxcarries no such caveat, so it joinslow/medium/high/xhighinSELECTABLE_THINKING_LEVELS, inDEFAULT_CHAT_THINKING_LEVELS(a Project's[default_chat]fallback), and inSUBAGENT_THINKING_LEVELS— the tiersrun_subagentaccepts forthinking_level.- The per-turn
thinkingLevelonPOST /api/sessions/:id/tasksand the Agent config'smodel.thinking_levelboth acceptmax; anything else is still a 400. - The CLI offers it too.
--thinkingand/thinking(#322) validate against core'sDEFAULT_CHAT_THINKING_LEVELS, so they acceptedmaxthe moment the ladder widened — but their help text,/thinkingreadouts and invalid-level message spell the tiers out in free text and still stopped atxhigh, advertising less than the flag took. Those eight strings (both locales) and the CLI docs now namemax, and a test pins the advertised set against the accepted one so the two cannot drift apart again. xhighwas described in both locales as "the highest tier" of extended reasoning, which the new tier made false. Its description now names it as the tier beyondhigh, andmaxtook over the superlative — the same rewording AgentHub applied to its own playground selector. Nothing in the harness compared or clamped levels ordinally, so no other site assumedxhighwas the ceiling.
DeepSeek effort re-mapping
DeepSeek's reasoning_effort accepts low / high / max and folds medium and xhigh onto high server-side. 0.4.4 aligned the client with that vocabulary, which changes what two existing tiers send on DeepSeek models:
| Tier | Sent before (0.4.3) | Sent now (0.4.4) |
|---|---|---|
LOW |
high |
low |
XHIGH |
max |
high |
MAX |
— | max |
A DeepSeek Session left on low therefore reasons less, and costs less, than it did; one on xhigh reasons less deeply than it did.
Thinking-level labels name the wire value
Each tier is now labelled with the value it actually sends: the Chinese label appends it in parentheses (极高 (xhigh), 最高 (max)) and the English label is that value itself — xhigh, not Extreme High. Every surface reading the shared name table picked it up: the conversation-time pickers, the mid-chat switch dialog and its toasts, and the Project chat-defaults dialog. The Agent settings rows already showed the raw wire value.
Compatibility
- DeepSeek users who relied on
xhighshould switch tomaxto keep the effort that tier used to send. A Session onlowneeds no action unless the old (much deeper) behavior was wanted, in which casehighis the closest match. - Widening
run_subagent'sthinking_levelenum changed the default tool entry, soKERNEL_VERSIONadvanced to generation2026-08-19withtools.builtin.run_subagentas its only changed leaf. Every existing Agent takes a kernel update; an entry the user edited is kept untouched and one they deleted stays deleted, so nothing has to be done by hand. - Stored configs and traces carrying any older level keep working — the ladder only grew at the top, and no existing value changed meaning in the harness.
pnpm-workspace.yaml'sminimumReleaseAgeExcludeentry now names 0.4.4 alone; the 0.4.3 entry was dropped as that file's own note instructed.- The two published packages were diffed to confirm no base URL or endpoint construction changed between 0.4.3 and 0.4.4, so the model catalog and the protocol-path hints are unaffected;
protocol-path.ts's verification note names 0.4.4 as the version it was re-checked against.