Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

326 B
Raw Blame
'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 };