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.0.tar.gz (10.3 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.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

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

Hashes for prompt_cheater-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3c34b5b4faa82e4d99954bdb2d9f8a79dcad4d61d3165246e285021d4b893818
MD5 7637b7dedf554f1715492be8ece79258
BLAKE2b-256 43d7e1c5b401385cdd58f88a402add4f89baafaf7dd577e84ef35d5c34493e40

See more details on using hashes here.

Provenance

The following attestation bundles were made for prompt_cheater-0.2.0.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.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

Hashes for prompt_cheater-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b9a8627e002bc8b498cb84f9a8b8085ba2fd0550d15ae5d4e20a5a2446f4b920
MD5 959b1d07a17f93d69ffa15ec5a05ec29
BLAKE2b-256 fd1fc74ac4be3b258356db8502f644a5b1c8413928a1eb28eaa043581cd04ea8

See more details on using hashes here.

Provenance

The following attestation bundles were made for prompt_cheater-0.2.0-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