Skip to content

The one and only agent harness for complex codebases. Project memory, planning, execution, and verified completion inside Codex.

629 B
Raw Blame
import type { HookFileSystem } from "./types.js";
export declare const MAX_ATTEMPTS = 3;
export type AttemptState = {
    readonly attempts: number;
};
export declare function readAttemptState(cwd: string, sessionId: string, agentId: string, fs: HookFileSystem): AttemptState;
export declare function writeAttemptState(cwd: string, sessionId: string, agentId: string, state: AttemptState, fs: HookFileSystem): void;
export declare function clearAttemptState(cwd: string, sessionId: string, agentId: string, fs: HookFileSystem): void;
export declare function getStatePath(cwd: string, sessionId: string, agentId: string): string;