Our take
Activeregular commits and releases- Activity
- 78
- Community
- 4
- Issues
- 21
- Pull requests
- 66
+0 stars in the last 30 days
- Fewer contributors than 91% of the projects we track
Model Harness is a actively developed, well-separated .NET agent framework, but its progress currently depends on one contributor and its quality claims remain unbenchmarked.
Good fit if
- You build in .NET 8 or .NET 10 and want guides and sensors as explicit extension points.
- You need to swap model clients or add safety checks without changing the core loop.
- You are comfortable evaluating a young framework whose recent activity and releases are strong but whose contributor base is concentrated.
Look elsewhere if
- You need published evidence that a smaller or local model reaches a particular quality bar, since the README says this has not been benchmarked.
- Your stack is not .NET, or you need a framework that does not require you to supply a model client.
- You want a project maintained by a broader contributor group; measured contributions are concentrated in one person.
All health signals
| Last commit | 2026-11-16 (3 days ago) |
|---|---|
| Commits, last 90 days | 100+ |
| Releases, last 12 months | 19 (latest v4.1.0, 2026-11-01) |
| Contributors | 1 |
| Issues closed, last 90 days | 0 |
| Pull requests merged, last 90 days | 15 (typically merged in 0 days) |
| Project age | 6 months |
Checked on 2026-11-20 with the GitHub API.
Project history
Daily GitHub snapshots since Oct 14, 2026. History covers stars and forks; health signals are not tracked historically.
Stars
1Forks
1Change since Dec 4, 2026: 0 stars·0 forks
Overview
Model Harness is a ports-and-adapters agent framework for .NET 8 and .NET 10, built around the idea that an agent is a model plus a harness. The framework supplies the loop, guides, sensors, and budget controls that make a model-driven agent controllable, with replaceable ports so teams can change individual components without rewriting the loop.
It is aimed at developers building tool-using agents who want explicit control over what the model sees and how its actions are checked. Anthropic Claude, Azure OpenAI / AI Foundry, and Ollama adapters are available, but the model transport is a pluggable port rather than a dependency on one provider. The README says the goal of using a smaller or local model at acceptable quality has not yet been benchmarked.
Key Features
- Guide pipeline shapes each model call's context, including system prompt, memory snippets, available tools, and rendered trajectory.
- Sensors observe five loop hookpoints and can annotate, reject, block, flag, or challenge, depending on where they run.
- Turn, token, cost, and wall-clock budgets are enforced, with partial results returned when limits are reached.
- Standard wiring includes prompt-injection detection, stuck detection, progress checks, and OpenTelemetry tracing.
- Optional adapters cover Anthropic, Azure OpenAI / AI Foundry, and Ollama; custom model clients can implement
IModelClient. - Additional options include checkpoint and resume, human-in-the-loop, sub-agents, structured output, skills, and incremental compaction.
Use Cases
- .NET teams building tool-using agents that need policy checks before dispatching tools.
- Developers experimenting with how context selection and loop design affect agent behavior, including when trying different model providers.
- Applications that need bounded agent runs and a best-effort partial answer when a turn, token, cost, or time limit is reached.
- Teams adding human approval, resumable runs, or tracing to agent workflows without embedding those mechanisms directly in the loop.
What you need
Detected in the repository
- C# (main language on GitHub)
- A test suite and automated checks on GitHub Actions
License in plain words
MITpermissive
- Commercial use: yes
- Modify and redistribute: yes
- You must keep: the copyright and license notice
- Share your changes: no
A summary, not legal advice: the LICENSE file is what applies.
Getting Started
Install the core package:
dotnet add package SapphireGuard.ModelHarness
For the standard setup and provider packages, follow the README and the getting-started project.
Alternatives
- harness-sdk: Strands is a Python and TypeScript SDK with an in-process agent loop, while model-harness targets .NET and emphasizes context guides and sensors.
- Pi: Pi is a TypeScript coding-agent harness and CLI, while model-harness is a .NET framework for building configurable agents across tasks.
- trueforge: TrueForge is a TypeScript harness focused on tools, session state, approvals, and sandboxing, with a chat UI and API; model-harness targets .NET.
| Project | Language | License | Stars | Status |
|---|---|---|---|---|
| model-harness | C# | MIT | 1 | Active |
| harness-sdk | Python | Apache-2.0 | 9k | Active |
| Pi | TypeScript | MIT | 117k | Active |
| trueforge | TypeScript | MIT | 6.4k | New |
Considerations
The project is young, and the measured contributor activity is concentrated in one person. Recent commits and releases indicate active development, while the measured issue-handling data shows no issues closed during the observed period. Teams should account for that maintenance concentration when adopting it for critical workloads.
The framework does not register a model client by itself, so an application must configure one. Some capabilities described in the README are opt-in or explicitly experimental, including AI-powered sensors, taint tracking, and agent learning. The README also presents using smaller or locally hosted models as an ambition rather than a demonstrated benchmark result. The project is MIT-licensed; review the license and the terms of any chosen model provider separately.
Found this useful?
Share it with someone who would like model-harness.