ollaAgent
A local LLM agent powered by ollama — with persistent memory, plan mode, and parallel subagents.
Features
| Feature | Description |
|---|---|
| Agent Loop | Iterative tool-calling loop with run_python, run_bash, read_file, write_file, list_files |
| Persistent Memory | JSON-backed memory with /memory add/list/search/clear commands |
| Session Saving | Conversation history auto-saved to .agents/sessions/ on exit |
| Plan Mode | /plan <task> — generates a structured step-by-step plan without executing tools |
| Subagents | /subagent — runs multiple ollama instances in parallel via multiprocessing.Pool |
| Permission Control | Configurable allow/deny patterns for bash commands |
| Cloudflare Access | Supports CF-Access headers for tunneled ollama endpoints |
Requirements
Installation
git clone https://github.com/github010000/ollaAgent
cd ollaAgent
uv sync
Usage
# Start the agent (default model: qwen3-coder-next:latest)
ollaagent
# With a specific model
ollaagent --model qwen2.5-coder:7b
# With a remote ollama host
ollaagent --host https://your-ollama.example.com
Built-in Commands
| Command | Description |
|---|---|
/plan <task> |
Generate a step-by-step plan (no execution) |
/subagent |
Run tasks in parallel across multiple ollama instances |
/memory add <text> |
Add an entry to persistent memory |
/memory list |
List all memory entries |
/memory search <query> |
Search memory by keyword |
/memory clear |
Clear all memory entries |
/exit |
Exit the agent |
Subagent Usage
Single model across all tasks:
/subagent
> --model llama3:8b task one | task two | task three
Per-task model assignment:
> @qwen2.5-coder:7b write a sorting algorithm | @llama3:8b explain it
Configuration
Create a .env file in the project root:
OLLAMA_HOST=http://localhost:11434
CF_ACCESS_CLIENT_ID=
CF_ACCESS_CLIENT_SECRET=
Project Structure
ollaAgent/
├── agent.py # Main agent loop & CLI entry point
├── memory.py # Persistent memory (JSON)
├── plan_mode.py # Plan-only mode (tools=[])
├── subagent.py # Parallel subagents via multiprocessing
├── tool_bash.py # Bash tool with permission control
├── permissions.py # Allow/deny pattern matching
├── config_loader.py # YAML config & system prompt builder
└── ollama_client.py # Ollama client factory
Running Tests
uv run pytest
License
MIT — see LICENSE for details.
Metadata
Release files for ollaagent 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ollaagent-0.2.1.tar.gz | 63.4 kB | Without provenance | Details for ollaagent-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ollaagent-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for ollaagent-0.2.1-py3-none-any.whl |
Total release size: 83.5 kB
Release files / ollaagent-0.2.1.tar.gz
| Download URL | ollaagent-0.2.1.tar.gz |
|---|---|
| Size | 63.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
810821240ac41005325cce0f35e51c278334e0a7db4db5021438daa190735b5f
|
|
BLAKE2b-256 checksum How to use checksums |
cf96deda4e89e025b37aeab3e925e34dd38af9fe62fe093d7b636caa4c7940bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / ollaagent-0.2.1-py3-none-any.whl
| Download URL | ollaagent-0.2.1-py3-none-any.whl |
|---|---|
| Size | 20.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a3559742483369c2d8998615c2954d549888dc527ba48732f965eb96117d094f
|
|
BLAKE2b-256 checksum How to use checksums |
0222a2f1fc6a452f4aa0f7e03e762968558ac9d539e409339a5d8fe3500bb3db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for ollaagent 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.