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§
- Code
Agent Builder - Fluent builder assembling a code-generation
AgentRunner(mirror ofBrowserAgentBuilder).
Constants§
- CODE_
SYSTEM_ PROMPT - The loop-invariant system prompt for the code harness (the code analogue of
BROWSER_SYSTEM_PROMPT).
Functions§
- code_
goal - A
GoalConditionwhose independent judge gates completion on the deterministicVERIFY_RESULT: PASSevidence produced by theverifytool. - code_
tools - Curated code builtins rooted at
workspace, plus theverifytool bound toverify_commands. Whendangerousis false,bashis omitted.