claude-dialog
Interactive CLI for engaging in continuous conversations with Claude Code. This tool provides a shell-like interface for chatting with Claude AI, with support for custom system prompts and model selection.
Overview
claude-dialog creates an interactive chat environment with Claude Code, allowing you to:
- Have continuous back-and-forth conversations with Claude
- Use custom system prompts to guide Claude's behavior
- Maintain conversation context throughout the session
- Switch between different Claude models
Prerequisites
Before installing claude-dialog, ensure you have the following:
Required
- Claude Code CLI: The
claudecommand must be installed and available in your PATH- Install from: https://github.com/anthropics/claude-code
- Verify installation:
claude --version
- Rust and Cargo: Required to build and install from source
- Install from: https://rustup.rs/
- Minimum Rust version: 1.70.0
System Requirements
- Operating System: macOS, Linux, or Windows
- Terminal with color support for best experience
Installation
Usage
Basic usage
With custom system prompt
With multiple system prompts (concatenated)
Append to default system prompt
Specify model
Interactive Chat Experience
Once started, claude-dialog provides an interactive shell where you can:
- Type your questions or prompts
- Claude will respond directly in the terminal
- Continue the conversation with follow-up questions
- Claude maintains context from previous messages in the session
Example session:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Claude Dialog Shell
System Prompt: Default
Model: claude-3-opus-20240229
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Type 'exit' or 'quit' to end the conversation
You> Hello Claude, can you help me with Python?
Claude>
I'd be happy to help you with Python! What specific topic or problem would you like assistance with?
You> How do I read a JSON file?
Claude>
Here's how to read a JSON file in Python...
Commands
exitorquit- Exit the conversation
License
MIT License - see LICENSE file for details