@iinm/plain-agent 1.7.21 → 1.7.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/subagent.mjs +6 -4
package/package.json
CHANGED
package/src/subagent.mjs
CHANGED
|
@@ -93,11 +93,13 @@ export function createSubagentManager(agentRoles, handlers) {
|
|
|
93
93
|
return {
|
|
94
94
|
success: true,
|
|
95
95
|
value: [
|
|
96
|
-
`You are now the subagent "${actualName}"
|
|
96
|
+
`[SUBAGENT MODE ACTIVATED] You are now operating as the subagent "${actualName}".`,
|
|
97
|
+
roleContent
|
|
98
|
+
? `Role: ${actualName}\n---\n${roleContent}\n---`
|
|
99
|
+
: `Role: ${actualName}`,
|
|
97
100
|
`Your goal: ${goal}`,
|
|
98
|
-
`
|
|
99
|
-
`
|
|
100
|
-
`When finished, call "report_as_subagent" with the memory file path.`,
|
|
101
|
+
`Memory file path format: ${AGENT_PROJECT_METADATA_DIR}/memory/<session-id>--${sequenceNumber}--${actualName.replace("/", "-")}--<kebab-case-title>.md (Replace <kebab-case-title> with a short title describing your own goal)`,
|
|
102
|
+
`When finished, call "report_as_subagent" with the memory file path. Start executing your goal now.`,
|
|
101
103
|
].join("\n\n"),
|
|
102
104
|
};
|
|
103
105
|
}
|