Metadata-Version: 2.4
Name: hugpy-agent
Version: 0.1.138
Summary: Portable agent runtime powered by the Hugpy self-hosted LLM fleet
Author-email: putkoff <support@hugpy.ai>
License: hugpy — Source-Available License
        
        Copyright (c) 2026 putkoff (hugpy.ai). All rights reserved.
        
        Permission is granted, free of charge, to use this software ("hugpy") for
        personal and non-commercial purposes, and for time-limited commercial
        evaluation, subject to the following conditions:
        
        1. Non-commercial use means use by an individual for personal purposes, or
           use by a non-profit or educational institution for its own internal
           purposes. Any use by, for, or on behalf of a for-profit business or in
           connection with revenue-generating activity is commercial use — including
           internal business use, use in producing goods or services, and use on
           paid engagements.
        
        2. Commercial use requires a commercial license from the copyright holder.
           Exception: a business may evaluate the software internally for up to
           thirty (30) days free of charge; continued use after that requires a
           commercial license.
        
        3. Redistribution of this software, in source or binary form, modified or
           unmodified, is not permitted without prior written permission from the
           copyright holder. Downloading the software from an official distribution
           channel (PyPI, npm, hugpy.ai) is not redistribution.
        
        4. Modification for personal use or internal evaluation is permitted;
           distribution of modified versions is not.
        
        5. This notice must be retained in all copies or substantial portions of
           the software.
        
        6. Any use outside these terms automatically terminates this license.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING
        FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
        IN THE SOFTWARE.
        
        For commercial licensing or redistribution permission: https://hugpy.ai
        
Project-URL: Homepage, https://hugpy.ai
Project-URL: Repository, https://github.com/hugpy/hugpy-agent
Project-URL: Issues, https://github.com/hugpy/hugpy-agent/issues
Keywords: hugpy,agent,llm,ai,automation
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: hugpy-resources<0.2,>=0.1.2.4
Requires-Dist: hugpy-tools
Requires-Dist: abstract-toolserver>=0.0.121
Requires-Dist: hugpy-terminal<0.2,>=0.1.39.2
Provides-Extra: serve
Provides-Extra: mct
Requires-Dist: jsonschema>=4.0; extra == "mct"
Provides-Extra: console
Requires-Dist: abstract-flask>=0.0.0.1079; extra == "console"
Requires-Dist: flask; extra == "console"
Requires-Dist: flask-cors; extra == "console"
Dynamic: license-file

# hugpy-agent

Hugpy Agent runs tool-using language models against a Hugpy inference endpoint. It records each run in a workspace journal so an operator can inspect progress, review tool activity and resume interrupted work.

## Installation

Install the base runtime for the CLI. The `serve`, `console` and `mct` extras supply dependencies for the corresponding services and interfaces.

```sh
python -m pip install hugpy-agent
```

## Quick start

In a project directory, set the fleet address, list the available models and run a read-only task. Replace `MODEL_ID` with a chat model from the list.

```sh
export HUGPY_BASE=http://127.0.0.1:7002
hugpy-agent models
hugpy-agent run "Summarize the README in this workspace" --model MODEL_ID --policy readonly
hugpy-agent runs
```

Use `hugpy-agent resume RUN_ID` in the same workspace to continue an interrupted run.

## Tool execution

The loop selects tools, applies the workspace policy, records their results and returns observations to the model. The `ask` policy can request operator approval through a configured channel. `--workspace` selects the project and journal, while `--max-steps` limits a run. `hugpy-agent chat` opens an interactive session.

## Sessions and integrations

`hugpy-agent serve` hosts named sessions. `hugpy-agent tui` is the terminal client, and `hugpy-agent console-serve` exposes the enrollment and installation API. Use `hugpy-agent tools` for the Toolserver client or `hugpy-agent mct` for the mediated context terminal.

![Hugpy Agent terminal showing named sessions and conversation activity](https://hugpy.ai/downloads/gallery/hugpy-agent/hugpy-agent-tui.png)
