Configure and use the Jules AI agent driver for CodeJob.
The Jules driver connects CodeJob to the Jules API, allowing you to dispatch tasks described in docs/PLAN.md to an automated AI software engineer.
- Jules API Key: Get one at jules.google.com.
- GitHub CLI:
ghmust be installed and authenticated.
The first time you run codejob, it will automatically prompt you for your API key if it's not found in your system keyring.
codejob
# Jules API Key not found. Get yours at https://jules.google.com/settings/api
# Enter it now: ***********The key is stored securely using the system keyring service (Keychain on macOS, Secret Service on Linux, Credential Locker on Windows).
If you want to initialize the key before dispatching your first task, you can use the internal wizard:
codejobWait, codejob init was removed. Just run codejob and it will prompt you if needed.
If using the library directly, you can provide explicit configuration:
cfg := devflow.JulesConfig{
APIKey: "optional-override-key",
SourceID: "sources/github/owner/repo",
StartBranch: "main",
}
driver := devflow.NewJulesDriver(cfg)- APIKey: Your Jules API key. Defaults to the one stored in the keyring.
- SourceID: The Jules source identifier. Auto-detected via
gh repo view. - StartBranch: The branch Jules should start from. Auto-detected via
git branch.
- Dispatch:
codejobsendsdocs/PLAN.mdto Jules. - Persistence: A session ID is saved to
.envasCODEJOB=jules:ID. - Poll: Subsequent runs of
codejobcheck the session status. - Pull Request: When Jules is done, a PR is created on GitHub.
- Review:
codejobfetches the new branch and renames your plan todocs/CHECK_PLAN.md. - Merge: After reviewing, run
codejob 'message'to merge and publish.