Files
vibn-frontend/vibn-agent-runner/fix_runner_limits.js

20 lines
545 B
JavaScript

const fs = require('fs');
const file = 'src/agent-session-runner.ts';
let code = fs.readFileSync(file, 'utf8');
// 1. Bump the master loop breaker from 16 to 30
code = code.replace(
'while (turn < 16) {',
'while (turn < 30) {'
);
// 2. Update the [STATUS NUDGE] to trigger less frequently
code = code.replace(
'const isSilent = roundsSinceText >= 8 || toolCallsSinceText >= 12;',
'const isSilent = roundsSinceText >= 15 || toolCallsSinceText >= 20;'
);
fs.writeFileSync(file, code);
console.log("Bumped runner limits to 30 rounds");