Skip to main content

Module builder

Module builder 

Source
Expand description

CodeAgentBuilder — a domain-specific harness for code generation, mirroring BrowserAgentBuilder. It curates the code builtins rooted at a workspace, adds the VerifyCommandTool, installs a loop-invariant system prompt, and (optionally) gates completion on a GoalCondition whose independent judge keys on the deterministic VERIFY_RESULT: sentinel. Everything else (the ReAct loop, the goal-driven repair continuation, workspace jailing, guardrails) is reused, not rebuilt.

Structs§

CodeAgentBuilder
Fluent builder assembling a code-generation AgentRunner (mirror of BrowserAgentBuilder).

Constants§

CODE_SYSTEM_PROMPT
The loop-invariant system prompt for the code harness (the code analogue of BROWSER_SYSTEM_PROMPT).

Functions§

code_goal
A GoalCondition whose independent judge gates completion on the deterministic VERIFY_RESULT: PASS evidence produced by the verify tool.
code_tools
Curated code builtins rooted at workspace, plus the verify tool bound to verify_commands. When dangerous is false, bash is omitted.