Skip to main content

Harzoo

Harzoo is a simple, flexible, powerful Python AI agent framework.

Just 1300 lines of code.

It is a universal world‑task architecture: s₀ → [LLM + tools] → s₁ → [LLM + tools] → s₂ → …

Documentation

www.harzoo.com

Repository Layout

Path Purpose
src/ code
docs/ Documentation, official config files
assets/ Official config files
other Project management

Quick Start

  1. Install

    pip install harzoo
    
  2. Run

    Opens the terminal UI. On first run, Harzoo creates a config folder:

    harzoo
    
  3. Configure

    Edit files under:

    ~/.harzoo/config/
    
    • Copy files from assets/config/ into the folder above, and update API settings (api_key, base_url, model_name) in your profile.
    • Update config.json — set startup_profile to your profile file.
  4. Restart

    Quit Harzoo and run again to load your changes:

    harzoo
    

Python Examples

High-level

from harzoo import start
from harzoo.agent.kernel.message import user_message

config_dir = "~/.harzoo/config"
queue_in, queue_out = start(config_dir)

user_message = user_message([{"type": "text", "text": "Hello"}])
queue_in.put(user_message)

print(queue_out.get())

Low-level

from harzoo import Agent
from harzoo.agent.components.paths import prepare_config_paths
from harzoo.agent.kernel.message import assistant_message, tool_message, user_message
from harzoo.agent.kernel.tool import Context

paths = prepare_config_paths("~/.harzoo/config")
agent = Agent.from_profile(paths.startup_profile_path, paths)

state = []

user_message = user_message([{"type": "text", "text": "Hello"}])
state.append(user_message)

while state and state[-1].get("role") in ("user", "tool"):
    ctx = Context(state=state, agent=agent, config_paths=paths)
    content, tool_calls, _ = agent.decide(state)
    state.append(assistant_message(content=content, tool_calls=tool_calls))
    if tool_calls:
        for tc in tool_calls:
            fn = tc["function"]
            result = agent.execute_tool_call(str(fn["name"]), str(fn["arguments"]), ctx)
            tool_message = tool_message(str(tc["id"]), result)
            state.append(tool_message)

print(state[-1])

License

MIT

Metadata

Release files for harzoo 0.1.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for harzoo 0.1.10
File Size Uploaded Provenance Actions
harzoo-0.1.10.tar.gz 25.6 kB Without provenance Details for harzoo-0.1.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for harzoo 0.1.10
File Interpreter ABI Platform Actions
harzoo-0.1.10-py3-none-any.whl Python 3 none any Details for harzoo-0.1.10-py3-none-any.whl

Total release size: 58.1 kB

Release files / harzoo-0.1.10.tar.gz

Download URL harzoo-0.1.10.tar.gz
Size 25.6 kB
Tags Source
SHA-256 checksum
How to use checksums
aa715e0f5928e57c99a3556b0dd71d1d347a589b6bc8fe528a18d7112e1dc0d3
BLAKE2b-256 checksum
How to use checksums
127424e3619e0b75d90476b7ae9e61d7950797048d72c513d97cdd6e7911679f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / harzoo-0.1.10-py3-none-any.whl

Download URL harzoo-0.1.10-py3-none-any.whl
Size 32.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
998cb133e86f60a6a47bc1f154345e8f5e2dd97fd6156ed0d0e0a8713e9d212e
BLAKE2b-256 checksum
How to use checksums
26e31548a017a0f993f3c0913c02c23818367a1d6779b8c37c80f57fd4e107d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for harzoo 0.1.10

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page