Skip to main content
Each run is powered by a harness — the agent framework that drives tool use — paired with a model — the underlying LLM the harness calls.
If you omit harness, Trelent uses ClaudeCodeHarnessSpec() with its default model.

Supported harnesses

Each harness ships with a sensible default model, but you can override it.

Claude Code

Codex

Gemini

Why harnesses matter

Harnesses determine how the agent plans, calls tools, and recovers from errors. A Claude-family model paired with the Claude Code harness, for example, uses Anthropic’s tool-use conventions and prompt format. The same model would behave differently inside a Codex harness. Pick the harness that matches the model family you want to run:
  • Claude models → ClaudeCodeHarnessSpec
  • GPT / Codex / o-series models → CodexHarnessSpec
  • Gemini models → GeminiHarnessSpec