> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Model Harness • AI Agent SDK

> Model-family-aware agent harness.

# model\_harness

<Badge color="blue">AI Agent</Badge>

Model-family-aware agent harness.

Selects, by model id/family, a base/harness system-prompt fragment and a
preferred file-edit format (string-replace `edit_file` vs `apply_patch`).

The default profile reproduces the current generic behaviour exactly, so
behaviour is unchanged when no family match applies. The registry is
data-driven and overridable; resolution is lazy with zero import-time cost.

Usage::

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
from praisonaiagents.model_harness import resolve_harness

profile = resolve_harness("claude-opus-4")
profile.base_prompt          # optional prompt fragment (str or None)
profile.preferred_edit_format  # "apply_patch" | "edit_file" | None
```

## Import

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
from praisonaiagents import model_harness
```

### Constants

| Name            | Value                                                                                                                                                                                                         |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `_LAZY_IMPORTS` | `{'HarnessProfile': ('praisonaiagents.model_harness.profiles', 'HarnessProfile'), 'HarnessResolverProtocol': ('praisonaiagents.model_harness.profiles', 'HarnessResolverProtocol'), 'resolve_harness': ('...` |
