Packages

Prompt Runner SDK - packet-first prompt execution for Elixir and CLI workflows with verifier-owned completion, retry, repair, and git-aware repository orchestration.

Current section

Files

Jump to
prompt_runner_sdk examples simple run_prompts.exs
Raw

examples/simple/run_prompts.exs

#!/usr/bin/env elixir
# Standalone runner for the simple example.
#
# From the example directory:
# cd examples/simple
# elixir run_prompts.exs --run --all
# elixir run_prompts.exs --list
#
# Or with explicit config:
# elixir run_prompts.exs -c runner_config.exs --run 01
Application.ensure_all_started(:inets)
Mix.install([
{:prompt_runner_sdk, path: Path.expand("../..", __DIR__)},
{:agent_session_manager, "~> 0.9.2"}
])
args = System.argv()
has_config? =
Enum.any?(args, fn arg ->
arg in ["-c", "--config"] or String.starts_with?(arg, "--config=")
end)
args =
if has_config? do
args
else
["--config", Path.join(__DIR__, "runner_config.exs") | args]
end
PromptRunner.CLI.main(args)