-
Notifications
You must be signed in to change notification settings - Fork 0
Quickstart
Five-minute onboarding for PromptPilot, an SLM-powered control plane for AI coding agents. The SLM manages workflow decisions around Codex/Claude-style agents; the frontier model still writes and debugs the code. For all flags and env vars, see prpt --help and README.md.
python quickstart.pySix checks (Python ≥3.9, agent CLI, install, PromptPilot CLI, auth, smoke test).
Idempotent. On failure each step prints the exact fix command. When you see
green Setup complete, skip to §3 First run.
Any one of these works on its own:
| Path | Setup | Best for |
|---|---|---|
| Max subscription | claude auth login --claudeai |
Claude users who want zero API-key setup |
| ChatGPT subscription | codex login |
Codex users who want zero API-key setup |
| Anthropic API key | echo 'ANTHROPIC_API_KEY=sk-ant-...' > .env |
Fast SDK path with per-call billing |
| OpenAI API key | echo 'OPENAI_API_KEY=sk-proj-...' > .env |
Fast SDK path with per-call billing |
| Hybrid (optional) | API key + matching subscription | High-volume usage (cheap SLM + subscription LLM) |
For detailed tradeoffs, quota notes, and compliance context, see README → Auth: which path to pick.
cd /path/to/your/repo
prpt --dry-run "fix the flaky test in payments" # preview only
prpt --tool claude-code "fix the flaky test in payments" # or --tool codexEach call records a turn, so follow-ups pick up context automatically:
prpt --tool claude-code "now add a unit test for that fix"Sessions get heavy after many turns. Collapse to a markdown summary and resume fresh:
prpt restart # snapshot to ./handoff.md, clear, bootstrap
prpt restart --to docs/sess.md # custom pathTo curate the summary by hand:
prpt checkpoint # writes ./handoff.md, session preserved
$EDITOR handoff.md # tweak anything Haiku missed
prpt bootstrap # clears session, re-populates from handoff.mdhandoff.md has five required headers — Goal, Decisions made, Files touched, Open items, Constraints. bootstrap validates them, so don't
rename or remove headers when editing.
Cost: checkpoint/restart ≈ $0.0001–$0.01 (3–7s). bootstrap is regex-only (~$0).
| Error | Fix |
|---|---|
Not logged in · Please run /login |
claude auth login --claudeai |
checkpoint failed: No session found for <path> |
Run a regular prpt "..." first |
handoff.md missing required sections |
Restore the five canonical headers exactly |
[dotenv] WARNING: shell environment shadows .env value |
unset ANTHROPIC_API_KEY (or accept that the shell value wins) |
PROMPTPILOT_JUDGE=openai but OPENAI_API_KEY is not set |
Set the key in .env, or pick a different judge |
-
prpt --help— every flag (--tool,--normalizer,--dry-run,--high-stakes, ...) - Env knobs:
CLAUDE_MODEL(opus/sonnet/haiku),PROMPTPILOT_JUDGE(max/anthropic/openai),USE_MAX_AUTH=1(chain harness — uses Max OAuth instead of--bare). See README.md for compliance posture on subscription-routed paths. - README.md — install + usage examples
- SECURITY.md — API key handling
-
prpt install-hook— wire into Claude Code as a UserPromptSubmit hook -
prpt stats --last 10— review recent runs and savings (includes tool-output compression telemetry from~/.promptpilot/compress_stats.jsonl) -
Tool-output compression — the PostToolUse hook auto-shrinks noisy pytest/grep/git output. Wired in
.codex/hooks.jsonfor codex; add aPostToolUsehooks block to.claude/settings.jsonto enable for Claude Code (see README "Tool-output compression" section).