Harness-model fit

Choose the harness and model that fit each task.

  1. Create an agent

    Pick the harness, model, and instructions. Every edit saves a new version.

    Read the docs
    const agent = await client.waitForPending(  await client.agents.create({    name: "Reviewer",    harness: "opencode",    model: "anthropic/claude-sonnet-5-5",    system: "Review pull requests. Say what to change and why.",  }),)
  2. Create an environment

    Set packages and outbound network rules once.

    Read the docs
    const environment = await client.waitForPending(  await client.environments.create({    name: "default",  }),)
  3. Start a session

    Pair the agent and environment. Each session pins its agent version.

    Read the docs
    const session = await client.waitForPending(  await client.sessions.create({    agent: agent.id,    environment_id: environment.id,  }),)
  4. Switch harness anytime

    Change harness or model on an idle session without losing history.

    Read the docs
    await client.sessions.selectRuntime(session.id, {  harness: "codex",  model: "gpt-5.4",})

Managed agents for any harness

Pick the harness and model. Checkfu runs everything around them.