Convert natural language to Claude-friendly XML prompts and inject into Tmux
Project description
prompt-cheater
Convert natural language to Claude-friendly XML prompts and inject into Tmux.
Overview
prompt-cheater is a CLI tool designed for developers who use Claude Code in a Tmux environment. It transforms your natural language instructions into structured XML prompts using Gemini AI, then automatically sends them to a Claude Code session running in another Tmux pane.
Features
- Natural language to XML prompt conversion via Gemini 1.5 Flash
- Automatic Tmux pane discovery and text injection
- Beautiful TUI with Rich library
- Preview mode for generated prompts
- Dry-run mode for testing
- Korean (CJK) character support with proper backspace handling
Installation
pip (Recommended)
pip install prompt-cheater
pipx (Isolated environment)
pipx install prompt-cheater
Homebrew (macOS)
brew tap KIMGYUDONG/prompt-cheater
brew install prompt-cheater
From source
git clone https://github.com/KIMGYUDONG/prompt-cheater.git
cd prompt-cheater
pip install -e .
Configuration
Set your Gemini API key:
# Option 1: Environment variable
export GEMINI_API_KEY="your_api_key_here"
# Option 2: .env file
echo 'GEMINI_API_KEY=your_api_key_here' > .env
Get your API key from: https://aistudio.google.com/apikey
Usage
Run from within a Tmux session with at least 2 panes:
# Basic usage (single-line input, press Enter to send)
cheater
# Multiline input mode (press Enter twice to send)
cheater -m
# Preview generated XML before sending
cheater -p
# Dry run (don't send to Tmux)
cheater -n
# Combine options
cheater -m -p
# Show version
cheater -v
Requirements
- Python 3.10+
- Tmux
- Gemini API key
- macOS or Linux
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
License
Project details
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 prompt_cheater-0.2.0.tar.gz.
File metadata
- Download URL: prompt_cheater-0.2.0.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c34b5b4faa82e4d99954bdb2d9f8a79dcad4d61d3165246e285021d4b893818
|
|
| MD5 |
7637b7dedf554f1715492be8ece79258
|
|
| BLAKE2b-256 |
43d7e1c5b401385cdd58f88a402add4f89baafaf7dd577e84ef35d5c34493e40
|
Provenance
The following attestation bundles were made for prompt_cheater-0.2.0.tar.gz:
Publisher:
publish.yml on KIMGYUDONG/prompt-cheater
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
prompt_cheater-0.2.0.tar.gz -
Subject digest:
3c34b5b4faa82e4d99954bdb2d9f8a79dcad4d61d3165246e285021d4b893818 - Sigstore transparency entry: 808976745
- Sigstore integration time:
-
Permalink:
KIMGYUDONG/prompt-cheater@2673dd8abe19afba8c195a9dbcd2e97fb88d4337 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/KIMGYUDONG
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2673dd8abe19afba8c195a9dbcd2e97fb88d4337 -
Trigger Event:
push
-
Statement type:
File details
Details for the file prompt_cheater-0.2.0-py3-none-any.whl.
File metadata
- Download URL: prompt_cheater-0.2.0-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9a8627e002bc8b498cb84f9a8b8085ba2fd0550d15ae5d4e20a5a2446f4b920
|
|
| MD5 |
959b1d07a17f93d69ffa15ec5a05ec29
|
|
| BLAKE2b-256 |
fd1fc74ac4be3b258356db8502f644a5b1c8413928a1eb28eaa043581cd04ea8
|
Provenance
The following attestation bundles were made for prompt_cheater-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on KIMGYUDONG/prompt-cheater
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
prompt_cheater-0.2.0-py3-none-any.whl -
Subject digest:
b9a8627e002bc8b498cb84f9a8b8085ba2fd0550d15ae5d4e20a5a2446f4b920 - Sigstore transparency entry: 808976747
- Sigstore integration time:
-
Permalink:
KIMGYUDONG/prompt-cheater@2673dd8abe19afba8c195a9dbcd2e97fb88d4337 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/KIMGYUDONG
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2673dd8abe19afba8c195a9dbcd2e97fb88d4337 -
Trigger Event:
push
-
Statement type: