Metadata-Version: 2.4
Name: nexus-ai-harness
Version: 0.1.1
Summary: An AI harness
Author: luigi617
License: MIT License
        
        Copyright (c) 2026 Luigi Liu
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        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
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/luigi617/nexus-ai-harness
Project-URL: Repository, https://github.com/luigi617/nexus-ai-harness
Project-URL: Issues, https://github.com/luigi617/nexus-ai-harness/issues
Project-URL: Changelog, https://github.com/luigi617/nexus-ai-harness/blob/main/CHANGELOG.md
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: boto3>=1.35
Requires-Dist: python-dotenv>=1.0
Dynamic: license-file

# Nexus AI Harness

Build LLM agents by composing the pieces you want.

Every part of an agent — the loop, model, memory, tools, permissions, subagents,
and more — is a **plugin**. You pick the plugins you need and register them on a
harness. Swap any piece without touching the rest.

## Install

```bash
pip install nexus-ai-harness
```

Set the API key for the model you'll use (copy `.env.example` to `.env` and fill
it in). For Anthropic that's `ANTHROPIC_API_KEY`; see [Models](docs/plugins/models.md)
for other providers.

## Usage

Start with the batteries-included harness:

```python
from nexus_ai_harness.plugins import default_harness
from nexus_ai_harness.plugins.models import AnthropicModel

harness = default_harness(AnthropicModel(model="..."))
answer = harness.run_sync("What is 128 * 47?")   # or: await harness.run(...)
```

Or compose your own:

```python
from nexus_ai_harness.harness import NexusAIHarness
from nexus_ai_harness.plugins.loops import AgenticLoop
from nexus_ai_harness.plugins.models import AnthropicModel

harness = (
    NexusAIHarness()
    .use(AgenticLoop())
    .use(AnthropicModel(model="..."))
    .use(...)                       # add the plugins you want
)
```

## Documentation

See [docs/](docs/README.md) for the architecture, the plugin guides, and how to
write your own plugin.

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md).

## License

MIT
