@liriraid/agentflow-ai 1.0.27 → 1.0.28

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/orchestrator.js +6 -14
  2. package/package.json +1 -1
package/orchestrator.js CHANGED
@@ -1154,16 +1154,8 @@ function generateBrief(task) {
1154
1154
  if (taskMatch) taskEntry = taskMatch[0];
1155
1155
  }
1156
1156
 
1157
- // Global developer standards read the user's ~/.claude/CLAUDE.md verbatim.
1158
- // Each developer has their own standards there; we don't parse specific sections.
1159
- let globalStandards = "";
1160
- const globalClaude = path.join(GLOBAL_CLAUDE_DIR, "CLAUDE.md");
1161
- if (fs.existsSync(globalClaude)) {
1162
- globalStandards = fs.readFileSync(globalClaude, "utf-8").trim();
1163
- }
1164
-
1165
- // Project plan — if `<projectName>-plan.md` or `PLAN.md` exists in the workspace,
1166
- // inject it as shared context so every agent sees the big-picture plan.
1157
+ // Project planonly inject the first 60 lines as orientation context.
1158
+ // Worker agents don't need the full plan to execute a single task.
1167
1159
  let projectPlan = "";
1168
1160
  const planCandidates = [
1169
1161
  path.join(
@@ -1175,7 +1167,9 @@ function generateBrief(task) {
1175
1167
  ];
1176
1168
  for (const p of planCandidates) {
1177
1169
  if (fs.existsSync(p)) {
1178
- projectPlan = fs.readFileSync(p, "utf-8");
1170
+ const lines = fs.readFileSync(p, "utf-8").split("\n");
1171
+ projectPlan = lines.slice(0, 60).join("\n");
1172
+ if (lines.length > 60) projectPlan += "\n\n[Plan truncated — full plan in PLAN.md]";
1179
1173
  break;
1180
1174
  }
1181
1175
  }
@@ -1201,10 +1195,8 @@ function generateBrief(task) {
1201
1195
  # Priority: ${task.priority}
1202
1196
  # Workspace: ${WORKSPACE}
1203
1197
  # Progress file: ${progressFile}
1204
- # Global supply chain: ${GLOBAL_CLAUDE_DIR}
1205
1198
 
1206
- ${globalStandards ? `## Global Developer Standards\n> Extracted from ${globalClaude} apply these rules to ALL code in this task.\n\n${globalStandards}\n` : ""}
1207
- ${projectPlan ? `## Project Plan (big picture — use as context, don't try to do everything)\n${projectPlan}\n` : ""}
1199
+ ${projectPlan ? `## Project Plan (orientation onlyfocus on your task)\n${projectPlan}\n` : ""}
1208
1200
  ${agentInstructions ? `## Agent Instructions\n${agentInstructions}` : ""}
1209
1201
  ${protocolRules ? `## Protocol Rules\n${protocolRules}` : ""}
1210
1202
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liriraid/agentflow-ai",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "Multi-agent workspace orchestrator with TUI. Coordinates AI coding agents over your real frontend and backend projects.",
5
5
  "author": "LiriRaid",
6
6
  "homepage": "https://github.com/LiriRaid/agentflow-ai#readme",