Skip to content

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

429 B
Raw Blame
import { readFileSync } from "node:fs";
export const LAZYCODEX_EXECUTOR_VERIFY_DIRECTIVE = readFileSync(new URL("../directive.md", import.meta.url), "utf8");
export function renderDirective(attempts, lastAssistantMessage) {
    return LAZYCODEX_EXECUTOR_VERIFY_DIRECTIVE.replaceAll("{{ATTEMPT_COUNT}}", String(attempts)).replaceAll("{{LAST_ASSISTANT_MESSAGE}}", lastAssistantMessage ?? "(last_assistant_message was omitted)");
}