Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

fix(agent): have Another Me build a real Agent team when asked

LeoXingc862ae252095
diff --git a/apps/node-services/src/agent/prompt/compact-meta-instructions.ts b/apps/node-services/src/agent/prompt/compact-meta-instructions.ts
index ebc6dac2..181a311c 100644
--- a/apps/node-services/src/agent/prompt/compact-meta-instructions.ts
+++ b/apps/node-services/src/agent/prompt/compact-meta-instructions.ts
@@ -95,6 +95,7 @@ const DIRECT_SPECIALIST = `${DIRECT_TASKS}
const ROOM_ANOTHERME = `In this Room you orchestrate work addressed to you, and contribute too.
- Do simple work yourself. For multi-Agent work, send each executor an Assignment with teamhub message send, mentioning them with an Actor reference (teamhub room invite --agent-id <actor-id> first for one not in this Room): the goal, inputs, expected output, who receives the result, and dependencies. A name or a role list wakes nobody.
+- When asked for a team, or the work needs several roles over time, build one from Agents: invite them with teamhub room invite (ids from teamhub agent list) or create them with teamhub agent create, then read the collaborate Skill and publish the plan. Your Tasks are AlterEgos of you, not teammates.
- Dispatch every Assignment whose inputs are ready. Dispatched Agents bring blockers back to you; you handle the Humans.
${ROOM_TASKS}`;
diff --git a/apps/node-services/src/agent/prompt/meta-instructions.ts b/apps/node-services/src/agent/prompt/meta-instructions.ts
index c44e3ab2..5cfe6e2b 100644
--- a/apps/node-services/src/agent/prompt/meta-instructions.ts
+++ b/apps/node-services/src/agent/prompt/meta-instructions.ts
@@ -152,6 +152,7 @@ ${DIRECT_TASKS}
const ROOM_ANOTHERME = `In this Room you are the orchestrator for work addressed to you, and a contributor too. You own sequencing, dispatching Agents, and coordinating with the Humans until the work is done or someone explicitly takes over.
- Do simple work yourself.
+- When you're asked for a team, or the work needs several roles that work together over time, build a team of Agents: invite fitting Agents with teamhub room invite (ids from teamhub agent list) or create new ones with teamhub agent create, then read the collaborate Skill and publish the plan. Your Tasks are background AlterEgos of you, not teammates, so they don't make a team.
- Turn each ready piece of multi-Agent work into an explicit Assignment: who does it, the goal, available inputs, the expected output, who receives the result, and dependencies. A role description, a member list, or a plain-text name is not an Assignment and wakes nobody.
- Send Assignments with teamhub message send in this Room, mentioning each executor with an Actor reference; invite an executor that isn't a member yet with teamhub room invite first. Dispatch every independent Assignment whose inputs are ready; hold blocked ones until they are.
- Agents you dispatch work only on their Assignment and bring blockers or missing Human input back to you; you handle the Humans.
diff --git a/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-anotherme-collaboration-compact.txt b/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-anotherme-collaboration-compact.txt
index e664dfa0..12921407 100644
--- a/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-anotherme-collaboration-compact.txt
+++ b/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-anotherme-collaboration-compact.txt
@@ -41,6 +41,7 @@ In a Room, speak only when you add something: an answer, a correction, a decisio
## Working with others
In this Room you orchestrate work addressed to you, and contribute too.
- Do simple work yourself. For multi-Agent work, send each executor an Assignment with teamhub message send, mentioning them with an Actor reference (teamhub room invite --agent-id <actor-id> first for one not in this Room): the goal, inputs, expected output, who receives the result, and dependencies. A name or a role list wakes nobody.
+- When asked for a team, or the work needs several roles over time, build one from Agents: invite them with teamhub room invite (ids from teamhub agent list) or create them with teamhub agent create, then read the collaborate Skill and publish the plan. Your Tasks are AlterEgos of you, not teammates.
- Dispatch every Assignment whose inputs are ready. Dispatched Agents bring blockers back to you; you handle the Humans.
- Delegate research and multi-step investigation to your AlterEgo so the Room isn't blocked on you: teamhub task create --name "<title>" --requirement "<brief>" (--requirement-file for a long brief). It starts at once, and up to 10 run in parallel; give each independent piece its own Task.
- Browsing a site in the Computer's own browser, the humanlike-browse way, is the exception: the person watches that window and a Task takes a minute to start, so do it yourself in this turn.
diff --git a/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-anotherme-collaboration-unconfigured.txt b/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-anotherme-collaboration-unconfigured.txt
index 0772d3b4..cbe5c7ea 100644
--- a/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-anotherme-collaboration-unconfigured.txt
+++ b/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-anotherme-collaboration-unconfigured.txt
@@ -77,6 +77,7 @@ People are watching a live chat, not a progress bar.
## Working with others
In this Room you are the orchestrator for work addressed to you, and a contributor too. You own sequencing, dispatching Agents, and coordinating with the Humans until the work is done or someone explicitly takes over.
- Do simple work yourself.
+- When you're asked for a team, or the work needs several roles that work together over time, build a team of Agents: invite fitting Agents with teamhub room invite (ids from teamhub agent list) or create new ones with teamhub agent create, then read the collaborate Skill and publish the plan. Your Tasks are background AlterEgos of you, not teammates, so they don't make a team.
- Turn each ready piece of multi-Agent work into an explicit Assignment: who does it, the goal, available inputs, the expected output, who receives the result, and dependencies. A role description, a member list, or a plain-text name is not an Assignment and wakes nobody.
- Send Assignments with teamhub message send in this Room, mentioning each executor with an Actor reference; invite an executor that isn't a member yet with teamhub room invite first. Dispatch every independent Assignment whose inputs are ready; hold blocked ones until they are.
- Agents you dispatch work only on their Assignment and bring blockers or missing Human input back to you; you handle the Humans.
diff --git a/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-anotherme-collaboration.txt b/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-anotherme-collaboration.txt
index eda00517..073dc2f0 100644
--- a/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-anotherme-collaboration.txt
+++ b/apps/node-services/tests/agent/agent-features/__snapshots__/context-instructions/meta-anotherme-collaboration.txt
@@ -77,6 +77,7 @@ People are watching a live chat, not a progress bar.
## Working with others
In this Room you are the orchestrator for work addressed to you, and a contributor too. You own sequencing, dispatching Agents, and coordinating with the Humans until the work is done or someone explicitly takes over.
- Do simple work yourself.
+- When you're asked for a team, or the work needs several roles that work together over time, build a team of Agents: invite fitting Agents with teamhub room invite (ids from teamhub agent list) or create new ones with teamhub agent create, then read the collaborate Skill and publish the plan. Your Tasks are background AlterEgos of you, not teammates, so they don't make a team.
- Turn each ready piece of multi-Agent work into an explicit Assignment: who does it, the goal, available inputs, the expected output, who receives the result, and dependencies. A role description, a member list, or a plain-text name is not an Assignment and wakes nobody.
- Send Assignments with teamhub message send in this Room, mentioning each executor with an Actor reference; invite an executor that isn't a member yet with teamhub room invite first. Dispatch every independent Assignment whose inputs are ready; hold blocked ones until they are.
- Agents you dispatch work only on their Assignment and bring blockers or missing Human input back to you; you handle the Humans.
diff --git a/apps/teamhub/internal/skill/builtin_catalog_test.go b/apps/teamhub/internal/skill/builtin_catalog_test.go
index 4f2c0ecc..79298833 100644
--- a/apps/teamhub/internal/skill/builtin_catalog_test.go
+++ b/apps/teamhub/internal/skill/builtin_catalog_test.go
@@ -109,7 +109,7 @@ func TestBuiltinCatalogLoadsVersionedPackages(t *testing.T) {
}
collaborate := findBuiltinSkill(t, catalog, "simplexai_collaborate")
- if collaborate.BootstrapManifestID != "skill_manifest_simplexai_collaborate_1_0_0" ||
+ if collaborate.BootstrapManifestID != "skill_manifest_simplexai_collaborate_1_0_1" ||
!slices.Equal(collaborate.DefaultAgentTypes, []string{"anotherme", "general"}) {
t.Fatalf("Collaborate catalog entry=%+v", collaborate)
}
diff --git a/apps/teamhub/tests/integration/agent_registration_test.go b/apps/teamhub/tests/integration/agent_registration_test.go
index f0a0fd4c..fcc68762 100644
--- a/apps/teamhub/tests/integration/agent_registration_test.go
+++ b/apps/teamhub/tests/integration/agent_registration_test.go
@@ -785,7 +785,7 @@ func TestTenantAgentDirectoryPaginatesActiveRegistrations(t *testing.T) {
}
if item.Actor.ID == expected[1].id {
skills := agentSkillRegistrationsByID(item.SkillBindings)
- if len(item.SkillBindings) != 14 || !hasOfficeDefaultSkillRegistrations(skills) || !lacksLev8SearchSkillRegistration(skills) || skills["simplexai_collaborate"].Name != "collaborate" || skills["simplexai_collaborate"].ManifestVersion != "1.0.0" || skills[skillID].Name != skillName || skills[skillID].ManifestVersion != "1.0.0" || skills["simplexai_teamhub_files"].Name != "teamhub-files" || skills["simplexai_teamhub_files"].ManifestVersion != "1.0.3" {
+ if len(item.SkillBindings) != 14 || !hasOfficeDefaultSkillRegistrations(skills) || !lacksLev8SearchSkillRegistration(skills) || skills["simplexai_collaborate"].Name != "collaborate" || skills["simplexai_collaborate"].ManifestVersion != "1.0.1" || skills[skillID].Name != skillName || skills[skillID].ManifestVersion != "1.0.0" || skills["simplexai_teamhub_files"].Name != "teamhub-files" || skills["simplexai_teamhub_files"].ManifestVersion != "1.0.3" {
t.Fatalf("active Agent %q Skill bindings=%+v", item.Actor.ID, item.SkillBindings)
}
}
@@ -846,7 +846,7 @@ func TestTenantHumanRegistersAgentWithInitialSkillBindings(t *testing.T) {
t.Fatalf("unexpected registered bindings: %+v", registered)
}
registeredSkills := agentSkillRegistrationsByID(registered.SkillBindings)
- if !hasOfficeDefaultSkillRegistrations(registeredSkills) || !lacksLev8SearchSkillRegistration(registeredSkills) || registeredSkills["simplexai_collaborate"].Name != "collaborate" || registeredSkills["simplexai_collaborate"].ManifestVersion != "1.0.0" || registeredSkills[skillID].Name != skillName || registeredSkills[skillID].ManifestVersion != "1.0.0" || registeredSkills["simplexai_teamhub_files"].Name != "teamhub-files" || registeredSkills["simplexai_teamhub_files"].ManifestVersion != "1.0.3" {
+ if !hasOfficeDefaultSkillRegistrations(registeredSkills) || !lacksLev8SearchSkillRegistration(registeredSkills) || registeredSkills["simplexai_collaborate"].Name != "collaborate" || registeredSkills["simplexai_collaborate"].ManifestVersion != "1.0.1" || registeredSkills[skillID].Name != skillName || registeredSkills[skillID].ManifestVersion != "1.0.0" || registeredSkills["simplexai_teamhub_files"].Name != "teamhub-files" || registeredSkills["simplexai_teamhub_files"].ManifestVersion != "1.0.3" {
t.Fatalf("unexpected registered Skill bindings: %+v", registered.SkillBindings)
}
diff --git a/apps/teamhub/tests/integration/platform_agent_skill_binding_test.go b/apps/teamhub/tests/integration/platform_agent_skill_binding_test.go
index dc8f24d7..0a96a51d 100644
--- a/apps/teamhub/tests/integration/platform_agent_skill_binding_test.go
+++ b/apps/teamhub/tests/integration/platform_agent_skill_binding_test.go
@@ -51,7 +51,7 @@ func TestPlatformExplicitSkillSupportsPublicAgentBindingsButDefaultOnlyDoesNot(t
}
decode(t, body, &registered)
registeredSkills := agentSkillRegistrationsByID(registered.SkillBindings)
- if registered.Actor.ID == "" || len(registered.SkillBindings) != 14 || !hasOfficeDefaultSkillRegistrations(registeredSkills) || !lacksLev8SearchSkillRegistration(registeredSkills) || registeredSkills["simplexai_collaborate"].Name != "collaborate" || registeredSkills["simplexai_collaborate"].ManifestVersion != "1.0.0" || registeredSkills[skillID].Name != skillName || registeredSkills[skillID].ManifestVersion != "1.0.0" || registeredSkills[skillID].Description != "Platform explicit binding fixture" || registeredSkills["simplexai_teamhub_files"].Name != "teamhub-files" || registeredSkills["simplexai_teamhub_files"].ManifestVersion != "1.0.3" {
+ if registered.Actor.ID == "" || len(registered.SkillBindings) != 14 || !hasOfficeDefaultSkillRegistrations(registeredSkills) || !lacksLev8SearchSkillRegistration(registeredSkills) || registeredSkills["simplexai_collaborate"].Name != "collaborate" || registeredSkills["simplexai_collaborate"].ManifestVersion != "1.0.1" || registeredSkills[skillID].Name != skillName || registeredSkills[skillID].ManifestVersion != "1.0.0" || registeredSkills[skillID].Description != "Platform explicit binding fixture" || registeredSkills["simplexai_teamhub_files"].Name != "teamhub-files" || registeredSkills["simplexai_teamhub_files"].ManifestVersion != "1.0.3" {
t.Fatalf("unexpected Platform explicit registration: %+v", registered)
}
diff --git a/skills/builtin/catalog.yaml b/skills/builtin/catalog.yaml
index 025c327a..b3d79afd 100644
--- a/skills/builtin/catalog.yaml
+++ b/skills/builtin/catalog.yaml
@@ -10,14 +10,14 @@ skills:
version: 1.0.0
package_path: builtin/create-meeting-minutes/1.0.0
- skill_id: simplexai_collaborate
- bootstrap_manifest_id: skill_manifest_simplexai_collaborate_1_0_0
+ bootstrap_manifest_id: skill_manifest_simplexai_collaborate_1_0_1
default_agent_types:
- anotherme
- general
manifests:
- - manifest_id: skill_manifest_simplexai_collaborate_1_0_0
- version: 1.0.0
- package_path: builtin/collaborate/1.0.0
+ - manifest_id: skill_manifest_simplexai_collaborate_1_0_1
+ version: 1.0.1
+ package_path: builtin/collaborate/1.0.1
- skill_id: simplexai_teamhub_files
bootstrap_manifest_id: skill_manifest_simplexai_teamhub_files_1_0_3
default_agent_types:
diff --git a/skills/builtin/collaborate/1.0.0/SKILL.md b/skills/builtin/collaborate/1.0.1/SKILL.md
similarity index 89%
rename from skills/builtin/collaborate/1.0.0/SKILL.md
rename to skills/builtin/collaborate/1.0.1/SKILL.md
index fc033536..71744cba 100644
--- a/skills/builtin/collaborate/1.0.0/SKILL.md
+++ b/skills/builtin/collaborate/1.0.1/SKILL.md
@@ -17,13 +17,19 @@ Read [Collaboration Patterns](references/collaboration-patterns.md) before choos
Publish a team.md only when all of these are true:
- the work genuinely needs more than one Agent;
-- every Agent you intend to name is already a member of this Room;
+- every Agent you intend to name is a member of this Room by the time you publish; add the missing
+ ones first, as described below;
- you can state one shared goal and each member's responsibility.
Do the work yourself when a single Agent suffices. Follow your Context's permissions for other
coordination tools; this Skill does not authorize creating a Task or Workflow.
-If an Agent you need is not in the Room, add it first. `teamhub room collaborate` rejects the whole document
+If an Agent you need is not in the Room, add it first: invite an existing Agent with
+`teamhub room invite --agent-id <actor-id>` (Actor IDs from `teamhub agent list`), or create a new one
+with `teamhub agent create --name "<role name>" --prompt "<working instructions>"`. When your Sponsor is
+a member of this Room, either command adds the Agent here at once, with no approval card. Otherwise
+`room invite` is refused, and `agent create` waits for your Sponsor's approval card and does not add the
+new Agent to this Room. `teamhub room collaborate` rejects the whole document
when any declared Actor is not an active Room member; it does not add anyone.
## 2. Choose one pattern
diff --git a/skills/builtin/collaborate/1.0.0/references/collaboration-patterns.md b/skills/builtin/collaborate/1.0.1/references/collaboration-patterns.md
similarity index 100%
rename from skills/builtin/collaborate/1.0.0/references/collaboration-patterns.md
rename to skills/builtin/collaborate/1.0.1/references/collaboration-patterns.md