Offline terminal prompt builder — answer a few questions, get a perfect AI prompt in your clipboard. Zero tokens spent on explanations.
Project description
Don't spend tokens explaining yourself — spend them on results.
RAPT0R is a terminal prompt builder. Answer a few questions, get a battle-tested AI prompt in your clipboard, or execute it directly against an LLM. Offline by design — your context window goes entirely to the actual work.
✨ Features
- 🔌 Offline by default — build complex prompts with zero API calls, or optionally stream execution directly to OpenAI/Anthropic.
- ⚡️ Fast — answer 3-5 questions, the finished prompt is already in your clipboard.
- 📁 Project context — drop a
.rapt0rfile in your repo and your stack/rules/architecture get injected into every prompt automatically. - 🔎 Instant search — press
fanywhere to fuzzy-search templates across all categories. - 🌳 Branching — smart templates ask follow-up questions based on your answers.
- 🛠 Built-in manager — create, edit, and delete templates right from the menu.
- 🎨 Polished TUI — custom colors, number hotkeys, icons, built on
InquirerPyandrich.
🚀 Install
pip install rapt0r-cli
Run it:
rapt0r
Or run from source
git clone https://github.com/i73i73i73i73/RAPT0R.git
cd RAPT0R
pip3 install -e .
rapt0r # or: python3 main.py
📁 Project context (.rapt0r)
Stop re-explaining your project to the AI in every prompt. Describe it once — RAPT0R appends it to every prompt it builds.
Create a .rapt0r file in your project root (any plain text or markdown):
Stack: FastAPI + React + PostgreSQL
Style: type hints everywhere, no classes where functions do
Architecture: monorepo, backend in /api, frontend in /web
Rules: never touch migrations by hand, tests are pytest
Run rapt0r from anywhere inside the project — it finds the file by walking up the directory tree and adds a ## Project context section to the generated prompt.
⌨️ Hotkeys
| Key | Action |
|---|---|
1-9 |
Jump to item |
f |
Fuzzy search across all templates |
0 |
Exit / back |
Ctrl+C |
Cancel current flow |
📝 Writing your own templates
Templates are plain Markdown with YAML frontmatter. Press Create template in the menu, or drop a .md file into a category folder:
---
name: "✨ My awesome prompt"
questions:
role: "What role should the AI play?"
task: "Describe the task in one sentence:"
branch:
question: "Add a constraints section?"
y:
questions:
limits: "List the constraints, comma-separated:"
body: "constraints_body"
---
You act as: {{role}}.
Your task: {{task}}.
{{constraints_body}}
Syntax
name— display name in the menu.questions—key: "Question?"pairs; keys become{{variables}}in the body. Addchoices:for a pick-list.branch(optional) — yes/no fork that asks extra questions and switches the body.{{variable}}— replaced with your answers.
Where templates live: the repo's rapt0r/templates/ when running from source, ~/.rapt0r/templates/ when installed via pip (seeded automatically on first run). Generated prompts are saved to ~/.rapt0r/prompts/ (or prompts/temp/ in a source checkout).
🧠 Philosophy
Precise context = fewer tokens = better results.
Every API call where you explain your project from scratch costs money and context window. RAPT0R forces the discipline of giving the AI exactly the inputs it needs — offline, for free, in seconds.
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 rapt0r_cli-1.0.0.tar.gz.
File metadata
- Download URL: rapt0r_cli-1.0.0.tar.gz
- Upload date:
- Size: 23.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
117130236ad5138d76ad924de8d3ae6c853249eb52a0d381385ad066e0bd2fcf
|
|
| MD5 |
32fee74526c5a5f4a24ed014dae68b06
|
|
| BLAKE2b-256 |
77568866fcd9538bcf98ac577141571ed021fb73259758aaa7bcd9f53fcc4564
|
Provenance
The following attestation bundles were made for rapt0r_cli-1.0.0.tar.gz:
Publisher:
publish.yml on i73i73i73i73/RAPT0R
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rapt0r_cli-1.0.0.tar.gz -
Subject digest:
117130236ad5138d76ad924de8d3ae6c853249eb52a0d381385ad066e0bd2fcf - Sigstore transparency entry: 1805005601
- Sigstore integration time:
-
Permalink:
i73i73i73i73/RAPT0R@8cc754cde498fc7e07ab77b48ecbcacf6b008bc2 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/i73i73i73i73
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8cc754cde498fc7e07ab77b48ecbcacf6b008bc2 -
Trigger Event:
release
-
Statement type:
File details
Details for the file rapt0r_cli-1.0.0-py3-none-any.whl.
File metadata
- Download URL: rapt0r_cli-1.0.0-py3-none-any.whl
- Upload date:
- Size: 27.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f585b337ac1491d5a8fff8e12c03470ac98c75ae82f198315e9ee54b89023239
|
|
| MD5 |
cf81546684e25ac824e2ab11c40e98a2
|
|
| BLAKE2b-256 |
fda487c4ae430ddf653ab40fcc819f5237985e1fd8df465ed1c62425e2b14094
|
Provenance
The following attestation bundles were made for rapt0r_cli-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on i73i73i73i73/RAPT0R
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rapt0r_cli-1.0.0-py3-none-any.whl -
Subject digest:
f585b337ac1491d5a8fff8e12c03470ac98c75ae82f198315e9ee54b89023239 - Sigstore transparency entry: 1805005643
- Sigstore integration time:
-
Permalink:
i73i73i73i73/RAPT0R@8cc754cde498fc7e07ab77b48ecbcacf6b008bc2 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/i73i73i73i73
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8cc754cde498fc7e07ab77b48ecbcacf6b008bc2 -
Trigger Event:
release
-
Statement type: