provider: Devin's plugin is 0.1.29 at least, its Claude models keep the client's cache marks (plugins#566)

Devin 0.1.28 asks its Claude models on Anthropic's Messages API and sends
each of the client's blocks as a prompt of its own, with Devin's cache
mark (prompt_cache_options EPHEMERAL) where the client put cache_control.
A grown Claude Code classifier history read 558 tokens from the cache
and wrote ~7.3k again; on a real account it now reads 7,318 and writes
the 560 it grew by (haiku-5-5 and opus-5-5). 0.1.29 says a failed tool
result in its text, "Error: " first, as the chat path does.

npm view @magpie-community/opencode-devin-auth version --prefer-online:
0.1.29 when this landed.

Run: mote-run go test -timeout 45m ./internal/provider/... ok (102.8s).
Not tried: a magpie gateway with Claude Code end to end on the new
plugin.
This commit is contained in:
yetone
2026-10-31 22:28:02 +08:00
parent 59ea5dc8f8
commit 30cd39f19b
+1 -1
View File
@@ -17,7 +17,7 @@ import (
func init() {
movers["devin"] = &mover{
pkg: "@magpie-community/opencode-devin-auth",
min: "0.1.27", // 0.1.27: SWE-2 asked with no effort goes as a free variant, never a paid -lightning one Devin lists first, and as SNAPSHOT's swe-2-high when the account's list leaves the family out, not the bare family id; a model list Devin won't give is logged and shown in usage ("Free models: unknown"), not swallowed (zws13579 on Discord, plugins #533); 0.1.26: a usage read Devin answers 401 marks the account signed out, so its rows offer Sign in again, and a clean read takes the mark off (blue12345655 on Discord); 0.1.25: an anyOf beside a type below a tool's root (what the gateway writes for a Gemini model) goes to Devin's Gemini models merged or as a oneOf, so Kimi Code's Read no longer 400s (plugins #458); 0.1.24: the CLI's sign-in keeps its "cli" mark as the string OpenCode stores, so OpenCode 1 keeps the account (plugins #396); 0.1.23: a reply with only usage or metadata is refused before the stream starts, not passed on as an empty success (plugins #297); 0.1.22: organisations under one email are kept apart, each with its own quota (plugins #296); 0.1.21: a chat request past 8 KiB goes as a gzipped Connect frame, as the devin CLI sends it, where an uncompressed large one could be refused 413 (plugins #275); 0.1.20: a tool result's images go to Devin on the tool message that answers the call, as the built-in sent them; 0.1.19: Devin answers in JSON when the request asks for it (response_format into the instructions, as the built-in); 0.1.18: a tool whose parameters have a root anyOf, oneOf or allOf goes as a plain object (#1196), a branch that is a union itself folded too (#1271); a turn's parallel calls split over two assistant messages keep their results (#1275); a temperature or top_p of 0 goes as 1e-6, which Devin takes (plugins #50); a call id with ":" or "#" goes to the agent as one Claude Code takes, and back to Devin as it was (#1304); a week used up, its share left out of GetUserStatus, is 100% and holds the account until its reset (面条); SWE-2, which Devin's quota doesn't count (its Free cost tier), is left out of the day and week and listed free, so a used-up quota no longer holds it (太陽と向日葵); a tool schema with a list type, an array with no items, or properties or an enum with no type goes to a Gemini model in a shape it takes, not "There is an issue with this request" (7eleven); each model carries the price Devin lists for it, and SWE-2 stays free beside the -lightning variants Devin now files under it (太陽と向日葵, Usage showed no cost)
min: "0.1.29", // 0.1.29: a failed tool result on the Messages path says "Error: " first, as on chat completions; 0.1.28: Devin's Claude models are asked on Anthropic's Messages API, each block of the client's its own prompt with Devin's cache mark where the client put cache_control, so a grown history is read from the cache (plugins #566, zelong77); 0.1.27: SWE-2 asked with no effort goes as a free variant, never a paid -lightning one Devin lists first, and as SNAPSHOT's swe-2-high when the account's list leaves the family out, not the bare family id; a model list Devin won't give is logged and shown in usage ("Free models: unknown"), not swallowed (zws13579 on Discord, plugins #533); 0.1.26: a usage read Devin answers 401 marks the account signed out, so its rows offer Sign in again, and a clean read takes the mark off (blue12345655 on Discord); 0.1.25: an anyOf beside a type below a tool's root (what the gateway writes for a Gemini model) goes to Devin's Gemini models merged or as a oneOf, so Kimi Code's Read no longer 400s (plugins #458); 0.1.24: the CLI's sign-in keeps its "cli" mark as the string OpenCode stores, so OpenCode 1 keeps the account (plugins #396); 0.1.23: a reply with only usage or metadata is refused before the stream starts, not passed on as an empty success (plugins #297); 0.1.22: organisations under one email are kept apart, each with its own quota (plugins #296); 0.1.21: a chat request past 8 KiB goes as a gzipped Connect frame, as the devin CLI sends it, where an uncompressed large one could be refused 413 (plugins #275); 0.1.20: a tool result's images go to Devin on the tool message that answers the call, as the built-in sent them; 0.1.19: Devin answers in JSON when the request asks for it (response_format into the instructions, as the built-in); 0.1.18: a tool whose parameters have a root anyOf, oneOf or allOf goes as a plain object (#1196), a branch that is a union itself folded too (#1271); a turn's parallel calls split over two assistant messages keep their results (#1275); a temperature or top_p of 0 goes as 1e-6, which Devin takes (plugins #50); a call id with ":" or "#" goes to the agent as one Claude Code takes, and back to Devin as it was (#1304); a week used up, its share left out of GetUserStatus, is 100% and holds the account until its reset (面条); SWE-2, which Devin's quota doesn't count (its Free cost tier), is left out of the day and week and listed free, so a used-up quota no longer holds it (太陽と向日葵); a tool schema with a list type, an array with no items, or properties or an enum with no type goes to a Gemini model in a shape it takes, not "There is an issue with this request" (7eleven); each model carries the price Devin lists for it, and SWE-2 stays free beside the -lightning variants Devin now files under it (太陽と向日葵, Usage showed no cost)
agents: []string{"devin"},
out: func() ([]Moving, error) {
var out []Moving