Skip to main content

A CLI tool for multi-agent LLM tasks

Project description

FlowAI

G'day! FlowAI is your mate for automating development tasks using LLMs. It's a ripper CLI tool that helps you write better commit messages, pull requests, and code reviews.

Quick Start

# Install FlowAI
pipx install glagos-flowai

# Set up your config (you'll need API keys)
flowai --init

# Generate a commit message
git diff -w --staged | flowai --prompt-file ~/flowai-prompts/prompt-commit-message.txt

# Create a pull request description
git log main..HEAD | flowai --prompt-file ~/flowai-prompts/prompt-pull-request.txt

# Get a code review
git diff -w main..HEAD | flowai --prompt-file ~/flowai-prompts/prompt-code-review.txt

Required API Keys

You'll need at least one of these environment variables set:

Common Commands

Git Workflow

# Generate commit message for staged changes
git diff -w --staged | flowai --prompt-file ~/flowai-prompts/prompt-commit-message.txt

# Review code changes
git diff -w main..HEAD | flowai --prompt-file ~/flowai-prompts/prompt-code-review.txt

# Create pull request description
git log main..HEAD | flowai --prompt-file ~/flowai-prompts/prompt-pull-request.txt

Model Selection

# List available models
flowai --list-models

# Use a specific model
flowai --model openai:gpt-4 "Your prompt here"
flowai --model anthropic:claude-3-opus-20240229 "Your prompt here"
flowai --model groq:mixtral-8x7b-32768 "Your prompt here"
flowai --model google:gemini-pro "Your prompt here"
flowai --model ollama:codellama "Your prompt here"

Context Options

# Use a file as context
flowai --context-file error.log "Analyze this error"

# Use command output as context
flowai --context-shell-command "git diff" "Review these changes"

# Use clipboard content as context
flowai --context-from-clipboard "Summarize this"

Advanced Features

Custom Prompts

Create your own prompt templates in ~/flowai-prompts/. See Creating Custom Prompts for details.

# Select a prompt file interactively
flowai --select-prompt-file

# Use a custom prompt file
flowai --prompt-file ~/flowai-prompts/my-custom-prompt.txt

Configuration

# Check current settings
flowai --status

# Reconfigure FlowAI
flowai --init

# Toggle streaming output
flowai --stream "Watch the response in real-time"
flowai --no-stream "Wait for complete response"

Output Formatting

# Default markdown output
flowai "Format this nicely"

# Plain text output
flowai --no-markdown "Keep it simple"

Troubleshooting

  1. Missing API Keys

    • Run flowai --init to see which providers need API keys
    • Check the provider URLs above to get your keys
    • Add keys to your environment variables
  2. Model Issues

    • Run flowai --list-models to see available models
    • Check if your chosen provider is properly configured
    • Verify your API key has access to the model
  3. Command Not Found

    • Make sure pipx is installed
    • Try reinstalling: pipx reinstall glagos-flowai
    • Check your PATH environment variable

Contributing

We'd love your help! Here's how you can contribute:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

We especially need help with:

  • Adding new LLM providers
  • Creating useful prompt templates
  • Writing unit tests
  • Improving documentation

License

MIT License - See LICENSE file for details

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

glagos_flowai-0.4.1.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

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

glagos_flowai-0.4.1-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file glagos_flowai-0.4.1.tar.gz.

File metadata

  • Download URL: glagos_flowai-0.4.1.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/23.1.0

File hashes

Hashes for glagos_flowai-0.4.1.tar.gz
Algorithm Hash digest
SHA256 1b55b366fdfaf35b4c90cc1061fcfc652e19c1c576080caa1029aabf1ea68444
MD5 bf6461e0c1f17cb12d8d004cce73d3f5
BLAKE2b-256 fae9c914358d10cdb35c82c9c4f2561c0839a7e9335e2bf3fab91ca103ca7882

See more details on using hashes here.

File details

Details for the file glagos_flowai-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: glagos_flowai-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/23.1.0

File hashes

Hashes for glagos_flowai-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a13458e67a406fa25592f179eb3c4f0b7880fbc69f297164ce2029dc308a97fb
MD5 4619247b768cfd18043bda807a4a7264
BLAKE2b-256 dba1d267bd0be0b0514ddd7b06336198d8c8f98a67c9c7e5961b2c0c2d976f09

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