The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
'use strict';
/** Generic retry used by the read-only reporting calls. */
async function withRetry(call, attempts = 3) {
let lastError;
for (let i = 0; i < attempts; i++) {
try {
return await call();
} catch (error) {
lastError = error;
}
}
throw lastError;
}
module.exports = { withRetry };