polydev-ai 1.10.22 → 1.10.24
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 +8 -4
- package/package.json +1 -1
package/lib/cliManager.js
CHANGED
|
@@ -1136,11 +1136,13 @@ 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
|
-
// Use read-only sandbox to prevent agentic
|
|
1140
|
-
//
|
|
1139
|
+
// Use read-only sandbox + medium reasoning to prevent slow agentic operations
|
|
1140
|
+
// -c model_reasoning_effort=medium: reduces from 67s (high) to 8.5s (measured)
|
|
1141
|
+
// -s read-only: prevents file writes and command execution
|
|
1141
1142
|
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}`;
|
|
1142
1143
|
args.push(
|
|
1143
1144
|
'-s', 'read-only',
|
|
1145
|
+
'-c', 'model_reasoning_effort=medium',
|
|
1144
1146
|
directPrompt
|
|
1145
1147
|
);
|
|
1146
1148
|
|
|
@@ -1430,12 +1432,12 @@ This is a known issue with @google/gemini-cli@0.3.4 and older Node.js versions.`
|
|
|
1430
1432
|
buildStreamingArgs(providerId, prompt, model = null) {
|
|
1431
1433
|
if (providerId === 'claude_code') {
|
|
1432
1434
|
// --tools "" disables ALL built-in tools (no WebSearch, no Bash, nothing)
|
|
1433
|
-
// --effort
|
|
1435
|
+
// --effort low minimizes extended thinking (Opus 4.6 adaptive thinking)
|
|
1434
1436
|
// --max-turns 1 ensures single-turn response (no agentic loops)
|
|
1435
1437
|
const args = ['-p', '--output-format', 'stream-json', '--verbose', '--include-partial-messages',
|
|
1436
1438
|
'--max-turns', '1',
|
|
1437
1439
|
'--tools', '',
|
|
1438
|
-
'--effort', '
|
|
1440
|
+
'--effort', 'low'
|
|
1439
1441
|
];
|
|
1440
1442
|
|
|
1441
1443
|
// Add model flag if specified
|
|
@@ -1504,6 +1506,8 @@ This is a known issue with @google/gemini-cli@0.3.4 and older Node.js versions.`
|
|
|
1504
1506
|
const child = spawn(provider.command, args, {
|
|
1505
1507
|
stdio: ['pipe', 'pipe', 'pipe'],
|
|
1506
1508
|
shell: process.platform === 'win32',
|
|
1509
|
+
// Run from /tmp to avoid loading project CLAUDE.md files (saves ~54K system prompt tokens)
|
|
1510
|
+
cwd: providerId === 'claude_code' ? os.tmpdir() : undefined,
|
|
1507
1511
|
env: (() => {
|
|
1508
1512
|
const env = {
|
|
1509
1513
|
...process.env,
|