GitPatch Goals CLI
This CLI uses Jules sessions to simulate code generation, extracts the resulting code as a GitPatch, and feeds it to a second Jules session to evaluate if it successfully met the original prompt's goals and adheres to coding standards.
Usage Guidelines for AI Agents
When invoking this CLI, adhere to the following best practices:
-
Schema Introspection: You can introspect the required arguments and schema at runtime by passing
--describe.bun run index.ts --describe -
Context Window Discipline: Use
--jsonfor predictable, deterministic, machine-readable output. Avoid parsing raw terminal stdout.bun run index.ts --prompt "Create an API" --json -
Input Hardening: Before executing mutations or relying on long-running APIs (like creating Jules Sessions), validate your payload using the
--dry-runflag to ensure the CLI safely accepts your arguments without executing side effects.bun run index.ts --prompt "Create an API" --dry-run
