Skip to content

The open-source app everyone uses to manage agents at work

fix(import): read agent role from frontmatter before defaulting to "agent"

plind-dmf467f3d826a3
diff --git a/server/src/services/company-portability.ts b/server/src/services/company-portability.ts
index c73d9eaa95..097e62fcd0 100644
--- a/server/src/services/company-portability.ts
+++ b/server/src/services/company-portability.ts
@@ -2393,7 +2393,7 @@ function buildManifestFromPackageFiles(
name: asString(frontmatter.name) ?? title ?? slug,
path: agentPath,
skills: readAgentSkillRefs(frontmatter),
- role: asString(extension.role) ?? "agent",
+ role: asString(extension.role) ?? asString(frontmatter.role) ?? "agent",
title,
icon: asString(extension.icon),
capabilities: asString(extension.capabilities),