This example demonstrates two prompts that target the same two repositories (alpha and beta) and write a commit in each repo:
- Prompt 01 runs with
codex_sdk. - Prompt 02 runs with
claude_agent_sdkand only allows the Bash tool to write the files.
1) Create the dummy repos
Run the setup script. It creates two git repos under examples/multi_repo_dummy/repos.
bash examples/multi_repo_dummy/setup.sh
2) Run the prompts
From the project root:
mix run run_prompts.exs --config examples/multi_repo_dummy/runner_config.exs --list
mix run run_prompts.exs --config examples/multi_repo_dummy/runner_config.exs --run 01
mix run run_prompts.exs --config examples/multi_repo_dummy/runner_config.exs --run 02
From the example directory (standalone):
cd examples/multi_repo_dummy
elixir run_prompts.exs --list
elixir run_prompts.exs --run 01
elixir run_prompts.exs --run 02
After each run, you should see:
examples/multi_repo_dummy/repos/alpha/NOTES.mdexamples/multi_repo_dummy/repos/beta/NOTES.md- separate commits in each repo
3) Clean up
bash examples/multi_repo_dummy/cleanup.sh