What to build
Add CLI argument parsing so users can override core configuration options via command-line flags instead of relying solely on agent-loop.config.ts. This makes the tool more ergonomic for one-off runs and CI environments.
The loop currently only reads from agent-loop.config.ts (or uses hardcoded defaults). Users should be able to pass flags like --source-branch, --target-branch, --max-iterations, and --dry-run directly on the command line, with flags taking precedence over the config file.
Acceptance criteria
Blocked by
None — can start immediately.
What to build
Add CLI argument parsing so users can override core configuration options via command-line flags instead of relying solely on
agent-loop.config.ts. This makes the tool more ergonomic for one-off runs and CI environments.The loop currently only reads from
agent-loop.config.ts(or uses hardcoded defaults). Users should be able to pass flags like--source-branch,--target-branch,--max-iterations, and--dry-rundirectly on the command line, with flags taking precedence over the config file.Acceptance criteria
process.argvwith manual parsing, or Bun's built-inparseArgs).--source-branch <branch>— overridesconfig.sourceBranch--target-branch <branch>— overridesconfig.targetBranch--max-iterations <number>— overridesconfig.maxIterations--dry-run— enables dry-run mode (see separate issue)agent-loop.config.ts, which takes precedence over defaults.--max-iterationsvalue).bun lint:ci,bun typecheck, andbun testpass after changes.Blocked by
None — can start immediately.