Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changeset/product-goal-docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# thee-harness

Monorepo for **thee**: an open-source, CLI-first coding agent harness (small models, verify-gated `finish`, local JSONL traces). Product overview: [docs/product.md](docs/product.md).
Monorepo for **thee**: an open-source, CLI-first coding agent harness that runs any model from any provider (open or frontier, hosted or local) from one place, optimized for the weakest model so it holds up on all of them (verify-gated `finish`, local JSONL traces). Product overview: [docs/product.md](docs/product.md).

| Path | What it is |
|------|------------|
Expand Down
2 changes: 1 addition & 1 deletion docs/harness-architecture/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## Purpose

thee-harness is a **frugal, model-agnostic coding agent**: a CLI-first loop that gets engineering work done with **small open models** by default, **tight context**, **tool-native repo access**, and **verification gates**—not by sending huge context to frontier models every turn.
thee-harness is a **frugal, model-agnostic coding agent**: one CLI-first loop that drives **any model from any surface** (frontier APIs, aggregators, our inference, local runtimes) from a single place. The loop is **optimized for the weakest supported model**: **tight context**, **tool-native repo access**, and **verification gates** that hold up on a small open model hold up on every model, so stronger models need no separate path. Small open models are the cheap default, not the only target.

The same loop runs **any** model, from an 8B open model to a frontier model. What changes per model is read from its **capability profile** (tool-calling protocol, edit format, context window, tokenizer, caching), not hard-coded for one class. OpenCode is the reference for what we avoid: a loop tuned for frontier tool calling that degrades on small models. The design takes the pieces that work from Aider (edit formats, repo map, test-in-repair-loop), Ante (profiles, local models, catalog), SWE-agent and zeroshot (verifier-gated loops), and the harness-ablation research, and combines them.

Expand Down
24 changes: 20 additions & 4 deletions docs/product.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
# Product

thee is a coding agent for engineers who are tired of paying frontier-model prices for work a smaller model can do, if it is given the right files instead of the whole repository.
thee is one coding agent harness for every model. Open or frontier, hosted or local, from any provider: you use them all from a single place, with the same loop, the same tools, and the same bill.

It is a command-line harness. You point it at a repo, describe the change, and it searches, reads, patches, and runs your tests. The default models are small open ones, good enough for most of the work. A larger model is used only when the cheap path fails. Every session shows what it spent, in tokens and dollars.
It is a command-line harness. You point it at a repo, describe the change, and it searches, reads, patches, and runs your tests. Which model does the work is a setting, not a different product. Swap providers or model sizes without changing how you work.

The harness is open source, so you can bring your own key. Point it at DeepInfra, OpenRouter, or a model on your own machine and the request goes straight there.
## The goal

Build the widest harness, not one tuned for a single model. thee should drive any model from any surface (frontier APIs like Anthropic and OpenAI, aggregators like OpenRouter and DeepInfra, our own inference, and models on your own machine) through one interface.

To make that work, the harness is **optimized for the weakest model it supports**. If the loop holds up on a small open model with a short context window and shaky tool calling, it holds up everywhere. Stronger models do not need a different harness; they just finish faster and fail less. Design for the worst case, and every model benefits:

- **Tight context.** The harness picks the right files instead of sending the whole repository. That keeps small models inside their window and frontier models cheaper.
- **Reliable tool calling.** Malformed or in-text calls are caught and repaired by the harness before they cost a model turn.
- **Capability profiles.** What differs per model (tool protocol, edit format, context size, caching) comes from its profile, not from code paths written for one model class.
- **Verify before done.** No task is called done until a harness-run check passes, whichever model did the work.
- **Cost visible.** Every session shows what it spent, in tokens and dollars, so models can be compared on the same task.

A cheap model can handle most work. A larger model is used when the cheap path fails or when you choose it.

## Bring your own key, or use ours

The harness is open source, so you can bring your own key. Point it at any supported provider or a local model and the request goes straight there.

We would rather you use our inference. It is cheaper than bringing a key to the same class of model, and we do not hold your data. Zero data retention is the rule, not a setting. Prompts, completions, and code are not stored. The work still happens on your machine. Our API only passes the model call through and drops it.

The product is not a cheaper chatbot. It is a tighter loop: less context, smaller models, a test run before the task is called done, and a bill you can see.
The product is not a cheaper chatbot. It is one tight loop for every model: less context, reliable tools, a test run before the task is called done, and a bill you can see.
Loading