Note: Pitaya is in public beta. Interfaces and defaults may evolve.
- Runs multiple agents in parallel and helps you pick the best result
- Uses per‑task branches in your repo to keep alternatives safe and reviewable
- Displays a clean, adaptive TUI with live progress, costs, and tokens
- Supports custom Python strategies for multi‑stage workflows
Built‑in strategies: simple, scoring, best‑of‑n, iterative, bug‑finding, doc‑review
pip install pitaya
# or
pipx install pitaya
# or
uv tool install pitaya
Authenticate:
- Claude Code: set
CLAUDE_CODE_OAUTH_TOKEN
(subscription) orANTHROPIC_API_KEY
- Codex CLI: set
OPENAI_API_KEY
(and optionallyOPENAI_BASE_URL
)
From the root of a git repo:
pitaya "Create a HELLO.txt file with 'Hello from Pitaya' text in it and commit it"
More examples:
# Parallel candidates with scoring (pick the best)
pitaya "Write the funniest and most original joke possible" --strategy best-of-n -S n=5
# Iterative refine (generate → review → refine)
pitaya "Write the funniest and most original joke possible" --strategy iterative -S iterations=3
# Headless JSON output
pitaya "task" --json
OpenRouter (Codex plugin) example:
pitaya "Write the funniest and most original joke possible" \
--plugin codex \
--model "openai/gpt-5" \
--api-key "$OPENROUTER_API_KEY" \
--base-url https://openrouter.ai/api/v1
- Start here: docs/index.md
- Quickstart: docs/quickstart.md
- CLI: docs/cli.md
- TUI: docs/tui.md
- Strategies: docs/strategies.md
- Custom Strategies: docs/custom-strategies.md
- Configuration: docs/configuration.md
- Plugins: docs/plugins.md
Optional pitaya.yaml
to set defaults:
model: sonnet
plugin_name: claude-code
orchestration:
max_parallel_instances: auto
branch_namespace: hierarchical
CLI overrides config; -S key=value
only affects the selected strategy.
- Logs:
logs/<run_id>/events.jsonl
and component logs - Results:
results/<run_id>/
(summary.json, branches.txt, instance_metrics.csv) - Branches:
pitaya/<strategy>/<run_id>/k<short8>
(hierarchical namespace) - Resume:
pitaya --resume <run_id>
Issues and PRs are welcome. This project is evolving—feedback on UX, strategies, and plugin support is especially helpful.
Dev quickstart:
git clone https://github.com/tact-lang/pitaya
cd pitaya
python -m venv .venv && source .venv/bin/activate
pip install -U pip && pip install -e .
# Optional dev tools
pip install -U ruff black mypy pytest pytest-asyncio
- See CHANGELOG.md for release notes and version history
- GitHub Releases: https://github.com/tact-lang/pitaya/releases
MIT License — see LICENSE.