@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/subagent.mjs +6 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iinm/plain-agent",
3
- "version": "1.7.21",
3
+ "version": "1.7.22",
4
4
  "description": "A lightweight CLI-based coding agent",
5
5
  "license": "MIT",
6
6
  "type": "module",
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}". Start working on the following goal.`,
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
- `Role: ${actualName}\n---\n${roleContent}\n---`,
99
- `Memory file path format: ${AGENT_PROJECT_METADATA_DIR}/memory/<session-id>--${sequenceNumber}--${actualName}--<kebab-case-title>.md (Replace <kebab-case-title> with a short title describing your own goal)`,
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
  }