Skip to main content

Convert natural language to Claude-friendly XML prompts and inject into Tmux

Project description

prompt-cheater

PyPI version Python 3.10+ License: MIT

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

MIT

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

prompt_cheater-0.1.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prompt_cheater-0.1.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file prompt_cheater-0.1.0.tar.gz.

File metadata

  • Download URL: prompt_cheater-0.1.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.0 Darwin/25.2.0

File hashes

Hashes for prompt_cheater-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b276b3fde9b729dd177ffbaaac980b198b960b124afc30549eef21d3e2a4b209
MD5 478a6b7c03f86d8d637a0bedd3f18ff8
BLAKE2b-256 4143dc155a536d4502801794f2c5f3d03f53bbb6246e4047df61e0d542360d78

See more details on using hashes here.

File details

Details for the file prompt_cheater-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: prompt_cheater-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.0 Darwin/25.2.0

File hashes

Hashes for prompt_cheater-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff9e9379f06e455548baaaba59c8bb7ee9305fc56c66685761ad9d9d3eb20db1
MD5 35263a303545b49e806ef3febca6c4cf
BLAKE2b-256 27782b46f1a3f3613b6042015088121e488c4dbe0686f555f322321014e0f4e9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page