Skip to content

The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu

Fix Devin handoff marker by adding NormalizeHarnessName case

Cursor Agent45eaa53aa850
diff --git a/pkg/asymptoteobserve/handoff_test.go b/pkg/asymptoteobserve/handoff_test.go
index 9ca5ebd8..e27c1f75 100644
--- a/pkg/asymptoteobserve/handoff_test.go
+++ b/pkg/asymptoteobserve/handoff_test.go
@@ -12,7 +12,7 @@ func TestHandoffMarkerRoundTrips(t *testing.T) {
{"codex_cli", "019a2b3c-thread", "codex_cli"},
{"opencode", "ses_4f2a1b", "opencode"},
{"cline", "subagent:lead-1:child.2", "cline"},
- {"devin-cli", "devin-sess-1", "devin-cli"},
+ {"devin-cli", "devin-sess-1", "devin_cli"},
} {
marker := HandoffMarker(tc.harness, tc.id)
if marker == "" {
diff --git a/pkg/asymptoteobserve/harness.go b/pkg/asymptoteobserve/harness.go
index afb589af..52f04146 100644
--- a/pkg/asymptoteobserve/harness.go
+++ b/pkg/asymptoteobserve/harness.go
@@ -315,6 +315,18 @@ func NormalizeHarnessName(name string) string {
lower == "codename_goose" || lower == "codename-goose" || lower == "codename goose" ||
lower == "block_goose" || lower == "block-goose" || lower == "block goose":
return "goose"
+ // Devin CLI is Cognition's terminal coding agent. The canonical spelling is `devin_cli`,
+ // following codex_cli and gemini_cli, because harness.name uses underscores and the hyphenated
+ // form `devin-cli` cannot be carried in a handoff marker (the marker regex allows only
+ // `[a-z0-9_]`). The `--platform` flag the hook installer writes is `devin` or `devin-cli`;
+ // both arrive here and both leave as `devin_cli`.
+ //
+ // Equality against a closed set rather than Contains(lower, "devin"), because "devin" is a
+ // common given name that can appear in repository paths, user names and hostnames a harness
+ // attribute legitimately carries.
+ case lower == "devin" || lower == "devin_cli" || lower == "devin-cli" || lower == "devin cli" ||
+ lower == "devincli":
+ return "devin_cli"
// DeepSeek Harness (`dsh`) is DeepSeek's open agent harness: a TypeScript, plugin-composed
// runtime whose CLI, Web, ACP and SDK surfaces all boot from one `$DSH_HOME` and one patch
// layer -- so Beacon hooks all of them at once through a single mount and there is one runtime
diff --git a/pkg/asymptoteobserve/harness_test.go b/pkg/asymptoteobserve/harness_test.go
index bc52ebaf..6ea7cfd4 100644
--- a/pkg/asymptoteobserve/harness_test.go
+++ b/pkg/asymptoteobserve/harness_test.go
@@ -24,6 +24,7 @@ func TestHookPlatformsConvergeOnCanonicalNames(t *testing.T) {
"omo": "omo_senpi",
"muse": "muse_code",
"goose": "goose",
+ "devin": "devin_cli",
"dsh": "deepseek_harness",
"kimi": "kimi_code",
} {
@@ -45,7 +46,7 @@ func TestCanonicalNamesAreStableUnderRenormalization(t *testing.T) {
"claude_code", "codex_cli", "codex_desktop", "gemini_cli", "antigravity_cli", "vscode_copilot",
"copilot_cli", "claude_web", "chatgpt_web", "claude_cowork", "claude_agent_sdk",
"openclaw_gateway", "pi_cli", "omp", "cline", "qwen_code", "prime_agent", "omo_senpi", "vercel_fx",
- "muse_code", "grok_bot", "goose", "deepseek_harness", "kimi_code",
+ "muse_code", "grok_bot", "goose", "devin_cli", "deepseek_harness", "kimi_code",
} {
t.Run(canonical, func(t *testing.T) {
if got := NormalizeHarnessName(canonical); got != canonical {