polydev-ai 1.10.18 → 1.10.19

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/lib/cliManager.js CHANGED
@@ -1136,14 +1136,16 @@ This is a known issue with @google/gemini-cli@0.3.4 and older Node.js versions.`
1136
1136
  console.log(`[CLI Debug] Codex using model: ${model}`);
1137
1137
  }
1138
1138
 
1139
- // Add standard flags and prompt
1139
+ // Add standard flags and direct-answer prompt
1140
+ // Prefix prevents Codex from doing agentic file/exec operations — just answer the question
1141
+ const directPrompt = `Answer this question directly from your knowledge. Do not execute any commands, read any files, or use any tools. Provide a concise, expert response.\n\n${prompt}`;
1140
1142
  args.push(
1141
1143
  '--full-auto',
1142
1144
  '--ephemeral',
1143
1145
  '--skip-git-repo-check',
1144
1146
  '--cd',
1145
1147
  workingDir,
1146
- prompt
1148
+ directPrompt
1147
1149
  );
1148
1150
 
1149
1151
  return new Promise((resolve, reject) => {
@@ -1453,7 +1455,10 @@ This is a known issue with @google/gemini-cli@0.3.4 and older Node.js versions.`
1453
1455
  args.unshift('--model', cliModel);
1454
1456
  }
1455
1457
 
1456
- args.push(prompt);
1458
+ // Add direct-answer prefix to prevent agentic tool use (web search, file ops etc.)
1459
+ // Without this, Claude Code spends 160s doing agentic work instead of answering directly
1460
+ const directPrompt = `Answer this question directly from your knowledge. Do not use any tools, web searches, file operations, or external resources. Provide a concise, expert response in 2-4 paragraphs.\n\n${prompt}`;
1461
+ args.push(directPrompt);
1457
1462
  return args;
1458
1463
  }
1459
1464
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polydev-ai",
3
- "version": "1.10.18",
3
+ "version": "1.10.19",
4
4
  "engines": {
5
5
  "node": ">=20.x <=22.x"
6
6
  },