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.2.2.tar.gz (11.6 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.2.2-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: prompt_cheater-0.2.2.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for prompt_cheater-0.2.2.tar.gz
Algorithm Hash digest
SHA256 fd266a3aab3dca95317e6b072d5870bd6c536bfcca0acb0ee0d61daeb78e42e0
MD5 15d4b7fc5dedab9082de7ad500519fbd
BLAKE2b-256 885078363391d9a0c329b6e9146cfbd7a9fa414c4cfa1adab37030a201fd1b3b

See more details on using hashes here.

Provenance

The following attestation bundles were made for prompt_cheater-0.2.2.tar.gz:

Publisher: publish.yml on KIMGYUDONG/prompt-cheater

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: prompt_cheater-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for prompt_cheater-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6190597039534b01a2eb4d4636a3e71c77a97d1b1ab7136b7f528dc6a394df4a
MD5 653344d93148d70494eada46a4930a40
BLAKE2b-256 1042cd47cc278fdf4704564aac50ab03d1094b807ab2a2a5a2f011fe67ada2ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for prompt_cheater-0.2.2-py3-none-any.whl:

Publisher: publish.yml on KIMGYUDONG/prompt-cheater

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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