Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Configure API credentials for your desired LLM provider. See the [Installation G

**Example (Gemini):**
```bash
cli-code-agent setup --provider=gemini YOUR_GOOGLE_API_KEY
cli-code setup --provider=gemini YOUR_GOOGLE_API_KEY
```

Configuration is typically stored in `~/.config/cli-code/config.yaml`, but can be overridden by environment variables or a custom file path.
Expand All @@ -62,13 +62,13 @@ Configuration is typically stored in `~/.config/cli-code/config.yaml`, but can b
Start an interactive chat session:
```bash
# Use default provider/model
cli-code-agent
cli-code

# Specify provider (uses provider's default model)
cli-code-agent --provider=ollama
cli-code --provider=ollama

# Specify provider and model
cli-code-agent --provider=ollama --model llama3
cli-code --provider=ollama --model llama3
```

**Interactive Commands:**
Expand All @@ -93,4 +93,4 @@ Contributions are welcome! Please see the [Contributing Guide](docs/contributing

## License

MIT
MIT
28 changes: 14 additions & 14 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Before using CLI-Code, you need to set up credentials for your chosen provider:
### For Gemini:

```bash
cli-code-agent setup --provider=gemini YOUR_GOOGLE_API_KEY
cli-code setup --provider=gemini YOUR_GOOGLE_API_KEY
```

To get a Google API key for Gemini:
Expand All @@ -36,7 +36,7 @@ To get a Google API key for Gemini:
### For Ollama:

```bash
cli-code-agent setup --provider=ollama http://localhost:11434/v1
cli-code setup --provider=ollama http://localhost:11434/v1
```

Make sure your Ollama server is running and accessible at the specified URL.
Expand All @@ -47,35 +47,35 @@ Make sure your Ollama server is running and accessible at the specified URL.

```bash
# Start with default provider and model
cli-code-agent
cli-code

# Start with a specific provider
cli-code-agent --provider=ollama
cli-code --provider=ollama

# Start with a specific provider and model
cli-code-agent --provider=gemini --model models/gemini-2.5-pro-exp-03-25
cli-code-agent --provider=ollama --model llama3
cli-code --provider=gemini --model models/gemini-2.5-pro-exp-03-25
cli-code --provider=ollama --model llama3
```

### Setting Default Preferences

```bash
# Set default provider
cli-code-agent set-default-provider gemini
cli-code set-default-provider gemini

# Set default model for a provider
cli-code-agent set-default-model --provider=gemini models/gemini-2.5-pro-exp-03-25
cli-code-agent set-default-model --provider=ollama llama3
cli-code set-default-model --provider=gemini models/gemini-2.5-pro-exp-03-25
cli-code set-default-model --provider=ollama llama3
```

### Listing Available Models

```bash
# List models for Gemini
cli-code-agent list-models --provider=gemini
cli-code list-models --provider=gemini

# List models for Ollama
cli-code-agent list-models --provider=ollama
cli-code list-models --provider=ollama
```

### Available Commands
Expand All @@ -89,7 +89,7 @@ During an interactive session, you can use these commands:

### Config File

Configuration is stored in `~/.config/cli-code-agent/config.yaml` with this structure:
Configuration is stored in `~/.config/cli-code/config.yaml` with this structure:

```yaml
google_api_key: YOUR_GEMINI_API_KEY_HERE
Expand Down Expand Up @@ -121,9 +121,9 @@ CLI_CODE_OLLAMA_DEFAULT_MODEL=llama3.2:latest

If you encounter issues:

1. Verify your API credentials are correct: `cat ~/.config/cli-code-agent/config.yaml`
1. Verify your API credentials are correct: `cat ~/.config/cli-code/config.yaml`
2. Ensure you have a working internet connection
3. Check that you have Python 3.9+ installed: `python --version`
4. For Ollama, ensure the Ollama server is running: `curl http://localhost:11434/v1/models`

For more help, visit: https://github.com/BlueCentre/cli-code
For more help, visit: https://github.com/BlueCentre/cli-code
16 changes: 8 additions & 8 deletions docs/releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ Starting with version 0.2.0, the CLI Code Agent project uses GitHub Actions to a

Here's a step-by-step record of the process used for the 0.3.0 release:

1. **Prepared Changes**:
1. **Prepared Changes**:
- Completed all feature and bug fix work in the feature branch (`fix/gemini`)
- Ensured all tests were passing and linting issues were fixed
- Merged the feature branch into main via PR #24

2. **Version Bump and Changelog Update**:
```bash
# Update version in pyproject.toml from 0.2.3 to 0.3.0

# Add new entry in docs/changelog.md with all significant changes:
## [0.3.0]
- Improved Gemini error handling and UI feedback
Expand Down Expand Up @@ -59,7 +59,7 @@ With version 0.3.0, we optimized the GitHub Actions workflow to reduce redundant
# Trigger on specific events only
on:
push:
branches:
branches:
- "main"
tags: [ "v*" ] # Trigger on tags starting with v
pull_request:
Expand Down Expand Up @@ -130,7 +130,7 @@ Before the automated publishing will work, you need to configure publishing cred
- Set up a new pending publisher:
- Select GitHub Actions as the publisher
- Enter your GitHub organization/username and repository name
- Enter "publish" as the environment name
- Enter "publish" as the environment name
- Save the publisher settings
- Set environment variable `USE_TRUSTED_PUBLISHING=true`

Expand Down Expand Up @@ -242,7 +242,7 @@ After publishing, verify the package works correctly:
# Create a fresh virtual environment
python -m venv test_install_env
source test_install_env/bin/activate # On Windows: test_install_env\Scripts\activate

# Install the package directly from PyPI
pip install cli-code-agent==x.y.z
```
Expand All @@ -251,9 +251,9 @@ After publishing, verify the package works correctly:
```bash
# Verify the version is correct
python -c "import cli_code; print(cli_code.__version__)"

# Verify CLI command works
cli-code-agent --help
cli-code --help
```

## Manual Publishing (Fallback)
Expand All @@ -266,4 +266,4 @@ python -m build

# Publish to PyPI (requires PyPI credentials)
python -m twine upload dist/cli_code_agent-VERSION*
```
```
29 changes: 0 additions & 29 deletions pr_body.txt

This file was deleted.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ dev = [

# This makes the `cli-code` command run the `cli` function in `main.py`
[project.scripts]
cli-code-agent = "cli_code.main:cli"
cli-code = "cli_code.main:cli"

# Remove the automatic package finding
# [tool.setuptools.packages.find]
Expand Down
24 changes: 12 additions & 12 deletions src/cli_code/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@

[medium_blue]

░▒▓██████▓▒░░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓██████▓▒░ ░▒▓██████▓▒░░▒▓███████▓▒░░▒▓████████▓▒░
░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░
░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░
░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓██████▓▒░
░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░
░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░
░▒▓██████▓▒░░▒▓████████▓▒░▒▓█▓▒░ ░▒▓██████▓▒░ ░▒▓██████▓▒░░▒▓███████▓▒░░▒▓████████▓▒░
░▒▓██████▓▒░░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓██████▓▒░ ░▒▓██████▓▒░░▒▓███████▓▒░░▒▓████████▓▒░
░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░
░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░
░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓██████▓▒░
░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░
░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░
░▒▓██████▓▒░░▒▓████████▓▒░▒▓█▓▒░ ░▒▓██████▓▒░ ░▒▓██████▓▒░░▒▓███████▓▒░░▒▓████████▓▒░

[/medium_blue]
"""
# --- End ASCII Art ---
Expand Down Expand Up @@ -408,10 +408,10 @@ def show_help(provider: str):
/help

CLI Commands:
cli-code-agent setup API_KEY
cli-code-agent list-models
cli-code-agent set-default-model NAME
cli-code-agent --model NAME
cli-code setup API_KEY
cli-code list-models
cli-code set-default-model NAME
cli-code --model NAME

Workflow Hint: Analyze → Plan → Execute → Verify → Summarize

Expand Down