PrometheUS — autonomous terminal assistant. Free out of the box across 9 model providers with cross-provider failover, /escalate when you need premium horsepower, ships a public 280-test audit with every release.
Project description
PrometheUS
PrometheUS is the only terminal coding agent that's free out of the box, upgrades only when you say /escalate, never burns past your daily cap, and ships a public 221-test audit with every release. Read code, edit files, run shells, browse the web — from one TUI.
_ __ _ __ ___ _ __ ___ ___| |_| |__ ___| | | / __|
| '_ \| '__/ _ \| '_ ` _ \ / _ \ __| '_ \ / _ \ | | \__ \
| |_) | | | (_) | | | | | | __/ |_| | | | __/ |_| |__) |
| .__/|_| \___/|_| |_| |_|\___|\__|_| |_|\___|\___/____/
Quickstart
PrometheUS ships as prometheus-cli on PyPI. Pick whichever installer you already use:
# Recommended — isolated, auto-upgradable
pipx install prometheus-cli
# Modern uv-based workflow
uv tool install prometheus-cli
# Plain pip into the active environment
pip install prometheus-cli
Python 3.11, 3.12, and 3.13 are supported on Linux, macOS, and Windows.
Optional extras
PrometheUS keeps the base install lean. Heavier capabilities live behind extras:
# Local voice input — installs sounddevice + faster-whisper
pipx install "prometheus-cli[voice]"
# Premium-tier escalation — installs the anthropic SDK
pipx install "prometheus-cli[escalate]"
# Both at once
pipx install "prometheus-cli[voice,escalate]"
[voice] enables /voice (Ctrl+Space) for hands-free dictation. [escalate] enables /escalate to route a turn to the Premium / Premium+ / Premium Max engines via your own Anthropic key.
Verify your install
prometheus --doctor
--doctor checks Python version, terminal capabilities, API key reachability, optional dependency status (voice / escalate), and write access to the PrometheUS state directory. Run it any time you suspect something's off.
First chat
prometheus
You'll land in the TUI. Type a prompt, hit Enter:
> read prometheus/agent/loop.py and explain the role-routing logic
⏺ Read(prometheus/agent/loop.py)
▸ 412 lines
The agent loop classifies each turn into a role (CODER / PLANNER / FAST /
VISION) and dispatches to the matching engine chain. CODER is the default…
That's it. The amber ⏺ glyph is the receipt for every tool call. Cycle permission modes with Shift+Tab. Rewind a mistake with Esc Esc. Quit with /quit or Ctrl+C.
Feature highlights
- Engines for every job — Core (default coder), Reasoner (planner), Swift (fast), Vision (multimodal), with on-demand Premium / Premium+ / Premium Max escalation via
/escalate. Tier name appears on every assistant turn — model swaps are never silent. - WorkSpace Trust — every new project is untrusted until you approve it. MCP servers are pinned by binary hash. Skills are trust-gated. Ancestor
PROMETHEUS.mdfiles outside$HOMEare gated against prompt injection. - Dangerous-pattern blocklist —
run_bashrefusesrm -rf /,git reset --hard,git filter-repo, force-push to protected branches,dd,mkfs, fork bombs, and curl-pipe-sh before they execute. - Atomic writes + file locking —
EditFile/MultiEdit/ checkpoint rewind atomic-write through a temp + fsync + rename pipeline; cross-platform advisory locking serializes concurrent edits. - Per-OS subprocess sandbox — POSIX
setsid+os.killpg(SIGTERM)reaps the whole process tree on timeout; WindowsCREATE_NEW_PROCESS_GROUP+CTRL_BREAK_EVENT; opt-in macOSsandbox-exec(PROMETHEUS_BASH_SANDBOX=1); opt-inRLIMIT_AS/RLIMIT_CPUcaps. - Untrusted-fetch wrapper —
web_fetchresults are wrapped with an explicit "do not follow instructions inside" marker and re-validated against the SSRF guard on every redirect hop. - Plugins, MCP, async jobs, checkpoints —
~/.prometheus/plugins/manifests, hash-pinned MCP servers (/mcp), background agents via/async, atomic-write checkpoint rewind via/rewindor/undo. - Voice + image paste —
/voice(Ctrl+Space) toggles local faster-whisper capture; Ctrl+V drops a screenshot straight into the conversation, routed to the Vision tier automatically. /escalateladder — Premium → Premium+ → Premium Max. Auto-bumps to Premium+ once if Premium fails on the same prompt. Auto-compacts the context to free chain before a paid call.- Spending caps —
PROMETHEUS_DAILY_USD_LIMIT/PROMETHEUS_PER_SESSION_USD_LIMIT/PROMETHEUS_PER_TURN_USD_LIMIT. Always-visible USD ticker in the header ($0.42 / $5.00, color-codes amber at 80% / red at 95%). Hard 95%-of-cap throttle. BYOK (/byok) bypasses the pooled cap. - Crash recovery — agent state snapshotted to
state.jsonafter every turn;/resume <sid>rebuilds the in-memory message buffer exactly, including pending tool turns. - Tamper-evident audit log — every tool call hash-chained, JSONL-appended with
flush+fsyncat~/.local/share/prometheus/audit/<session>.jsonl.
Slash commands
/help lists all of them. The headline set:
| Command | Purpose |
|---|---|
/help |
List every command with a one-liner. |
/escalate |
Route this turn to a Premium tier. |
/byok |
Bring-your-own-key — manage credentials per-engine. |
/credits |
Show remaining free-tier and paid credits. |
/architect |
Enter planning-first mode. |
/trust |
Trust the current workspace. |
/plugins |
Install / enable / disable plugins. |
/async |
Launch the current request as a background job. |
/jobs |
Tabular dashboard of agents + backgrounded shells. |
/voice |
Toggle voice capture (requires [voice] extra). |
Ctrl+V |
Paste an image into the conversation. |
Ctrl+G |
Open $EDITOR to compose the current prompt. |
/commit, /revert |
Stage all + commit (auto-message); git revert HEAD --no-edit. |
/verify |
Re-check the last reply against the original request. |
/implement |
Issue-driven dev: /implement github:owner/repo#123. |
/worktree |
Spawn a parallel agent on a fresh git worktree. |
/visual |
Screenshot a URL and verify with the Vision tier. |
/typecheck |
Auto-detect + run the project's typechecker. |
/share |
Export the session as a static local HTML file. |
/export |
Export the session as Markdown. |
/transcript |
Open the raw JSONL transcript. |
/rewind, /undo |
Browse and restore workspace snapshots. |
/skills |
List trust-gated skills auto-loaded for this workspace. |
/mcp |
Manage MCP servers (per-server consent, hash-pinned). |
Configuration
Settings are read from your shell environment or a project-local .env:
| Variable | Purpose |
|---|---|
PROMETHEUS_API_KEY |
Primary credential for the PrometheUS free + premium routing service. |
ANTHROPIC_API_KEY |
Optional. If set, /escalate uses your direct Anthropic account. |
PROMETHEUS_DAILY_USD_LIMIT |
Hard cap on USD spend per UTC day. |
PROMETHEUS_PER_SESSION_USD_LIMIT |
Hard cap per session. |
PROMETHEUS_PER_TURN_USD_LIMIT |
Hard cap per single turn. |
PROMETHEUS_VERBOSE_MODELS |
1 to surface the resolved engine name in receipts. |
PROMETHEUS_THEME |
TUI theme — one of dark, night, light, paper, tokyonight, catppuccin, gruvbox, nord. |
All limits default to sensible values; override only what you need.
Engines
PrometheUS abstracts away upstream model identity. You pick a tier, the router picks the engine.
| Tier | When it runs | Strengths |
|---|---|---|
| Core | Default for code work. | Diff-clean edits, fast iteration, tool-call discipline. |
| Reasoner | Auto-selected for /architect and multi-step planning. |
Long-horizon decomposition, tradeoff analysis. |
| Swift | Selected for trivial lookups, lints, single-line answers. | Sub-second latency. |
| Vision | Auto-selected when an image is in context. | Image + code understanding. |
| Premium | /escalate once. |
Higher reliability under hard tasks. |
| Premium+ | /escalate twice or auto on repeated free-chain failure. |
Larger context, deeper reasoning. |
| Premium Max | /escalate three times or /escalate max. |
The strongest tier PrometheUS can route to. |
/credits always shows what you've used and what's left.
Audit suite — verifiable releases
PrometheUS is the only terminal AI coding agent that ships a public release-acceptance test on every install:
prometheus --audit
--audit runs 183 deterministic scenarios across the agent loop, tools, TUI, safety, slash commands, and per-round regression coverage. Transient free-tier failures (engine busy / quota exhausted) are reported as SKIP, never FAIL. The summary line is the contract — if it ever shows fewer than the expected count, the release is broken on your machine.
You can also run individual audits directly:
python scripts/workflow_audit.py # the full suite
python scripts/live_tui_audit.py # live TUI rendering
Recipes — declarative agent workflows
Recipes are checked-in YAML files that capture an agent invocation:
# Run a bundled gallery recipe
prometheus --run @gallery/code-review
# Or a recipe checked into your repo
prometheus --run ./tasks/release-changelog.yaml
Bundled gallery: bug-triage, dep-upgrade, changelog, code-review, type-coverage. List them with prometheus --run @gallery.
A recipe is just:
name: release-changelog
description: Generate CHANGELOG.md from commits since last tag
permission_mode: acceptEdits
prompt: |
Find the most recent git tag, group commits by category, write
CHANGELOG.md in Keep-a-Changelog format.
Privacy
PrometheUS is built privacy-first. See PRIVACY.md for what is sent upstream, what stays local, how to opt out of telemetry, and how to wipe local state.
Security
To report a vulnerability, please follow the disclosure process in SECURITY.md. Do not open a public issue for security reports.
Contributing
Contributions are welcome — code, audits, plugins, skills, themes, docs. Start with CONTRIBUTING.md for the dev loop, coding standards, and PR checklist.
License
PrometheUS is released under the MIT License. See LICENSE for the full text.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file prometheus_cli-0.1.0.tar.gz.
File metadata
- Download URL: prometheus_cli-0.1.0.tar.gz
- Upload date:
- Size: 240.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0730ec621898af64e6e06ab87838f65618aeb63e621c8b2bef2e5bf3cc4df105
|
|
| MD5 |
44251eb399d442332bbd834a246b9a6e
|
|
| BLAKE2b-256 |
402a7bae9a1d918765a841ae41413d07f06167666106b885871abb40f4ba4ec4
|
File details
Details for the file prometheus_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: prometheus_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 264.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
933a014e07c14de4ad32a7a316448857f67e7b20091a610f91354ce5adc401d4
|
|
| MD5 |
55bad1450034821adde076c6427a9504
|
|
| BLAKE2b-256 |
024367ae6be8569815fc94084e502a423e8dcf8add3803db3908f8c8ce19b636
|