The one and only agent harness for complex codebases. Project memory, planning, execution, and verified completion inside Codex.
JavaScript aiai-agentsclaudeclaude-codeclicodexdeveloper-toolslazylazycodexoh-my-openagentomoopenaiorchestrationtypescript
import type { PiRulesConfig } from "@oh-my-opencode/rules-engine/engine";
export function withDynamicBudget(config: PiRulesConfig): PiRulesConfig {
return {
...config,
maxRuleChars: Math.min(config.maxRuleChars, config.dynamicMaxRuleChars),
maxResultChars: Math.min(config.maxResultChars, config.dynamicMaxResultChars),
};
}
export function withPromptBudget(config: PiRulesConfig): PiRulesConfig {
return {
...config,
maxRuleChars: Math.min(config.maxRuleChars, config.promptMaxRuleChars),
maxResultChars: Math.min(config.maxResultChars, config.promptMaxResultChars),
};
}