Agentic coding assistant for Ollama
Project description
OllamaCode
Agentic coding assistant for Ollama with tool use, autonomous mode, and project/user configuration.
Install
From PyPI (after you publish):
pip install ollama-coder
For local development:
pip install -e .
Run
ollama-coder
You will be prompted to choose a model on startup. The selected model can be saved as your default.
Common Commands
/autotoggle autonomous mode/modelslist installed models/modelshow or set the active model/hostshow or set the Ollama host (for remote/cloud)/configshow effective configuration/clearclear conversation history/quitexit
Configuration
User config lives at ~/.ollamacode/settings.json. Example:
{
"model": "llama3:latest",
"max_iterations": 25,
"max_tool_rounds": 8,
"ollama": {
"host": "http://127.0.0.1:11434",
"timeout_sec": 60,
"headers": {},
"api_key": ""
},
"web_search": {
"enabled": false,
"provider": "custom",
"endpoint": "",
"api_key": "",
"timeout_sec": 15,
"max_results": 5
}
}
You can also set OLLAMA_HOST in your environment to point at a remote server. The /host command updates the config and rebuilds the client at runtime.
Requirements
- Ollama server running locally or reachable via
OLLAMA_HOST - Python 3.9+
GitHub
Repository: https://github.com/lalomorales22/ollama-code
License
MIT
Publish to PyPI
Manual publish:
python -m build
python -m twine upload dist/*
Auto Publish (GitHub Actions)
This repo includes a GitHub Actions workflow that publishes to PyPI on tags.
Steps:
- Bump the version in
pyproject.tomlandollama_code/__init__.py - Commit the change
- Tag and push:
git tag v0.1.1 git push origin v0.1.1
Trusted Publisher setup (one-time):
- In PyPI, add a Trusted Publisher for this repo.
- Workflow name (file):
publish.yml(or.github/workflows/publish.yml) - Environment name: leave blank (unless you add one)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ollama_coder-0.1.2.tar.gz.
File metadata
- Download URL: ollama_coder-0.1.2.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3558aa64d161fa58a13ac3440181dba1512041c7f6623e436da2047a91ff0849
|
|
| MD5 |
007f6fef8c8cf1e31ebd2cacb3dcd5ac
|
|
| BLAKE2b-256 |
0c5ed51d3f8b614890c9317a1a6b2c75e37da129b886b3c7253df04a9a4ef10b
|
Provenance
The following attestation bundles were made for ollama_coder-0.1.2.tar.gz:
Publisher:
publish.yml on lalomorales22/ollama-code
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ollama_coder-0.1.2.tar.gz -
Subject digest:
3558aa64d161fa58a13ac3440181dba1512041c7f6623e436da2047a91ff0849 - Sigstore transparency entry: 789770393
- Sigstore integration time:
-
Permalink:
lalomorales22/ollama-code@9d8ead8ff126c8ef96d1c19eb6a4668baeb58cd9 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/lalomorales22
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9d8ead8ff126c8ef96d1c19eb6a4668baeb58cd9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ollama_coder-0.1.2-py3-none-any.whl.
File metadata
- Download URL: ollama_coder-0.1.2-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66a78eec240793aec473d95eae7ca7ac05325ef0b139a35edeb493feb0196b7b
|
|
| MD5 |
117d48f364fc928dcdbb3fc6f0ff5a48
|
|
| BLAKE2b-256 |
05be5c9be72a15f800c2d65ef8586a6552d83453d9e010e4731f898e2244e396
|
Provenance
The following attestation bundles were made for ollama_coder-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on lalomorales22/ollama-code
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ollama_coder-0.1.2-py3-none-any.whl -
Subject digest:
66a78eec240793aec473d95eae7ca7ac05325ef0b139a35edeb493feb0196b7b - Sigstore transparency entry: 789770397
- Sigstore integration time:
-
Permalink:
lalomorales22/ollama-code@9d8ead8ff126c8ef96d1c19eb6a4668baeb58cd9 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/lalomorales22
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9d8ead8ff126c8ef96d1c19eb6a4668baeb58cd9 -
Trigger Event:
push
-
Statement type: