Skip to main content

Interactive CLI agent for Groq API with chat, model selection, and file diff capabilities

Project description

CodeFlow CLI

A beautiful, terminal-first AI coding assistant that works right inside your shell. CodeFlow helps you read, explore, and improve your codebase with an enhanced chat UI, diff previews, and safe, confirmed edits.

Why CodeFlow?

  • Stunning terminal UI with rich colors and syntax-highlighting
  • Two modes that fit any workflow:
    • Q&A mode (read-only): ask questions about the codebase without making changes
    • Agent mode (write): propose and apply changes with diff previews and confirmation
  • First-run CODEFLOW banner, helpful toolbar, and model-aware prompts
  • File-aware assistance: list, read, preview, and edit files directly from chat
  • Clear preview with green (+) and red (–) lines for diffs
  • Slash commands with auto-completion in both modes

Install

pip install codeflow-cli

Quick Start

codeflow

On start, pick a mode:

  • qna (read-only) to ask questions about your codebase
  • agent (can modify files) to propose/apply improvements with confirmation

Switch modes anytime:

  • /agent or /mode agent
  • /qna or /mode qna

Configuration

Set your Groq API key one of the following ways:

# Recommended: environment variable
export GROQ_API_KEY="your-groq-api-key"

# Or interactively
codeflow configure

# Or via flag
codeflow --api-key "your-groq-api-key"

Common Commands

  • /help show help
  • /files list accessible files
  • /scan rescan workspace
  • /read <file> read and preview a file
  • /edit <file> propose/apply edits (Agent mode)
  • /workspace show workspace info
  • /model change model
  • /clear clear chat history
  • /exit quit

Examples

# Ask questions about the codebase
codeflow
You: Where is the CLI entry point defined?

# Read and preview a file
/read groq_agent/cli.py

# Propose an edit (Agent mode)
/agent
/edit groq_agent/enhanced_chat.py
"Improve the prompt styling and add a bottom toolbar."

Uninstall

pip uninstall codeflow-cli

Troubleshooting

  • If codeflow isn’t found, ensure your Python scripts directory (e.g., ~/.local/bin or /opt/anaconda3/bin) is on your PATH.
  • If the Groq API key isn’t detected, export GROQ_API_KEY or run codeflow configure.
  • For publishing guidance (maintainers), see INSTALL.md.

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

codeflow-cli-0.1.2.tar.gz (37.5 kB view details)

Uploaded Source

Built Distribution

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

codeflow_cli-0.1.2-py3-none-any.whl (42.9 kB view details)

Uploaded Python 3

File details

Details for the file codeflow-cli-0.1.2.tar.gz.

File metadata

  • Download URL: codeflow-cli-0.1.2.tar.gz
  • Upload date:
  • Size: 37.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for codeflow-cli-0.1.2.tar.gz
Algorithm Hash digest
SHA256 973e60e032560daf766da8f7b9519ee5971b3d8226ff18567ab3a44a5c5f9573
MD5 0b8fec207fe7a9c6155fe3cb2f7e70d8
BLAKE2b-256 a0544cc7eabfd970bad572e35312194a42df42ed514f10062906e195231a2021

See more details on using hashes here.

File details

Details for the file codeflow_cli-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: codeflow_cli-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 42.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for codeflow_cli-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 16a74ff41ee2e54ceb39d5c55c5358b5d85f957c96730fb5fe9b2423d9e4cd79
MD5 8a1ef92261d1830f7691d73672b95c04
BLAKE2b-256 e855b52d2f42281a7434362d0591b1c019ed4fa672bd1c25305578d0c420ce9c

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