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.1.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.1-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: prompt_cheater-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 c4fad108b9a48bbf80dbeb04d9073e257ad94095ec1a7e26d653357312a43953
MD5 9b66bcfdce420f3eedf19109f980c709
BLAKE2b-256 d91da289fd97547de4495d2620433565aef3b00efea5b068d9ce30f624a6fa9d

See more details on using hashes here.

Provenance

The following attestation bundles were made for prompt_cheater-0.2.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: prompt_cheater-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 12.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a1769a86a912df7993dd2a173c6a18abf5ce408f65fa297f3ef50051e49322f0
MD5 2f61015abe32c170c666d6a71a29459a
BLAKE2b-256 b8e109de28994f8b08bf511f772c62dd1fe4e25d79b75fb181af1c13b29301b6

See more details on using hashes here.

Provenance

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